I have a few situations that require a switch toggle based on different values. For example, if a humidity sensor is above 45%, turn on a switch until the humidity is below 45% and then turn it off.
I can only seem to do this with two separate automations. Is there a way to combine this into a single automation or script?
To test it, the humidity value must increase from below 45 to above 45. The easiest way to simulate it is to go to Developer Tools> States, select sensor.rv_humidity, ensure its value is currently below 45, set its value to 50, then click the Set State button.
How much can one guy learn in a short thread? All of it!
Thanks for the lesson, that was what I was looking for. I did just click on ‘run’ so the bonus lesson there is deeply appreciated too. Now I can go and rewrite all my other stuff using this.