@weado wrote:
Hello !
I writed an automation to turn on two light during 10 minutes when I open my front door, only the night. It works well, but when I close and re-open my door, the light turn off immediatly, and I don’t know why. If you have an idea, I’ll take it !
- alias: Lamp trigger: platform: state entity_id: binary_sensor.front_door to: "on" condition: condition: state entity_id: sun.sun state: 'below_horizon' action: - service: switch.turn_on entity_id: - switch.led - switch.lamp - delay: minutes: 10 - service: switch.turn_off entity_id: - switch.led - switch.lamp
Posts: 6
Participants: 3