Z-Wave MQTT question
Posted: Tuesday 04 May 2021 10:46
Hello,
I use a web services unit written in node js to centralise common actions of my different domoticz servers.
I need to collect all devices data including idx and node Id when relevant, for that I use mqtt messages delivered by the domoticz servers.
The question concerns the case of zwave devices for which I need to get the node Id for further actions.
I have a Qubino switch including also a thermal sensor, so I get 2 devices sharing the same node Id:
For the switch I get the following mqtt message:
and for the sensor:
For the switch the node Id is encapsulated in the id field: 47 is the hexa coded node Id
But for the sensor this is is something different, id = 18177 which is the hexa to decimal coded value of 4701
Does somebody know what is the logic behind ?
Thx in advance
I use a web services unit written in node js to centralise common actions of my different domoticz servers.
I need to collect all devices data including idx and node Id when relevant, for that I use mqtt messages delivered by the domoticz servers.
The question concerns the case of zwave devices for which I need to get the node Id for further actions.
I have a Qubino switch including also a thermal sensor, so I get 2 devices sharing the same node Id:
For the switch I get the following mqtt message:
Code: Select all
"dtype" : "Light/Switch",
"hwid" : "7",
"id" : "00004701",
"idx" : 1149,
Code: Select all
"dtype" : "Temp",
"hwid" : "7",
"id" : "18177",
"idx" : 1152,
But for the sensor this is is something different, id = 18177 which is the hexa to decimal coded value of 4701
Does somebody know what is the logic behind ?
Thx in advance