I’ve got 2 Fire TV sticks that I can control via Home Assistant, both of which require authentication for ADB connections. Here’s how I got them setup and integrated into Home Assistant.
-
Download platform-tools and connect to the first Fire TV stick from my laptop, following the instructions in this guide: Connecting to Fire TV Through adb.
Important! You must check the box that says “always allow connections from this device.” ADB authentication in Home Assistant will only work using a trusted key.
-
Connect to the second Fire TV device, following the same steps as before. It should utilize the same ADB key.
-
Copy the
adbkey
andadbkey.pub
files from my computer (in the folder~/.android
) to my Home Assistant configuration folder. -
Copy firetv.py to the
custom_components/media_player/
folder in my Home Assistant configuration directory. -
Add the Fire TV sticks to my Home Assistant configuration as follows:
media_player: - platform: firetv name: Fire TV 1 host: 192.168.0.111 adbkey: "/config/android/adbkey" - platform: firetv name: Fire TV 2 host: 192.168.0.222 adbkey: "/config/android/adbkey" # if your Fire TV doesn't require authentication, you would set it up like this - platform: firetv name: Fire TV 3 host: 192.168.0.123
That’s it! No addons to worry about, and no need for automations to restart the addon when it crashes.