#Wait for Trigger duration, not waiting

1 messages · Page 1 of 1 (latest)

upper root
#

The Wait for Trigger does not seem to be waiting for duration. I want to have an office lamp turn off after 5 minutes of not detecting motion. I can't seem to get it to wait for the 5 minutes. Any help is appreciated.

Here is what I have setup:
alias: Turn on office lamp with motion
description: When the motion is detected in the office, turn on the office lamp.
triggers:

  • trigger: state
    entity_id:
    • binary_sensor.office_motion_sensor_motion
      from: "off"
      to: "on"
      for:
      hours: 0
      minutes: 0
      seconds: 0
      conditions:
  • condition: device
    type: is_off
    device_id: 111111
    entity_id: 22222
    domain: switch
    actions:
  • type: turn_on
    device_id: 111111
    entity_id: 22222
    domain: switch
  • wait_for_trigger:
    • trigger: state
      entity_id:
      • binary_sensor.office_motion_sensor_motion
        to: "off"
        for:
        hours: 0
        minutes: 5
        seconds: 0
        from: "on"
        timeout:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 0
        continue_on_timeout: true
  • type: turn_off
    device_id: 111111
    entity_id: 22222
    domain: switch
    mode: single
#

Wait for Trigger duration, not waiting

keen bobcat
#

You set a timeout of 0

#

And told it to continue when it times out

knotty elmBOT
#

@upper root To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

upper root
#

'''Error: TimeoutError
Result:

wait:
remaining: 0
completed: false
trigger: null
timeout: true'''

keen bobcat
#

Just remove it

upper root
#

Oh you can click "x" to remove it, thanks! Let me try it now.