fondberg / spotcast

Home assistant custom component to start Spotify playback on an idle chromecast device as well as control spotify connect devices
Apache License 2.0
672 stars 96 forks source link

[Feature Request] Option to only play 1 song #410

Closed Timmiej93 closed 10 months ago

Timmiej93 commented 1 year ago

I guess this is gonna be pretty specific to my use case, but who knows.

I would love a toggle that lets you set "one song only" mode. A local media outlet has their latest news bulletins on Spotify in a playlist, so I can very easily use spotcast to play the most recent bulletin. Unfortunately, after that one is done, some random music starts. I would prefer the player to just go back to the "off" state, so I can sense that in HA and cast the next bit of media to it. Is that at all possible?

martinsteinorth commented 11 months ago

I just came across the exact same requirement. I have multiple podcast shows and would like to listen to the most recent episode of each of these shows to build an automation for a news routine.

fcusson commented 11 months ago

@Timmiej93 that wouldn't really be possible in a useful way. Spotcast loses context after sending a play request.

That's something you should deal with yourself in an automation directly.