Hi there!
I’ve just finished installing and configuring homeassistant in a freenas iocage jail (using FreeNAS 11.2).
When I run the atvremote scan command, no device is found. I’ve tried all the proposed solutions I’ve found:
- disable home sharing on ATV, reboot, enable it again
- switch from wifi to cable
- use a longer timeout value for the scan
but I had no luck.
I’ve then tried building a dedicated VM using VMDK distribution of hassOS (v. 1.12). I can see my Apple TV there, so I got the login_ID, name and IP address and I’ve tried again to scan using
atvremote --address 192.xxx.xxx.xxx --login_id 00000000-xxx-xxx-xxx-xxxxxxxxxxxx --debug scan
Still, no device found.
If I run the following command:
atvremote --address 192.xxx.xxx.xxx --login_id 00000000-xxx-xxx-xxx-xxxxxxxxxxxx auth
On the Apple TV I can see the pin code, as a result I could get the airplay credentials as well.
I tried at this point to add all the information manually within the configuration.yaml file. Now I can see the ATV box within homeassistant - but it is always in “Estabilishing a connection to Apple TV” mode.
This is the logs I got:
2018-11-07 00:44:58 WARNING (MainThread) [pyatv.tag_definitions] Unknown data: b’103’
2018-11-07 00:44:58 WARNING (MainThread) [pyatv.tag_definitions] Unknown data: b’103’
2018-11-07 00:44:58 WARNING (MainThread) [homeassistant.components.media_player.apple_tv] A <class ‘pyatv.exceptions.AuthenticationError’> error occurred: failed to login: 503
I’m running a FreeNAS jail with base OS FreeBSD 11.2, python3.6 and the following stack:
Package Version
-------------------- ----------
aiohttp 3.4.4
asn1crypto 0.24.0
astral 1.6.1
astroid 2.0.4
async-timeout 3.0.1
attrs 18.2.0
bcrypt 3.1.4
certifi 2018.10.15
cffi 1.11.5
chardet 3.0.4
cryptography 2.3.1
curve25519-donna 1.3
ed25519 1.4
gTTS-token 1.1.2
homeassistant 0.81.6
idna 2.7
idna-ssl 1.1.0
ifaddr 0.1.4
ipaddress 1.0.22
isort 4.3.4
Jinja2 2.10
lazy-object-proxy 1.3.1
MarkupSafe 1.1.0
mccabe 0.6.1
multidict 4.4.2
netifaces 0.10.7
pip 18.1
pyatv 0.3.10
pycparser 2.19
PyJWT 1.6.4
pylint 2.1.1
pytz 2018.7
PyYAML 3.13
requests 2.20.0
setuptools 40.0.0
six 1.11.0
SQLAlchemy 1.2.13
sqlite3 0.0.0
srptools 0.2.0
typed-ast 1.1.0
urllib3 1.24.1
voluptuous 0.11.5
voluptuous-serialize 2.0.0
wrapt 1.10.11
yarl 1.2.6
zeroconf 0.21.3
Is there something I’m missing? I’m not an expert, just trying to figure out what’s happening…
Thanks!