<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Issue with Device Recognition When Using Multiple Accounts in Spotify App Development in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Issue-with-Device-Recognition-When-Using-Multiple-Accounts-in/m-p/6906371#M17508</link>
    <description>&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;I have a family plan on Spotify, and to keep my playlists separate, I created a second account specifically for app development, which we'll call acc_DEV My main account is acc_MAIN. I created an app on the Spotify Developer Dashboard with the acc_DEV account, called "timing playlist."&lt;/P&gt;&lt;P class=""&gt;I wrote a program on my Raspberry Pi and connected it to the app via spotifyd. I used the client_id and client_secret from the app I created, which I entered into my configuration file. Here's a simplified version of my code (without the actual client_id and client_secret):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import spotipy
from spotipy.oauth2 import SpotifyOAuth

sp = spotipy.Spotify(auth_manager=SpotifyOAuth(
    client_id='your_client_id',
    client_secret='your_client_secret',
    redirect_uri='http://127.0.0.1:8888/callback',
    scope='user-library-read user-read-playback-state user-modify-playback-state'
))

# Try to get list of devices
devices = sp.devices()
print(devices)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;The issue I'm encountering is that when I run the program, the "Raspberry Pi" device is not found. The only device shown is another one that is linked to my acc_DEV account. However, when I check via my phone (which is logged into my main account, acc_MAIN), I can see and control the "Raspberry Pi" device just fine.&lt;/P&gt;&lt;P class=""&gt;It seems like I may have logged into the app with the wrong user account on my raspberry pi. How can I ensure that my app uses the correct account acc_DEV to control the "Raspberry Pi"?&lt;/P&gt;&lt;P class=""&gt;Thank you in advance for your help!&lt;/P&gt;&lt;P class=""&gt;Best regards,&lt;/P&gt;&lt;P class=""&gt;René&lt;/P&gt;</description>
    <pubDate>Sat, 05 Apr 2025 09:55:50 GMT</pubDate>
    <dc:creator>Rene25</dc:creator>
    <dc:date>2025-04-05T09:55:50Z</dc:date>
    <item>
      <title>Issue with Device Recognition When Using Multiple Accounts in Spotify App Development</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Issue-with-Device-Recognition-When-Using-Multiple-Accounts-in/m-p/6906371#M17508</link>
      <description>&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;I have a family plan on Spotify, and to keep my playlists separate, I created a second account specifically for app development, which we'll call acc_DEV My main account is acc_MAIN. I created an app on the Spotify Developer Dashboard with the acc_DEV account, called "timing playlist."&lt;/P&gt;&lt;P class=""&gt;I wrote a program on my Raspberry Pi and connected it to the app via spotifyd. I used the client_id and client_secret from the app I created, which I entered into my configuration file. Here's a simplified version of my code (without the actual client_id and client_secret):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import spotipy
from spotipy.oauth2 import SpotifyOAuth

sp = spotipy.Spotify(auth_manager=SpotifyOAuth(
    client_id='your_client_id',
    client_secret='your_client_secret',
    redirect_uri='http://127.0.0.1:8888/callback',
    scope='user-library-read user-read-playback-state user-modify-playback-state'
))

# Try to get list of devices
devices = sp.devices()
print(devices)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;The issue I'm encountering is that when I run the program, the "Raspberry Pi" device is not found. The only device shown is another one that is linked to my acc_DEV account. However, when I check via my phone (which is logged into my main account, acc_MAIN), I can see and control the "Raspberry Pi" device just fine.&lt;/P&gt;&lt;P class=""&gt;It seems like I may have logged into the app with the wrong user account on my raspberry pi. How can I ensure that my app uses the correct account acc_DEV to control the "Raspberry Pi"?&lt;/P&gt;&lt;P class=""&gt;Thank you in advance for your help!&lt;/P&gt;&lt;P class=""&gt;Best regards,&lt;/P&gt;&lt;P class=""&gt;René&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2025 09:55:50 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Issue-with-Device-Recognition-When-Using-Multiple-Accounts-in/m-p/6906371#M17508</guid>
      <dc:creator>Rene25</dc:creator>
      <dc:date>2025-04-05T09:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Device Recognition When Using Multiple Accounts in Spotify App Development</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Issue-with-Device-Recognition-When-Using-Multiple-Accounts-in/m-p/6906464#M17509</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/26784780"&gt;@Rene25&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;EM&gt;sp.me()&lt;/EM&gt; function allows you to access the information of the account you initially logged into when executing the script.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2025 11:13:37 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Issue-with-Device-Recognition-When-Using-Multiple-Accounts-in/m-p/6906464#M17509</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2025-04-05T11:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Device Recognition When Using Multiple Accounts in Spotify App Development</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Issue-with-Device-Recognition-When-Using-Multiple-Accounts-in/m-p/6906553#M17510</link>
      <description>&lt;P&gt;thanks, ok, I found out, that I created the access token for the wrong user...&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2025 12:47:53 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Issue-with-Device-Recognition-When-Using-Multiple-Accounts-in/m-p/6906553#M17510</guid>
      <dc:creator>Rene25</dc:creator>
      <dc:date>2025-04-05T12:47:53Z</dc:date>
    </item>
  </channel>
</rss>

