Fire TV (ADB) try to connect when is off

I noticed a spike of cpu usage every hour (at the :50 minute) of every hour, so i started to inspect logs
i did not find anything in the logs, but hat i noticed is that my home assistant try to connect to my fire stick every 30 seconds and it fails, because my fire tv stick is connected to a projector that give it power (so when the projector is off the fire tv stick is off)
i dont think this polling is the reason of peak but my logs are full of this warning:

2023-05-15 02:31:04.089 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.1.205:5555.  TcpTimeoutException: Connecting to 192.168.1.205:5555 timed out (1.0 seconds)
2023-05-15 02:32:24.784 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.1.205:5555.  OSError: Connect call failed ('192.168.1.205', 5555)

any idea on how to solve it?

I have a similar issue - and the same applies to the Android TV Remote integration. Both appear to be designed for use with “always on” devices. In the end I added a filter to the logs.

Set a different loglevel for this source (in the configuration.yaml):

logger:
  default: warning
  logs:
    androidtv.adb_manager.adb_manager_async: critical

In this example the default loglevel is set to “warning” but for the TV it is set to “critical”. No more spam in logs.

1 Like

thank you!