Help with ADB setup for Amazon FireStick 4K Max

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!

I’m in the same boat as you. But can you please explain to me where to see the results of GET_PROPERTIES ?

Yeah it wasn’t as easy as I thought, but here is where to go in the Developer tab:

Call service:

See results:

Hope that helps, let me know if you need more info.

Also please let me know if you manage to get this working and what settings you had to put where! :slight_smile:

1 Like

Thank you very much, that did help. Unfortunately, I haven’t found the solution. I’ve tried other wake lock sizes to what you’ve tried, based on the GET_PROPERTIES results when playing and pause. None of them worked. I’m also seeing the same wake lock sizes no matter what app I’m running too.

Will keep looking into it, but defo no luck so far sorry!

1 Like