Probably not an Home Assistant issue, but you people are all very knowledgable, so may be able to help. I don’t use any Spotify integration btw, only an android Spotify app and the Chromecast devices as (cast) media players.
This behaviour only started to happen recently. Not sure whether it’s a Spotify or Google Cast issue.
When I play a Spotify playlist or album from my Android Spotify app via Spotify connect on a Chromecast device (Chromecast Audio, Lenovo Smart Clock, Chromecast) and the playlist finishes, this is not reported to the Chromecast. The Chromecast device remains on the state “playing”. When I pause a song myself, this works just fine and the chromecast device goes to paused as well. When I play an album that contains only 1 song, all is fine as well. The status of the player goes to pause after playing it.
The is very annoying, since I have automation associated with it, to turn off speakers when no Spotify is playing. This used to work fine, but something changed and this behaviour started to manifest itself.
Anyone can confirm this happening? And where the root cause lies, Chromecast or Spotify?
I assume a workaround would be to also add the Spotify integration and monitor state there?
Update: Mmm, the media player actually goes to paused and then quickly after (within 1 sec) back to playing???