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

[question] Network Graph is a flat line #739

Closed
bushvin opened this issue Feb 25, 2021 · 125 comments · Fixed by #796, #999 or #1038
Closed

[question] Network Graph is a flat line #739

bushvin opened this issue Feb 25, 2021 · 125 comments · Fixed by #796, #999 or #1038
Assignees
Labels
question Further information is requested

Comments

@bushvin
Copy link
Contributor

bushvin commented Feb 25, 2021

I have recently adopted ZwaveJS2MQTT, and everything seems to work.

I took the time to perform cleanups, as previous Zwave Control Panels lacked some cleanup features.

My network Graph is a flat line with the controller to the left (in the right purple colour) and all other nodes to the right in grey.
Grey seems to indicate they are not connected, however I can assure you they are, as I can control my nodes

I have not checked all nodes, but those I did, did have 'neighbors' (in the debug section of a node).

I have attached the debug info of my Zwave controller (a Z-Wave.ME UZB) and one of the nodes for reference.

controller.json.txt
node-006.json.txt

I have tested it on Firefox v85.0.1 and Chromium v88.0.4324.150

Any pointers?

@bushvin bushvin added the question Further information is requested label Feb 25, 2021
@robertsLando
Copy link
Member

Could you also attach a screenshot?

@bushvin
Copy link
Contributor Author

bushvin commented Feb 25, 2021

detail
overview
Here you go

@robertsLando
Copy link
Member

@bushvin While you have browser open try to press F12 (chrome) and check if there are errors on console. If so send me a screenshot or the logs you find there

@bushvin
Copy link
Contributor Author

bushvin commented Feb 25, 2021

There are no messages whatsoever.
I should have mentioned that I made sure there were none. Apologies.

@robertsLando
Copy link
Member

robertsLando commented Feb 25, 2021

Hummm strange. I would need a nodes dump so, you could use mqtt apis and require getNodes api https://zwave-js.github.io/zwavejs2mqtt/#/guide/mqtt?id=apis

Topic <yourprefix>/_CLIENTS/ZWAVE_GATEWAY-<mqtt name>/api/getNodes/set
Payload: {args: []}

You should get the nodes on <yourprefix>/_CLIENTS/ZWAVE_GATEWAY-<mqtt name>/api/getNodes

I know it's not so user friendly right now but I may addd a button on UI to download a bump in future :)

@bushvin
Copy link
Contributor Author

bushvin commented Feb 25, 2021

I'm afraid that doesn't seem to get any result except for a 404
API

I got the MQTT name from the settings page
MQTT_name

@robertsLando
Copy link
Member

@bushvin Sorry maybe I didn't explained it well, that needs to be called using MQTT

@bushvin
Copy link
Contributor Author

bushvin commented Feb 25, 2021

Ah... my bad... :/

For future reference these were the commands executed:

To log to file:
mosquitto_sub -h mosquitto -p 1883 -u zwavejs2mqtt -P ******** -t 'zwave/#' -d |tee -a [email protected]

To send the command:
mosquitto_pub -h mosquitto -p 1883 -u zwavejs2mqtt -P ******** -t 'zwave/_CLIENTS/ZWAVE_GATEWAY-zwavejs2mqtt/api/getNodes/set' -m "{args: []}"

[email protected]

@robertsLando
Copy link
Member

@bushvin How are you building z2m? Git clone?

@bushvin
Copy link
Contributor Author

bushvin commented Feb 25, 2021

not building, running it in Docker

---
version: '3.7'
services:
  zwavejs2mqtt:
    container_name: zwavejs2mqtt
    image: zwavejs/zwavejs2mqtt:1.2.3
    restart: always
    tty: true
    stop_signal: SIGINT
    networks:
      - zwavejs
    devices:
      - '/dev/ttyACM0:/dev/ttyACM0'
    volumes:
      - zwavejs_store:/usr/src/app/store
    ports:
      - '8091:8091'
networks:
  zwavejs:
volumes:
  zwavejs_store:

@robertsLando
Copy link
Member

@bushvin Could you try using version 1.4.0?

@jmgiaever
Copy link
Contributor

This happens to me whenever the neighbors are unknown. What happens if you perform a heal?

@bushvin
Copy link
Contributor Author

bushvin commented Feb 26, 2021

@robertsLando
Running 1.4.0 now, and still the same result

@jmgiaever Running that now. keep you posted

@bushvin
Copy link
Contributor Author

bushvin commented Feb 26, 2021

@jmgiaever I do see your point in having bad nodes not reporting correct info, but why would that impact all nodes?
Just a thought...

@bushvin
Copy link
Contributor Author

bushvin commented Feb 26, 2021

