Coder Social home page Coder Social logo

thlucas1 / homeassistantcomponent_spotifyplus Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 3.0 236 KB

Home Assistant integration for Spotify Player control, services, and soundtouchplus integration support.

License: MIT License

Python 100.00%
hacs-integration home-assistant home-assistant-integration spotify soundtouchplus home-assistant-component python3 home-assistant-hacs

homeassistantcomponent_spotifyplus's Introduction

SpotifyPlus

GitHub Release License docs hacs

Project Maintenance BuyMeCoffee

Home Assistant Integration to integrate with spotifyplus.
Extended support for the Spotify Connect media player for use in Home Assistant.

This integration will set up the following platforms.

Platform Description
media_player Media Player Entity.

Features

The following Home Assistant media_player Platform services are supplied by this integration.

  • BROWSE_MEDIA
  • MEDIA_ENQUEUE
  • NEXT_TRACK
  • PAUSE
  • PLAY
  • PLAY_MEDIA
  • PREVIOUS_TRACK
  • REPEAT_SET
  • SEEK
  • SELECT_SOURCE
  • SHUFFLE_SET
  • TURN_OFF
  • TURN_ON
  • VOLUME_MUTE
  • VOLUME_SET
  • VOLUME_STEP

The following custom services are also supplied by this integration.

  • Follow Artists
  • Follow Playlist
  • Follow Users
  • Get Album
  • Get Album Favorites
  • Get Album New Releases
  • Get Artist
  • Get Artists Albums
  • Get Artists Followed
  • Get Browse Categories
  • Get Category Playlists
  • Get Featured Playlists
  • Get Player Devices
  • Get Player Now Playing
  • Get Player Playback State
  • Get Player Queue Info
  • Get Player Recent Tracks
  • Get Playlist
  • Get Playlist Favorites
  • Get Show
  • Get Show Episodes
  • Get Show Favorites
  • Get Spotify Connect Devices
  • Get Track Favorites
  • Get Users Top Artists
  • Get Users Top Tracks
  • Player Activate Devices
  • Player Media Play Context
  • Player Media Play Track Favorites
  • Player Media Play Tracks
  • Player Resolve Device Id
  • Player Transfer Playback
  • Playlist Change
  • Playlist Cover Image Add
  • Playlist Create
  • Playlist Items Add
  • Playlist Items Clear
  • Playlist Items Remove
  • Save Album Favorites
  • Save Track Favorites
  • Remove Album Favorites
  • Remove Track Favorites
  • Search Albums
  • Search Artists
  • Search Audiobooks
  • Search Episodes
  • Search Playlists
  • Search Shows
  • Search Tracks
  • Unfollow Artists
  • Unfollow Playlist
  • Unfollow Users
  • ZeroConf Device Connect
  • ZeroConf Device Disconnect
  • ZeroConf Device GetInformation
  • ZeroConf Discover Devices

Check out the Services Provided wiki page for detailed explanations and YAML examples of the custom services provided by this integration.

Check out the Media Player Service Enhancements wiki page for detailed explanations and YAML examples of the media player service enhancements provided by this integration.

HACS Installation Instructions

  • go to HACS main menu.
  • click on the 3-dot overflow menu in the upper right, and select custom repositories item.
  • copy / paste https://github.com/thlucas1/homeassistantcomponent_spotifyplus in the Repository textbox and select Integration for the category entry.
  • click on Add to add the custom repository.
  • you can then click on the SpotifyPlus repository entry (you may need to filter your list first to find the new entry).
  • click on download to start the download. It will install the spotifyplus integration to your config/custom_components directory.
  • restart HA to start using the component.

Manual Installation

  • Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  • If you do not have a custom_components directory (folder) there, you need to create it.
  • In the custom_components directory (folder) create a new folder called spotifyplus.
  • Download all the files from the custom_components/spotifyplus/ directory (folder) in this repository.
  • Place the files you downloaded in the new directory (folder) you created.
  • Restart Home Assistant.
  • In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "SpotifyPlus"

Configuration

All configuration of the integration is done in the UI.

Advanced Logging Support

The SmartInspectPython package (installed with this integration) can be used to easily debug the integration. Note that the standard Home Assistant logger is also supported, but does not provide as much information as the SmartInspect logger.

Check out the SmartInspect Logging Configuration wiki page for more information on how to configure and enable / disable advanced logging.

Reporting a Problem

Submit a Bug Report to bring the issue to my attention. I receive a notification when a new issue is opened, and will do my best to address it in a prompt and professional manner.

Request a New Feature

Do you have an idea for a new feature that could be added to the integration? Submit a Feature Request to get your idea into the queue. I receive a notification when a new request is opened, and will do my best to turn your idea into the latest and greatest feature.

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines


homeassistantcomponent_spotifyplus's People

Contributors

thlucas1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

homeassistantcomponent_spotifyplus's Issues

Issues with zeroconf on linkplay devices

System Health details

System Information

version core-2024.6.4
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.1.0-18-amd64
arch x86_64
timezone Europe/Rome
config_dir /config

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Hi @thlucas1 ,
in my network I have an old linkplay device (a Jam Voice), which has been statically assigned the IP 10.11.12.61. At the time of setup, the device defaults to the 10.10.10.254 IP and for some reason even after configuring the correct IP and WiFi details, it keeps active the 10.10.10.254 address.

Now, spotifyplus fails to initialize with the following:

2024-06-30 17:47:52.677 ERROR (MainThread) [custom_components.spotifyplus] SpotifyApiError: SAM0001E - An unhandled exception occured while processing method "GetInformation".
HTTPConnectionPool(host='10.10.10.254', port=5356): Max retries exceeded with url: /zc/0?action=getInfo&version=1.0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f3183a9f260>, 'Connection to 10.10.10.254 timed out. (connect timeout=10)'))
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 95, in create_connection
    raise err
  File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 85, in create_connection
    sock.connect(sa)
TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 416, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 244, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/local/lib/python3.12/http/client.py", line 1331, in request    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.12/http/client.py", line 1377, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.12/http/client.py", line 1326, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.12/http/client.py", line 1085, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.12/http/client.py", line 1029, in send
    self.connect()
  File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 179, in _new_conn
    raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x7f3183a9f260>, 'Connection to 10.10.10.254 timed out. (connect timeout=10)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 801, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 594, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.10.10.254', port=5356): Max retries exceeded with url: /zc/0?action=getInfo&version=1.0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f3183a9f260>, 'Connection to 10.10.10.254 timed out. (connect timeout=10)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfconnect.py", line 769, in GetInformation
    response = requests.get(
               ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 688, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='10.10.10.254', port=5356): Max retries exceeded with url: /zc/0?action=getInfo&version=1.0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f3183a9f260>, 'Connection to 10.10.10.254 timed out. (connect timeout=10)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/spotifyplus/__init__.py", line 1994, in _update_devices
    scDevices = await hass.async_add_executor_job(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py", line 7992, in GetSpotifyConnectDevices
    info:ZeroconfGetInfo = zconn.GetInformation()
                           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfconnect.py", line 797, in GetInformation
    raise SpotifyApiError(SAAppMessages.UNHANDLED_EXCEPTION.format(apiMethodName, str(ex)), ex, logsi=_logsi)
spotifywebapipython.spotifyapierror.SpotifyApiError: SpotifyApiError: SAM0001E - An unhandled exception occured while processing method "GetInformation".
HTTPConnectionPool(host='10.10.10.254', port=5356): Max retries exceeded with url: /zc/0?action=getInfo&version=1.0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f3183a9f260>, 'Connection to 10.10.10.254 timed out. (connect timeout=10)'))

I think that during the discovery at a certain point the device returns the default IP instead of the real one.

I know it's a device bug, but maybe if the exception could be managed and the device ignored, I could make the integration work?

Reproduction steps

No way probability without a linkplay device

Debug logs

I will add if needed.

Diagnostics dump

Idem

Initialization takes 7 minutes on every Home Assistant reboot

System Health details

It's trying to enumerate the players in my home. It fails over and over and iterates over the list of them many times, timing out on each try.

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

I have a dozen Spotify Connect devices, all made by Bowers and Wilkins. For each one I get multiple failures trying to retrieve info about them. Total time to 'initialize' the plugin is 7 minutes, making it almost unusable in my system.

Reproduction steps

1.Configure Plugin
2.Wait
3.Profit? But seriously, that's all it is for me. Would be nice to have an option for a 'quick' check or similar to skip this for devices that don't respond to the queries. Interestingly, all of my devices are listed for use as 'target this device if nothing is playing', and that works great...
...

Debug logs

Logger: spotifywebapipython.spotifyclient
Source: /usr/local/lib/python3.12/site-packages/smartinspectpython/sisession.py:4458
First occurred: 10:25:21 PM (1 occurrences)
Last logged: 10:25:21 PM

Spotify Connect Zeroconf GetInformation call failed for Instance Name "Kitchen Valence" (Kitchen Valence.local.); instance will be ignored, as it is either powered off or not reachable via the local network



I get hundreds of instances of the above....

Diagnostics dump

No response

HA 2026.6 - async_update_entry from a thread other than the event loop

System Health details

System Information

version core-2024.6.0b1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.28-haos-raspi
arch aarch64
timezone Europe/London
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1478
Downloaded Repositories 72
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration 17 June 2024 at 01:00
relayer_connected true
relayer_region eu-central-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
remote_server eu-central-1-10.ui.nabu.casa
certificate_status ready
instance_id 7a6e260cca76465b8d6c48b7497998f9
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.3
update_channel beta
supervisor_version supervisor-2024.05.2
agent_version 1.6.0
docker_version 25.0.5
disk_total 228.5 GB
disk_used 36.1 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Samba share (12.3.1), Grafana (10.0.0), File editor (5.8.0), TasmoAdmin (0.30.2), InfluxDB (5.0.0), Advanced SSH & Web Terminal (18.0.0), Home Assistant Google Drive Backup (0.112.1), Zigbee2MQTT (1.37.1-1), chrony (3.0.1), UniFi Network Application (3.0.5), Nginx Proxy Manager (1.0.1), Tailscale (0.19.1), PS5 MQTT (1.3.3), ESPHome (2024.5.4), Mosquitto broker (6.4.1), Glances (0.21.1), AppDaemon (0.16.6), Increase Swap (1.1.3), SQLite Web (4.1.2), MQTT Explorer (browser-1.0.3)
Dashboards
dashboards 9
resources 34
views 22
mode storage
Recorder
oldest_recorder_run 27 May 2024 at 09:06
current_recorder_run 30 May 2024 at 08:27
estimated_db_size 2213.37 MiB
database_engine sqlite
database_version 3.44.2
Solcast PV Forecast
can_reach_server ok
used_requests 3
rooftop_site_count 1
Sonoff
version 3.7.3 (e240aaf)
cloud_online 0 / 2
local_online 1 / 1
SpotifyPlus
integration_version v1.0.19
clients_configured 1: Neil Brownlee (premium)
api_endpoint_reachable ok

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

HA2024.6.0b1 - errors reported when trying to use the integration. Log below.

Reproduction steps

  1. Automation fails.

...

Debug logs

Logger: homeassistant.components.automation.song_to_spotify_office
Source: components/automation/__init__.py:744
integration: Automation (documentation, issues)
First occurred: 09:33:16 (10 occurrences)
Last logged: 10:33:48

