ZWaveAPI - General comprehension question

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
holzemile
Posts: 36
Joined: 27 Mar 2013 13:37

ZWaveAPI - General comprehension question

Post by holzemile »

When querying

Code: Select all

/ZWaveAPI/Run/devices[3].instances[0].commandClasses[48].data
I get this:
http://pastebin.com/ju4r69yu

What is the difference between data.level and data[1].level?
I used the former one, but after the update it doesn't change anymore. Second one works though.
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: ZWaveAPI - General comprehension question

Post by pofs »

SensorBinary version 2 introduces sensor types, so a single device can detect several values (for example, smoke detection, glass break, tamper etc.). So a separate "level" is created for each supported sensor type, just like in SensorMultilevel.

In order to keep uniform data structure, sensor type is also present for SensorBinary v1, and it is always a hard-coded value 1 (general purpose sensor).

data.level is a "dead" value previously saved in config by the older version, and it is not valid anymore. If you force re-interview your device, it will be gone.
Post Reply