i’m using RF on GPIO with the climate component to turn on and off an RF switch for my window AC unit.
however, sometimes the RF switch doesn’t register that the climate told it to fire on/off. either the RF switch doesn’t hear the request, or HA isn’t sending it. which leads to it never firing the on/off again. according to climate it should currently be “cool” mode, yet the AC is not on. or climate is currently in “idle” and the AC is still on, making it butt cold.
so i need an automation that will check if climate status is “cool” yet the temp is getting warmer then fire the ON again. and another that will check that climate is in “idle” yet it’s getting colder then fire the OFF again. rinse. repeat.
so that means being able to store the last temp, compare against the current temp and do math inside an automation.
can i even do add/subtract math in an automation with yaml code?
You might be able to handle that with a trend sensor. You can also do math in a template sensor - template sensors change each time the state of entity_id they refer to changes.
Hi, did you find a solution for this? I need to do something similar. Something that shuts off the heater when it’s not idle and the temperature is decreasing.