Script slow playing sound on Sonos speaker

Hi,
I have a script for playing a doorbell sound on my Sonos Ikea speaker. For some reason it takes between 10-40 second to execute and it varies a lot. I do not know why or how to troubleshoot on this. Any ideas?

alias: dørklokke
sequence:

  • service: sonos.snapshot
    data:
    entity_id: media_player.kokken_sonos
  • service: media_player.volume_set
    data:
    volume_level: 0.18
    target:
    entity_id: media_player.kokken_sonos
  • service: media_player.play_media
    data:
    media_content_id: http://192.168.68.100:8123/local/mp3/Door-bell.mp3
    media_content_type: music
    target:
    device_id: 0f8185174da1490482497929606314b5
  • delay:
    hours: 0
    minutes: 0
    seconds: 6
    milliseconds: 0
  • service: sonos.restore
    data:
    entity_id: media_player.kokken_sonos
    mode: single
    icon: mdi:bell

Version: core-2022.3.8
Installation Type: Home Assistant OS
Host Operating System: Home Assistant OS 7.5
Supervisor Version: supervisor-2022.03.5
Sonos OS: S2
Sonos version: 14.4 (build 67127100)

1 Like