cgarwood / homeassistant-fullykiosk

Fully Kiosk Browser integration for Home Assistant
Apache License 2.0
153 stars 27 forks source link

Integration is spamming HA log if a device isn't available #51

Open derandiunddasbo opened 3 years ago

derandiunddasbo commented 3 years ago

The integration is spamming the HA log every 30 seconds with an error message, if a device isn't available or if FKB isn't currently running on the device:

2021-09-06 14:38:58 ERROR (MainThread) [custom_components.fullykiosk.coordinator] Error fetching Galaxy-Tab-A-DG.dieweide deviceInfo data: Cannot connect to host galaxy-tab-a-dg.dieweide:2323 ssl:default [Connect call failed ('192.168.4.48', 2323)]

Would it be possible to only write this error once when the device becomes unavailable and suppress these errors until it becomes available again?

dsegantx commented 2 years ago

I’m trying to figure out what causes them not to respond. Is it a particular setting as I leave my wall mounted tablets on 24x7 (as well as router) and they are kept powered and thus are are always available. This integration makes more noise in my logs with errors than anything.

Maybe a setting to limit messages to 1 per xx seconds (so I could set to 1 per 3600 (hour) say)…