Closed shiftux closed 3 years ago
Took an entirely different approach and installed HACS and then installed the hass-atv-beta version. This works, sorry for the confusion...
What's in the hass-atv-beta
repo will be included in Home Assistant 1.0 once released. Some minor differences so far, but almost the same. So HACS will soon not be needed for this, although I will likely continue to update it with new features for eager testers.
thanks for all your work!! 👏
Not sure if I should post this here or on a HA forum... Hope this is OK.
I'm trying to control my apple TV 4K from Home Assistant running in a Docker container.
From my laptop I can run a scan and find the Apple TV
Using this I was able to set up the Apple TV on HA and also to pair it and get "credentials". However after setting those and restarting HA I get an error in my logs
A <class 'aiohttp.client_exceptions.ClientConnectorError'> error occurred: Cannot connect to host 192.168.XXX.XXX:3689 ssl:None [Connect call failed ('192.168.XXX.XXX, 3689)]
. And the state of the media player in HA is stuck in "Establishing a connection to apple_tv". Also I don't see a remote on the ATV (in the "remote app and devices" setting).Investigating this further I went into the HA container and tried using
atvremote
from there. Without any additional arguments the discovery fails (this had worked from the laptop)using
pair
, I get:All the while observing the "remotes and devices" - "remote app and devices" page on the ATV, I'm not getting a remote showing up (and rebooting the ATV does not help).
The line
No response from Apple TV!
makes me think that this is related to a port on the Docker container not being exposed. However I can't specify a port for atvremote and have noticed that the allocated port changes every time I run apair
...HA version 0.110.4 OpenSSL 1.1.1g 21 Apr 2020