Node Management : include node and include node secure

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Michel13
Posts: 69
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Node Management : include node and include node secure

Post 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
User avatar
Domosapiens
Posts: 232
Joined: Wednesday 20 August 2014 12:08
Target OS: Windows
Domoticz version: V3.5981
Location: NL
Contact:

Re: Node Management : include node and include node secure

Post by Domosapiens »

I have no experiences with secure nodes, but ...
Take a look here:
https://github.com/OpenZWave/open-zwave ... ces-to-OZW
Win Vista&7; 1#Aeon Z-Stick S2; 1#Aeotec Z-Sick Gen5, 6#Fib.FGBS001; 24#DS18B20; 8#Everspr.AN158-2; 3#Philio PAN04; 1#Philio PAN06, 1#YouLess El; 1#Fib.FGWPE; 1#ZME_RC2; 2#FAK_ZWS230, 2#Quib.ZMNHCDx, 1#Quib.ZMNHDD1, 7#EM6555
Michel13
Posts: 69
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: Node Management : include node and include node secure

Post 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 ?
User avatar
Domosapiens
Posts: 232
Joined: Wednesday 20 August 2014 12:08
Target OS: Windows
Domoticz version: V3.5981
Location: NL
Contact:

Re: Node Management : include node and include node secure

Post 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
Win Vista&7; 1#Aeon Z-Stick S2; 1#Aeotec Z-Sick Gen5, 6#Fib.FGBS001; 24#DS18B20; 8#Everspr.AN158-2; 3#Philio PAN04; 1#Philio PAN06, 1#YouLess El; 1#Fib.FGWPE; 1#ZME_RC2; 2#FAK_ZWS230, 2#Quib.ZMNHCDx, 1#Quib.ZMNHDD1, 7#EM6555
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: Node Management : include node and include node secure

Post 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
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Michel13
Posts: 69
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: Node Management : include node and include node secure

Post 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 ?
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: Node Management : include node and include node secure

Post 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.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Michel13
Posts: 69
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: Node Management : include node and include node secure

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest