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:
- binary_sensor.office_motion_sensor_motion
- 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
- binary_sensor.office_motion_sensor_motion
- trigger: state
- type: turn_off
device_id: 111111
entity_id: 22222
domain: switch
mode: single