Difference between device and element

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
kenneth
Posts: 3
Joined: 11 Feb 2017 00:21

Difference between device and element

Post by kenneth »

It is a bit confusing for me to see the differences between devices and elements.
I have a node that has two buttons. I would call that for one device with two elements + one element for measuring battery. Would that be correct?
I also have one motionsensor device with 4 elements.

I get all devices and elements by api as showned on the picture, but I cannot see a relation between device and element.
I can see that the deviceId 4, is implemented in elementId ZWayVDev_zway_4-0-128. Is that the way they are related?

Perhaps devices and elements are not two different things, but how do I then know that the two buttons are related to "Remotec Scene Master"?

I hope you guys can help me.
Attachments
Device and element.png
Device and element.png (45.35 KiB) Viewed 3323 times
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Re: Difference between device and element

Post by PoltoS »

Your assumption is correct.
The name of vDev ZWayVDev_Z_D-I-C-A have a well defined structure:
Z stands for Z-Way binding name
D for device Id (Z-Wave node Id)
I for instance Id in this device
C is the Comman Class Id
A is the additional type/scale/feature in Command Class
Post Reply