Error while executing automation automation.song_to_spotify_office: SAM0001E - An unhandled exception occured while processing method "MakeRequest". Detected that custom integration 'spotifyplus' calls hass.config_entries.async_update_entry from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassconfig_entriesasync_update_entry at custom_components/spotifyplus/__init__.py, line 1766: session.hass.config_entries.async_update_entry(. Please report it to the author of the 'spotifyplus' custom integration.

Diagnostics dump

No response

media_player.spotifyplus_username missing entity id

System Health details

System Information

version core-2024.7.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.31-haos-raspi
arch aarch64
timezone Europe/Amsterdam
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4970
Installed Version 1.34.0
Stage running
Available Repositories 1391
Downloaded Repositories 12
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration 19 July 2025 at 02:00
relayer_connected true
relayer_region eu-central-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
remote_server eu-central-1-18.ui.nabu.casa
certificate_status ready
instance_id e6c30bf5ff0947c6887d2a4690ea0a30
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.4
update_channel stable
supervisor_version supervisor-2024.06.2
agent_version 1.6.0
docker_version 26.1.4
disk_total 458.4 GB
disk_used 7.8 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board yellow
supervisor_api ok
version_api ok
installed_addons Advanced SSH & Web Terminal (18.0.0), Studio Code Server (5.15.0), MariaDB (2.7.1), Samba share (12.3.2)
Dashboards
dashboards 3
resources 5
views 8
mode storage
Recorder
oldest_recorder_run 21 July 2024 at 09:42
current_recorder_run 31 July 2024 at 00:31
estimated_db_size 100.58 MiB
database_engine mysql
database_version 10.11.6
SpotifyPlus
integration_version v1.0.44
clients_configured 1: Gijs (premium)
api_endpoint_reachable ok

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

If I run watchman after a fresh install of the SpotifyPlus integration, I get a lot of warnings in regards to a missing entity.
Not sure how to go about resolving this, or whether it is a bug within the integration.

Let me know if you need any more information, or want me to try a couple of things out.


Watchman report:

-== Watchman Report ==- 

-== Congratulations, all 3 services from your config are available!

-== Missing 1 entity(ies) from 6 found in your config:
+--------------------------------+---------+--------------------------------------------------------------+
| Entity ID                      | State   | Location                                                     |
+--------------------------------+---------+--------------------------------------------------------------+
| media_player.spotifyplus_usern | missing | custom_components/spotifyplus/services.yaml:8,29,57,78,106,1 |
| ame                            |         | 55,204,225,288,327,362,418,481,502,530,558,572,624,666,708,7 |
|                                |         | 36,792,834,848,897,946,995,1026,1081,1119,1157,1195,1238,127 |
|                                |         | 6,1317,1345,1373,1429,1485,1523,1544,1579,1600,1621,1642,166 |
|                                |         | 3,1727,1790,1853,1916,1979,2042,2105,2126,2147,2168,2254,230 |
|                                |         | 5,2356                                                       |
+--------------------------------+---------+--------------------------------------------------------------+

-== Report created on 31 Jul 2024 00:34:42
-== Parsed 16 files in 2.21s., ignored 0 files 
-== Generated in: 0.00s. Validated in: 0.00s.

Reproduction steps

Clean install of the SpotifyPlus integration.

Debug logs

Not much here, but I enabled it and did some media browsing..


<details><summary>Debug logs</summary>

2024-07-31 00:50:03.143 DEBUG (SyncWorker_0) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:04.143 DEBUG (SyncWorker_9) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:05.144 DEBUG (SyncWorker_13) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:06.145 DEBUG (SyncWorker_1) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:07.146 DEBUG (SyncWorker_4) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:08.147 DEBUG (SyncWorker_8) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:09.148 DEBUG (SyncWorker_14) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:10.149 DEBUG (SyncWorker_12) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:11.150 DEBUG (SyncWorker_6) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:12.150 DEBUG (SyncWorker_7) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:13.152 DEBUG (SyncWorker_3) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:14.153 DEBUG (SyncWorker_5) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:15.154 DEBUG (SyncWorker_10) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:16.194 DEBUG (SyncWorker_6) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:17.186 DEBUG (SyncWorker_8) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:18.187 DEBUG (SyncWorker_12) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:19.186 DEBUG (SyncWorker_15) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:20.187 DEBUG (SyncWorker_0) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:21.034 DEBUG (MainThread) [custom_components.spotifyplus] 'SpotifyPlus Gijs': MediaPlayer is browsing main media library index content id 'None'
2024-07-31 00:50:21.049 DEBUG (MainThread) [custom_components.spotifyplus] 'SpotifyPlus Gijs': MediaPlayer is browsing main media library index content id 'None'
2024-07-31 00:50:21.188 DEBUG (SyncWorker_1) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:22.191 DEBUG (SyncWorker_4) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:23.190 DEBUG (SyncWorker_18) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:23.492 DEBUG (MainThread) [custom_components.spotifyplus] 'SpotifyPlus Gijs': MediaPlayer is browsing media node content id 'spotify_user_followed_artists'
2024-07-31 00:50:23.505 DEBUG (SyncWorker_5) [custom_components.spotifyplus.browse_media] 'SpotifyPlus Gijs': querying spotify for Artists Followed
2024-07-31 00:50:24.190 DEBUG (SyncWorker_2) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:25.191 DEBUG (SyncWorker_10) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:26.192 DEBUG (SyncWorker_15) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:27.194 DEBUG (SyncWorker_0) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:28.195 DEBUG (SyncWorker_13) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:29.196 DEBUG (SyncWorker_4) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:30.197 DEBUG (SyncWorker_18) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:31.198 DEBUG (SyncWorker_6) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do
2024-07-31 00:50:32.198 DEBUG (SyncWorker_4) [custom_components.spotifyplus] 'SpotifyPlus Gijs': Update - Integration is powered off; nothing to do

</details>

Diagnostics dump

No response

Make service player_transfer_playback work in case device is in use by other Spotify account

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

When someone outside our family account has been using our Spotify Connect device, playing from HA is not possible. The only workaround I found is to connect to the device with my Spotify app, which uses a family account.

Describe the solution you'd like

Transfer playback to device, regardsless of current status, so even when another account is playing.

Describe alternatives you've considered

I tried to switch the device off and back on via media_player.turn_off and turn_on. Unfortunately, my Bueasound Powernode does not support these services.

Additional context

None

GetInformation Call - 503 Error

@staceydodds

Describe the issue

Just updated and I’m getting this error, but I haven’t updated in a while so perhaps I need to scroll back up and look through some of the update notes.

Here’s the error I’m getting currently:
image

Debug logs

This error originated from a custom integration.

Logger: custom_components.spotifyplus
Source: custom_components/spotifyplus/init.py:1991
integration: SpotifyPlus (documentation, issues)
First occurred: June 21, 2024, 1:47:32 PM (876 occurrences)
Last logged: 9:49:12 AM

SAM1003E - Spotify ZeroConf API returned an error status while processing the “GetInformation” method. Status: 503 - Client Error Message: “”
Traceback (most recent call last):
File “/usr/local/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfconnect.py”, line 217, in _CheckResponseForErrors
raise SpotifyWebApiError(response.status_code, errMessage, methodName, response.reason, _logsi)
spotifywebapipython.spotifywebapierror.SpotifyWebApiError: SAM1001E - Spotify Web API returned an error status while processing the “GetInformation” method.
Status: 503 - Client Error
Message: “”

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/config/custom_components/spotifyplus/init.py”, line 1991, in _update_devices
scDevices = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py”, line 7970, in GetSpotifyConnectDevices
info:ZeroconfGetInfo = zconn.GetInformation()
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfconnect.py”, line 558, in GetInformation
responseData:dict = self._CheckResponseForErrors(response, apiMethodName)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfconnect.py”, line 232, in _CheckResponseForErrors
raise SpotifyZeroconfApiError(response.status_code, responseUTF8, methodName, response.reason, _logsi)
spotifywebapipython.zeroconfapi.spotifyzeroconfapierror.SpotifyZeroconfApiError: SAM1003E - Spotify ZeroConf API returned an error status while processing the “GetInformation” method.
Status: 503 - Client Error
Message: “”

Detected blocking call to open inside the event loop

Describe the issue

I am logging the contents of my SpotifyPlus integration manifest.json file for debugging purposes. After updating to HA 2024.6 releasee, I receive the following warning in the System Log:

Detected blocking call to open inside the event loop by custom integration 'spotifyplus' ...

here's the code in sibinarycontext.py that is opening and reading the manifest file:

    def LoadFromFile(self, fileName:str) -> None:
        if (fileName == None):
            raise SIArgumentNullException("fileName")

        with open(fileName, 'rb') as reader:
            self._InternalLoadFromStream(reader)
...

    def _InternalLoadFromStream(self, stream:BufferedReader) -> None:
        n:int = 0
        buffertmp = bytes(0x2000)

        while True:
            buffertmp = stream.read(len(buffertmp))
            if (len(buffertmp) > 0):
                self._fData.write(buffertmp)
            else:
                break

Reproduction steps

  1. Upgrade to HA 2024.6 release.
  2. Install the SpotifyPlus custom integration.
  3. System Log will contain warnings.

Debug logs

2024-06-06 13:08:11.102 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'spotifyplus' at custom_components/spotifyplus/__init__.py, line 600: _logsi.LogTextFile(SILevel.Verbose, "Integration Manifest File (%s)" % myManifestPath, myManifestPath) (offender: /usr/local/lib/python3.12/site-packages/smartinspectpython/sibinarycontext.py, line 144: with open(fileName, 'rb') as reader:), please create a bug report at https://github.com/thlucas1/homeassistantcomponent_spotifyplus/issues
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component
result = await _async_setup_component(hass, domain, config)
File "/usr/src/homeassistant/homeassistant/setup.py", line 402, in _async_setup_component
result = await task
File "/config/custom_components/spotifyplus/__init__.py", line 600, in async_setup
_logsi.LogTextFile(SILevel.Verbose, "Integration Manifest File (%s)" % myManifestPath, myManifestPath)

Sonos Arc Control Errors (A Kennedy)

Discussed in #22

Originally posted by andrew-kennedy June 12, 2024
I'm trying to set up an automation to dynamically move playback from my iPhone to my home sonos speakers. Here's an example of the output from the zeroconf discover devices service:

  - DeviceName: sonosRINCON_48A6B8B1701F01400
    Domain: .local
    HostIpv4Address: 10.0.0.218
    HostIpPort: 1400
    HostTTL: 120
    Key: sonosrincon_48a6b8b1701f01400._spotify-connect._tcp.local.
    Name: sonosRINCON_48A6B8B1701F01400._spotify-connect._tcp.local.
    Priority: 0
    OtherTTL: 4500
    Server: Sonos-48A6B8B1701F.local.
    ServerKey: sonos-48a6b8b1701f.local.
    ServiceType: _spotify-connect._tcp.local.
    Weight: 0
    Properties:
      - Name: CPath
        Value: /spotifyzc
      - Name: VERSION
        Value: "1"
    SpotifyConnectCPath: /spotifyzc
    SpotifyConnectIsInDeviceList: false
    SpotifyConnectVersion: "1"
    ZeroconfApiEndpointAddUser: http://10.0.0.218:1400/spotifyzc?action=addUser&version=1
    ZeroconfApiEndpointGetInformation: http://10.0.0.218:1400/spotifyzc?action=getInfo&version=1
    ZeroconfApiEndpointResetUsers: http://10.0.0.218:1400/spotifyzc?action=resetUsers&version=1

Given this, I made a call to zeroconf getinformation service which yields this (redacted private info):

user_profile:
  country: US
  display_name: Andrew
  email: <email>
  id: <id>
  product: premium
  type: user
  uri: <username uri>
result:
  SpotifyError: 0
  Status: 101
  StatusString: OK
  ResponseSource: null
  AccountReq: null
  ActiveUser: null
  Aliases: []
  Availability: ""
  BrandDisplayName: Sonos
  ClientId: <client id string>
  DeviceId: <device id string>
  DeviceType: SPEAKER
  GroupStatus: NONE
  LibraryVersion: 3.199.414-gea87b026
  ModelDisplayName: Arc
  ProductId: 1221
  PublicKey: >-
    Some Public Key
  RemoteName: Living Room
  ResolverVersion: "0"
  Scope: streaming
  SupportedCapabilities: 3
  SupportedDrmMediaFormats:
    - Drm: 1
      Formats: 70
  TokenType: authorization_code
  Version: 2.9.0
  VoiceSupport: null

Given this info didn't add anything else, I tried to call zeroconf device connect to put the zeroconf sonos speaker in my spotify connect devices list:

service: spotifyplus.zeroconf_device_connect
data:
  host_ipv4_address: 10.0.0.218
  host_ip_port: 1400
  cpath: /spotifyzc
  use_ssl: false
  version: "1"
  username: <spotify username>
  password: <spotify account password>
  entity_id: media_player.spotifyplus_andrew

But this just gives me an internal server error. Am I doing something wrong? does this not work with sonos? I'm basically hoping using these zeroconf apis I can avoid having to run this proxy spotify connect device in a docker container: https://github.com/philippe44/SpotConnect

Integration "Not loaded"

System Health details

System Information

version core-2024.4.2
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 5.15.35-rockchip64
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4994
Installed Version 1.34.0
Stage running
Available Repositories 1401
Downloaded Repositories 12
AccuWeather
can_reach_server ok
remaining_requests 39
Aqara Gateway

telnet_logged | 192.168.1.11

-- | --
mqtt_connected | 192.168.1.11

Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Debian GNU/Linux 11 (bullseye)
update_channel stable
supervisor_version supervisor-2024.04.0
agent_version 1.5.1
docker_version 24.0.2
disk_total 28.4 GB
disk_used 6.1 GB
healthy true
supported true
supervisor_api ok
version_api ok
installed_addons Samba share (12.3.1), Mosquitto broker (6.4.0), Duck DNS (1.16.0), File editor (5.8.0), Node-RED (17.0.11), Zigbee2MQTT (1.36.1-1), eufy-security-ws (1.8.0-2)
Dashboards
dashboards 3
resources 4
views 9
mode storage
Recorder
oldest_recorder_run March 29, 2024 at 23:44
current_recorder_run April 8, 2024 at 23:32
estimated_db_size 122.27 MiB
database_engine sqlite
database_version 3.44.2
Spotify
api_endpoint_reachable ok
Xiaomi Miot Auto
component_version 0.7.7
can_reach_server ok
can_reach_spec ok
logged_accounts 0
total_devices 0

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Screenshot from 2024-04-09 00-33-09
Screenshot from 2024-04-09 10-52-43
image

Reproduction steps

  1. add Spotify dev credentials (ID + secret)
  2. add spotifyPlus integration

Debug logs

Logger: homeassistant.helpers.config_entry_oauth2_flow
Source: helpers/config_entry_oauth2_flow.py:330
First occurred: 00:15:51 (3 occurrences)
Last logged: 00:36:25

Error resolving OAuth token: 400, message='Bad Request', url=URL('https://accounts.spotify.com/api/token')

Diagnostics dump

No response

Unable to install package zeroconf>=0.132.2

System Health details

System Information

version core-2024.3.3
installation_type Home Assistant Core
dev false
hassio false
docker false
user homeassistant
virtualenv true
python_version 3.11.2
os_name Linux
os_version 6.1.89-15498-gf9afb0b2911b
arch aarch64
timezone America/Detroit
config_dir /home/homeassistant/.homeassistant
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4960
Installed Version 1.34.0
Stage running
Available Repositories 1392
Downloaded Repositories 4
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration July 17, 2024 at 8:00 PM
relayer_connected true
relayer_region us-east-1
remote_enabled false
remote_connected false
alexa_enabled true
google_enabled true
remote_server us-east-1-12.ui.nabu.casa
certificate_status ready
instance_id 8558a708d8f94f7589c3d170eeb93b0b
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 2
resources 0
views 1
mode storage
Recorder
oldest_recorder_run June 13, 2024 at 8:36 PM
current_recorder_run June 22, 2024 at 5:33 PM
estimated_db_size 70.35 MiB
database_engine sqlite
database_version 3.40.1
Spotify
api_endpoint_reachable ok

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Unable to install package zeroconf>=0.132.2: ERROR: Cannot install zeroconf>=0.132.2 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

This is with spotifyplus downloaded today from the custom repo just added today.

The weird thing is I was also getting

Unable to install package spotifywebapiPython>=1.0.62: ERROR: Cannot install spotifywebapipython==1.0.62 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Unable to install package zeroconf>=0.132.2: ERROR: Cannot install zeroconf>=0.132.2 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

and manually activated the venc for homeassistant, and installed spotifywebapipython just fine with pip.
I also upgraded zeroconf from the current 0.131.0 just fine to 0.132.2 but after homeassistant restart it is back at 0.131.0.

Thanks!

Reproduction steps

  1. Download spotifyplug
  2. Restart homeassistant
  3. Check logs for errors
    ...

Debug logs

2024-06-22 18:25:01.773 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: <Event state_changed[L]: entity_id=update.spotifyplus_update, old_state=None, new_state=<state update.spotifyplus_update=off; auto_update=False, installed_version=v1.0.30, in_progress=False, latest_version=v1.0.30, release_summary=None, release_url=https://github.com/thlucas1/homeassistantcomponent_spotifyplus/releases/v1.0.30, skipped_version=None, title=None, entity_picture=https://brands.home-assistant.io/_/spotifyplus/icon.png, friendly_name=SpotifyPlus update, supported_features=23 @ 2024-06-22T18:24:47.076840-04:00>>
homeassistant.requirements.RequirementsNotFound: Requirements for spotifyplus not found: ['zeroconf>=0.132.2'].
homeassistant.requirements.RequirementsNotFound: Requirements for spotifyplus not found: ['zeroconf>=0.132.2'].

Diagnostics dump

No response

Sonos - Restricted Device Error (Joolz)

Describe the issue

@joolz - 2024/07/08 09:56 pm
I have an issue when trying to modify, pause or stop music whilst spotify is casting on my Sonos speaker:

Failed to call service media_player/media_pause. Restricted device

If playing on my computer speaker all works fine.

Reproduction steps

?

DJ support

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

The official integration alleges to have added support for the AI DJ, but it never worked for me.

Describe the solution you'd like

This may be a premature request if the DJ is still rolling out around the world, but it's a great feature.

Describe alternatives you've considered

Do it from an app on a cell phone or maybe try to AppleScript it or something

Additional context

The URI in the pull request doesn't work when called with Spotifyplus

Receiving Error

System Health details

System Information

version core-2024.5.0b1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.28-haos
arch aarch64
timezone America/New_York
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4956
Installed Version 1.34.0
Stage running
Available Repositories 1401
Downloaded Repositories 19
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration May 6, 2024 at 8:00 PM
relayer_connected true
relayer_region us-east-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
remote_server us-east-1-9.ui.nabu.casa
certificate_status ready
instance_id f3803782778b465d8a11630f0c3822b6
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.3.rc1
update_channel beta
supervisor_version supervisor-2024.04.4
agent_version 1.6.0
docker_version 25.0.5
disk_total 28.0 GB
disk_used 6.1 GB
healthy true
supported true
board green
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.13.0), AirCast (4.2.1), File editor (5.8.0), Home Assistant Google Drive Backup (0.112.1)
Dashboards
dashboards 6
resources 9
views 20
mode storage
Recorder
oldest_recorder_run April 19, 2024 at 8:04 PM
current_recorder_run April 28, 2024 at 4:56 PM
estimated_db_size 31.95 MiB
database_engine sqlite
database_version 3.44.2
SpotifyPlus
api_endpoint_reachable ok

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Failed to call service media_player/media_play. Detected that custom integration 'spotifyplus' calls async_write_ha_state from a thread at custom_components/spotifyplus/media_player.py, line 482: self.async_write_ha_state(). Please report it to the author of the 'spotifyplus' custom integration.

