data holder

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
dario87
Posts: 18
Joined: 13 Jun 2014 11:46

data holder

Post by dario87 »

hi
I have a problem with the events
I do not understand how to use the data holder.
if I want to listen to a change of state of a switch (devices [2]. instances [0]. SwitchBinary), how can I do with the data holder?

In the log file I see that there was a change:


[2014-06-18 15:26:19.587] RECEIVED: ( 01 15 00 49 84 02 0F 04 10 01 25 32 27 2C 2B 70 85 56 72 86 EF 82 32 )
[2014-06-18 15:26:19.588] SENT ACK
[2014-06-18 15:26:19.589] Node info received: 2
[2014-06-18 15:26:19.589] SETDATA devices.2.data.basicType = 4 (0x00000004)
[2014-06-18 15:26:19.589] SETDATA devices.2.data.genericType = 16 (0x00000010)
[2014-06-18 15:26:19.589] SETDATA devices.2.instances.0.data.genericType = 16 (0x00000010)
[2014-06-18 15:26:19.589] SETDATA devices.2.data.specificType = 1 (0x00000001)
[2014-06-18 15:26:19.590] SETDATA devices.2.instances.0.data.specificType = 1 (0x00000001)
[2014-06-18 15:26:19.594] SETDATA devices.2.data.deviceTypeString = "Binary Power Switch"
[2014-06-18 15:26:19.594] SETDATA devices.2.data.nodeInfoFrame = byte[12]
( 25 32 27 2C 2B 70 85 56 72 86 EF 82 )
[2014-06-18 15:26:19.595] SETDATA devices.2.data.lastReceived = 0 (0x00000000)

for example if I want to send the command:

devices [4]. instances [0]. SwitchBinary.set (0)

when the event occurs, how can I do?
Can you help me?

thanks
Post Reply