Im using a split config setup and my manually configured automation for when the alarm panel goes to state pending is not working. I removed everything to keep it as simple as possible.
When i build the automation through the UI it works perfectly.
Other automations in the split config folder work fine (could there be some interference?)
Not working super simple config
- alias: Manual - Notification when alarm is pending
trigger:
platform: state
entity_id: alarm_control_panel.home_alarm
to: pending
action:
service: notify.mobile_app_XXX
data:
message: Alarm Pending!
The UI generated automation that works looks like:
- alias: Alarm - Pending
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
to: pending
action:
- delay: 00:00:05
- service: notify.mobile_app_XXX
data:
message: Alarm Pending!
- service: media_player.volume_set
data_template:
entity_id:
- media_player.keuken
- media_player.woonkamer
volume_level: 0.8
- service: media_player.play_media
data:
media_content_id: http://ip123/local/siren.mp3
media_content_type: music
target:
entity_id:
- media_player.keuken
- media_player.woonkamer
I tried copy and pasting that to my manual automation.yaml but also doesn’t work?
Any pointers on where this might go wrong as i have been breaking my back over this for the past 4 hours