list devices and get battery level

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
johnrswanton
Posts: 6
Joined: 20 Feb 2013 19:54

list devices and get battery level

Post by johnrswanton » 27 Mar 2013 20:00

Hi all,

I have recently bought the raspberry pi and z-way module and got it set up no problems

I am currently able to get the state of a door sensor whether it is open or closed using the below url:
http://192.168.0.104:8083/ZWaveAPI/Run/ ... el.valueOf()

what i would like to do it get a list of all the devices that are connect to it and they status( online/offline) also i want to get the current battery level

regards
John

User avatar
PoltoS
Posts: 4536
Joined: 26 Jan 2011 19:36

Please conslt the manual.

Post by PoltoS » 27 Mar 2013 20:00

Please conslt the manual.

Use /ZWaveAPI/Data/0 to get the full tree.

johnrswanton
Posts: 6
Joined: 20 Feb 2013 19:54

list devices and get battery level

Post by johnrswanton » 27 Mar 2013 20:00

i can access the full tree from
http://rasp_ip:8083/ZWaveAPI/Data/0

I have one door sensor which has node id of 2 where do i find information on this device and other additional devices i add in the future
what part of the tree contains a list of all the devices and their node ids and also their current battery level

regards

John

User avatar
PoltoS
Posts: 4536
Joined: 26 Jan 2011 19:36

Please check the Fib 8 on

Post by PoltoS » 27 Mar 2013 20:00

Please check the Fib 8 on page 21 of the manual http://razberry.z-wave.me/docs/zway.pdf
It shows where is the list of all devices. New devices are added to the tree. There is a description how to get updates instead of full tree.

Check section Battery Command Class to see how to access battery level.

Post Reply