-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: New Health extension & extras in bridge/info
#27164
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
Conversation
|
Looks good, can be merged once #27732 is merged, I will prep the docs pr |
|
The types package is not necessary for this PR to be merged. |
|
Thanks! |
|
One for @Nerivec I guess? I've been struggling for an extended period to get my Z2M reliable and whilst I think I have addressed all the issues that seemed to address interference I've since moved onto removing devices that are potentially flooding the network. This has of course led me to the recently introduced Health tab under Settings and I can see some devices have a message count many times greater than others. https://www.zigbee2mqtt.io/devices/BASICZBR3.html#sonoff-basiczbr3 Is it correct to infer that message counts as high as 10,000 in 2-3 days (where battery devices such as temp / humidity sensors have circa 1500 message count) is reflecting these items to be spamming my network?
I've removed one or two devices that had higher message count(s) and have been monitoring things pending the inevitable devices going offline. I've recently changed some settings (ie backoff) but had previously set timeouts for mains devices to 30 minutes. I'm just not sure on the significance of message counts etc (or aware of any measures to reduce the volume of messages coming from such) in regard to contributing to a more stable network. In the short term by using the new health tab to gauge quantity of messages and devices tab filtered on last seen I can determine which devices are constantly the most "chatty" but other than removing them and trying alternatives not sure of the clues that are being presented here. Any pointers as to what is normal / acceptable and what needs to be acted upon? |
|
Note: please create a discussion next time, instead of asking in a pull request. You can have very high differences in To determine spammy devices with WindFront, you should rely on the
You can, for supporting devices, adjust the reporting (see Parameters paragraph) to lower the messages (this can have a massive impact, especially if you don't need some reporting, but unfortunately a lot of lower quality devices don't support this well - or at all). |

bridge/infoAdd the following data:
os.version(),os.release(),os.arch()process.versionos.cpus()os.totalmem()bridge/healthNew API endpoint published at configured interval (10 minutes by default).
The
reset_on_checkconfig allows to reset all possible stats after every check (instead of keeping a record since start). Currently: all device stats, mqtt.received, mqtt.published.system stats:
os.loadavg()(not supported on Windows)os.totalmem()-os.freemem()os.freemem()/os.totalmem()process.uptime()process.memoryUsage().rssprocess.memoryUsage().rss/os.totalmem()mqtt stats:
device stats: