Android Debug Bridge Polling Rate

Is there a way to set the " Android Debug Bridge" polling rate? sad enough that there is no way to push the state from Android TV.

Im setting up my light in diffrent states from android tv and the low polling rate has way to much delay.

Tried already the HA Core Update service but that didnt work. would be nice to poll the android tv state for example every second or so.

Also would like this info, the tv polling rate at 10 seconds is too slow for me and i want to update it faster, the update service does not work to get the data faster

Using manual polling does the trick. This integration is classed as a “Local polling” integration, and Home assistant will automatically poll the device.

You can however disable this default behaviour in the “System Options” of the device in the integration:

Then just switch off Enable Polling for updates:
image

After that, simply set up an interval automation that calls the Core.Update Entity Service:

3 Likes

I have 2 FireTV devices, I recently bought a Nokia 8010.Both devices use the Android Debug Bridge integration. For some reason the Nokia however doesn’t update fast. It remains inactive for a long time while the FireTV updates really fast.

The automation above doesn’t help for me either. Am I the only one with this issue?

TL;DR: SOLUTION: TASKER. Cost $4.34

Even after doing the manual polling rate as mentioned above, I still found it too slow. I had to turn CEC off a long time ago because between the receiver , the Shield, my PS5, and my TV everything was turning on and off like it was possessed. Now I rely on HA to turn on my TV.

My solution was to download an app called “tasker” and use an HTTP request to access HA automation webhooks on “display on” and another for “display off.” The response is instantaneous now.

In addition to turning on the TV, I have it poll the device as well (seems to work better if you have it poll BOTH the media_player and remote entities at the same time).

Google play store would not let me buy Tasker so I downloaded the 7 day trial on tasker’s website on my PC and used ADB to install it:

https://tasker.joaoapps.com/

After I got it working, I used his patreon method to get a license for the software (it’s “per device”). That gives you a download link to install the full version and you then enter a code (hint: you can “paste” it into the license key field from PC to Droid using adb shell input text [code no quotes]).

Tasker’s got a lot of cool features though, including some kind of remote interface to make new tasks, it’s a nice $4 upgrade for my shield.

1 Like

I’ve been using Macrodroid which is similar to call a webhook from my Nokia 8010:

  • “Screen on / off” event matches the device turning on / off.
  • “Music playing / paused” event matches anything playing, even a brief video preview (so might not be that useful).

Being push is better than constantly polling the device every few seconds. I read somewhere that using ADB polling may prevent some devices from going into standby so there would be way higher power consumption.

1 Like

Macrodroid has way better reviews. Probably a better way to go. I wish I’d known lol.

I’ve been using the webhooks (tasker) solution for 1 week - ZERO missed calls with on AND off.

Finally I can forget about this issue and I can move on to the next.

1 Like