I’ve been through most of the forum posts on delays but can’t get them to work properly in the below script. It used to work a couple of versions ago but in the latest version the delays just get ignored.
I’ve tried both the straight inline:
- delay: '00:10:00'
And:
- delay:
minutes: 10
Automation is below, this was originally created using the webgui and then detail added to it manually.
Hoping someone can help!
- id: '1526168523903'
alias: Sleep
trigger:
- minutes: /1
platform: time
seconds: 0
condition:
- after: '22:30:00'
before: 02:00:00
condition: time
- condition: state
entity_id: media_player.lounge_tv
state: 'off'
- condition: or
conditions:
- condition: state
entity_id: device_tracker.d_phone
state: home
- condition: state
entity_id: device_tracker.e_phone
state: home
- condition: state
entity_id: binary_sensor.blink_armed_status
state: 'off'
action:
- data:
temperature: 16.5
service: climate.set_temperature
- service: light.turn_off
entity_id: light.front_door
- delay:
minutes: 10
- alias: ''
data:
device_armed: 'False'
friendly_name: Landing
service: blink.arm_camera
- alias: ''
data:
device_armed: 'False'
friendly_name: Dining Room
service: blink.arm_camera
- data:
device_armed: 'True'
service: blink.arm_system
- entity_id: switch.kitchen_counter_light
service: switch.turn_off
- service: light.turn_off
entity_id: light.living_room
- delay:
minutes: 30
- data:
device_armed: 'True'
friendly_name: Dining Room
service: blink.arm_camera
- data:
device_armed: 'True'
friendly_name: Landing
service: blink.arm_camera