I have 2 separate automations to check sensor temp in my kid’s room to turn on/off a space heater. I’m doing this because I couldn’t figure out how to combine them into a single automation with different actions based on the below/above trigger values.
I tried to combine them at first, but saw no way of action the “Action” to map the turn on/ff service call correctly. I considered using the “toggle” service, but that was more opaque to me.
Is there a way to combine this that I don’t know or am I doing it the right way?
You can’t do it in the ui - this needs a service template, which is ‘advanced’. The point of the ui is to quickly get working automations, and not worry about the underlying code. Based on that philosophy, having two automations is fine.
If you specifically want to use only one, you’ll need to edit the yaml, which will look something like
Morning, i adopted the yaml for my automation. But i am not recognizing when this was triggered then.
I set the values that it must happen something. But the trigger seems not to be triggered by HA.