I am trying to use the HA Automations to create an Alarm every morning that plays a radiostationt through my Sonos One (w/Alexa) speaker.
When I manually trigger it, it works as expected. However, it never triggers itself based on the Time (05:45) that i’ve set the automation to run at.
Pulling my hair out! Any advise is super appreciated.
YAML
alias: 05:45am Wake Up Alarm
description: ""
triggers:
- trigger: time
at: "05:45:00"
enabled: true
conditions:
- condition: not
conditions:
- condition: device
device_id: 4663682a12c8529ef23c023135388526
domain: alarm_control_panel
entity_id: 32a0a2fcb72de52e896413e65d7170e4
type: is_armed_away
actions:
- action: media_player.volume_mute
data:
is_volume_muted: false
target:
entity_id: media_player.bedroom_sonos
- action: media_player.volume_set
target:
entity_id: media_player.bedroom_sonos
data:
volume_level: 0.05
- action: music_assistant.play_media
target:
entity_id: media_player.bedroom
data:
media_id: NTS Radio 1
metadata: {}
- action: light.turn_on
target:
entity_id: light.bedroom_main_light
data:
brightness_pct: 0
- repeat:
sequence:
- action: media_player.volume_set
target:
entity_id: media_player.bedroom_sonos
data:
volume_level: "{{ (0.05 + (repeat.index * 0.025)) | round(2) }}"
- action: light.turn_on
target:
entity_id: light.bedroom_main_light
data:
brightness_pct: "{{ (repeat.index * 6.25) | round(0) }}"
- delay: "00:00:10"
count: 8
mode: single