Aeotec multisensor

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

Aeotec multisensor

Post by johnrswanton »

Hi

I have a Aeotec Multisensor and i have incuded it RaZberry I'm able to get the value for the motion from this url : http://RASPBERRYPI_IP/ZWaveAPI/Run/devices[4].instances[0].commandClasses.SensorBinary.data.level.valueOf()

but i am unable to get the temperature,humidity and light sensor readings so how do i go about this, what url should i be using ?
please help

regards
John
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Use SensorMultilevel.data[**]

Post by PoltoS »

Use SensorMultilevel.data[**].val.valueOf()

Try just SensorMultilevel.data to get the tree and see what ** should be
johnrswanton
Posts: 6
Joined: 20 Feb 2013 19:54

Thanks for you reply,

Post by johnrswanton »

Thanks for you reply,
i have tried
http://RASPBERRYPI_IP:8083/ZWaveAPI/Run/devices[4].instances[0].commandClasses.SensorMultilevel.data

and got this response

{"name":"devices.4.instances.0.commandClasses.49.data","updated":"1970-01-16T20:17:47.557Z","invalidated":"1970-01-16T20:17:47.556Z","version":{"name":"version","updated":"1970-01-16T20:17:47.647Z","invalidated":"1970-01-16T20:17:47.646Z"},"security":{"name":"security","updated":"1970-01-16T20:17:47.557Z","invalidated":"1970-01-16T20:17:47.556Z"},"interviewDone":{"name":"interviewDone","updated":"1970-01-16T20:17:47.647Z","invalidated":"1970-01-16T20:17:47.556Z"},"interviewCounter":{"name":"interviewCounter","updated":"1970-01-16T20:17:47.557Z","invalidated":"1970-01-16T20:17:47.556Z"},"sensorType":{"name":"sensorType","updated":"1970-01-16T20:21:47.673Z","invalidated":"1970-01-16T20:17:47.556Z"},"sensorTypeString":{"name":"sensorTypeString","updated":"1970-01-16T20:21:47.673Z","invalidated":"1970-01-16T20:17:47.556Z"},"val":{"name":"val","updated":"1970-01-16T20:21:47.673Z","invalidated":"1970-01-16T20:20:29.070Z"},"scale":{"name":"scale","updated":"1970-01-16T20:21:47.673Z","invalidated":"1970-01-16T20:17:47.556Z"},"scaleString":{"name":"scaleString","updated":"1970-01-16T20:21:47.673Z","invalidated":"1970-01-16T20:17:47.556Z"}}


when i tried
http://RASPBERRYPI_IP:8083/ZWaveAPI/Run/devices[4].instances[0].commandClasses.SensorMultilevel.data.val.valueOf()

I got a value of 21.5 does this mean it 21.5 degrees or is this really the temperature ?

