Search code examples
pythonspotifysonostekore

Can't see sonos devices on Spotify connect


I am trying to connect my Spotify to my sonos. I am using the Tekore library to consume the Spotify API. When I try to list all devices on Spotify Connect, i.e. spotify.playback_devices(), I get only some of the available devices. Especially, the Sonos devices are not listed. Does anybody know why?


Solution

  • The documentation for the Spotify Connect Web API is pretty clear about this type of scenario:

    Devices not Appearing on Device List

    Connect Web API relies on local network connections to discover and interact with some devices.

    For example, when:

    • A new device is added to the network
    • A device is in “sleep” mode
    • A device on the local network is currently tied to another user account, or
    • Other reasons specific to the device

    As a result, some devices that appear in the Connect picker within the Spotify application may not always be visible or available on the Connect Web API Endpoints.

    Translation: if it doesn't appear in the API, there's likely a reason for that. You might be able to get further guidance from the development team if you tweet at them @SpotifyPlatform.