The "Network Heal" didn't "cure" the issue.
But what I did discover, is that 2 nodes seem to be off
They do not report, and I cannot heal them
28 and 48.
Is it possible these are causing the issue?

@robertsLando
Copy link
Member

I sincerly never faced this problem. @AlCalzone ?

@AlCalzone
Copy link
Member

AlCalzone commented Feb 26, 2021

Please make a zwave-js log, loglevel debug or silly and attach it here as a file.

That log should probably include a re-interview of an affected node.

@bushvin
Copy link
Contributor Author

bushvin commented Mar 1, 2021

Apologies for my absence.
I made sure all dead nodes are gone, so now I only have live nodes.

The graph still shows a "flatline"

Which logs would you like me to put to "silly"?

  • General
  • Zwave

Are there any particular tasks you want me to perform while logging?

@robertsLando
Copy link
Member

robertsLando commented Mar 1, 2021

Zwave

@AlCalzone
Copy link
Member

Are there any particular tasks you want me to perform while logging?

Yep, re-interview one or two of the affected nodes.

@bushvin
Copy link
Contributor Author

bushvin commented Mar 1, 2021

Here's the log file. Hope this helps.
zwavejs_1.log.gz

@AlCalzone
Copy link
Member

Seems that at least node 6 knows its neighbors:

13:07:27.468 CNTRLR « [Node 006]   node neighbors received: 1, 9, 10, 11, 29, 30, 38, 42, 44, 48, 61
                      , 62, 77, 78, 79, 80, 81, 82, 85, 87, 89, 90, 91, 92, 93, 96, 97, 108, 109, 14
                      2
13:07:27.468 CNTRLR   [Node 006] Interview stage completed: Neighbors
13:07:27.491 CNTRLR   [Node 006] Interview completed
13:07:27.514 CNTRLR   [Node 006] The node is ready to be used

Not sure if it was this way before too.

@bushvin
Copy link
Contributor Author

bushvin commented Mar 1, 2021

Well, that was also in one of my original posts here.
The debug information of the nodes show they do know their neighbours.Is there a way to debug the graph through the web console?

@AlCalzone
Copy link
Member

Oh sorry I didn't see that. Not a problem on my end then :)

@robertsLando
Copy link
Member

The debug information of the nodes show they do know their neighbours. Is there a way to debug the graph through the web console?

Have you updated to latest 2.0.1 version?

@bushvin
Copy link
Contributor Author

bushvin commented Mar 1, 2021

I have now!

And still a flatline

@robertsLando
Copy link
Member

robertsLando commented Mar 2, 2021

@bushvin Ok seems I have found the problem here but I'm not 100% sure about the solution. ATM to draw a connection I check if a node can forward packets, the forward property is evaluated by node.ready && !node.failed && node.isListening the problem is that ALL your devices have the property isListening set to false. If I remove isListening from the previous formula I get this chart:

Schermata da 2021-03-02 10-00-35

Now the question is, would it be ok to remove the isListening from that formula or is it better to keep it there so a user actually know if a device is forwardning packets or not?

@AlCalzone
Copy link
Member

would it be ok to remove the isListening from that formula or is it better to keep it there so a user actually know if a device is forwardning packets or not?

It might give a false sense of safety if you think Node X is reachable via Y and Z, although it is actually not because Y and Z are sleeping 99.9% of the time.

@robertsLando
Copy link
Member

Ok let us know if replacing the controller fixes the problem :)

@andyboeh
Copy link

Replacing the controller and clearing the browser cache fixed it for me - the graph is working fine now!

@robertsLando
Copy link
Member

clearing the browser cache

Hummm this is kinda useless as I don't store any nodes information in cache, btw glad the issue is fixed now :)

@andyboeh
Copy link

That's strange - here's the whole story:
I use Firefox on Arch Linux - relatively up to date. Only one node had a connection to the controller, all others were disconnected. I checked the log at that time and could verify that all neighbors were reported correctly.
I then tried to open the control panel in Chromium and noticed that the connection graph was correct. So I switched back to Firefox, graph was still incorrect. Then I cleared the browser cache (really only the browser cache), reloaded and the graph was correct.

@robertsLando
Copy link
Member

robertsLando commented May 17, 2021

Weird, all data are sent via websockets... Let's see if someone else reports this, I will investigate

@andyboeh
Copy link

Aha, I might have found something - should I open a new bug report?

After adding a device, a full page reload seems to be necessary (clearing the cache is not required). Otherwise, the neighbors of the controller node are not updated in the graph (i couldn't capture the neighbors of the controller node in the screenshot, but device 10 was missing):

Untitled

@robertsLando
Copy link
Member

@andyboeh Yes please open a new bug to keep track of that :)

@blackmore190
Copy link

