Hello everyone,
I have written the following automation but it does not work. What I would like is when my sliding door is open for two minutes my heater is turned off. I dont know if I have the wright sensor for the heater.
Any help is welcome!
Thanks in advande
trigger:
- platform: state
entity_id: binary_sensor.shenzhen_neo_electronics_co_ltd_door_window_detector_sensor
to: 'on'
timer:
timer_schuifpui:
duration: ‘00:02:00’
action:
- condition: state
entity_id: sensor.nefit_status
state: turn off
I agree your heater entity_id is definely wrong as pointed out by @Hellis81. You can’t turn on or off a sensor.
And your trigger is also wrong. You can’t add a timer like that.
This would be the correct format for the triger:
trigger:
- platform: state
entity_id: binary_sensor.shenzhen_neo_electronics_co_ltd_door_window_detector_sensor
to: 'on'
for: ‘00:02:00’
Once you figure out what you actually want to happen when the automation triggers then you will need to write an action that actually calls a service. right now you are just testing for a condition but have no actual action.
thank you very much for your response @hellis81 I think you are wright with the sensor. I will look into it. @finity Thanks for the trigger configuration!