Hi @thlucas,
We were discussing in another thread about using spotifyplus to solve an issue I have of getting the current que. That works great.
I’m also trying to use spotifyplus now to solve the issue of Home Assistant losing the ability to connect to some devices, and then having to open the spotify app on my phone to reconnect it.
I am never able to do so using the zeroconf_device_connect service:
HomeAssistantError: Validation error: SAM0001E - An unhandled exception occured while processing method “GetInformation”.
HTTPConnectionPool(host=‘192.168.0.139’, port=45679): Max retries exceeded with url: /zc?action=getInfo&version=1.0 (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f749674f980>: Failed to establish a new connection: [Errno 111] Connection refused’))
These are the parameters i’m using for the zeroconf_device_connect service
{
“host_ipv4_address”: “192.168.0.139”,
“host_ip_port”: 45679,
“cpath”: “/zc”,
“version”: “1.0”,
“use_ssl”: “False”,
“username”: “[email protected]”,
“password”: “YYY”,
“loginid”: “ZZZ”,
“pre_disconnect”: “True”,
“verify_device_list_entry”: “True”,
“delay”: 7
}
I am sort of able to do so using the player_transfer_playback functionality.
Usually it fails the first time at which stage I get the error:
HomeAssistantError: Validation error: SAM0001E - An unhandled exception occured while processing method “GetInformation”.
HTTPConnectionPool(host=‘192.168.0.139’, port=45371): Max retries exceeded with url: /zc?action=getInfo&version=2.7.1 (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f749557ea80>: Failed to establish a new connection: [Errno 111] Connection refused’))
If I try a second time it looks like it’s working. I have the impression when using the zeroconf discover devices service, that the HEOS devices are changing the port on which they need to be connected quite frequently and the first time it is using an outdated port. The second time I don’t know what port it uses as it is no longer throwing an error.
I’m doing these tests by connecting to the player on my phone with one spotify account and then trying to connect to it using your spotify plus with another account (for which it will be unavailable initially as the other account is using it).
I see you’ve been doing some digging for Denon AVR / HEOS devices recently on people getting this connection refused error.