Skip to content
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

Network Map is generating few hours or never #5231

Closed
Mr-Groch opened this issue Dec 9, 2020 · 14 comments
Closed

Network Map is generating few hours or never #5231

Mr-Groch opened this issue Dec 9, 2020 · 14 comments
Labels
problem Something isn't working

Comments

@Mr-Groch
Copy link

Mr-Groch commented Dec 9, 2020

What happened

My network map is generating few hours (2-5 hours) or even sometimes it won't generate (at least when I'm waiting for it over 6 hours). This behaviour is always repeatable. My network contains 40 devices and I don't have any problems with responsivity or stability of my network. At least I haven't noticed any problems with setting or getting repsonse from any device when I wanted too.

This my network map looks like (default view):
1

And view with all route types on:
2

Here is full debug log - network scan is started at 2020-12-08 22:26:29 and ended at 2020-12-09 02:34:18:
http://groch.cloud/misc/z2m_debug_log_20201208.zip

What did you expect to happen

Network map should generate maximum 2 minutes, as described in frontend.

How to reproduce it (minimal and precise)

Jus start network map from frontend or from zigbee2mqtt Node-Red addon

Debug info

Zigbee2MQTT version: 1.16.2
Adapter hardware: CC26X2R1 zzh!
Adapter firmware version: 20201113

@Mr-Groch Mr-Groch added the problem Something isn't working label Dec 9, 2020
@Koenkk
Copy link
Owner

Koenkk commented Dec 9, 2020

Can you provide the herdsman debug log of this?

To enable herdsman debug logging, see https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging

@Mr-Groch
Copy link
Author

Mr-Groch commented Dec 9, 2020

Yes I can. Lucky, this time, after enabling herdsman debug logging and zigbee2mqtt restart, generating network map took only about 13 minutes (I have observed that generating network map takes longer as z2m uptime is longer). But so quick network map is an exception rather than the rule (only after fresh z2m start).

http://groch.cloud/misc/z2m_herdsman_debug_log_20201209.zip

@Koenkk
Copy link
Owner

Koenkk commented Dec 10, 2020

The delay is increasing because the queue is getting bigger and bigger. I see many read request towards 0x842e14fffe186b71 and 0x842e14fffe126280, what devices are this?

@Mr-Groch
Copy link
Author

Both are BlitzWolf BW-SHP13 plugs (https://www.zigbee2mqtt.io/devices/TS0121_plug.html). I don't have any noticable problems with them. Both are responding quick and power measurements are continuously reported.

@Koenkk
Copy link
Owner

Koenkk commented Dec 11, 2020

@Mr-Groch already had a feeling it were these. Can you set the measurement_poll_interval for both to 60 in your configuration.yaml:

Example:

devices:
  '0x12345678':
    measurement_poll_interval: 60

@Mr-Groch
Copy link
Author

I've changed measurement_poll_interval to 60 as you requested, and I can say that after 24 hours of z2m uptime, my network map is generation in less than 2 minutes! I have tried many times and always it will end in less than 2 minutes!

Are there any drabacks in measurement precision now? I'm using power meters in my statistics and automations...

@Koenkk
Copy link
Owner

Koenkk commented Dec 13, 2020

@Mr-Groch it will only update once every 60 seconds instead of 10 now.

@Mr-Groch
Copy link
Author

Next 24 hours uptime, and still network map generating in less than 2 minutes. Maybe I'll try to set measurement_poll_interval: 30 for test if that is still acceptable interval for zigbee network health?

@Koenkk
Copy link
Owner

Koenkk commented Dec 13, 2020

@Mr-Groch sounsd good

@Mr-Groch
Copy link
Author

measurement_poll_interval: 30 is also acceptable interval. My network map is generating 1-3 minutes after 2 days z2m uptime.

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Dec 17, 2020
Koenkk added a commit to Koenkk/zigbee2mqtt.io that referenced this issue Dec 17, 2020
@Koenkk
Copy link
Owner

Koenkk commented Dec 17, 2020

Thanks, I've changed the default interval to 60 seconds now (to be on the safe side) but of course people can also reduce this with measurement_poll_interval.

I assume this can be closed now.

@Koenkk Koenkk closed this as completed Dec 17, 2020
@septillion-git
Copy link

Glad I read this (in release notes of 1.17). I also noticed the negative impact of this plug. This plug is out for any power measuring in my setup then.

@grasponcrypto
Copy link

The delay is increasing because the queue is getting bigger and bigger. I see many read request towards 0x842e14fffe186b71 and 0x842e14fffe126280, what devices are this?

can i ask what you saw in the log (logfile no longer available) to indicate this behavior? I believe I am seeing a similar issue, but not sure what to look for.

@titom43
Copy link

titom43 commented Nov 21, 2023

Hi all,

Same thing here... And same request that @grasponcrypto...

Thank you in advance.
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants