Using Spotify through Node Red

Could you please share that chunck of code please?

the first node is my flic Button (injection)ā€¦then turn on bathroom lights, and first function select my device (iphone):

msg.params = [
    ['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], /* DeviceIds Array (but it can only handle one device id) */
    { play: true }, /* Options Object */
]
return msg;

then Transfer
and function play with this code

msg.params =
    [{ context_uri: "spotify:playlist:0mnzWKMowbO9iLJTQ2oHkf"}],
    { play: true };
return msg;

for select my playlist.
the only problem is my Iphone, if is in standby, or without Spotify app open, doesnā€™t work

1 Like

dutch_guy Thank you very much the select URL and hit enter worked. Iā€™ve been battling with this for days. Kind regards, Jason

Hi all,

long long long time ago I used this. And since there is a bug in the HA spotify integration for me I am ending up here again.

I had no success anymore with the node red nodes for spotify. i got:
image

But nothing happens in my spotify.

then I deleted the Oauth2 node:
image

And I struggled about 1 hour to get it back againā€¦ url decoding, forwarding ports, reverse proxiesā€¦ what a hell and a mess. But it in the end successfully authenticated again.

But now it still does not workā€¦ I get:

but nothing happens anymore in Spotify.

Is anyone of you still using above successfully?