spotcast icon indicating copy to clipboard operation
spotcast copied to clipboard

Question: account used to

Open jokerigno opened this issue 3 years ago • 3 comments

Hello,

I was wondering if there is a way to store account used to trigger spotcast service. Let me explain my usage:

I have some tts notification based on things that happens at home (dishwasher, washer, etc).

So IF this happens while music is streaming I ( actually a guy I know) found a way to restart streaming using spotcast service. This is great if I started the streaming while it doesn't work if my wife is the one using spotify.

Is there a place where this info is stored?

Thank you in advance

jokerigno avatar Mar 21 '22 18:03 jokerigno

Maybe you can use the information provided by media_player.spotify_xxxxx for this?

hmmbob avatar Mar 21 '22 18:03 hmmbob

That's indeed how I solved it in my script to resume Spotfy after a TTS or other interruption.

I compare the source of the media_player.spotify_ entity to the friendly names of the speakers.

To make sure this runs without errors, it would be nice to have some information on which accounts are set up in Spotcast though, would it be possible to expose those in a sensor?

TheFes avatar Apr 26 '22 08:04 TheFes