Zigbee2mqtt: show the networkmap in home assistant

thank you. That is intersting, but repairing Xiaomi Zigbee Sockets first and that all devices which are alone did the trick. How all fine :slight_smile:

When I re-pair the sensors without shown connection, it gets fixed.

Hello all
I still get the 404 map not found error. I did everything as explained. I can find map here:

/home/homeassistant/.homeassistant/www/community/zigbee2mqtt_networkmap/map.html but no way to view the map from HA.

Can somebody help me?

Totally agree with your sentiment. It’s unfortunate there are toxic community members who are capable, but completely unwilling, to be helpful.

Go on, name names.

I have to say that is a pretty aggro message for your first post. Nevertheless, welcome to the community.

Hello all any feedback on my issue? somebody can help me?

Have you followed the instruction to add a panel_iframe to configuration.yaml?

Yes I did, this is what I wrote in my yaml file

webhook:
zigbee2mqtt_networkmap:

panel_iframe:
  networkmap:
    title: 'Zigbee Map'
    url: '/home/homeassistant/.homeassistant/custom_components/zigbee2mqtt_networkmap/www/map.html'
    icon: 'mdi:graphql'

click on the networkmap icon in home assistant’s panel - the one down the left hand side.

Cattura

This one?

Have you checked if there are any files in this folder? It seems you have not installed through HACS, as if not, the instructions are to use a different location:

 zigbee2mqtt_networkmap:
   #topic: your topic (optional, default zigbee2mqtt)
 panel_iframe:
   networkmap:
     title: 'Zigbee Map'
     url: '/local/community/zigbee2mqtt_networkmap/map.html'
     icon: 'mdi:graphql'

I recall I had to put in an automation to update it regularily:

- id: update_networkmap
  alias: 'Update Zigbee Map'  
  initial_state: true
  trigger:
    platform: time_pattern
    minutes: '/10'
    seconds: 00
  action:
    service: zigbee2mqtt_networkmap.update

Like the instructions say :slight_smile:

True. But I have to admit that the instructions on HACS are not mentioning the automation example. It only mentions "Otherwise you have to use the service “zigbee2mqtt_networkmap.update” ", so if you are new, it might not be that straight forward.

Thank you for the reply. I already did exactly what you wrote in the message and yes, the file is in the folder

Cattura

From dev console:

Cattura1

my url is
/local/community/zigbee2mqtt_networkmap/map.html

and my file is in

custom_components/zigbee2mqtt_networkmap/www/map.html

installed via hacs.

Awesome, i dont have the /local/community/zigbee2mqtt_networkmap/map.html path (and in my first attempt I had error using this path) but now looks it’s working on that path


Weird
 thank you guys :slight_smile:

moreover, now i don’t have 404 not found, I have the empty page and the map does not appears even if i trigger the automation you wrote above. Maybe I have to wait a while? I dont have any error in the log

Do you have that service in the developer tools?

Ys I have. if i trigger it, I dont see anything on the log and anything happens (apparently)

A point to test:

zigbee2mqtt posts the graph data to the mqtt topic zigbee2mqtt/bridge/networkmap/graphviz

Open two browser tabls pointing to your home assistant.

In browser tab 1 subscribe to the topic zigbee2mqtt/bridge/networkmap/graphviz in developer tools|mqtt and click “start listening”

In tab 2 navigate to developer tools/services and run the zigbee2mqtt_networkmap.update service

Switch back to tab 1 and see what, if anything, was received by the mqtt broker.

EDIT: you should get data like this

