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

Why does my wait for trigger run indefinitely?

$
0
0

What is wrong with this automation?
Once it starts, even after I close the door sensor it just runs indefinitely. Why something this simple seems to have some weird drawback hidden at some detail that is against intuition?

alias: "Entrada - contact puerta luz "
description: "Enciende la luz de la entrada con la puerta "
triggers:
  - entity_id:
      - binary_sensor.opening_3_contact
    from: "off"
    to: "on"
    trigger: state
conditions:
  - condition: sun
    before: sunrise
    after: sunset
    after_offset: "-30"
    before_offset: "30"
actions:
  - data: {}
    target:
      entity_id: light.entrada
    action: light.turn_on
  - wait_for_trigger:
      - entity_id:
          - binary_sensor.opening_3_contact
        to: "off"
        for:
          hours: 0
          minutes: 0
          seconds: 30
        trigger: state
  - delay:
      hours: 0
      minutes: 0
      seconds: 45
      milliseconds: 0
  - data: {}
    target:
      entity_id: light.entrada
    action: light.turn_off
mode: restart

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105630

Trending Articles



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