I would like to control a switch from switching an output in esphome but I keep coming up with errors
I have a esphome device with a sensor that measures the temperature and when in range will operate the switch, but I don’t require this all the time hence the reason to disable the switch when not needed. I do still want the temperature readings in HA so don’t want to disable the esphome device completely.
I’ve created a input_boolean in HA in attempt to turn the automation in esphome on and off.
I’ve tried creating an if-condition in the on_value_range unit after more reading released it’s not supported. So just not sure where to go from here or whether I’m doing things totally wrong and there’s a better way.
I was hoping the on_value condition would consider the state of the oven_proofing_switch which was ‘ON’ at the time and would carryout the on_value_range condition, but its wasn’t to be.
The logic isnt exactly how you need it nut im ony cell phone and i think you get the point. The above/below automation can check to see if the template switch is on/off. Depending on on/off it will or wont toggle the heater switch