Missing device at alexa media player

Hi! I am trying to integrate my fire tv stick into home assistant. A couple of months ago I already installed alexa media player and every device I had got integrated. Now I had to reauthenticate and therefore also to reinstall the alexa media player integration. However after I reinstalled it, my echo devices show up, also my multiroom speakers, but neither does my fire tv stick or my phones, which seems odd to me, since it already worked.

I tried to integrate the fire tv stick via the configuration file with these lines:

media_player:
  - platform: androidtv
    host: 192.168.2.133
    name: firetvstick
    adb_server_ip: 127.0.0.1

the ip adress is right - i checked it twice.

I also installed the Android Debug Bridge which connected to the device without any problem.

Next I checked the Amazon Alexa API, to be 100% sure, that the device is registered at my account, and I can find it there.

My last attempt was to deinstall and then reboot and again install the integration both in the integrations menu and hacs. This time I also included the name of the Fire TV Stick (same as in the alexa API) in the “include” section. Unfortunately I got the same result: the firetvstick is not visible at developer tools or the integrations page.

Anyone any clue how I can add the fire tv stick to my HA? Thanks!

I found something in the logs, but does not get any smarter out of it.



Logger: homeassistant.components.media_player
Source: components/androidtv/media_player.py:204
Integration: Mediaplayer (documentation, issues)
First occurred: 13:57:12 (1 occurrences)
Last logged: 13:57:12
Error while setting up androidtv platform for media_player

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/androidtv/media_player.py", line 204, in async_setup_platform
    aftv = await setup(
  File "/usr/local/lib/python3.8/site-packages/androidtv/setup_async.py", line 52, in setup
    ftv.device_properties = await ftv.get_device_properties()
  File "/usr/local/lib/python3.8/site-packages/androidtv/basetv/basetv_async.py", line 194, in get_device_properties
    properties = await self._adb.shell(constants.CMD_MANUFACTURER + " && " +
  File "/usr/local/lib/python3.8/site-packages/androidtv/adb_manager/adb_manager_async.py", line 501, in shell
    return await self._adb_device.shell(cmd)
  File "/usr/local/lib/python3.8/site-packages/androidtv/adb_manager/adb_manager_async.py", line 43, in shell
    return await asyncio.get_running_loop().run_in_executor(None, self._device.shell, cmd)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/ppadb/command/transport/__init__.py", line 20, in shell
    conn = self.create_connection(timeout=timeout)
  File "/usr/local/lib/python3.8/site-packages/ppadb/device.py", line 45, in create_connection
    self.transport(conn)
  File "/usr/local/lib/python3.8/site-packages/ppadb/command/transport/__init__.py", line 15, in transport
    connection.send(cmd)
  File "/usr/local/lib/python3.8/site-packages/ppadb/connection.py", line 84, in send
    return self._check_status()
  File "/usr/local/lib/python3.8/site-packages/ppadb/connection.py", line 90, in _check_status
    raise RuntimeError("ERROR: {} {}".format(repr(recv), error))
RuntimeError: ERROR: 'FAIL' 00a7device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.


Nevermind, guys.
After 3 days it just added my fire tv stick without any work of mine. It even added the device once through the integration and one through my manual config. Very strange.