Page 1 of 1
using 2 instances of the spotify component
Posted: Friday 31 December 2021 12:55
by K0enH
Hi there,
I'm a happy domoticz users combined with dashticz on a LENOVO TAB M10+ with a dock.
recently I upgraded my stereo to SONOS and since we are already using Spotify for a long time the spotify component is heavily being used.
however I havent found a way to use multiple instances of the spotify component at the same time, as me and my wife have our own favorites it would be great if we could have multiple instances of the spotify component in dashticz. this would make that when clicking on one of the instances I would see my prefered lists and the other one my wifes favorites.
any ideas on this if this can be accomplished any how?
Regards,
Koen
Re: using 2 instances of the spotify component
Posted: Friday 31 December 2021 13:22
by Lokonli
K0enH wrote: ↑Friday 31 December 2021 12:55
Hi there,
I'm a happy domoticz users combined with dashticz on a LENOVO TAB M10+ with a dock.
recently I upgraded my stereo to SONOS and since we are already using Spotify for a long time the spotify component is heavily being used.
however I havent found a way to use multiple instances of the spotify component at the same time, as me and my wife have our own favorites it would be great if we could have multiple instances of the spotify component in dashticz. this would make that when clicking on one of the instances I would see my prefered lists and the other one my wifes favorites.
any ideas on this if this can be accomplished any how?
Regards,
Koen
Currently only one account is supported. To support multiple accounts the spotify component needs to be updated. It's not too complex.
I'll add it to the feature request list of January
Re: using 2 instances of the spotify component
Posted: Friday 31 December 2021 14:20
by K0enH
that would be great @Lokonli!
might be handy if you can supply multiple spotclient_id and then decide in a dropdown or something like that as what user you want to navigate

Re: using 2 instances of the spotify component
Posted: Monday 03 January 2022 13:16
by K0enH
Lokonli wrote: ↑Friday 31 December 2021 13:22
K0enH wrote: ↑Friday 31 December 2021 12:55
Hi there,
I'm a happy domoticz users combined with dashticz on a LENOVO TAB M10+ with a dock.
recently I upgraded my stereo to SONOS and since we are already using Spotify for a long time the spotify component is heavily being used.
however I havent found a way to use multiple instances of the spotify component at the same time, as me and my wife have our own favorites it would be great if we could have multiple instances of the spotify component in dashticz. this would make that when clicking on one of the instances I would see my prefered lists and the other one my wifes favorites.
any ideas on this if this can be accomplished any how?
Regards,
Koen
Currently only one account is supported. To support multiple accounts the spotify component needs to be updated. It's not too complex.
I'll add it to the feature request list of January
@Lokonli, I also made a try myself, however I was struggling with the fact on how to pass a different token to the functions.
I basically duplicated the spotify.js and changed spotifyToken to spotifyToken2 etc but the functions seem somehow to be using the spotifyToken.
the other functions are webservices from spotify correct? and they are always using the spotifyToken? if you could guide me I might be able to fix somehow by myself