I have the problem, too. My controller has no neighbors... Resulting in flatline, healing the controller fails.
My controller is the z-wave.me USB Stick. I'm running zwavejs2mqtt as a HomeAssistant AddOn.

Do you have any suggestions what i can try to fix this?

Here are the corresponding logs:

2022-01-02 22:52:38.693 INFO ZWAVE: Success zwave api call refreshNeighbors {
'1': [ [length]: 0 ],
'2': [ 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, [length]: 11 ],
'3': [ 2, 4, 5, 6, 7, 8, 9, 10, 12, 13, [length]: 10 ],
'4': [ 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14, [length]: 11 ],
'5': [ 2, 3, 4, 6, 7, 8, 10, 12, [length]: 8 ],
'6': [ 2, 3, 4, 5, 7, 10, 11, 12, 14, [length]: 9 ],
'7': [ 2, 3, 4, 5, 6, 8, 10, 11, 14, [length]: 9 ],
'8': [ 2, 3, 4, 5, 7, 9, 10, 11, 12, 13, 14, [length]: 11 ],
'9': [ 2, 3, 4, 8, 10, 11, 12, 13, 14, [length]: 9 ],
'10': [ 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, [length]: 11 ],
'11': [ 2, 6, 7, 8, 9, 10, 12, 13, 14, [length]: 9 ],
'12': [ 2, 3, 4, 5, 6, 8, 9, 10, 11, 13, 14, [length]: 11 ],
'13': [ 2, 3, 4, 8, 9, 10, 11, 12, 14, [length]: 9 ],
'14': [ 2, 4, 6, 7, 8, 9, 10, 11, 12, 13, [length]: 10 ]
}
2022-01-02 22:57:42.154 INFO ZWAVE: Calling api healNode with args: [ 1, [length]: 1 ]
2022-01-02T21:57:42.157Z CNTRLR [Node 001] Healing node...
2022-01-02T21:57:42.158Z CNTRLR [Node 001] healing node...
2022-01-02T21:57:42.159Z CNTRLR » [Node 001] refreshing neighbor list (attempt 1)...
2022-01-02T21:57:56.156Z CNTRLR « [Node 001] refreshing neighbor list failed...
2022-01-02T21:57:56.156Z CNTRLR » [Node 001] refreshing neighbor list (attempt 2)...
2022-01-02T21:58:10.223Z CNTRLR « [Node 001] refreshing neighbor list failed...
2022-01-02T21:58:10.224Z CNTRLR » [Node 001] refreshing neighbor list (attempt 3)...
2022-01-02T21:58:24.229Z CNTRLR « [Node 001] refreshing neighbor list failed...
2022-01-02T21:58:24.230Z CNTRLR » [Node 001] refreshing neighbor list (attempt 4)...
2022-01-02T21:58:38.242Z CNTRLR « [Node 001] refreshing neighbor list failed...
2022-01-02T21:58:38.243Z CNTRLR » [Node 001] refreshing neighbor list (attempt 5)...
2022-01-02T21:58:52.272Z CNTRLR « [Node 001] refreshing neighbor list failed...
2022-01-02T21:58:52.273Z CNTRLR [Node 001] failed to update the neighbor list after 5 attempts, healing failed

@robertsLando
Copy link
Member

@blackmore190 Could you upload a full zwavejs logs please?

cc @AlCalzone

@AlCalzone
Copy link
Member

healNode on the controller shouldn't even be possible. The commands it uses are only meant for other nodes.

I'm not sure why the controller reports no neighbors. Maybe ask the manufacturer's support?

@blackmore190
Copy link

@andyboeh Replacing the controler solved your problem. Have you changed to another brand or just replacing "the same"? Which Controler or Controlers have you?

@robertsLando what do you mean by "full"?

Is this enough?

