Announcements

Help Wizard

Step 1

NEXT STEP

Player API - device_id changes, want to keep the same

Player API - device_id changes, want to keep the same

Plan

Premium

Country

NL

 

Device

NA

Operating System

HA

 

My Question or Issue

I use node red to try to control spotify. I have succes on numerous of APIs. But I am having troubles with the "player API" and the device_id.

 

https://developer.spotify.com/documentation/web-api/reference-beta/#category-player

 

I have looked up my device_id's via:

https://developer.spotify.com/documentation/web-api/reference/player/get-a-users-available-devices/

 

I use the device_id in node red to send the playing stream to that device and that works successfully.

 

However, the device_id is not staying equal but change (I don't know when).

 

What can I do to keep that the same? Why is it changing?

Reply
1 Reply

I've also noticed this changing from time to time, you could use the Get a User's Available Devices as you have been to update this so if you need to store devices you could store them by name then look them up again to get the latest id for a given device, but I'd also assumed they'd not change but have noticed my Echo Dot does, if it's restarted it changes which I'd expect but also when this doesn't happen

Suggested posts