@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