2022-01-03 22:06:36.374 INFO APP: GET /api/settings 304 81.446 ms - -
2022-01-03 22:06:36.458 INFO APP: GET /api/auth-enabled 304 17.463 ms - -
2022-01-03 22:06:36.467 INFO APP: GET /static/favicons/favicon-32x32.png 200 3.871 ms - 1831
2022-01-03 22:06:41.107 INFO ZWAVE: Calling api refreshNeighbors with args: [ [length]: 0 ]
2022-01-03T21:06:41.111Z CNTRLR Turning RF off...
2022-01-03T21:06:41.153Z CNTRLR » [Node 001] requesting node neighbors...
2022-01-03T21:06:41.185Z CNTRLR « [Node 001] node neighbors received:
2022-01-03T21:06:41.186Z CNTRLR » [Node 002] requesting node neighbors...
2022-01-03T21:06:41.208Z CNTRLR « [Node 002] node neighbors received: 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14
2022-01-03T21:06:41.208Z CNTRLR » [Node 003] requesting node neighbors...
2022-01-03T21:06:41.236Z CNTRLR « [Node 003] node neighbors received: 2, 4, 5, 6, 7, 8, 9, 10, 12
2022-01-03T21:06:41.236Z CNTRLR » [Node 004] requesting node neighbors...
2022-01-03T21:06:41.256Z CNTRLR « [Node 004] node neighbors received: 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14
2022-01-03T21:06:41.261Z CNTRLR » [Node 005] requesting node neighbors...
2022-01-03T21:06:41.284Z CNTRLR « [Node 005] node neighbors received: 2, 3, 4, 6, 7, 8, 10, 12
2022-01-03T21:06:41.284Z CNTRLR » [Node 006] requesting node neighbors...
2022-01-03T21:06:41.302Z CNTRLR « [Node 006] node neighbors received: 2, 3, 4, 5, 7, 10, 11, 12, 14
2022-01-03T21:06:41.303Z CNTRLR » [Node 007] requesting node neighbors...
2022-01-03T21:06:41.319Z CNTRLR « [Node 007] node neighbors received: 2, 3, 4, 5, 6, 8, 10, 11, 14
2022-01-03T21:06:41.319Z CNTRLR » [Node 008] requesting node neighbors...
2022-01-03T21:06:41.335Z CNTRLR « [Node 008] node neighbors received: 2, 3, 4, 5, 7, 9, 10, 11, 12, 13, 14
2022-01-03T21:06:41.335Z CNTRLR » [Node 009] requesting node neighbors...
2022-01-03T21:06:41.350Z CNTRLR « [Node 009] node neighbors received: 2, 3, 4, 8, 10, 11, 12, 13, 14
2022-01-03T21:06:41.351Z CNTRLR » [Node 010] requesting node neighbors...
2022-01-03T21:06:41.370Z CNTRLR « [Node 010] node neighbors received: 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14
2022-01-03T21:06:41.370Z CNTRLR » [Node 011] requesting node neighbors...
2022-01-03T21:06:41.387Z CNTRLR « [Node 011] node neighbors received: 6, 7, 8, 9, 10, 12, 13, 14
2022-01-03T21:06:41.388Z CNTRLR » [Node 012] requesting node neighbors...
2022-01-03T21:06:41.405Z CNTRLR « [Node 012] node neighbors received: 2, 3, 4, 5, 6, 8, 9, 10, 11, 13, 14
2022-01-03T21:06:41.405Z CNTRLR » [Node 013] requesting node neighbors...
2022-01-03T21:06:41.423Z CNTRLR « [Node 013] node neighbors received: 2, 4, 8, 9, 10, 11, 12
2022-01-03T21:06:41.423Z CNTRLR » [Node 014] requesting node neighbors...
2022-01-03T21:06:41.437Z CNTRLR « [Node 014] node neighbors received: 2, 4, 6, 7, 8, 9, 10, 11, 12
2022-01-03T21:06:41.437Z CNTRLR Turning RF on...
2022-01-03 22:06:41.451 INFO ZWAVE: Success zwave api call refreshNeighbors {
'1': [ [length]: 0 ],
'2': [ 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, [length]: 11 ],
'3': [ 2, 4, 5, 6, 7, 8, 9, 10, 12, [length]: 9 ],
'4': [ 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14, [length]: 11 ],
'5': [ 2, 3, 4, 6, 7, 8, 10, 12, [length]: 8 ],
'6': [ 2, 3, 4, 5, 7, 10, 11, 12, 14, [length]: 9 ],
'7': [ 2, 3, 4, 5, 6, 8, 10, 11, 14, [length]: 9 ],
'8': [ 2, 3, 4, 5, 7, 9, 10, 11, 12, 13, 14, [length]: 11 ],
'9': [ 2, 3, 4, 8, 10, 11, 12, 13, 14, [length]: 9 ],
'10': [ 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, [length]: 12 ],
'11': [ 6, 7, 8, 9, 10, 12, 13, 14, [length]: 8 ],
'12': [ 2, 3, 4, 5, 6, 8, 9, 10, 11, 13, 14, [length]: 11 ],
'13': [ 2, 4, 8, 9, 10, 11, 12, [length]: 7 ],
'14': [ 2, 4, 6, 7, 8, 9, 10, 11, 12, [length]: 9 ]
}
2022-01-03 22:06:48.889 INFO ZWAVE: Calling api beginHealingNetwork with args: [ [length]: 0 ]
2022-01-03T21:06:48.892Z CNTRLR starting network heal...
2022-01-03T21:06:48.892Z CNTRLR » [Node 001] requesting node neighbors...
2022-01-03 22:06:48.897 INFO ZWAVE: Controller status: Healing process IN PROGRESS. Healed 0 nodes
2022-01-03 22:06:48.899 INFO ZWAVE: Success zwave api call beginHealingNetwork true
2022-01-03T21:06:48.917Z CNTRLR « [Node 001] node neighbors received:
2022-01-03T21:06:48.918Z CNTRLR [Node 002] added to healing queue for listening nodes
2022-01-03T21:06:48.918Z CNTRLR [Node 003] added to healing queue for listening nodes
2022-01-03T21:06:48.918Z CNTRLR [Node 004] added to healing queue for listening nodes
2022-01-03T21:06:48.919Z CNTRLR [Node 005] added to healing queue for listening nodes
2022-01-03T21:06:48.919Z CNTRLR [Node 006] added to healing queue for listening nodes
2022-01-03T21:06:48.920Z CNTRLR [Node 007] added to healing queue for listening nodes
2022-01-03T21:06:48.920Z CNTRLR [Node 008] added to healing queue for listening nodes
2022-01-03T21:06:48.921Z CNTRLR [Node 009] added to healing queue for listening nodes
2022-01-03T21:06:48.921Z CNTRLR [Node 010] added to healing queue for listening nodes
2022-01-03T21:06:48.922Z CNTRLR [Node 011] added to healing queue for listening nodes
2022-01-03T21:06:48.922Z CNTRLR [Node 012] added to healing queue for listening nodes
2022-01-03T21:06:48.922Z CNTRLR [Node 013] added to healing queue for listening nodes
2022-01-03T21:06:48.923Z CNTRLR [Node 014] added to healing queue for listening nodes
2022-01-03T21:06:48.923Z CNTRLR [Node 002] healing node...
2022-01-03T21:06:48.924Z CNTRLR » [Node 002] refreshing neighbor list (attempt 1)...
2022-01-03T21:07:02.638Z CNTRLR « [Node 002] neighbor list refreshed...
2022-01-03T21:07:02.639Z CNTRLR » [Node 002] Deleting SUC return route...
2022-01-03T21:07:03.405Z CNTRLR » [Node 002] Assigning SUC return route...
2022-01-03T21:07:05.771Z CNTRLR » [Node 002] deleting return routes (attempt 1)...
2022-01-03T21:07:07.470Z CNTRLR » [Node 002] assigning return routes to the following nodes:
1
2022-01-03T21:07:07.471Z CNTRLR » [Node 002] assigning return route to node 1 (attempt 1)...
2022-01-03T21:07:09.802Z CNTRLR [Node 002] healed successfully
2022-01-03 22:07:09.803 INFO ZWAVE: Controller status: Healing process IN PROGRESS. Healed 1 nodes
2022-01-03T21:07:09.805Z CNTRLR » [Node 002] requesting node neighbors...
2022-01-03T21:07:09.837Z CNTRLR « [Node 002] node neighbors received: 3, 4, 5, 6, 8, 9, 12, 13
2022-01-03T21:07:09.838Z CNTRLR [Node 003] healing node...
2022-01-03T21:07:09.839Z CNTRLR » [Node 003] refreshing neighbor list (attempt 1)...
2022-01-03T21:07:20.120Z CNTRLR « [Node 003] neighbor list refreshed...
2022-01-03T21:07:20.122Z CNTRLR » [Node 003] Deleting SUC return route...
2022-01-03T21:07:24.912Z CNTRLR » [Node 003] Assigning SUC return route...
2022-01-03T21:07:31.506Z CNTRLR » [Node 003] deleting return routes (attempt 1)...
2022-01-03T21:07:37.948Z CNTRLR » [Node 003] assigning return routes to the following nodes:
1
2022-01-03T21:07:37.950Z CNTRLR » [Node 003] assigning return route to node 1 (attempt 1)...
2022-01-03T21:07:44.508Z CNTRLR [Node 003] healed successfully
2022-01-03 22:07:44.510 INFO ZWAVE: Controller status: Healing process IN PROGRESS. Healed 2 nodes
2022-01-03T21:07:44.524Z CNTRLR » [Node 003] requesting node neighbors...
2022-01-03T21:07:44.561Z CNTRLR « [Node 003] node neighbors received: 2, 4, 5, 6, 8, 9, 10, 12, 13, 14
2022-01-03T21:07:44.562Z CNTRLR [Node 004] healing node...
2022-01-03T21:07:44.563Z CNTRLR » [Node 004] refreshing neighbor list (attempt 1)...
2022-01-03T21:07:49.128Z CNTRLR « [Node 004] refreshing neighbor list failed...
2022-01-03T21:07:49.129Z CNTRLR » [Node 004] refreshing neighbor list (attempt 2)...
2022-01-03T21:07:53.620Z CNTRLR « [Node 004] refreshing neighbor list failed...
2022-01-03T21:07:53.621Z CNTRLR » [Node 004] refreshing neighbor list (attempt 3)...
2022-01-03T21:07:58.018Z CNTRLR « [Node 004] refreshing neighbor list failed...
2022-01-03T21:07:58.018Z CNTRLR » [Node 004] refreshing neighbor list (attempt 4)...
2022-01-03T21:08:02.601Z CNTRLR « [Node 004] refreshing neighbor list failed...
2022-01-03T21:08:02.602Z CNTRLR » [Node 004] refreshing neighbor list (attempt 5)...
2022-01-03 22:08:03.321 INFO APP: GET /health/zwave 200 3.457 ms - 1873
2022-01-03T21:08:06.994Z CNTRLR « [Node 004] refreshing neighbor list failed...
2022-01-03T21:08:06.995Z CNTRLR [Node 004] failed to update the neighbor list after 5 attempts, healing failed
2022-01-03 22:08:06.996 INFO ZWAVE: Controller status: Healing process IN PROGRESS. Healed 3 nodes
2022-01-03T21:08:06.998Z CNTRLR » [Node 004] requesting node neighbors...
2022-01-03T21:08:07.032Z CNTRLR « [Node 004] node neighbors received: 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14
2022-01-03T21:08:07.033Z CNTRLR [Node 005] healing node...
2022-01-03T21:08:07.034Z CNTRLR » [Node 005] refreshing neighbor list (attempt 1)...
2022-01-03T21:08:12.108Z CNTRLR « [Node 005] neighbor list refreshed...
2022-01-03T21:08:12.109Z CNTRLR » [Node 005] Deleting SUC return route...
2022-01-03T21:08:13.197Z CNTRLR » [Node 005] Assigning SUC return route...
2022-01-03 22:08:13.347 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03 22:08:13.371 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03 22:08:15.634 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03 22:08:15.722 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03 22:08:16.119 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03 22:08:16.168 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03 22:08:16.218 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03 22:08:16.774 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03 22:08:16.860 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03T21:08:17.361Z CNTRLR » [Node 005] deleting return routes (attempt 1)...
2022-01-03 22:08:17.402 INFO ZWAVE: Node 4: value updated: 50-1-value-65537 1.25 => 1.25
2022-01-03T21:08:20.321Z CNTRLR » [Node 005] assigning return routes to the following nodes:
1
2022-01-03T21:08:20.322Z CNTRLR » [Node 005] assigning return route to node 1 (attempt 1)...
2022-01-03T21:08:23.241Z CNTRLR [Node 005] healed successfully
2022-01-03 22:08:23.242 INFO ZWAVE: Controller status: Healing process IN PROGRESS. Healed 4 nodes
2022-01-03T21:08:23.245Z CNTRLR » [Node 005] requesting node neighbors...
2022-01-03T21:08:23.277Z CNTRLR « [Node 005] node neighbors received: 2, 3, 4, 6, 7, 8, 10, 11, 12, 14
2022-01-03T21:08:23.280Z CNTRLR [Node 006] healing node...
2022-01-03T21:08:23.281Z CNTRLR » [Node 006] refreshing neighbor list (attempt 1)...
2022-01-03T21:08:26.958Z CNTRLR « [Node 006] neighbor list refreshed...
2022-01-03T21:08:26.960Z CNTRLR » [Node 006] Deleting SUC return route...
2022-01-03T21:08:27.470Z CNTRLR » [Node 006] Assigning SUC return route...
2022-01-03T21:08:29.855Z CNTRLR » [Node 006] deleting return routes (attempt 1)...
2022-01-03T21:08:30.463Z CNTRLR » [Node 006] assigning return routes to the following nodes:
1
2022-01-03T21:08:30.478Z CNTRLR » [Node 006] assigning return route to node 1 (attempt 1)...
2022-01-03T21:08:32.707Z CNTRLR [Node 006] healed successfully
2022-01-03 22:08:32.708 INFO ZWAVE: Controller status: Healing process IN PROGRESS. Healed 5 nodes
2022-01-03T21:08:32.710Z CNTRLR » [Node 006] requesting node neighbors...
2022-01-03T21:08:32.737Z CNTRLR « [Node 006] node neighbors received: 2, 3, 4, 5, 7, 8, 10, 11, 12, 14
2022-01-03T21:08:32.738Z CNTRLR [Node 007] healing node...
2022-01-03T21:08:32.739Z CNTRLR » [Node 007] refreshing neighbor list (attempt 1)...
2022-01-03T21:08:37.399Z CNTRLR « [Node 007] neighbor list refreshed...
2022-01-03T21:08:37.400Z CNTRLR » [Node 007] Deleting SUC return route...
2022-01-03T21:08:38.477Z CNTRLR » [Node 007] Assigning SUC return route...
2022-01-03T21:08:41.012Z CNTRLR » [Node 007] deleting return routes (attempt 1)...
2022-01-03 22:08:44.588 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:44.664 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:44.794 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:44.862 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:44.940 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.036 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.066 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.219 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.252 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.313 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.410 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.440 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.589 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.650 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:45.857 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03 22:08:46.148 INFO ZWAVE: Node 4: value updated: 50-1-value-66049 0 => 0
2022-01-03T21:08:47.264Z CNTRLR » [Node 007] assigning return routes to the following nodes:
1
2022-01-03T21:08:47.265Z CNTRLR » [Node 007] assigning return route to node 1 (attempt 1)...

