azuwis / zigbee2mqtt-networkmap

Home Assistant Custom Card to show Zigbee2mqtt network map
251 stars 18 forks source link

Installed via HACS, map not showing #32

Closed Caroga closed 3 years ago

Caroga commented 3 years ago

Describe the bug Map not loading. When pressing the refresh button I do see the request initiated in zigbee2mqtt, but the results are not loaded/shown.

Screenshots image

Home Assistant version Home Assistant 2021.8.3

Zigbee2mqtt version 1.21.0

OS and browser version Ubuntu (using docker)

Error message on browser none.

State attributes of sensor.zigbee2mqtt_networkmap On Home Assistant, go to Menu -> Developer tools -> STATES -> sensor.zigbee2mqtt_networkmap -> Click the link and scroll up, find State attributes (JSON, optional), image

Home Assistant log Nothing related was found, here is a complete copy from start of container till me pressing the refresh button

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2021-08-17 17:47:30 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-08-17 17:47:30 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-08-17 17:48:15 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'click' when rendering '{{ value_json.click }}'
2021-08-17 17:48:15 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'click' when rendering '{{ value_json.click }}'

Additional context Config files accordingly:

sensors:
  - platform: mqtt
    name: Zigbee2mqtt Networkmap
    # if you change base_topic of Zigbee2mqtt, change state_topic accordingly
    state_topic: zigbee2mqtt/bridge/response/networkmap
    value_template: >-
      {{ now().strftime('%Y-%m-%d %H:%M:%S') }}
    # again, if you change base_topic of Zigbee2mqtt, change json_attributes_topic accordingly
    json_attributes_topic: zigbee2mqtt/bridge/response/networkmap
    json_attributes_template: "{{ value_json.data.value | tojson }}"

# card configuration
type: custom:zigbee2mqtt-networkmap
entity: sensor.zigbee2mqtt_networkmap
mqtt_base_topic: zigbee2mqtt
force: 3000
node_size: 16
font_size: 12
link_width: 2
height: 400
css: |
  :host {
    --zigbee2mqtt-networkmap-node-color: rgba(18, 120, 98, .7);
    --zigbee2mqtt-networkmap-node-fill-color: #dcfaf3;
    --zigbee2mqtt-networkmap-node-pinned-color: rgba(190, 56, 93, .6);
    --zigbee2mqtt-networkmap-link-color: rgba(18, 120, 98, .5);
    --zigbee2mqtt-networkmap-hover-color: #be385d;
    --zigbee2mqtt-networkmap-link-selected-color: rgba(202, 164, 85, .6);
    --zigbee2mqtt-networkmap-label-color: #127862;
    --zigbee2mqtt-networkmap-arrow-color: rgba(18, 120, 98, 0.7);
    --zigbee2mqtt-networkmap-node-coordinator-color: rgba(224, 78, 93, .7);
    --zigbee2mqtt-networkmap-node-router-color: rgba(0, 165, 255, .7);
  }

I am hoping you could help me configure this properly. I installed using HACS btw. Thank you very much!

azuwis commented 3 years ago

Please try the new release v0.7.0

leranp commented 3 years ago

Same problem for me, tried to delete cache

Caroga commented 3 years ago

Release 0.7.0 is showing the same problem. I cannot find any relevant logs to help debug this. Is there anything I could do?

Caroga commented 3 years ago

Removing the component completely, restarting HA and then installing it by HACS works. The map is now showing again. Thank you very much for your quick help!