-
Maybe someone can walk me through this, my doorbell broke, I got a Shelly Wi-Fi button and wanted to trigger a doorbell sound playing on a Spotify device named "ha-mil" Got a bit lost. The first parts of the automation seem to work, but I can't figure out how to play say this track: https://open.spotify.com/track/7a2JJL4LpkErSS2qboslTw when it triggers.
So far I have tried media_player.turn_on and spotifyplus.player_activate_devices as well as other options, but I'm obviously doing something wrong. I'd appreciate if somebody can just give me some hints on what steps I need to take, i.e. activate a player, then activate device, etc... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@ovizii Example - note this is from the Developer Tools window (you can't directly paste it into the script actions).
|
Beta Was this translation helpful? Give feedback.
-
Oh, and thanks for your help. I will close this if I can't figure it out in the next few days, if I do, I will update the thread, maybe it'll be of use to someone else one day. |
Beta Was this translation helpful? Give feedback.
-
Btw. never mind. I have changed things, and I am now playing my doorbell chime via mp3 using squeezelite player also installed on this HA instance. IT'll play at its own, louder volume, over Spotify Plus if it is playing. :-) Works fine with me. If I have time, I'll insert another check to see if Spotify Plus is playing, pause it and resume it afterwards but for now this will do. |
Beta Was this translation helpful? Give feedback.
@ovizii
define an action to call the
spotifyplus.player_media_play_tracks
service.Example - note this is from the Developer Tools window (you can't directly paste it into the script actions).
Also change the entity_id to your SpotifyPlus entity_id.