ajcorrea
(Alexandre Jeronimo Correa)
December 19, 2022, 7:42pm
1
Hello,
In some devices i have an uptime sensor. But this is flooding the log, because default log is DEBUG.
I found this code on help docs of Esphome:
logger:
level: VERBOSE
logs:
mqtt.component: DEBUG
mqtt.client: ERROR
But, i have other sensors on the board, and channot change debug level of “sensor” component.
There´s a way to change ONLY for one sensor ?
nickrout
(Nick Rout)
December 20, 2022, 8:50am
2
Why are you using verbose? If this is a test setup, you can probably do without uptime while testing can’t you?
I am also seeing my logs flooded with uptime sensor “changes”. My logs are just at the default level (debug, not verbose):
logger:
This is annoying, because the uptime sensor is generally helpful, but when it changes constantly, the history ends up looking like this:
even though the values are not really changing:
What’s going on here?
EDIT: It turns out this is caused by the UniFi Network integration, not ESPHome. Both integrations for this device are somehow merged on my setup, only showing as one device, and making it difficult to tell which entity is coming from which integration.
EDIT 2: Here is what appears to be the related issue in the UniFi integration
opened 09:22AM - 09 Oct 23 UTC
integration: unifi
### The problem
In the logbook (recorder) I see events every few seconds for … each Unifi Network device that its uptime has changed.
The uptime changes from (for example) 13:54 to 13:53, and then back to 13:54, and this process repeats itself constantly.
This floods the logbook, as it happens for each device.
I tried to reload the integration, restart the Unifi devices, but nothing helps.
### What version of Home Assistant Core has the issue?
core-2023.10.1
### What was the last working version of Home Assistant Core?
core-2023.9.3
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
Unifi Network
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifi/
### Diagnostics information
![image](https://github.com/home-assistant/core/assets/77859037/ccc90c97-ad10-4862-88c6-c5171459d1ef)
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_