How to get luminescence from a sensor through ZWaveAPI?

Discussions about existing Z-Wave device and their usage with Z-Way/Z-Cloud/Z-Box
Post Reply
xzuttz
Posts: 2
Joined: 12 May 2014 15:13

How to get luminescence from a sensor through ZWaveAPI?

Post by xzuttz »

I have a sensor which can measure humidity, luminescence and temperature. It has device ID 3.

When requesting: http://localhost:8083/ZWaveAPI/Run/devi ... nstances[0] it returns json data which i have uploaded to the following link:

http://pastebin.com/R1iWq3VT

The value I am looking for resides in commandClass 49. Under this class, there is a variable (or class?) called 3. The "val" attribute in 3 holds the luminescence which is 1000.

I have tried various ways to construct a URL to retrieve this value but can't get it right.

What should the URL look like?

Thanks
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: How to get luminescence from a sensor through ZWaveAPI?

Post by pz1 »

From the top of my head I would say:
http://localhost:8083/ZWaveAPI/Run/devi ... .val.value

I am a bit in doubt about the val.value part
Since 29-12-2016 I am no longer a moderator for this forum
xzuttz
Posts: 2
Joined: 12 May 2014 15:13

Re: How to get luminescence from a sensor through ZWaveAPI?

Post by xzuttz »

It works!

Thanks alot :)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: How to get luminescence from a sensor through ZWaveAPI?

Post by pz1 »

good!
On my Windows7 machine I use the text editor notepad++ in which you can install a JSON browser. That gives a graphical view of the JSON blurb. Helped me a lot to understand these structures.
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply