Skip to content

Frequently Asked Questions

Todd Lucas edited this page Aug 16, 2024 · 5 revisions

Welcome to the SpotifyPlus custom component integration for Home Assistant frequently asked questions (FAQ) wiki.

Use the following index to quickly find what you are looking for.

How do I find the device_id value required by various service calls?

Most of the integration custom services require a device_id argument in order to process a command. The device_id argument is usually passed to the corresponding Spotify Web API endpoint for the specified service. The device_id is also referred to as the Spotify Connect device id, and in some instances the Spotify Connect device name. Most services will allow you to specify either the name (e.g. Office Speaker) or the id (e.g. f87342b3ad455375317d5af8aabde64a28bd49d0).

The Spotify Connect device name can be found in the Spotify Mobile / Desktop App “Connect to a device” menu:

You can also find the device name and device id via the Get Spotify Connect Devices service output. Use the HA Developer Tools \ Services to call the service and display the results.

Example: Get Spotify Connect Devices

service: spotifyplus.get_spotify_connect_devices
data:
  entity_id: media_player.spotifyplus_todd_l

Sample Output
The result id value is the device id, the result name is the device name.

user_profile:
  display_name: Todd L
  ...
result:
  - id: 30fbc80e35598f3c242f2120413c943dfd9715fe
    is_active: false
    is_private_session: false
    is_restricted: false
    name: Bose-ST10-1
    supports_volume: false
    type: SPEAKER
    volume_percent: 0
  - id: 3756903295ba7b47f8c36fc9a4ff7d833431a667
    is_active: false
    is_private_session: false
    is_restricted: false
    name: Bose-ST300
    supports_volume: false
    type: SPEAKER
    volume_percent: 0
  - id: 10e64fcf9695bd2796ce62b84d688558e39cd311
    is_active: false
    is_private_session: false
    is_restricted: false
    name: HAVM-SpotifyConnect
    supports_volume: false
    type: Speaker
    volume_percent: 0
  - id: f87342b3ad455375317d5af8aabde64a28bd49d0
    is_active: false
    is_private_session: false
    is_restricted: false
    name: Office
    supports_volume: false
    type: SPEAKER
    volume_percent: 0