I am having this same issue, using the core component. So I will also switch to the custom one for now.
Update: with the custom component it’s not great either. When I start Kodi on the Shield, it shows “playing” even without content playing on the Kodi. Youtube seems to work correctly, but another streaming app “NLZiet” still keeps the Shield on “idle” while content is playing.
Unfortunately not. I have a Lenovo P11 tablet with Android 11 the androditv mediaplayer (Homeassistant 2022.4.0) still switches between idle and playing.
It also does not recognise the app running in the foreground. ((homeassistant companion app)
The query is not correct. You can see this in the curly brackets at the end of the (wrong) app_id, app_name and source string.
Btw. the dumpsys query shows the correct app_id of the active app (companion app or when stopped the app_id of the launcher):
I have a Chromecast with Google TV integrated with the android TV integration. The status is reported fine, almost all the controls works, and the source works well.
I have two problems, the volume control doesn’t work at all, and I don’t get the album art in any of the apps.
I am having the same issue, TCL TV with Google TV (Android 11) the android TV integration gets some info but barely anything useful. I can turn the TV on and off, but not much else.
Via the Google Cast integration, I got a device which is able to get all inputs and control the volume but it only works when some apps (maybe only YouTube) are open.
Here’s the results when playing simple TV channels
I’m seeing the exact same scenario’s as @kauelima when using the official integration. The Hacked Integration works better, but it stumbles with certain apps. For instance, when I watch the Sling TV app on my Nvidia Shield, it will only display the entity picture from the Goggle Cast integration and not the Android TV? Yet, it works fine when I use the Tablo TV app. Netflix however, doesn’t display the entity picture on either app?!
Yep. that’s the one. It works better than the official integration but still isn’t perfect. I haven’t updated to 2022.05 to see if the May release is any better.
@mboarman@diodorus I’ve been trying to install this but I haven’t had any luck. I created the “androidtv” folder within the custom_componets folder as stated in the repo but that’s where I got a little confused. Do I copy everything from the main “HA-androidtv11” folder of the repo or everything from the “androidtv11hack” subfolder that is within the main folder.? After I get that straightened out what are my next steps.? Thanks in advance.
If you have a “androidtv” folder created under custom_components, then just grab the entire folder structure of the repo and drop it in there.
Reboot
Add Integration - AndroidTV through the config panel
Add your TV’s through the AndroidTV integration. (each on requires a new integration be setup)
I’ll try again, but it is a TCL TV with google tv (TCL C725), not exactly the new chromecast. I’ll try again but heres the steps i took
Deleted the standard android tv device.
Copied the repo contents to a folder called “androidtv” inside of custom components
Reset home assistant
Add the android tv integration (it was exactly the same, i’m assuming it’s all in background)
Update: User error is really a thing. I’ve tried moving the folder using vscode but it only created folders not files. So I redid it using the samba integration and all files are there.
Now I see that it went in because the name of the integration changed from “Android TV” to “androidtv”.
BUT, I still have it showing something that is not what it should. Now it’s showing “AssistPreviewPanel}:” on the state. It does query the tv volume but I cannot change it still everything else is the same.
Using the ADB query someone posted above I get the current app returned with success:
Hello, I tried both the hacked integration and the official integration on latest core but the integration stays idle.
For the hacked integration I renamed the folder to androidtv and placed in custom components folder.
Assuming I did everything correct, or is there something I’m missing?
My device is Tivo 4k
Has anyone successfully downgraded to Android 9? I want to use the Android ‘sendevent’ command as opposed to the default ‘input’ which requires A9 as A10 has introduced a security policy to block this command
The above is documented.ob the official HA integration page
Known ids: Plex = com.plexapp.android Netflix = com.netflix.ninja Hulu = com.hulu.plus
Others can be found by visiting the play store via browser (preferably pc so it doesn’t auto open the app) and copying the com.blank.blank from the url.
I was able to get most states through all three sources using