Okay, before we start:
- Unraid User
- Running Home Assistant Core installed on Docker
- v0.110.4
- Using sorccu/ADB docker installed from Docker Hub as my ADB server.
I’ve been trying to set up the Android Fire TV integration through the ADB Server implementation (the python thing didn’t work). I’m having a lot of trouble getting it to work. My ADB server container can connect to my Fire TV 4k fine and I can use the terminal in Unraid to send commands to it (power on/off, open the Plex app, etc.) so that end of things seems to be working as intended, right down to automatically connecting to my Android Devices when I start the container. I just can’t get it to work with HA. I’m a newbie though, and I’m honestly surprised I’ve gotten this far with docker without any major troubles.
I used BurnsHA’s Video about the subject as the basis for how I set everything up, (even though I didn’t use Docker compose, just Unraid’s docker container tools). Here’s how my containers are set up.
Home Assistant
Name: Home Assistant Core
Repository: homeassistant/home-assistant
Network Type: Host
Console Shell Command: Shell
Privileged: Off
Config Directory: /mnt/user/appdata/Home-Assistant-Core
ttyACM0: /dev/ttyACM0 (this is my Z-Wave controller)
ADB
Name: adb
Repository: Sorccu/adb
Network Type: Bridge
Console Shell Command: Shell
Privileged: Off
Config Directory: /mnt/user/appdata/adb
Time: /etc/timezone
Local: /etc/localtime
Host Port: 5037
Here’s my config for the Android TV Device:
#Amazon Fire TV 4K
media_player:
- platform: androidtv
name: Zack's Fire TV 4K
host: 192.168.1.23
adb_server_ip: 192.168.1.17
adb_server_port: 5037
I realize I could be formatting my commands in Home Assistant wrong. My goal is to be able to use this touch interface on my tablet to control my media devices (video source switchers, HDTV, etc) and I want to be able to press the app icons at the bottom and have the Fire TV open the app (yeah I know HBO Max isn’t on Firestick’s yet, I’m future proofing.)
I tried using the media_player.select_source
service but I know there is also an androidtv.adb_command
service. Does the androidtv.adb_command
service have better results here? And if so, does anyone have any good resources to help me learn how to format those commands? I know up top I mentioned being able to send commands via terminal, but I did have some trouble parsing out how to do that based on the stuff I was reading online. I did eventually get a few figured out but I have a lot to learn.
Anyway, I’ve been digging at this for about a week and nothing I’m finding online gets me any closer, so I finally resigned to asking here for help. Thanks in advance for any direction you can offer! If you need anymore info from my end feel free to ask, I tried to be as comprehensive as possible.