@andyboeh
Copy link

andyboeh commented Jan 3, 2022

Well, in the meantime, I switched to OpenWrt-flashed Smart Home Gateways that have a generic Z-Wave modules onboard (the device is a SERCOMM NA-502, I've got an ISP-branded version). I use ser2net to connect to the Z-Wave module.

@blackmore190
Copy link

That sounds pretty interesting! Is there a step-by-step guide to flashing and integrating with Homeassistant? Is it reliable? Does zigbee work as well?

@andyboeh
Copy link

andyboeh commented Jan 4, 2022

Since it's OT, I'll keep it short: You have to disassemble the NA502 and attach a serial console, the instructions are in the commit message: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=a3d8c1295ed9eeceabd78ab86e73b151ae2868a9

I don't have any ZigBee devices, but the controller is detected by the HA integration. I can do a write-up on this if/when I have some spare time.

@rrajath
Copy link

rrajath commented Jan 4, 2022

Hi,
I have the exact same problem as many people here (network graph showing a flat line with no connections), and the controller in my logs shows no neighbors. I've tried pretty much everything suggested here and in GitHub issue #2335 except replacing my controller.

Here's what I've tried so far:

  • cleared my browser cache (while trying in a different browser), also tried in incognito mode
  • healed the network multiple times
  • pulled out the stick, shutdown my RPi, turned it back on and put the stick back in a couple of times (and once to a different port)
  • removed "InterviewStage: Complete" line from homeid.json and restarted the ZWaveJS2MQTT add-on
  • finally, did a hard reset from the ZWaveJS UI

The hard reset removed all the nodes (as expected) and when I started adding them back one by one (I only added two nodes), I'm still getting a flat line and the controller still has no neighbors. I'm attaching my homeid.json and zwave logs (set to silly). nodes.json is empty (just has a pair of braces) for some reason, but I'll still attach it.

zwavejs2mqtt-store.zip
ee6dfcea.json.txt
nodes.json.txt

PS: For some reason, GitHub was complaining when I was trying to upload a json file, so I renamed it to .json.txt. Also, I have a nodes dump of my previous setup before doing a hard reset. Please let me know if providing that helps debugging this issue.

@AlCalzone
Copy link
Member

The neighbor information is stored in the controller memory and returned by the controller firmware. I don't think there is anything the host software (Z-Wave JS) can do if the information isn't accurate.

@rrajath
Copy link

rrajath commented Jan 4, 2022

Got it. Would you recommend replacing the controller? If so, do you know a good/reliable controller I can use?

@AlCalzone
Copy link
Member

Is there any need except a not-so-pretty network map that doesn't tell anything useful anyways?

Driver version 9 (in the works) will expose actual routing information on supporting controllers, which can then be used to draw an actually informative network map without relying on neighbor information.

@rrajath
Copy link

rrajath commented Jan 4, 2022

Oh, I honestly don't mind the flat network graph. I was just more worried about the connectivity of nodes to controller. What's happening in my network is that, if, say, a motion sensor triggers a few lights to turn on/off, sometimes there's quite a delay in turning on the lights and sometimes the lights don't turn off at all. My suspicion was that it's probably because controller doesn't have any neighbors which "maybe" adds to the delay? Also, sometimes the nodes become unavailable and I thought maybe the controller not being able to "see" the nodes (as neighbors) makes them be reported as unavailable. 🤷‍♂️

I'm trying to pinpoint to see if the issue is because of lack of neighbors or if it's something to do with the switches (Inovelli) I'm using.

@AlCalzone
Copy link
Member

If the controller actually had no neighbors, nothing should be working. I'm not sure why this information is reported in this way, but it doesn't seem to match reality.

@rrajath
Copy link

rrajath commented Jan 5, 2022

Interesting. Do you have any recommendations on how to proceed? :)

