I’m using hassio and tried to setup my apple tv in home assistant using this:
Is it necesary to install this in hassio (or does it have this out of the box)
$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
Without using this command I was able to use scan and authenticate. I got the right Login ID and credentials.
With everything setup I’m know able to turn the TV by turning the remote switch (in ha) on.
However, it’s not possible to use buttons yet (left, right). If I use those commands in a script I get some errors, like:
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 277, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/remote/apple_tv.py", line 85, in _send_commands
await getattr(self._atv.remote_control, single_command)()
File "/usr/local/lib/python3.6/site-packages/pyatv/daap.py", line 84, in post
yield from self._assure_logged_in()
File "/usr/local/lib/python3.6/site-packages/pyatv/daap.py", line 128, in _assure_logged_in
yield from self.login()
File "/usr/local/lib/python3.6/site-packages/pyatv/daap.py", line 51, in login
resp = yield from self._do(_login_request, is_login=True)
File "/usr/local/lib/python3.6/site-packages/pyatv/daap.py", line 105, in _do
action, False, is_login=is_login, is_daap=is_daap))
File "/usr/local/lib/python3.6/site-packages/pyatv/daap.py", line 108, in _do
'failed to login: ' + str(status))
pyatv.exceptions.AuthenticationError: failed to login: 503
and
Log Details (WARNING)
Unknown data: b'103'