Hi,
I am getting lots of the following log messages when I disconnect my Android TV box from the network.
How I can silence those two log messages? I know I’ve disconnected the box, the error is expected.
2023-05-08 04:04:36.364 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to *********:5555. TcpTimeoutException: Connecting to *********:5555 timed out (1.0 seconds)
2023-05-08 04:43:42.211 ERROR (MainThread) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from *********:5555 timed out (9.0 seconds)
@fisz: So what does your final solution look like?
I want to specifically ignore those:
Logger: androidtv.adb_manager.adb_manager_async
Source: components/androidtv/__init__.py:123
First occurred: 29. August 2023 um 00:19:38 (2239 occurrences)
Last logged: 11:18:55
Couldn't connect to xxx.xxx.xxx.xxx:5555. TcpTimeoutException: Connecting to xxx.xxx.xxx.xxx:5555 timed out (1.0 seconds)
Couldn't connect to xxx.xxx.xxx.yyy:5555. TcpTimeoutException: Connecting to xxx.xxx.xxx.yyy:5555 timed out (1.0 seconds)
Couldn't connect to xxx.xxx.xxx.xxx:5555. OSError: Connect call failed ('xxx.xxx.xxx.xxx', 5555)
Couldn't connect to xxx.xxx.xxx.yyy:5555. OSError: Connect call failed ('xxx.xxx.xxx.yyy', 5555)
Unfortunately HA needs a restart to test this (as there’s only a service for setting the log level but not for applying filters) - which is not possible at the moment and a bit annoying. So I want to make sure the first shot is right.
from services section did not work. Still receive warning log entries from that integration on a per minute basis. Even if it would work then it’s possibly not permanent (not HA restart persistent, that’s what the logger section in configuration.yaml is for), isn’t it? And it’s not possible to filter specific log entries anyway. Back to start!