@blackmore190
Copy link

The interesting thing is: most of the time everything works.
My 13 nodes are all Fibaro Roller Shutter 3. 12 min after sunset all 13 shutters are closed. Now and then 1-4 shutters remain open, but can then be closed manually anyway via Homeassistant --> zwavejs2mqtt.

I also thought, if the controller does not know any neighbors no communication can take place... the practice shows however a different behavior.

But now a few observations: My controller was in the basement, there was sometimes a neighbor visible at the controller. My assumption was that the signal is bad, so I brought the controller to the ground floor and suddenly more than half of the nodes were visible as neighbors of the controller. But the very next day, no neighbors were visible.... But the network still works (most of the time).

@AlCalzone
Copy link
Member

Do you have any recommendations on how to proceed? :)

Asking the manufacturer support could be one idea.

@jgbaum
Copy link

jgbaum commented Jan 16, 2022

I'm having similar issues with a flat network graph:

image

Despite everything seemingly being well-connected:

2022-01-16 13:28:36.812 INFO ZWAVE: Success zwave api call refreshNeighbors {
'1': [ 19, 21, 22, 25, [length]: 4 ],
'3': [ 10, 15, 19, 21, 24, 26, 39, [length]: 7 ],
'10': [ 3, 19, 23, 24, 25, 28, 39, [length]: 7 ],
'11': [ 14, 23, 25, 27, 29, 30, [length]: 6 ],
'14': [ 11, 22, 23, 30, [length]: 4 ],
'15': [ 3, 19, 21, 24, 26, 27, 29, [length]: 7 ],
'19': [ 1, 3, 10, 15, 26, 27, 28, 29, 37, 39, [length]: 10 ],
'21': [ 1, 3, 15, 26, 27, 28, 29, 37, 39, [length]: 9 ],
'22': [ 1, 14, 26, 27, 29, 37, 39, [length]: 7 ],
'23': [ 10, 11, 14, 27, 29, 37, 39, [length]: 7 ],
'24': [ 3, 10, 15, 26, 27, 28, 29, 37, 39, [length]: 9 ],
'25': [ 1, 10, 11, 26, 27, 28, 29, 37, 39, [length]: 9 ],
'26': [ 3, 15, 19, 21, 22, 24, 25, 28, 29, 37, 39, [length]: 11 ],
'27': [ 11, 15, 19, 21, 22, 23, 24, 25, 28, 29, 30, 37, 39, [length]: 13 ],
'28': [ 10, 19, 21, 24, 25, 26, 27, 29, 37, 39, [length]: 10 ],
'29': [
11,
15,
19,
21,
22,
23,
24,
25,
26,
27,
28,
30,
37,
39,
[length]: 14
],
'30': [ 11, 14, 27, 29, [length]: 4 ],
'37': [ 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 39, [length]: 11 ],
'39': [ 3, 10, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 37, [length]: 13 ]
}

