Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

[question] How do I add a new device via the UI? #802

Closed
simplenotezy opened this issue Oct 19, 2020 · 2 comments
Closed

[question] How do I add a new device via the UI? #802

simplenotezy opened this issue Oct 19, 2020 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@simplenotezy
Copy link

So I setup basic configuration, it uses my Z-Stick and I believe I can search for devices.

I have my Thermostat in my hand, and did a factory reset of the device, so I guess then it becomes "pairable". I then went to the UI and clicked "Add Node" and clicked yes to "Pair in security mode" (whatever this means?).

The "Controller Status" is then "AddDevice Completed", but the Node does not show up in the list. Only my Z-Stick is there. I am unsure how to proceed here.

@simplenotezy
Copy link
Author

simplenotezy commented Oct 19, 2020

Okay, so I went ahead and looked in the logs of the "npm start" command, and when adding a new device I see this:

  z2m:App Zwave api call: addNode [ true ] +51s
m2020-10-19 13:52:59.444 Detail, Queuing (Controller) Add Device
2020-10-19 13:52:59.444 Info, Add Device
2020-10-19 13:52:59.445 Detail, contrlr, Queuing (Command) ControllerCommand_AddDevice: 0x01, 0x05, 0x00, 0x4a, 0xc1, 0x10, 0x61
2020-10-19 13:52:59.445 Detail, Notification: AddDevice ControllerCommand - Starting
2020-10-19 13:52:59.445 Detail,
2020-10-19 13:52:59.446 Info, contrlr, Sending (Command) message (Callback ID=0x10, Expected Reply=0x4a) - ControllerCommand_AddDevice: 0x01, 0x05, 0x00, 0x4a, 0xc1, 0x10, 0x61
2020-10-19 13:52:59.446 Info, contrlr, Encrypted Flag is 0
z2m:Zwave Success zwave api call startInclusion  +46s
m2020-10-19 13:52:59.449 Detail, contrlr,   Received: 0x01, 0x07, 0x00, 0x4a, 0x10, 0x01, 0x00, 0x00, 0xa3
2020-10-19 13:52:59.449 Detail,
2020-10-19 13:52:59.450 Info, contrlr, FUNC_ID_ZW_ADD_NODE_TO_NETWORK:
2020-10-19 13:52:59.450 Info, contrlr, ADD_NODE_STATUS_LEARN_READY
2020-10-19 13:52:59.450 Detail, contrlr,   Expected callbackId was received
2020-10-19 13:52:59.450 Detail, contrlr,   Expected reply was received
2020-10-19 13:52:59.451 Detail, contrlr,   Message transaction complete
2020-10-19 13:52:59.451 Detail,
2020-10-19 13:52:59.451 Detail, contrlr, Removing current message
2020-10-19 13:52:59.451 Detail, Notification: AddDevice ControllerCommand - Waiting
2020-10-19 13:52:59.452 Info, WriteNextMsg Controller nothing to do
z2m:Zwave controller command { nodeid: 0, state: 1, errcode: 0, help: 'AddDevice Starting' } +6ms
  z2m:Zwave controller command { nodeid: 0, state: 4, errcode: 0, help: 'AddDevice Waiting' } +4ms
m2020-10-19 13:53:04.450 Info, Cancel Add Node
2020-10-19 13:53:04.450 Detail, contrlr, Queuing (Command) Add Node Stop: 0x01, 0x04, 0x00, 0x4a, 0x05, 0xb4
2020-10-19 13:53:04.453 Detail, contrlr, Notification: AddDevice ControllerCommand - Canceled
2020-10-19 13:53:04.453 Detail,
2020-10-19 13:53:04.453 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x4a) - Add Node Stop: 0x01, 0x04, 0x00, 0x4a, 0x05, 0xb4
2020-10-19 13:53:04.454 Info, contrlr, Encrypted Flag is 0
z2m:Zwave controller command { nodeid: 255, state: 2, errcode: 0, help: 'AddDevice Canceled' } +5s
m2020-10-19 13:53:04.543 Detail, contrlr,   Received: 0x01, 0x07, 0x00, 0x4a, 0x10, 0x06, 0x00, 0x00, 0xa4
2020-10-19 13:53:04.544 Detail,
2020-10-19 13:53:04.544 Info, contrlr, FUNC_ID_ZW_ADD_NODE_TO_NETWORK:
2020-10-19 13:53:04.544 Info, contrlr, ADD_NODE_STATUS_DONE
2020-10-19 13:53:04.544 Detail, contrlr,   Expected reply was received
2020-10-19 13:53:04.544 Detail, contrlr,   Message transaction complete
2020-10-19 13:53:04.544 Detail,
2020-10-19 13:53:04.545 Detail, contrlr, Removing current message
2020-10-19 13:53:04.545 Detail, contrlr, Notification: AddDevice ControllerCommand - Completed
z2m:Zwave controller command { nodeid: 255, state: 7, errcode: 0, help: 'AddDevice Completed' } +90ms

Which I guess is positive.

Now the question remains; how do I make it appear as a node/devices in the list /// how do I control it?

Update:

I see the same output even if the device is turned off (e.g. batteries removed), so actually not sure what device it is finding.

@robertsLando
Copy link
Member

robertsLando commented Oct 19, 2020

@simplenotezy Using z2m requires at least a minimun knowledge about how zwave works. Anyway you have to put your device in inclusion mode and enable inclusion on the controller (throught the controller phisical button or by using 'Add Node' api) and then the device once successfully paried will appear on the ui. Also just enable security if your device support it and if you have set an encryption key on the zwave settings

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants