I’m trying to build my first automation using the UI. I wanted to turn a heater that’s connected to a zwave plug on and off based on the temperature of a zwave thermometer. I have 2 automations, one to turn on when its below 74f and one to turn on when its above 74f. Neither of these work. I know I’m not understanding something. I’m trying to learn using the UI before I start the learning curve of yaml.
Heres the Yaml code for one of the 2 automations. Can anyone explain what I’m not understanding here?
Sorry about the formatting error. I just went back to the requirements and saw the example. It shows to change the posted code using the “<>” option. But I don’t see that option here in the editor. What program do I need to use to get that formatting option?
I’ve got zero experience in writing yaml code so I cant really format this by hand…
State triggers only fire when the state changes. If the conditions are already fulfilled when the automation is loaded (in this case, temperature below 73.7), the trigger will never fire until they are not (temperature above 73.7) and then goes back to being fulfilled again.
But as per above, do not reinvent the wheel. Use a Generic Thermostat.
Thanks for taking the time to respond to my post. It dudnt sink in when i read about states that a state trigger doest responf to the state, it responds when there is a state chsnge. So thst was really helpful.
I had no idea there was a generic thermostat available. Its clearly way better then mine. So ill play with mine to continue my education of automation but put the genetic one in plsce to solve my need at the moment.
Trying to understand home assistant for a beginner like me is a bit like the blind man who touches an elephant and has to then fully describe the whole animal before hes able to leave a room.
You almost have to understand all of it before you know enough to be able to learn it . Im still quite awaya away from learning the fundamentals.
The forum users and documentation are here to help you learn to “feel your elephant”. It will take some time to get proficient at it but is definitely worth the effort.