I'm running version 6.4.0 of zwajs2mqtt from the official docker image. Please let me know what other information I could provide to help resolve.

Thanks!

@AlCalzone
Copy link
Member

Despite everything seemingly being well-connected

Looks like your controller only lists your battery-powered as neighbors. And battery-powered nodes don't route, so there is no path from the controller to Node 3 for example. According to your neighbors list, there is no mesh - which is obviously not true, but that's what the controller tells zwave-js.

You could test out these steps (if you haven't already) and see if this changes things:
https://zwave-js.github.io/node-zwave-js/#/troubleshooting/connectivity-issues?id=general-troubleshooting
It has worked at least once, but no guarantee.

@jgbaum
Copy link

jgbaum commented Jan 17, 2022

OK I will try some of that. Thanks for pointing out that only the battery-operated nodes are connected to the controller...not sure why that is, but will look into it. Still, why would zwavejsmqtt not draw all of the links between the other devices?

@jgbaum
Copy link

jgbaum commented Jan 17, 2022

The USB extension did the trick! Now, nothing is more than 2 hops away from my controller. Thank you for the hints!

@blackmore190
Copy link

Do you have any recommendations on how to proceed? :)

Asking the manufacturer support could be one idea.

Thanks for this advice. I got a new zwave.me Stick for replacement and now the controller shows its neighbors. Hopefully this remains working reliable :-)

@AlCalzone
Copy link
Member

Still, why would zwavejsmqtt not draw all of the links between the other devices?

z2m tries to give you an idea of how the packets could be routed from and to the controller and uses that to layout the map. AFAIK the neighbor-lines between the nodes are only drawn as secondary info.

The USB extension did the trick! Now, nothing is more than 2 hops away from my controller

Then you had connectivity issues before. But thanks for confirming this also affects the map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment