So, I took your advice, and moved it all into one automation.
alias: alarm
description: ""
triggers:
- trigger: time
at: "06:30:00"
conditions:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
after: "06:00:00"
before: "14:00:00"
actions:
- action: media_player.volume_set
metadata: {}
data:
volume_level: 0.2
target:
entity_id:
- media_player.child2_bedroom_wifi_speaker
- media_player.child1_bedroom_speaker
- parallel:
- action: mass.play_media
target:
entity_id:
- media_player.child1_bedroom_speaker_mass
data:
media_id: child1-playlist
media_type: playlist
- action: mass.play_media
target:
entity_id:
- media_player.child2_bedroom_wifi_mass
data:
media_id: child2-playlist
media_type: playlist
- delay:
minutes: 3
- action: light.turn_on
metadata: {}
data:
transition: 300
brightness_pct: 70
target:
entity_id:
- light.child1_bedroom_pendant
- light.child2_bedroom_pendant
mode: single
However, the same is still happening. The automation runs, the volumes are set, no music is played, and then 3 minutes later the lights turn on.
This is the timeline:
Triggered by the time at 25 November 2024 at 06:30:00
Test If the time is after 6:00 and before 14:00 and the day is Monday, Tuesday, Wednesday, Thursday or Friday
Media Player ‘Set volume’ on child2-bedroom-wifi-speaker and child1-bedroom-speaker
Execute in parallel
Perform action ‘Music Assistant: Play Media (advanced)’ on media_player.child1_bedroom_speaker
Perform action ‘Music Assistant: Play Media (advanced)’ on media_player.child2_bedroom_wifi
3 minutes later
(light.child2_bedroom_pendant) turned on
1 second later
(light.child1_bedroom_pendant) turned on
Cancelled at 25 November 2024 at 06:44:37 (runtime: 876.80 seconds)
And this is the Related Log Entries:
alarm triggered by time
06:30:00 - 3 hours ago
child2-pendant turned on triggered by automation alarm triggered by time
06:33:00 - 3 hours ago
child1-pendant turned on triggered by automation alarm triggered by time
06:33:01 - 3 hours ago
Nothing else happens