Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95414

Calculate negative offset for sunset

$
0
0

@Claton wrote:

Hi all,

I currently have a -45 minute offset before sunset for turning lights on. I would like to calculate that offset by using “sensor.owm_cloud_coverage” which returns 0 - 100 representing the percentage of cloud cover.

Can you put a calculation in the offset field and if so how do you format it? Calculation something like “-30 + (- sensor.owm_cloud_coverage/ 4)”. This would create a -55 minute offset at 100% cloud coverage and -30 at 0% coverage.

Thanks for reading this and helping out.
Clay

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>