zwave-js / node-zwave-js

Z-Wave driver written entirely in JavaScript/TypeScript
https://zwave-js.github.io/node-zwave-js/
MIT License
755 stars 608 forks source link

Cannot include node: handling add node request (status = Failed) #5225

Closed darkbasic closed 1 year ago

darkbasic commented 1 year ago

Is your problem within Home Assistant (Core or Z-Wave JS Integration)?

NO, my problem is NOT within Home Assistant or the ZWave JS integration

Is your problem within Z-Wave JS UI (formerly ZwaveJS2MQTT)?

NO, my problem is NOT within Z-Wave JS UI

Checklist

Describe the bug

What causes the bug? Whenever I try to include the node it fails.

What do you observe? It fails to include the node.

What did you expect to happen? It should include the node or give a more useful reason for the failure.

Steps to reproduce the behavior:

  1. Go to 'Actions'
  2. Click on 'Manage Nodes'
  3. Click on 'Next' (for Inclusion)
  4. Add a name and location
  5. Click on 'Next'
  6. See error

Device information

Manufacturer: Qubino Model name: Flush Shutter DC Product code: ZMNHOD

How are you using node-zwave-js?

Which branches or versions?

zwave-js-ui: 8.4.1 zwave-js: 10.3.0

Did you change anything?

no

If yes, what did you change?

No response

Did this work before?

Yes (please describe)

If yes, where did it work?

I've many of these devices and I've never had any issue including them. This one is brand new, so I've never included it before (but the firmware version is the same as the others).

Attach Driver Logfile

zwavejs.log

2022-11-27 13:19:55.589 INFO Z-WAVE: Calling api startInclusion with args: [
  0,
  {
    forceSecurity: false,
    name: 'Plisse sx cameretta',
    location: 'Cameretta'
  },
  [length]: 2
]
2022-11-27T12:19:55.617Z CNTRLR   Starting inclusion process with strategy Default...
2022-11-27T12:19:55.688Z SERIAL » 0x0105004ac17100                                                     (7 bytes)
2022-11-27T12:19:55.694Z DRIVER » [REQ] [AddNodeToNetwork]
                                    node type:    Any
                                    high power:   true
                                    network wide: true
                                    callback id:  113
2022-11-27T12:19:55.707Z SERIAL « [ACK]                                                                   (0x06)
2022-11-27T12:19:55.721Z SERIAL « 0x0107004a71010000c2                                                 (9 bytes)
2022-11-27T12:19:55.729Z SERIAL » [ACK]                                                                   (0x06)
2022-11-27T12:19:55.740Z DRIVER « [REQ] [AddNodeToNetwork]
                                    status:      Ready
                                    callback id: 113
2022-11-27T12:19:55.778Z CNTRLR   The controller is now ready to add nodes
2022-11-27 13:19:55.782 INFO Z-WAVE: Controller status: Secure inclusion started
2022-11-27 13:19:55.789 INFO Z-WAVE: Success zwave api call startInclusion true
2022-11-27T12:20:03.338Z SERIAL « 0x0107004a71020000c1                                                 (9 bytes)
2022-11-27T12:20:03.344Z SERIAL » [ACK]                                                                   (0x06)
2022-11-27T12:20:03.354Z DRIVER « [REQ] [AddNodeToNetwork]
                                    status:      NodeFound
                                    callback id: 113
2022-11-27T12:20:03.368Z DRIVER   handling request AddNodeToNetwork (74)
2022-11-27T12:20:03.370Z DRIVER     1 handler registered!
2022-11-27T12:20:03.371Z DRIVER     invoking handler #0
2022-11-27T12:20:03.378Z CNTRLR   handling add node request (status = NodeFound)
2022-11-27T12:20:04.166Z SERIAL « 0x0107004a71070000c4                                                 (9 bytes)
2022-11-27T12:20:04.175Z SERIAL » [ACK]                                                                   (0x06)
2022-11-27T12:20:04.184Z DRIVER « [REQ] [AddNodeToNetwork]
                                    status:      Failed
                                    callback id: 113
2022-11-27T12:20:04.197Z DRIVER   handling request AddNodeToNetwork (74)
2022-11-27T12:20:04.198Z DRIVER     1 handler registered!
2022-11-27T12:20:04.200Z DRIVER     invoking handler #0
2022-11-27T12:20:04.202Z CNTRLR   handling add node request (status = Failed)
2022-11-27T12:20:04.205Z CNTRLR   Adding the node failed
2022-11-27 13:20:04.209 INFO Z-WAVE: Controller status: Inclusion failed
2022-11-27T12:20:04.216Z CNTRLR   stopping inclusion process...
2022-11-27T12:20:04.343Z SERIAL » 0x0105004ac57207                                                     (7 bytes)
2022-11-27T12:20:04.348Z DRIVER » [REQ] [AddNodeToNetwork]
                                    action:       Stop
                                    high power:   true
                                    network wide: true
                                    callback id:  114
2022-11-27T12:20:04.372Z SERIAL « [ACK]                                                                   (0x06)
2022-11-27T12:20:04.385Z SERIAL « 0x0107004a72060000c6                                                 (9 bytes)
2022-11-27T12:20:04.389Z SERIAL » [ACK]                                                                   (0x06)
2022-11-27T12:20:04.397Z DRIVER « [REQ] [AddNodeToNetwork]
                                    status:      Done
                                    callback id: 114
2022-11-27T12:20:04.434Z CNTRLR   The inclusion process was stopped
2022-11-27 13:20:04.438 INFO Z-WAVE: Controller status: Inclusion stopped
2022-11-27T12:20:04.453Z DRIVER       the message was handled
zwave-js-bot commented 1 year ago

👋 Hey @darkbasic!

It looks like you copied the contents of a logfile. Please attach it as a file instead, so it is easier to work with. Note: You can just drag & drop files into the textbox. Just make sure to use a supported file extension like .log or .txt

darkbasic commented 1 year ago

I've tried dozens of times and there are already other 6 modules in the same exact spot. It's replacing another module of the same exact type in the same exact spot which failed and it supports zwave plus.

darkbasic commented 1 year ago

I've tried several other times and it looks like the 15th attempt was the good one. I can't believe how bad zwave stuff is :(