As per the error message, the key file does not exist at the specified path. My guess is that in your docker container you mounted /volume1/docker/homeassistant/config at /config, and thus the proper adbkey would be:
Also, I would suggest not putting the adbkey files in the custom_components folder. Rather, I suggest creating an android or .android folder in your configuration directory and putting them there.
The last 10% isn’t covered by a media_player object, but by a remote. Any chance you could convert this to use a adb client that connects to an adb server so this media_player doesn’t dominate the connection? Id like to be able to mkae a lovelace remote for my shield tv (which btw works quite well with this firetv implementation out of the box, you might want to broaden the scope of this project)
I’ll leave it to someone else to modify the component or the python-firetv package so that it can send the ADB commands to another server, or possibly run the commands using the adb binaries on its own system.
I also modified the python-firetv package and created a python-androidtv package (https://github.com/JeffLIrion/python-androidtv), and I submitted a pull request to a1ex4’s repo. I don’t have an Android TV, but I thought that might be helpful.
Error message: Couldn't connect to host: 192.168.178.104:5555, error: Broken pipe
and Could not connect to Fire TV at 192.168.178.104:5555 using adbkey='/config/android/adbkey'
My setup:
- platform: firetv
host: !secret firetv_host
adbkey: “/config/android/adbkey”
I don’t know why the preformatted text is not working…
Config files are in /config/android after I allowed USB-Connection on Fire Tv.
adb devices shows my attached Fire Tv. It says “device” after the ip.
Also, reboot the laptop you used to ADB connect to the firestick. ADB won’t normally release what you connected to and the firestick can only handle one ADB connection at a time.