Hello, thanks for all the examples and code here and the ST forum!
I was trying to get some piston to wake me up if my son’s room is cold in the night so i can close the window.
My piston pretty much looks like this:
if
Alex Room’s temperature is less than 78°F
and
Alex Night Light’s switch is on
and
Date & Time is between sunset and sunrise
then
with
Master Bedroom Lamp
do
Turn on;
end with;
else
end if;
end execute;
This works great, the problem is that the temp sensor reports the temperature every 15 mins and if the temperature hasnt rised, the light keeps on turning on and wakes me up. How would i add any code to do this only once each night? So if it happens tonight at 12.56 it will turn on the light and it will not turn on the light again, until next night if the temp drops below the set point?
Thanks!