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.
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