Reproduction steps

...
Try to use the component on HA

Debug logs

Failed to call service media_player/media_play. Detected that custom integration 'spotifyplus' calls async_write_ha_state from a thread at custom_components/spotifyplus/media_player.py, line 482: self.async_write_ha_state(). Please report it to the author of the 'spotifyplus' custom integration.

Diagnostics dump

No response

Can't start integration setup, dependency missing

System Health details

System Information

version core-2024.6.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.28-haos-raspi
arch aarch64
timezone America/Chicago
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4538
Installed Version 1.34.0
Stage running
Available Repositories 1390
Downloaded Repositories 34
Home Assistant Cloud
logged_in true
subscription_expiration August 26, 2024 at 7:00 PM
relayer_connected true
relayer_region us-east-1
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server us-east-1-11.ui.nabu.casa
certificate_status ready
instance_id 1c95c34e46c24e5b8b5d0721116d35f3
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.3
update_channel stable
supervisor_version supervisor-2024.06.0
agent_version 1.6.0
docker_version 25.0.5
disk_total 57.8 GB
disk_used 14.6 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.4.1), Ring-MQTT with Video Streaming (5.6.4), go2rtc (1.9.3), Network UPS Tools (0.13.0), Samba share (12.3.1), Home Assistant Google Drive Backup (0.112.1), Studio Code Server (5.15.0), Advanced SSH & Web Terminal (18.0.0), Zigbee2MQTT (1.38.0-1), diyHue (2.0.14), Matter Server (6.1.0), Music Assistant (2.0.4), Raspotify (dev), ESPresense Companion (0.6.5)
Dashboards
dashboards 8
resources 18
views 17
mode storage
Recorder
oldest_recorder_run May 29, 2024 at 5:09 PM
current_recorder_run June 7, 2024 at 4:50 PM
estimated_db_size 542.24 MiB
database_engine sqlite
database_version 3.44.2
Spotify
api_endpoint_reachable ok

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

