Can I play a Sonos chime sound without interrupting my music?

Hi, I’m currently trying to play my doorbell sound through Sonos. The “classic” method works fine and interrupts my music (it snapshots it beforehand and then plays the doorbell sound).

When I’m using just TuneIn, this method works well.
However, it doesn’t work with music streams from, for example, Amazon Music.

In that case, my music is not resumed. With regular TTS announcements, this works differently, as the music volume is only reduced and the text is overlaid.
Is there a chance to do the same with the doorbell sound?

ChatGPT and I don’t know how to proceed with this. :slight_smile:

alias: Play chime over Sonos when doorbell is pressed
description: Overlay a chime sound on Sonos systems without fully interrupting playback.
triggers:
  - entity_id: binary_sensor.g4_doorbell_pro_doorbell
    from: "off"
    to: "on"
    trigger: state
conditions: []
actions:
  - data:
      entity_id: media_player.manu
    action: sonos.snapshot
  - target:
      entity_id: media_player.manu
    data:
      volume_level: 0.25
    action: media_player.volume_set
  - target:
      entity_id: media_player.manu
    data:
      media_content_type: music
      media_content_id: http://192.168.137.40:8123/local/Chime.mp3
    action: media_player.play_media
  - delay:
      seconds: 2
  - data:
      entity_id: media_player.manu
    action: sonos.restore
mode: single

Yes, just play the media using the announce flag set to true.

    - service: media_player.play_media
      data:
        media_content_id: http://192.168.1.99:8123/local/sounds/doorbell.mp3
        media_content_type: music
        announce: true
      target:
        entity_id: media_player.kitchen
2 Likes