First of all, congrats and thank you to @happyleaves for bringing spotify to HA officially.
At the moment, each rooms have one echo dot and each dot is linked to separate spotify account. I am wondering is it possible for this Spotify component to support multiple accounts?
Right now it supports only one account. It writes credentials to a file, and that filename isn’t based on the entity id - it’s always the same. There could be other issues as well, but I only have 1 spotify account to test with.
I would love to have support for 2 spotify accounts.
We have 1 spotify connect speaker and if my fiancee uses it in the evening, it does not work for my account connected to HA.
I wnated to write automation that pipes through the account currently on the speaker
So is there something new about this? Maybe if i use a special spotify playlist player, where i can choose the spotify account, the playlist and where to play.
Or every account gets a custom tab
just configured by specifying cache_path, this works. i have two spotify media players now. The second one can’t see any sources, might be due to the fact that i havent use/link it on any devices yet.
Gr8 Investigate if everything works for you, if not tell me the problems here and I’ll try to fix it. Will do a pull request for documentation to add some info about this
Hi there,
I was trying to add a second account to my working HA Spotify control, but could not get it working.
Allthough two separate cache files are created and two Spotify media player show up in HA, both are somehow controlling the same account, the one that already existed.
Honestly, I don’t get what @chimpy meant with “Using absolute path for the cache_path …”.
Maybe this is the problem.
Hope you guys can help me getting this to work!
Thanks
Today had the chance to test again and it looks like the hint from @dkramer74 did the job. Alltough I already deleted the cache a few times. After deleting the cache, I was not able to directly get it to work, so I waited a while and tested again later, suddenly it worked. Here is what I did:
Delete all cache files
Restart Home Assistant
Konfigure the first spotify account from outside my home (the second account could not be konfigured)
Konfigure the second spotify account from home a few hours later (suddenly the account could be configured)
No clue why and how long it will work. Maybe it was the different location/IP during the configuration.
Anyhow thanks for your suggestions.
For what it’s worth; however, absolute paths were part of my trouble; I had to switch back to relative paths. YMMV I suppose, but something to try if it still isn’t working for you.
This looks to be exactly what I’m looking for but not sure if the code snip should be placed under the spotify: integration directly or under sensor: integration (since it uses the - platform: spotify).
Only used Home Assistant since 0.105 and I understand syntax might have changed. I now run 0.108.2 so would need full syntax for the configuration.yaml.