Is the Fire TV an Android TV device or a Fire TV device? I’m using a Fire Stick 4K and your config looks the same as mine, except I don’t have any entry for device_class. You might want to try commenting that line out to let it default to auto detect the device type.
Did you watch the TV screen after the HA restart and answer the prompt to allow the connection, as well as check the box to “always allow”?
I discovered that once I successfully connected HA to my Fire Stick I was no longer able to connect to the stick using ADB from my laptop. I had to comment out the media_player entry and restart HA before I could connect with the laptop again, It acts like the Fire Stick only allows one ADB connection at a time. You might want to make sure there is nothing else connected to your Fire TV when HA makes it’s initial connection. You could also try renaming those androidtv_adbkey files to start over.
Thank you for your detailed answer! You actually solved my problem. There can be only one adb connection at a time. When I connected via PC I have to restart, then it’s working. Thank you
Since you are also using your FireTV with HA: Can you tell me how to start apps properly? For me its working 1 out of 10 times. And I cannot see any pattern when it’s working. I tried the services androidtv.adb_command and media_palyer.select_source. Do you have any working automation steps defined?
I’m currently not trying to do anything like that, but I was able to send commands using Node Red. It doesn’t seem to respond to the commands quickly, so you may need to wait a few seconds after sending the command before you see it change.
Launch the VLC app on the FIre Stick:
Domain: media_player
Service: select_source
Entity ID: media_player.fire_stick_lr
Data: {“source”:“VLC”} (json)
Send the Home command:
Domain: androidtv
Service: adb_command
Entity ID: media_player.fire_stick_lr
Data: {“command”:“HOME”} (JSONata expression)