Hey
this seems to have stopped working for me recently and im unsure why?
i checked all my entites and they are all the same
i got an error about the delay, so i wrapped that in single quotes ’ however it still doesnt seem to work
i think i also saw some errors about volume but they are not showing up now
automation:
- id: play_doorbell_sound_all_sonos
alias: Play Doorbell Sound on All Sonos Devices
trigger:
- entity_id: binary_sensor.front_door_ding
from: 'off'
platform: state
to: 'on'
action:
- data:
delay: '00:00:01'
sonos_source: http://homeassistantssd.local:8123/local/audio/doorbell.mp3
volume: 0.4
service: script.sonos_mp3_all_rooms
script:
sonos_mp3_all_rooms:
alias: Sonos - MP3 - All Rooms
sequence:
- data_template:
entity_id:
- media_player.bedroom
- media_player.ensuite
- media_player.living_room
- media_player.spectrum_studio
service: sonos.snapshot
- data_template:
entity_id:
- media_player.bedroom
- media_player.ensuite
- media_player.living_room
- media_player.spectrum_studio
service: sonos.unjoin
- data:
master: media_player.living_room
entity_id: all
service: sonos.join
- data_template:
entity_id:
- media_player.bedroom
- media_player.ensuite
- media_player.living_room
- media_player.spectrum_studio
volume_level: '{{ volume }}'
service: media_player.volume_set
- data_template:
entity_id: media_player.living_room
media_content_id: '{{ sonos_source }}'
media_content_type: music
service: media_player.play_media
- delay: '{{ delay }}'
- data_template:
entity_id:
- media_player.bedroom
- media_player.ensuite
- media_player.living_room
- media_player.spectrum_studio
service: sonos.restore