Thanks for sharing… been very helpful. If you have any other examples, would love to see them.
Taking inspiration from your post, I’ve created a simple script to turn on my kitchen Squeezebox Radio, set the volume to 24 (in case someone had it previously up high) and play a radio station via TuneIn. Still playing around with it:
Script excerpt:
alias: Squeezebox - Play 2FM Radio @ Volume 24)
sequence:
- service: squeezebox.call_method
data:
entity_id: media_player.squeezelite_x
command: mixer
parameters:
- volume
- 24
- service: squeezebox.call_method
data:
entity_id: media_player.squeezelite_x
command: playlist
parameters:
- play
- >-
http://opml.radiotime.com/Tune.ashx?id=s15065&formats=aac,ogg,mp3&partnerId=16&serial=79232d52020eef518cef71462c5571c1
mode: single
I’ve also got it working to play Spotify Playlists (similar to your initial post). Next thing I want to try and figure out something more advanced, like playing recently added albums or random mix from the current year…hmmm…