Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95533

[SOLVED] Strange behavior with automation front door

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>