Hi,
I can succesfully play a chime in my google nest devices, but nog on my Sonos (arc)
I use the following code:
service: media_player.play_media
data:
media_content_id: http:/192.168.0.x:8123/local/audio/elevator-announcement-bells.wav
media_content_type: audio/mp3
target:
entity_id:
- media_player.woonkamer_2
- media_player.slaapkamer_wekker
When I add the Sonos media-layer entity ID nothing happens on the Sonos, The Google devices still work.
What’s the difference between the 2 ?
Thanks,
Rien
finity
November 13, 2021, 5:00pm
2
Here is a script I use to play an mp3 to a Sonos speaker:
- service: media_player.play_media
data:
entity_id: media_player.sonos_livingroom
media_content_id: https://my_nabu_casa_url.ui.nabu.casa/local/mp3/nws_alert_tone.mp3
media_content_type: music
I think that recently the clip needs to be accessible from the outside. Which is why I use my nabu casa url.
I think I was wrong about that.
Tried your script, but still no go.
The only difference is the media_content_type, if I use the type music it plays on the Google Nest devices, but for the Sonos I receive a “Illegal MIME-Type” error"
service: media_player.play_media
data:
media_content_id: http:/192.168.0.185:8123/local/audio/dingdong.mp3
media_content_type: audio/mp3
entity_id: media_player.sonos_arc
finity
November 14, 2021, 3:01pm
4
I’m not sure why. It works fine for me.