
What do i wrong?
This rule is working:
On PIR#Motion do // Motion detected:
if %systime% > 18:48 // After 18:48 Sunset
gpio,12,1 // Lamp on
timerSet 1,60 // start timer
endif
if %systime% < 6:30 // Before 6:30 Sunrise
gpio,12,1 // Lamp on
timerSet 1,60 // start timer//
endif
endOn
On Rules#Timer=1 do
gpio,12,0 // Lamp off
endOn
This is not working:
On PIR#Motion do // Motion detected:
if %systime% > %Sunset% // After 18:48 Sunset
gpio,12,1 // Lamp on
timerSet 1,60 // start timer
endif
if %systime% < %Sunrise% // Before 6:30 Sunrise
gpio,12,1 // Lamp on
timerSet 1,60 // start timer//
endif
endOn
On Rules#Timer=1 do
gpio,12,0 // Lamp off
endOn