Page 1 of 1

Node Management : include node and include node secure

Posted: Wednesday 20 January 2016 14:42
by Michel13
Hello,

I am trying to find some explanations regarding "include node" and "include node secure" in the Node Management menu. Is there any literature (link) available ?

For the moment, I am testing two door sensors gen5 from Aeotec. One is in standard node, the other in secure node. The only difference I can see is in the status : the standard node is with a moon (which I presume means sleeping), the secure node is shown active.
So, I presume there is a sort of control (ping) on the sensor sets in node secure which keep the sensor active. Is it correct ?
If yes, is there a significant impact on the battery life of the sensor ?

Thanks for your help.
Michel

Re: Node Management : include node and include node secure

Posted: Wednesday 20 January 2016 14:59
by Domosapiens
I have no experiences with secure nodes, but ...
Take a look here:
https://github.com/OpenZWave/open-zwave ... ces-to-OZW

Re: Node Management : include node and include node secure

Posted: Wednesday 20 January 2016 20:17
by Michel13
Thanks Domosapiens.

I have looked at the link. It is interesting.
However, there are points which are unclear to me.

A network key must be set in the options.xml file. This file is not exactly located in my Rasp as mentioned in the link, but I found it in /home/pi/domoticz/Config/
Looking at this file it appears that the key was not activated. So, I wonder how I was able to set my door sensor in node secure mode with no key activated.
Is it the proper file ? the proper location ? Is it possible ?
So I have set a key in the file. After restarting the Rasp, my sensor is not recognised any more. Seems that the key has been set properly and does not match the one (?) in the sensor.
I have cancelled its node and reset the sensor, but I was not able to included it again in secure mode. only in a standard node.
Apparently, this sensor cannot work in node secure with a key activated. And I don't know where I can find the information, either or not the sensor is capable to work secure. Nothing in the small leaflet coming with the sensor.

The question now is, how it was possible to select a node secure without a key activated ?

Re: Node Management : include node and include node secure

Posted: Wednesday 20 January 2016 20:39
by Domosapiens
The link is from a point of view of OpenZwave.

In Domoticz:
I assumed that you need to set the parameter 4 of Z-stick controller.
See hardware, Z-stick setup, devices Z-stick, node 1, parameter 4.

Hope this helps
Domosapiens

Re: Node Management : include node and include node secure

Posted: Wednesday 20 January 2016 20:50
by nayr
you have to set the key before including any devices in secure mode, if you change the key the crypto breaks.. the default key is not adequate to be considered secure, since its the default.

the key can be changed through the Domo UI if you follow @domosapiens

if you apt-get install pwgen, this will generate you a random key (now added to the Zwave wiki)

Code: Select all

pwgen -s 16 1| od -A n -t x1|sed 's/ /,0x/g'|sed 's/,//'|sed 's/0x0a//'
0x79,0x50,0x59,0x54,0x75,0x77,0x4d,0x49,0x39,0x4c,0x74,0x51,0x78,0x4c,0x75,0x52

Re: Node Management : include node and include node secure

Posted: Thursday 28 January 2016 10:05
by Michel13
Hello,
Sorry for the delay. I was a little busy these last days.

Thanks Domosapiens and nayr for your replies.

OK. I have set parameter 4 with a new key for my Z-stick.
Is it the only thing to do ?
Because as I said in my last post, I have put a key in /home/pi/domoticz/Config/options.xml and after reboot, the sensor was not detected any more. At that time, Z-stick was still set with the default key. Is there a relationship between the options.xml and the setting of the Z-stick which could put the mess ?

Unless I did not look at the right places, it seems to me that secure node in Domoticz (but not only) is poorly documented. So, I don't know if what I want to do is feasible or not.
I would like to put my door sensors (4 of them) in secure node. I have 3 Aeotec recessed door sensors and 1 Vision ZD2102. All of them are Z-wave +.
Are they capable to work in a node secured ?
More generally, is it possible to install all Z-wave units in secure node or is there some restrictions ?

Re: Node Management : include node and include node secure

Posted: Thursday 28 January 2016 10:59
by nayr
Since you edited xml directly I have no idea what will happen, but all you should have done was set a key, save it.. refresh to make sure its actually there and then include your devices using the secure include from within Domoticz.. no idea why you thought to bypass the UI but that was not required and very likely why your device cant communicate after you did it.

Docs are user written, if you find them inadequate then thats our fault.. go make the needed improvements to help the next poor guy out... its not something we can really complain about.

Re: Node Management : include node and include node secure

Posted: Thursday 28 January 2016 22:41
by Michel13
Thanks nayr.

I didn't knew about the doc. For the time being I just start to learn basic things.

Well, regarding my problem, I have set the key in the controller as suggested by Domosapiens, removed the one I had put in the options.xml and restart the Rasp. So, I presume its OK now for the node secure to operate with the correct key.
I have then excluded all of my door sensors from their normal nodes and include them on secure nodes.
Inclusion process is as easy than normal one. It was quite fast actually.
All is OK now. It seems to work properly.

Thanks a lot for you help to both of you.