Hey folks,
Just tried this out (and thanks for pulling together, hoping this will get over the Auth issue preventing FireTV being used). Got the following issue, which doesn’t seem present in the above threads (that i can see):
Just updated to 0.76.2 on docker
custom_components/media-player/android/ - containing the adbkey and adbkey.pub
custom_components/media-player/ - containing the firetv.py from the repo
- platform: firetv
host: XXXX:5555
name: Bedroom FireTV
adbkey: "/config/custom_components/media_player/android/adbkey"
- platform: firetv
host: XXXX:5555
name: Living Room FireTV
adbkey: "/config/custom_components/media_player/android/adbkey"
Error message:
2018-08-26 21:40:41 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform firetv
Traceback (most recent call last):
File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 226, in Unpack
cls.format, message)
struct.error: unpack requires a buffer of 24 bytes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/media_player/firetv.py", line 53, in setup_platform
device = FireTVDevice(host, name, adbkey)
File "/config/custom_components/media_player/firetv.py", line 91, in __init__
self._firetv = FireTV(host, adbkey)
File "/config/deps/lib/python3.6/site-packages/firetv/__init__.py", line 105, in __init__
self.connect()
File "/config/deps/lib/python3.6/site-packages/firetv/__init__.py", line 118, in connect
self._adb = adb_commands.AdbCommands().ConnectDevice(serial=self.host, rsa_keys=[signer])
File "/config/deps/lib/python3.6/site-packages/adb/adb_commands.py", line 142, in ConnectDevice
self._Connect(**kwargs)
File "/config/deps/lib/python3.6/site-packages/adb/adb_commands.py", line 173, in _Connect
conn_str = self.protocol_handler.Connect(self._handle, banner=banner, **kwargs)
File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 314, in Connect
cmd, arg0, arg1, banner = cls.Read(usb, [b'CNXN', b'AUTH'])
File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 243, in Read
cmd, arg0, arg1, data_length, data_checksum = cls.Unpack(msg)
File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 228, in Unpack
raise ValueError('Unable to unpack ADB command.', cls.format, message, e)
ValueError: ('Unable to unpack ADB command.', b'<6I', b'', error('unpack requires a buffer of 24 bytes',))
any help very much welcomed as not really sure where to start with this error.