Here is what I would say if I were seeking help on an appropriate Fibaro forum:
I have been querying the status of my garage light using a get request:http://user:pwd@myFibaroIPaddress/api/devices?id=22 (where ID 22 is my garage light).
I was hoping to use this query to find out if the light is on or off. I get the following information back:
{"id":22,"name":"Garage Light","roomID":10,"type":"com.fibaro.binarySwitch","baseType":"com.fibaro.actor","enabled":true,"visible":true,"isPlugin":false,"parentId":21,"remoteGatewayId":0,"interfaces":["zwave","zwaveProtection"],"properties":{"parameters":[],"associationSet":[{"devices":[1],"groupID":1}],"associationView":[{"devices":[1],"groupID":1}],"zwaveCompany":"","zwaveInfo":"6,3,42","zwaveVersion":"1.0","pollingTimeSec":0,"RFProtectionState":"0","RFProtectionSupport":"0","configured":"true","dead":"false","deviceControlType":"20","deviceIcon":"2","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","liliOffCommand":"","liliOnCommand":"","localProtectionState":"0","localProtectionSupport":"0","log":"","logTemp":"","manufacturer":"","markAsDead":"true","model":"","nodeId":"12","parametersTemplate":"0","productInfo":"1,84,17,0,0,1,1,0","protectionExclusiveControl":"0","protectionExclusiveControlSupport":"false","protectionState":"0","protectionTimeout":"0","protectionTimeoutSupport":"false","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","smsNotificationID":"0","smsNotificationType":"0","useTemplate":"false","userDescription":"","value":"false"},"actions":{"reconfigure":0,"turnOff":0,"turnOn":0},"created":1424279322,"modified":1424279322,"sortOrder":23}
Does anyone know where the device state information is in the above? Nothing is jumping out at me. Or is there a better query I can use to figure out if the light is on or off?