I just want a simple notification or action (blink the lights 3 times) when the temperature outside falls below the one inside, so I can open the window. Then again, in the morning, when it gets higher than inside. Ideally I can set a 1-2 degree threshold. Should be relatively easy to do, but I haven’t figured it out.
What I have so far in triggers, as yaml:
platform: state
entity_id: sensor.nexus_channel_2_temperature
from: '23'
That’s the outside sensor, the inside one is pretty similar.
Note that the “max” and “transition” properties are not needed, they are just junk left behind by the visual configuration.
I had to add a condition to check if the outside temperature is above 10, since the sensor sometimes becomes “unavailable” which translates to 0.0 when converted to float.
Another condition just checks that the time is right, 4pm to 12am. The action flashes a light twice.
There is a similar automation for closing the windows in the morning, it flashes the light 3 times, with a similar time condition. No need for a zero-check there.