digraph G {
node[shape=record];
  "0x00124b001caa6cca" [style="bold, filled", fillcolor="#e04e5d", fontcolor="#ffffff", label="{Coordinator|0x00124b001caa6cca (0)|2020-06-10T20:42:09+12:00}"];
  "0x00124b001caa6cca" -> "0x00158d0002168d33" [penwidth=0.5, weight=0, color="#994444", label="55"]
  "0x00158d000126a826" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d000126a826|0x00158d000126a826 (37767)|Xiaomi MiJia door & window contact sensor (MCCGQ01LM)|2020-06-10T20:01:26+12:00}"];
  "0x00158d000126a826" -> "0x00124b001caa6cca" [penwidth=1, weight=0, color="#994444", label="150"]
  "0x00158d000278e63e" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d000278e63e|0x00158d000278e63e (28762)|Xiaomi Mi/Aqara smart home cube (MFKZQ01LM)|2020-06-10T20:39:57+12:00}"];
  "0x00158d000278e63e" -> "0x00124b001caa6cca" [penwidth=1, weight=0, color="#994444", label="93"]
  "0x00158d00012dd7e3" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d00012dd7e3|0x00158d00012dd7e3 (29987)|Xiaomi MiJia wireless switch (WXKG01LM)|2020-06-10T19:50:19+12:00}"];
  "0x00158d00012dd7e3" -> "0x00124b001caa6cca" [penwidth=1, weight=0, color="#994444", label="121"]
  "0x00158d0001101cbb" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d0001101cbb|0x00158d0001101cbb (27994)|Xiaomi MiJia wireless switch (WXKG01LM)|2020-06-10T20:20:28+12:00}"];
  "0x00158d0001101cbb" -> "0x00124b001caa6cca" [penwidth=1, weight=0, color="#994444", label="139"]
  "0x00158d000126b7bf" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{0x00158d000126b7bf|0x00158d000126b7bf (52979)failed: lqi|Xiaomi Mi power plug ZigBee (ZNCZ02LM)|2020-06-10T20:41:39+12:00}"];
  "0x00158d000126b7bf" -> "0x00124b001caa6cca" [penwidth=0.5, weight=0, color="#994444", label="92"]
  "0x00158d000126b7bf" -> "0x00158d0002168d33" [penwidth=0.5, weight=0, color="#994444", label="46"]
  "0x00158d0002168d33" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{0x00158d0002168d33|0x00158d0002168d33 (15362)|Xiaomi Mi power plug ZigBee (ZNCZ02LM)|2020-06-10T20:41:59+12:00}"];
  "0x00158d0002168d33" -> "0x00124b001caa6cca" [penwidth=0.5, weight=0, color="#994444", label="55"]
  "0x00158d00023e32e9" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d00023e32e9|0x00158d00023e32e9 (21388)|Xiaomi Aqara human body movement and illuminance sensor (RTCGQ11LM)|2020-06-10T20:07:35+12:00}"];
  "0x00158d00023e32e9" -> "0x00124b001caa6cca" [penwidth=1, weight=0, color="#994444", label="111"]
  "0x00158d000236a237" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d000236a237|0x00158d000236a237 (10743)|Xiaomi Aqara human body movement and illuminance sensor (RTCGQ11LM)|2020-06-10T20:17:30+12:00}"];
  "0x00158d000236a237" -> "0x00124b001caa6cca" [penwidth=1, weight=0, color="#994444", label="95"]
  "0x00158d00026af046" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d00026af046|0x00158d00026af046 (22580)|Xiaomi MiJia door & window contact sensor (MCCGQ01LM)|2020-06-10T20:04:45+12:00}"];
  "0x00158d0002766804" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d0002766804|0x00158d0002766804 (28806)|Xiaomi MiJia door & window contact sensor (MCCGQ01LM)|2020-06-10T20:37:50+12:00}"];
  "0x00158d0002766804" -> "0x00124b001caa6cca" [penwidth=1, weight=0, color="#994444", label="125"]
  "0x00158d000236a246" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d000236a246|0x00158d000236a246 (53415)|Xiaomi Aqara human body movement and illuminance sensor (RTCGQ11LM)|2020-06-10T20:16:45+12:00}"];
  "0x00158d000236a246" -> "0x00124b001caa6cca" [penwidth=1, weight=0, color="#994444", label="61"]
  "0x00158d00020d7a36" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d00020d7a36|0x00158d00020d7a36 (16550)|Xiaomi MiJia temperature & humidity sensor (WSDCGQ01LM)|2020-06-10T20:04:35+12:00}"];
  "0x00158d00020d7b0a" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d00020d7b0a|0x00158d00020d7b0a (15645)|Xiaomi MiJia temperature & humidity sensor (WSDCGQ01LM)|2020-06-10T20:21:20+12:00}"];
  "0x00158d000236a15a" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{0x00158d000236a15a|0x00158d000236a15a (19430)|Xiaomi Aqara human body movement and illuminance sensor (RTCGQ11LM)|2020-06-10T20:31:14+12:00}"];
}