Hi all
I used to have the Roku integration working so I could control my lights when something start playing or was paused/stopped. I now have an Amazon FireStick 4K Max which is detected in Home Assistant using the Android Debug Bridge and am trying to do the same thing using it, however it only ever shows Idle or Standby. Reading up in more detail it seems I need to use State Detection Rules to signal to Home Assistant when something is playing, however I cant seem to get this working.
After figuring out how to send GET_PROPERTIES and where to see the results, I’m getting output like this :
adb_response: >-
{'screen_on': True, 'awake': True, 'wake_lock_size': 2, 'current_app': None,
'media_session_state': None, 'running_apps': None, 'hdmi_input': None}
hdmi_input: null
device_class: tv
The current_app and running_apps always say None and never change no matter what app I am running.
I did notice wake_lock_size does change while I’m using it - 2 for stopped, 3 for paused and 4 for playing.
How do I use that information to actually configure the Android Debug Bridge? Since I dont seem to be able to get the app name I tried leaving that blank and using the following but it doesnt seem to work (not sure because the app is blank?) :
["standby", {"playing":{"wake_lock_size":4}}, {"paused":{"wake_lock_size":3}}]
Any help would be appreciated!