I want to delay / pause an automation.
Thought I can stop the my siren always automatically by stopping the automation with a delay that than triggers an automation to stop the siren (turn_off). Tried to program in a simple delay in the automation but nothing happens. I used the UI to create the automation and enhanced the automation.yaml with delay to put in the delay. But nothing happens.
What is wrong here ?
- id: '1620941731695'
alias: Alarm Siren auto stop
description: ''
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
to: triggered
condition: []
action:
- delay:
seconds: 10
- type: turn_off
device_id: 84c563f7b2c311250ee9e7c21e1f4737
entity_id: switch.alarm_siren
domain: switch
- service: notify.notify
data:
message: Alarm siren auto stop
mode: single