i am try to get state detection via Android Debug Bridge integration for Home Assitant - https://www.home-assistant.io/integrati ... -detection.
I found that there is some missing info on response.
Response from odroid n2+ with [ROM][LineageOS 20.0][Android 13.0][Mali r44p0][Vulkan 1.3.231][ODROID-N2/N2L]:
Code: Select all
adb_response: >-
{'screen_on': True, 'awake': True, 'audio_state': 'idle', 'wake_lock_size': 2,
'current_app': None, 'media_session_state': None, 'audio_output_device':
'hdmi', 'is_volume_muted': False, 'volume': 24, 'running_apps':
['com.android.systemui', 'android.ext.services',
'com.google.android.tv.remote.service', 'com.google.android.gms.persistent',
'com.google.android.gms', 'com.teamsmart.videomanager.tv',
'com.google.process.gservices', 'com.google.android.katniss:interactor',
'com.android.providers.media.module', 'com.android.inputmethod.leanback',
'com.google.android.tvrecommendations', 'com.google.android.tvlauncher',
'com.android.providers.tv', 'com.google.android.tts', 'com.viki.android',
'com.android.vending', 'com.google.android.katniss:search',
'com.android.vending:background', 'com.android.tv',
'com.google.android.gms.unstable', 'org.xbmc.kodi',
'de.cyberdream.dreamepg.tvh.tv.player', 'com.android.vending:quick_launch',
'cz.ceskatelevize.ivysilani.tvapp', 'com.android.webview:webview_service',
'com.android.webview:webview_apk', 'com.google.process.gapps'], 'hdmi_input':
None}
hdmi_input: null
device_class: tv
entity_picture: >-
/api/media_player_proxy/media_player.android_tv_172_23_23_31?token=a24e294ef871a02fe6907723c20b4d1d126588dca355f18a3babd55485c582de&cache=0d56520e40f0ce72
friendly_name: Android TV 172.23.23.31
supported_features: 23997
volume_level: 0.96
is_volume_muted: false
Code: Select all
adb_response: >-
{'screen_on': True, 'awake': False, 'audio_state': None, 'wake_lock_size': 3,
'current_app': None, 'media_session_state': None, 'audio_output_device': None,
'is_volume_muted': None, 'volume': None, 'running_apps': None, 'hdmi_input':
None}
hdmi_input: null
device_class: tv
friendly_name: Android TV 172.23.23.16
supported_features: 23997
source_list:
- com.android.systemui
- com.android.launcher3
- com.google.android.ext.services
- com.google.android.tv.remote.service
- com.google.android.gms.persistent
- com.android.providers.media.module
- com.google.android.katniss:interactor
- com.dolby
- Android TV Launcher
- com.google.process.gservices
- com.google.android.tvrecommendations
- com.google.android.katniss:search
- com.android.providers.tv
- com.google.process.gapps
- android.process.acore
- Play Store
- org.liskovsoft.androidtv.rukeyboard
- com.android.permissioncontroller
- com.android.providers.calendar
- com.android.vending:background
- com.google.android.gms.unstable
- DreamPlayer TVHeadend
- com.android.gallery3d
- com.android.packageinstaller
- com.google.android.leanbacklauncher.partnercustomizer
- cz.ceskatelevize.ivysilani.tvapp
- com.android.webview:webview_service
- com.android.webview:webview_apk
- com.android.vending:quick_launch
volume_level: 0.9538461538461539
is_volume_muted: false
app_id: cz.ceskatelevize.ivysilani.tvapp
app_name: cz.ceskatelevize.ivysilani.tvapp
source: cz.ceskatelevize.ivysilani.tvapp
entity_picture: >-
/api/media_player_proxy/media_player.android_tv_172_23_23_16?token=40aa38efae3a6060370d8f3a17986c4acbf31913f0f02695aff1242a90250393&cache=73563fe1bf91bb34
Code: Select all
app_id: xxxxxxxx
app_name: xxxxxxxxxxxx
source: xxxxxxxxxxxx
To get status of running app there is tag "wake_lock_size" - this is on your ROM from response OK.
I think these responses are hardcoded in the ROM, or am i wrong?
thanks for the reply/help.
sorry for my english