Closed mmotley999 closed 6 years ago
Same over here after updating the docker container to 0.79.0
Does your host (IP address) contain the port? It should not. I changed this a few weeks ago, so if you went from an old version of the component to a new one and didn't update your configuration, that could be the cause.
Aside from that, you're receiving this error because your adbkey didn't work. Please make sure that your key is pre-authenticated, meaning that you told the Fire TV to always allow it. Also, you said you can connect with the command adb connect
, so you could try re-copying the key used by the ADB binary from your ~/.android
directory to your HA configuration directory.
Just for reference, works on 0.79 with the debugging versions JeffLlrion has been helping me with.
Ok, I finally got the "authorize this device" popup. Thanks for the hint on the adbkey in the "~/.android" directory. I copied those over and now it is no longer crashing (yay!) but still getting a "Cannot connect" message:
Sep 30 15:41:31 hass1 hass[16028]: #033[32m2018-09-30 15:41:31 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.firetv#033[0m
Sep 30 15:41:33 hass1 hass[16028]: #033[33m2018-09-30 15:41:33 WARNING (SyncWorker_13) [custom_components.media_player.firetv] Could not connect to Fire TV at 10.10.20.36:5555#033[0m
I have no port defined in my media_player config, just the IP address.
I'm rebooting the firetv now.
Ok... I'm an idiot. :)
Last night, I connected via ADB as root, and of course just copied over the ~./android/adbkey* files as root... had to chown them to the homeassistant user. Doh.
It's all working great now!!
Here's what seemed to have fixed it, for other's benefit:
'adb connect
I finally was able to authorize the ADB connection on the FireTV. It's odd that it seems to just popped up kinda randomly, as I connected ADB last night and, literally, just got the notification 10 minutes ago.
Copy the newer adbkey/adbkey.pub from ~/.android to /home/homeassistant/.homeassistant/adbkey directory, which is where my config points.
chown homeassistant.homeassistant adbkey* (can't forget this).
Restart HA.
Thanks so much for your support on this module. It really works well, once you figure out the adbkey thing (which I still don't fully understand, honestly).
Thanks for figuring that out! I created a "Troubleshooting" section in the README and mentioned this issue and its solution. (https://github.com/JeffLIrion/homeassistant_native_firetv/commit/606c23b0f1a722c1b0e3e01dd571508b9052e5f8)
Just upgraded to HA 0.79, and seems firetv is now crashing on startup:
It was working just fine under 0.76. Also, I can do an 'adb connect' and it connects fine. Here's my config:
Both 'adbkey' and 'adbkey.pub' are present in that directory.
EDIT: Oh, and I did pull your most recent copy down and replaced my old firetv.py custom_component with your most recent one.