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.