regards
John
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Use data.scaleString.valueOf(

Post by PoltoS »

Use data.scaleString.valueOf() to get the units. Looks like a reasonable temperature
johnrswanton
Posts: 6
Joined: 20 Feb 2013 19:54

I have temperature but how do i get light and humidity values

Post by johnrswanton »

Hi,I am able to get the temperature but it keeps jumping in value im not sure but maybe im getting the light and humidity but all on the same url as shown below, is there a way of seperating them?http://RASP_IP:8083/ZWaveAPI/Run/devices[4].instances[0].commandClasses.SensorMultilevel.data.val.valueOf()I have included links to screenshots of the control panel for the device in question, from the configuration it looks like it should give me all the values but just mainly the temperature. please help regards John 
Pitt13
Posts: 41
Joined: 13 Apr 2013 23:52

Hello

Post by Pitt13 »

Hello
http://IP_RPi:8083/ZWaveAPI/Run/devices[4].instances[0].commandClasses[49].data[1].val.value => for Temperature

http://IP_RPi:8083/ZWaveAPI/Run/devices[4].instances[0].commandClasses[49].data[3].val.value => for Lux

http://IP_RPi:8083/ZWaveAPI/Run/devices[4].instances[0].commandClasses[49].data[5].val.value => for Humidity
johnrswanton
Posts: 6
Joined: 20 Feb 2013 19:54

Thanks,   well tried them

Post by johnrswanton »

Thanks,   well tried them urls and got this error"Uncaught TypeError: Cannot read property 'val' of undefined"regards John
Pitt13
Posts: 41
Joined: 13 Apr 2013 23:52

Hello,

Post by Pitt13 »

Hello,
my adjustment are :
wake up 10 minutes => yes
On time delay => 600
Unsolicitate reports interval timing for group 1 and 2 and 3 : 720
Wake up time => 600
Pitt13
Posts: 41
Joined: 13 Apr 2013 23:52

My config : Device N°5

Post by Pitt13 »

My config : Device N°5

{"name":"devices.5.instances.0.commandClasses.49.data","type":"NoneType","value":null,"updateTime":1368228278,"invalidateTime":1368228277,"version":{"name":"version","type":"int","value":5,"updateTime":1368228280,"invalidateTime":1368228278},"security":{"name":"security","type":"bool","value":false,"updateTime":1368228278,"invalidateTime":1368228277},"interviewDone":{"name":"interviewDone","type":"bool","value":true,"updateTime":1368228288,"invalidateTime":1368228277},"interviewCounter":{"name":"interviewCounter","type":"int","value":9,"updateTime":1368228286,"invalidateTime":1368228277},"1":{"name":"1","type":"NoneType","value":null,"updateTime":1370035837,"invalidateTime":1369676675,"sensorTypeString":{"name":"sensorTypeString","type":"str","value":"Temperature","updateTime":1368228287,"invalidateTime":1368228286},"val":{"name":"val","type":"float","value":19.899999618530273,"updateTime":1370035837,"invalidateTime":1368228286},"deviceScale":{"name":"deviceScale","type":"int","value":0,"updateTime":1370035837,"invalidateTime":1368228286},"scale":{"name":"scale","type":"int","value":0,"updateTime":1370035837,"invalidateTime":1368228286},"scaleString":{"name":"scaleString","type":"str","value":"°C","updateTime":1370035837,"invalidateTime":1368228286}},"3":{"name":"3","type":"NoneType","value":null,"updateTime":1370035837,"invalidateTime":1369676675,"sensorTypeString":{"name":"sensorTypeString","type":"str","value":"Luminiscence","updateTime":1368228287,"invalidateTime":1368228286},"val":{"name":"val","type":"float","value":201,"updateTime":1370035837,"invalidateTime":1368228286},"deviceScale":{"name":"deviceScale","type":"int","value":1,"updateTime":1370035837,"invalidateTime":1368228286},"scale":{"name":"scale","type":"int","value":1,"updateTime":1370035837,"invalidateTime":1368228286},"scaleString":{"name":"scaleString","type":"str","value":"Lux","updateTime":1370035837,"invalidateTime":1368228286}},"5":{"name":"5","type":"NoneType","value":null,"updateTime":1370035837,"invalidateTime":1369676675,"sensorTypeString":{"name":"sensorTypeString","type":"str","value":"Humidity","updateTime":1368228287,"invalidateTime":1368228286},"val":{"name":"val","type":"float","value":56,"updateTime":1370035837,"invalidateTime":1368228286},"deviceScale":{"name":"deviceScale","type":"int","value":0,"updateTime":1370035837,"invalidateTime":1368228286},"scale":{"name":"scale","type":"int","value":0,"updateTime":1370035837,"invalidateTime":1368228286},"scaleString":{"name":"scaleString","type":"str","value":"%","updateTime":1370035837,"invalidateTime":1368228286}}}
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

It seems you have old version

Post by PoltoS »

It seems you have old version of RaZberry (v1.1). Please use the new version (v1.2 or greater - latest is v1.3.1). You will need to force re-interview for that device.
Post Reply