Hi, This is driving me nuts. I have created a hot water sensor and switch using an ESP8266 and the arest platform. The reading are coming in ok to HA and the switch is working fine manually. I can’t seem to get this automation to work. Basically I want it to turn the switch on when it goes over a certain value. I have checked all the id’s in the development tools section. Any ideas why this is not working.
automation:
alias: Hot Water On when over value
condition:
platform: arest
entity_id: sensor.hot_water_temperature
above: 300
action:
platform: arest
service: switch.turn_on
entity_id: switch.hot_water_hot_water_on
automation:
alias: Hot Water On when over value
trigger:
platform: arest
entity_id: sensor.hot_water_temperature
condition:
platform: arest
entity_id: sensor.hot_water_temperature
above: 100
action:
platform: arest
service: switch.turn_on
entity_id: switch.hot_water_hot_water_on
Try 2:
automation:
alias: Hot Water On when over value
trigger:
platform: arest
entity_id: sensor.hot_water_temperature
above: 100
action:
platform: arest
service: switch.turn_on
entity_id: switch.hot_water_hot_water_on
Then just to try something a bit more basic I tried the following:
Just to keep it very simple I tried the following. Effectively trying to get the automation working. I have tried many combinations but am having no luck. In this I am aiming that once the wemo switch goes on the arest goes on as well. Can anyone see what I am doing wrong? Also, a question, how important is it for the spaces to be correct?
Hi, Thanks for the code. It worked well.
I have now tried to go back to the initial code so my switch goes on when the sensor is above 250 and goes off below it. I got it somewhat working but the led seems to come on randomly. This code is not working but seems to be closer. Is there something I am doing wrong?