I have an Android TV device which is connected to my HA, I would like to be able to view which app is currently playing which is does do, but its quite hard to decipher the name.
It shows names like ar.tvplayer.tv, when it should be showing TiviMate. After Googling I was able to cobble together this in my configuration.yaml file:
The IP address is correct and I have restarted HA after inserting but it doesnât seem to have taken any affect. Can someone please advise?
EDIT: HA has given me an alert saying âUnused YAML configuration for the androidtv integrationâ and prompting me to remove the block. Iâve obviously done something wrong. Can someone advise how to fix?
Would this add a new sensor independent of my media devices? In the media player card, instead of showing the app_id I want it to show the Name of the app, or a friendly label (that I can define).
I have two Android (Shield TV) devices I want to apply this to.
So I managed to find a customisation tag that we can use to display state values in alternative âfriendlierâ formats. It however does work, can anyone see if this is the correct syntax or whether this isnât the correct approach.
I know this topic is quite old now, but if you want to display app name (e.g. TiviMate) instead of app package name (e.g. ar.tvplayer.tv) on Media control card you can do this with media_player.template integration. You can install it with HACS or manually.
The integration allows to set custom media player title via title_template configuration variable. You can conditionally set desired app name based on app package name exposed by Android TV remote media player.
Below is a code snippet you can add to your configuration.yaml file. Just change media_player.android_tv to your Android TV media player entity and add conditions for other Android apps installed on your TV in title_template. You can also configure other variables based on your needs.
After adding this to your configuration.yaml file and restarting Home Asisstant you should have media_player.android_tv_template entity, that shows currently opened app name on Media control card.
In case anyone else seeâs this through google, I was attempting to do the same and appears you can configure this directly in the Android remote integration now. Going to Device info and configuring your android remote integration, it gives you the option to add apps. Just a heads up
Yes, I can add apps, but my remote.living_room_tv and media_player.living_room_tv entities still only display current activity such as âcom.netflix.ninjaâ for example and not as âNetflixâ which would be the desired view.
Curiously, I revisited my apps list in the integrations and it will display the âNetflixâ as current activity provided that it uses the common google based App ID: âcom.netflix.ninjaâ.
Thx for the heads up - I found this through google New user playing around looking for a solution to wake up my plex server when the plex app opens on the TV⌠after weeks of digging for solutions and a couple days playing with webhooks, macdroid and the plex integration⌠I got it to work with the tv remote - added a trigger when the tv remote is playing the plex tv app, it sends a wakeup to the server! (my poor man hack was to wake up the server when the living room light turned on LOL)