After update to 2022.02 Android TV integration moved to config flow.
My FireTV entity got automatically removed from system, and didn’t appear in Integrations.
When i disabled it in yaml, rebooted, and tried to add via UI, i got error:
Impossible to determine a valid unique id for the device
No errors/warnings in log.
What could go wrong?
My old config:
media_player:
- platform: androidtv
exclude_unnamed_apps: true
name: Fire TV
host: 192.168.#.#
Thanks in advance!
UPD Tried to do same from test instance of HA, guessing, that maybe it’s ADB key issue. But after enabling ADB debugging on FireTV upon integration request, got same error in HA.
Well, this is not really good to declare full compatibility and easy transfer of configuration, while changing functionality in parallel and without proper testing.
Since stick is in the network, it definitely has MAC.
So looks like the problem is in getting it.
Will check integration code to see, how does it try.
So the integration relies on “androidtv” library, which returns dictionary with properties, including ethernet and WiFi MAC addresses. I believe, in our case for FireTV stick neither of them are present in response.
That’s interesting. Unfortunately, my android TV box does not offer the possibility to connect over WiFi, although it might have hardware inside. I guess it is factory disabled. I’ve finally got rid of the troubles with HDMI-CEC and automated power on/off of AVR, TV, ATV with a single press of the button. Let’s hope it will be fixed soon. Thanks for reporting the bug.
I just did the 2022.2 upgrade, and for my FireTV Cube, there wasn’t any issue with the upgrade.
As an FYI…
Before upgrading I came across this thread and did some digging around to see how the mac address is retrieved. It appears the library uses the adb shell command ip addr show eth0 | grep -m 1 ether and the command ip addr show wlan0 | grep -m 1 ether.
You can check to see how your device responds:
If you go to the dev tool->services and select the “Android TV: ADB command”, choose your device and for the command, cut-n-past one of the ip addr show .... commands and click “Call Service”, then go to dev tool->States, scroll down to find your device and look at its attribute adb_response. It should show your device mac address, something like: link/ether YOUR:MAC:ADDRESS brd ff:ff:ff:ff:ff:ff
I can confirm, that both commands do show correct and different MAC addresses.
I can suggest, that when WiFi is not enabled, Ethernet mac is also missing.
i also had initially some issues getting it working but 2022.2.2 had solved it, but i had to deactivate and reactivate the ADB Debugging in the FireTV user options to get it working
I cannot configure Android TV (Amazon Fire TV) after update to 2022.02.
Here it is my old configuration:
media_player:
# Use the Python ADB implementation
- platform: androidtv
name: Fire TV
host: 10.11.12.110
It’s automatically discovered in HA, but when I press configure button in integrations and I add the host IP (10.11.12.110), I get an error message Failed to connect.