-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chatty logs slow down Z2M #114
Comments
One of the messages:
After I opened the ticket, the messages popped up again, even with setting the logs "to file" only in Z2M |
The first messages when I press deploy are of a different kind, like:
Nothing more - I only know there are some devices that don't have certain converters. These only show up after deploy. The rest shows up after about a minute - so I was triggered by the |
Privyet Andrey,
I noticed that when this NR-node is enables, a lot of debug/warning messages show up in Z2M frontend. And the weird part: many errors are for disabled devices that are not mentioned in NR: no route to host.
Context: I've got 145 devices here, of which 40+ (temporarily) removed or currently out of battery. Also, various devices have experimental support in zigbee2mqtt.
It took some time to find out what was causing the problem. When I use a normal mqtt node, all works fine and response-times is good. But when I use this node, I get continuous error messages on the Z2M frontend to a level I can't manage to press buttons at the right of the screen. When I turn off NR, it stops after a few minutes. Also, it all becomes so slow, that it sometimes takes minutes before there is a response.
I have now configured Z2M to only log to files, but still I'd like to understand what is causing it. My guess is that on a certain interval it requests the list of devices, that triggers Z2M to show all errors and then can't keep up with showing the messages.
I'm not fully understanding the code, so I did manage to break things, but could not slow the interval. :)
Is there is a regular check that is triggering Z2M to check for the errors? Is the device-list refreshed every minute? If so, is it possible to adapt it to the number of devices?
There might be bugs in Z2M. If I understand what is causing it, then I'll discuss in that project.
The text was updated successfully, but these errors were encountered: