Rules - if power out, and power comes on at night, switch on lights
Posted: 13 Mar 2020, 23:52
Hi, we have lots of power outs in South Africa now, sometimes after dark. I currently have a rule which switches on after sunrise, and off before sunrise. But this does not work if the power comes up inbetween these two events - and thus lights are off. How can I make the below additional rule work? (it does not work):
Code: Select all
on Time#Set do
If %systime% < %sunrise-20m% and %systime% > %sunset+15m%
gpio,12,1
else
gpio,12,1
endif
endon