See logs

Reproduction steps

  1. Start configuring

Debug logs

File "/usr/src/homeassistant/homeassistant/requirements.py", line 176, in async_get_integration_with_requirements
    await self._async_process_integration(integration, done)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 192, in _async_process_integration
    await self.async_process_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 274, in async_process_requirements
    self._raise_for_failed_requirements(name, missing)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 302, in _raise_for_failed_requirements
    raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for spotifyplus not found: ['spotifywebapiPython==1.0.44'].

Diagnostics dump

No response

More info needed about spotifyConnectLoginid

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

Hello,
Could it be possible to elaborate a bit the documentation part about Spotify Connect authentication ?
I can't find WHERE to look for the spotifyConnectLoginid.

Describe the solution you'd like

Add a line of text of where to find the spotifyConnectLoginid in the documentation.

Describe alternatives you've considered

Traditional search method didn't return any valuable help. Google was not my friend...

Additional context

Not the right place to say that but THANK YOU for your time, patience and commitment in this !
Cheers from Belgium !

Playlist Add Track

System Health details

System Information

version core-2024.3.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.1.73-haos-raspi
arch aarch64
timezone Europe/London
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4964
Installed Version 1.34.0
Stage running
Available Repositories 1487
Downloaded Repositories 74
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration 17 April 2024 at 01:00
relayer_connected true
relayer_region eu-central-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
remote_server eu-central-1-10.ui.nabu.casa
certificate_status ready
instance_id 7a6e260cca76465b8d6c48b7497998f9
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.1
update_channel beta
supervisor_version supervisor-2024.03.1
agent_version 1.6.0
docker_version 24.0.7
disk_total 228.5 GB
disk_used 32.7 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Samba share (12.3.1), Grafana (9.2.0), File editor (5.8.0), TasmoAdmin (0.29.1), InfluxDB (5.0.0), Advanced SSH & Web Terminal (17.2.0), Home Assistant Google Drive Backup (0.112.1), Zigbee2MQTT (1.36.0-1), chrony (3.0.1), UniFi Network Application (3.0.3), Nginx Proxy Manager (1.0.1), Tailscale (0.16.1), PS5 MQTT (1.3.3), ESPHome (2024.3.0), Mosquitto broker (6.4.0), Glances (0.21.0), AppDaemon (0.16.4), Increase Swap (1.1.2), SQLite Web (4.1.2), MQTT Explorer (browser-1.0.3)
Dashboards
dashboards 9
resources 36
views 21
mode storage
Recorder
oldest_recorder_run 19 March 2024 at 08:07
current_recorder_run 22 March 2024 at 10:59
estimated_db_size 1675.42 MiB
database_engine sqlite
database_version 3.44.2
Solcast PV Forecast
can_reach_server ok
used_requests 2
rooftop_site_count 1
Sonoff
version 3.6.0 (8dd8af9)
cloud_online 0 / 2
local_online 1 / 1
SpotifyPlus
api_endpoint_reachable ok

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

