Android TV integration does not provide the current source (Sony TV)

Hi,

i got a new TV (Sony A80K) and used the Sony Bravia TV-integration. Unfortunately with this integration i can’t identify which app is currently running. So i switched to the Android TV-integration. But the same Problem there. I can’t see the current source either can i change the source. If i try to, just nothing happens.

But as you can see here:

or here:

The Android TV integration should provide the current source. But the attributes app_id and app_name are not listed. Any idea why?

My current entity:

Did you find a solution? I think I have the same problem.

Negative. Do you also have a Sony TV (which model)?

If you find a solution please let me know.

I’ve got a Bravia XR65A89K. Our problem could be due to the author of the backend Python library no longer developing it. A possible workaround is to poll the status of the foreground app using adb commands, which the integration still supports. I plan to look into that.

I’ve tried before and it works perfectly fine manually.

A fix on the HA or python site would be awesome.

I’ve got a JVC. I’m getting a source attribute (using the Android TV integration):

device_class: tv
entity_picture: >-
  /api/media_player_proxy/media_player.android_tv_172_24_1_118?token=7f0986c4fa071c9b68b29e3a52eab07bb8870d6b116dc61ac6753140c451c391&cache=1678293768.54063
friendly_name: Television living room
supported_features: 23997
source_list:
  - dialserver
  - com.google.android.inputmethod.latin
  - com.android.systemui
  - com.google.android.tv.remote.service
  - com.google.android.gms.persistent
  - com.google.android.katniss:interactor
  - com.mediatek.tvinputservice.arbitratorservice
  - com.google.android.tvrecommendations
  - Android TV Launcher
  - com.google.android.gms
  - com.android.providers.tv
  - Google Cast
  - com.google.android.katniss:search
  - Netflix
  - com.google.process.gservices
  - Play Store
  - com.google.process.gapps
  - com.android.vending:background
  - com.google.android.partnersetup
  - com.google.android.gms.unstable
  - com.apple.atve.androidtv.appletv
  - android.process.acore
  - Disney+
  - com.google.android.webview:webview_service
  - Prime Video
  - com.google.android.apps.nbu.smartconnect.tv
  - Play Movies & TV
  - YouTube
  - uk.co.freeview.mdsclient
  - com.android.providers.calendar
volume_level: 0.68
is_volume_muted: false
app_id: com.google.android.tvlauncher
app_name: Android TV Launcher
source: Android TV Launcher

Doesn’t distinguish between BBC, ITV C4 etc because they’re all delivered via com.mediatek.tv.freeviewplay (I’m in the UK). The format of some of the sources is not terribly helpful either. Is this worth the effort?

In my case it doesn’t detect the app currently playing. And the values returned by the GET_PROPERTIES command through the integration service are also wrong.

What does the TV entity look like in Developer Tools | States?

The same with Philips Android Tv. Sometimes shows right source, sometimes not.