zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Map takes forever to load, or doesn't load at all...

Open pauloon opened this issue 4 years ago • 21 comments

What happened?

Map takes a looong time to load and most of the times does not finish loading at all.

image

I have only 43 devices. Using HASS with Z2M and a Sonoff Zig USB adapter. All updated.

Tryed many solutions, removed power reporting from most devices to "uncllog" the network but it does not appear to work much. Tried cleaning the USB contacts also.

Can you help?

Thanks Paulo.

What did you expect to happen?

The map to show up correctly and in a short time.

How to reproduce it (minimal and precise)

Start Z2M, go to the admin and request Map do load...

Zigbee2MQTT version

1.28.0 commit: unknown

Adapter firmware version

20220219

Adapter

SONOFF Zigbee 3.0

Debug log

log.txt

pauloon avatar Oct 22 '22 19:10 pauloon

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Nov 22 '22 00:11 github-actions[bot]

I know that this is not a priority, but I wouldn't like it to get lost....

pauloon avatar Nov 22 '22 01:11 pauloon

Hi, same here ! zigbee2mqtt HA addon 1.28.2-1

mathieu-mp avatar Nov 23 '22 13:11 mathieu-mp

Hi, I have the same.

info  2022-12-05 01:22:20: Logging to console and directory: '/app/data/log/2022-12-05.01-22-20' filename: log.txt
info  2022-12-05 01:22:20: Starting Zigbee2MQTT version 1.28.2 (commit #360a777)
info  2022-12-05 01:22:20: Starting zigbee-herdsman (0.14.68)

installed by docker-compose:

services:
  zigbee2mqtt:
    container_name: zigbee2mqtt
    image: koenkk/zigbee2mqtt                                                                                                                                                                                      

ghost avatar Dec 05 '22 00:12 ghost

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jan 05 '23 00:01 github-actions[bot]

I have the same issue

UPDATE: it just takes much longer than "2 minutes". Especially when you have "dead" devices.

DenisBY avatar Mar 09 '23 10:03 DenisBY

I now have this problem with zigbee2mqtt 1.33.2 (it wasn't the case before) even when waiting overnight (and not only 2mn 😁 ). More precisely: I manage to load the map after a Z2M restart. It's even possible to launch several mappings in a row, but if you wait a while it's no longer possible to do a single one before restarting Z2M again.

merlinpimpim avatar Nov 03 '23 17:11 merlinpimpim

Hello, following this - mine has been fine for months - i'm on 1.35.1-1 using a sonoff dongle coordinator plugged into usb on a NUC running HA in proxmox. I'm now getting this behaviour and need to restart the zigbee2mqtt bridge every day as some devices become unresponsive and the map never loads (unless after a restart). I am starting to look at usb extension lengths to move it further away from interference but I don't really know if that is the issue or if its the coordinator, any of the devices or something else. Wifi is via Eero which I dont think I can change channels on. Would just like a steer on what I should really be concentrating on first. Thanks

timmo65 avatar Jan 25 '24 18:01 timmo65

If it's any help: when these problems occur, I've found that completely switching off (electrically) my system (Khadas + HA supervised + SkyConnect + Z2M), and not just rebooting it, means that it works for several days!

merlinpimpim avatar Jan 25 '24 20:01 merlinpimpim

If it's any help: when these problems occur, I've found that completely switching off (electrically) my system (Khadas + HA supervised + SkyConnect + Z2M), and not just rebooting it, means that it works for several days!

Thanks - I will try anything. I got a 2m usb2 extension (was 1m usb3) and also found a device (smart plug) not powered on at the wall switch in the network - so enabled that. Will see - thanks for the response. I notice a few new issues on here for things similar to this with problems with the zigbee2mqtt network.

timmo65 avatar Jan 26 '24 12:01 timmo65

Having said that, we have to accept that not everything works in a stable manner if we don't use an adapter from the "Recommended" section (which is my case with the SkyConnect): https://www.zigbee2mqtt.io/guide/adapters/ On the other hand, it would be nice if adapters that have been in the "Experimental" section for a long time could one day be managed without any problems (time flies...)! 😁 @Koenkk

merlinpimpim avatar Jan 26 '24 13:01 merlinpimpim

Hello, following this - mine has been fine for months - i'm on 1.35.1-1 using a sonoff dongle coordinator plugged into usb on a NUC running HA in proxmox. I'm now getting this behaviour and need to restart the zigbee2mqtt bridge every day as some devices become unresponsive and the map never loads (unless after a restart). I am starting to look at usb extension lengths to move it further away from interference but I don't really know if that is the issue or if its the coordinator, any of the devices or something else. Wifi is via Eero which I dont think I can change channels on. Would just like a steer on what I should really be concentrating on first. Thanks

An update on this but not 100% sure where the problem was as i have updated z2m a couple of times since this post and also replaced the Sonoff dongle E with a lan connected smlight slzb06 ( I got the M experimental version by mistake but it seems ok). I flashed the sonoff with router firmware and now use that in the network. Actually doing this was a lot easier than i thought it would be. The map loads quickly now and more reliably and I am not having to restart the addon as devices are now not going offline. I think it is fixed so likely was the usb attached dongle causing interference.

timmo65 avatar Feb 08 '24 17:02 timmo65

Personally, I think my issues stemmed from the Lixee device whose adventures are recounted here: https://github.com/Koenkk/zigbee2mqtt/issues/21198

merlinpimpim avatar Feb 08 '24 18:02 merlinpimpim

I have the same issue

UPDATE: it just takes much longer than "2 minutes". Especially when you have "dead" devices.

same here. I've IKEA light that, some times, I manualy switch off, cut AC power, with traditional switch so it became "dead" and generates error on z2m and map doesen't load.

lperco avatar Aug 21 '24 07:08 lperco

It seems indeed that unreachable elements are the culprit here. I have a 7 unreachable elements and it took over half an hour to build the map (I have 86 elements, including the 7 unreachable ones)

dajomas avatar Aug 28 '24 06:08 dajomas

After I activated "Availability (advanced)" Zigbee2MQTT marks offline devices. GREAT!

Since "Availability (advanced)" is activated the map doesn't load anymore.

@Koenkk: The issue should be reopened. Many thanks.

drueppela avatar Oct 30 '24 10:10 drueppela

After I activated "Availability (advanced)" Zigbee2MQTT marks offline devices. GREAT!

Since "Availability (advanced)" is activated the map doesn't load anymore.

@drueppela, i'm sorry but I did not understand whether this settings "Zigbee2MQTT > Settings > Availability > Availability (Advanced)" solved the map loading issue for you... or not?

mathieu-mp avatar Oct 30 '24 16:10 mathieu-mp

In addition, a UI problem: if a timeout is set to advanced mode and you click on Availability (simple) then click again on Availability (advanced) (without submitting), the timeout value reverts to the default value (1500 for passive for example), but only visually.

merlinpimpim avatar Oct 30 '24 17:10 merlinpimpim

Found the problem: If I set docker-compose-file

environment:
 - Z2M_WATCHDOG=default

The watchdog will kill requests to devices which are not available yet. So the timeout will never reach the card-building processing. Disable that environment-var solves the card-problem for me immediately.

tackin avatar Nov 28 '24 16:11 tackin

I can confirm, that if Availability is enabled, Map won't load. Tried on my network with 150 devices. Otherwise, it will load on like 3 minutes.

honzis1364 avatar Jan 26 '25 13:01 honzis1364