403 - Access Denied when adding tracks. Is this supported?

Reproduction steps

  1. Call service with correct details

...

Debug logs

N/A

Diagnostics dump

No response

Sonos Arc Control Errors (Lukas)

I get this response from my sonos speaker (using a ikea symfonisk):

Failed to call service spotifyplus.zeroconf_device_connect. ZeroconfResponse: SpotifyError="0" Status="103" StatusString="ERROR-UNKNOWN"

While trying to call this service:

service: spotifyplus.zeroconf_device_connect
data:
  entity_id: media_player.spotifyplus_lukas
  host_ipv4_address: 192.168.1.121
  host_ip_port: 1400
  cpath: /spotifyzc
  username: <canonical>
  password: <devicePassword>

Let me know if you have any other ideas... It would be sooo sick getting this to work

Note: using the .31 release from a few hours ago

Originally posted by @s00500 in #22 (comment)

Error: No `application_credentials` platform for spotifyplus

System Health details

System Information

version core-2024.7.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.33-haos
arch x86_64
timezone America/New_York
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4728
Installed Version 1.33.0
Stage running
Available Repositories 1386
Downloaded Repositories 14
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.4
update_channel stable
supervisor_version supervisor-2024.06.2
agent_version 1.6.0
docker_version 26.1.4
disk_total 30.8 GB
disk_used 5.5 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization kvm
board ova
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.4.1), Zigbee2MQTT (1.38.0-1), Studio Code Server (5.15.0), Advanced SSH & Web Terminal (18.0.0), Duck DNS (1.18.0)
Dashboards
dashboards 2
resources 8
views 7
mode storage
Recorder
oldest_recorder_run July 7, 2024 at 12:30 PM
current_recorder_run July 12, 2024 at 2:53 PM
estimated_db_size 13.58 MiB
database_engine sqlite
database_version 3.45.3

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

During initial configuration when adding client ID + secret to HA application credentials, I receive an error stating:

No `application_credentials` platform for spotifyplus
Screenshot 2024-07-12 at 2 48 12 PM

Reproduction steps

  1. Install SpotifyPlus
  2. Restart HA
  3. Add application credentials

Debug logs

They're 19mb from start to error, can try to parse through them if needed

Diagnostics dump

No response

Integration Not Starting - GetInformation Call Exceptions

Describe the issue

The following exception shows up in the system log:

Deze fout is ontstaan door een aangepaste integratie.

Logger: custom_components.spotifyplus
Bron: custom_components/spotifyplus/__init__.py:1991
integratie: SpotifyPlus (documentatie, problemen)
Eerst voorgekomen: 08:42:49 (1 gebeurtenissen)
Laatst gelogd: 08:42:49

SpotifyApiError: SAM0001E - An unhandled exception occured while processing method "GetInformation". 'str' object has no attribute 'get'
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfconnect.py", line 573, in GetInformation
    result = ZeroconfGetInfo(root=responseData)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfgetinfo.py", line 25, in __init__
    super().__init__(root=root)
  File "/usr/local/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfresponse.py", line 32, in __init__
    self._ResponseSource = root.get('responseSource', None)
                           ^^^^^^^^
AttributeError: 'str' object has no attribute 'get'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/spotifyplus/__init__.py", line 1991, in _update_devices
    scDevices = await hass.async_add_executor_job(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py", line 7960, in GetSpotifyConnectDevices
    info:ZeroconfGetInfo = zconn.GetInformation()
                           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfconnect.py", line 584, in GetInformation
    raise SpotifyApiError(SAAppMessages.UNHANDLED_EXCEPTION.format(apiMethodName, str(ex)), ex, logsi=_logsi)
spotifywebapipython.spotifyapierror.SpotifyApiError: SpotifyApiError: SAM0001E - An unhandled exception occured while processing method "GetInformation".
'str' object has no attribute 'get'

Reproduction steps

Error occurs while trying to start the integration.

Chain Calls ?

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

I set up SpotifyPlus mainly to use it within an Assist pipeline.
What I'd like to do is things like "Ok Nabu, play me some jazz".
To that effect I would imagine the following script:

  • turn on the music speakers if not done
  • SpotifyPlus: Get Category Playlists $Jazz
  • SpotifyPlus: play_media MyUser
  • SpotifyPlus: Player Transfer Playback to music system

Same variation for "Play some artist eminem" or "play song mambo n° 5"

The thing is - I see the calls I want to do, but i'm not sure how to chain them to the Play Media call, seeing as it seems to await specifically one ID every time.
I'd imagine it's possible to just say "play this" but I misread the docs or I'm not understanding them.

Describe the solution you'd like

Honestly, the easiest would be a simple parameter on the Search commands to "play response immediately" which set to true plays the response on the user and device set in data.

Describe alternatives you've considered

I guess I can write a template, store the data in a variable, sanitize it and send it there ?

Additional context

In all cases a YAML example of a working fet and play would be a lovely addition to your wiki.

Can't get integration to work reliably. Internal server error and device not found errors

System Health details

System Information

version core-2024.6.4
installation_type Home Assistant Core
dev false
hassio false
docker false
user homeassistant
virtualenv true
python_version 3.12.3
os_name Linux
os_version 6.1.89-15498-gf9afb0b2911b
arch aarch64
timezone America/Detroit
config_dir /home/homeassistant/.homeassistant
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1392
Downloaded Repositories 4
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration July 17, 2024 at 8:00 PM
relayer_connected true
relayer_region us-east-1
remote_enabled false
remote_connected false
alexa_enabled true
google_enabled true
remote_server us-east-1-12.ui.nabu.casa
certificate_status ready
instance_id 8558a708d8f94f7589c3d170eeb93b0b
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 3
resources 0
views 1
mode storage
Recorder
oldest_recorder_run June 13, 2024 at 8:36 PM
current_recorder_run June 23, 2024 at 12:23 PM
estimated_db_size 75.62 MiB
database_engine sqlite
database_version 3.40.1
SpotifyPlus
integration_version v1.0.30
clients_configured 1: 1257898300 (premium)
api_endpoint_reachable ok

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

I'm not sure exactly how this integration is supposed to work as far as capability. I know if I set my phone to play spotify on my tv as a device, the tv will open the spotify app automatically. I'm not sure if this integration is able to do this. When I try this sort of use case, I get 500 internal server errors when switching devices in the list, and No active device found errors when trying to play on the selected device. If I start the app on the tv, and it is already selected as the device in the player, then I can play on it without error. Of course if I close the app and try to play again, I get the no active device found errors.

I just want to make sure the integration is functioning as intended. I've included examples of the 500 Internal server error when attempting to switch devices, and the no active device errors in the debug logs section.

Reproduction steps

  1. Attempt to switch devices in device list in player when devices are not actively running the spotify app.
  2. Attempt to play spotify on a device in the device list that is already selected or default but is not running the app.

...

Debug logs

Attempt to play on a selected device

2024-06-23 12:44:13.602 WARNING (SyncWorker_0) [spotifywebapipython.spotifyclient] Spotify Connect device name '48b677ca-ef9b-516f-b702-93bf2e8c67ba' could not be resolved; please ensure that the specified device is powered on and available on the local network
2024-06-23 12:44:13.694 DEBUG (SyncWorker_0) [custom_components.spotifyplus] 'SpotifyPlus 1257898300': Processed a media player command - forcing a playerState scan window for the next 5 updates
2024-06-23 12:44:13.695 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281470778407616] Unexpected exception
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/custom_components/spotifyplus/media_player.py", line 212, in wrapper
result = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/homeassistant/.homeassistant/custom_components/spotifyplus/media_player.py", line 553, in media_play
deviceId:str = self._VerifyDeviceActive()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/homeassistant/.homeassistant/custom_components/spotifyplus/media_player.py", line 1265, in _VerifyDeviceActive
result:PlayerPlayState = self.data.spotifyClient.PlayerVerifyDeviceDefault(PlayerDevice.GetIdFromSelectItem(self.data.OptionDeviceDefault), False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py", line 10983, in PlayerVerifyDeviceDefault
self.PlayerTransferPlayback(defaultDeviceId, play, delay)
File "/srv/homeassistant/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py", line 10884, in PlayerTransferPlayback
self.MakeRequest('PUT', msg)
File "/srv/homeassistant/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py", line 814, in MakeRequest
msg.ResponseData = self._CheckResponseForErrors(msg, response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py", line 555, in _CheckResponseForErrors
raise SpotifyWebApiError(errCode, errMessage, msg.MethodName, response.reason, _logsi)
spotifywebapipython.spotifywebapierror.SpotifyWebApiError: SAM1001E - Spotify Web API returned an error status while processing the "PlayerTransferPlayback" method.
Status: 404 - Not Found
Message: "Player command failed: No active device found"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 977, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/media_player/__init__.py", line 818, in async_media_play
await self.hass.async_add_executor_job(self.media_play)
File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/homeassistant/.homeassistant/custom_components/spotifyplus/media_player.py", line 226, in wrapper
raise HomeAssistantError(ex.Message)
homeassistant.exceptions.HomeAssistantError: Player command failed: No active device found


Switching devices

2024-06-23 12:47:15.130 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281470778407616] Unexpected exception
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py", line 10870, in PlayerTransferPlayback
deviceId = self.PlayerResolveDeviceId(deviceId, verifyUserContext=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py", line 10453, in PlayerResolveDeviceId
zcfResult = zconn.Connect(self._SpotifyConnectUsername, self._SpotifyConnectPassword)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfconnect.py", line 358, in Connect
responseData:dict = self._CheckResponseForErrors(response, apiMethodName)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/spotifywebapipython/zeroconfapi/zeroconfconnect.py", line 249, in _CheckResponseForErrors
raise SpotifyZeroconfApiError(errCode, errMessage, methodName, response.reason, _logsi)
spotifywebapipython.zeroconfapi.spotifyzeroconfapierror.SpotifyZeroconfApiError: SAM1003E - Spotify ZeroConf API returned an error status while processing the "Connect" method.
Status: 500 - Internal Server Error
Message: "Internal Server Error"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/custom_components/spotifyplus/media_player.py", line 212, in wrapper
result = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/homeassistant/.homeassistant/custom_components/spotifyplus/media_player.py", line 740, in select_source
self.data.spotifyClient.PlayerTransferPlayback(source, (self.state == MediaPlayerState.PLAYING))
File "/srv/homeassistant/lib/python3.12/site-packages/spotifywebapipython/spotifyclient.py", line 10901, in PlayerTransferPlayback
raise SpotifyApiError(SAAppMessages.UNHANDLED_EXCEPTION.format(apiMethodName, str(ex)), ex, logsi=_logsi)
spotifywebapipython.spotifyapierror.SpotifyApiError: SpotifyApiError: SAM0001E - An unhandled exception occured while processing method "PlayerTransferPlayback".
SAM1003E - Spotify ZeroConf API returned an error status while processing the "Connect" method.
Status: 500 - Internal Server Error
Message: "Internal Server Error"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 977, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/media_player/__init__.py", line 880, in async_select_source
await self.hass.async_add_executor_job(self.select_source, source)
File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/homeassistant/.homeassistant/custom_components/spotifyplus/media_player.py", line 224, in wrapper
raise HomeAssistantError(ex.Message)
homeassistant.exceptions.HomeAssistantError: SAM0001E - An unhandled exception occured while processing method "PlayerTransferPlayback".
SAM1003E - Spotify ZeroConf API returned an error status while processing the "Connect" method.
Status: 500 - Internal Server Error
Message: "Internal Server Error"

Diagnostics dump

config_entry-hacs-d1b378e2b57174751486942b25aa3676.json

When starting playback on a device other than spotifyplus, spotifyplus remains off

System Health details

Issue with plugin not has instance

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

When I play a song on the Spotify desktop app and Spotify plus is off it does not turn on when it detects Spotify playing, and I cannot then control Spotify until I turn on the entity.

Reproduction steps

  1. start playing spotify on the desktop web or mobile client
  2. observe that spotifyplus entity remains off preventing the user from controlling spotify

Debug logs

I don't think this is needed

Diagnostics dump

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.