It was originally disabled. However, per the request of the HASS team, it was enabled. I would recommend adjusting the unifi component logging level: https://home-assistant.io/components/logger/. I changed my device_tracker unifi component specifically to “critical”.
FYI, it seems impossible to block this warning using the logging level. It doesn’t appear to be the unifi component which blurts out the error, but it IS the unifi component which CAUSES the error to be blurted out.
Also I’m not the only one having problems with this. 0.44.2 problems
If the logger doesn’t block the messages, that’s a pretty serious issue then. Looks like I will have to disable the use of the unifi tracker until this is resolved.
If capture is True, warnings issued by the warnings module will be redirected to the logging system. Specifically, a warning will be formatted using warnings.formatwarning() and the resulting string logged to a logger named ‘py.warnings’ with a severity of WARNING.
This means that in order to suppress these error messages you need to configure something like the following in your configuration.yaml:
I am running Home Assistant in a docker on my Unraid server. These errors are flooding my logs at an incredible rate, and they always seem to wait until I am asleep. A few mornings in a row I woke up to notifications on my phone about my docker.img file being out of space. I narrowed it down to the homeassistant container, and then to these errors. In this situation, it is not only flooding home-assistant.log with the errors, but also my docker container log. Both of these files went up to 15GB each. Crazy.
So I wiped out my home-assistant.log file, and nuked my docker.img and started over (keeping my config files obviously). I added this to my config:
logger:
default: info
logs:
py.warnings: error
with default: info you will get a ton more in your log files (I didn’t catch this either before trying it). So I tried again, like this:
logger:
default: warning
logs:
py.warnings: error
I figured this way, I will get anything “warning” or above, while cutting out the “py.warning” junk from the Unifi component. This worked! Or at least it seemed to…
This morning, once again, I woke up to notifications that my docker.img file was almost full again. I stopped the container and looked at the container logs, now I am seeing the exact same message but with “ERROR” instead of “WARNING”. It’s like playing whack-a-mole with logging levels.
Yup, same here. I had to disable the unifi device tracker. Too bad, when it worked it was excellent. These APs are so good, I was connecting as soon as I pulled into my driveway. Looks like I am going back to Owntracks/Tasker/MQTT.
Has anyone re-enabled the unifi tracker component after updating to 0.47.0? I have not yet, but plan to next weekend when I can more closely monitor the logs.
I’m now seeing this behavior running against a unifi instance on hass version 0.57.2. Disabling the Unifi component removes the error. Has anyone had this behavior return recently? It is just crushing my logs, and disabling logging for the unifi component doesn’t resolve the issue.