Hi,
Trying to do something I've never done before and don't know much about.
I have a web api returning JSON (I believe) and I need to pull a value out of it for the temperature.
I have been poking around with the XML/REST sensors but am not getting anywhere.
Can anyone point me in the right direction?
in the sample output below, the current temperature is 25.88.
{"id":"161","name":"SmartThings Multipurpose Sensor V5","label":"Lounge Multipurpose","attributes":[{"name":"acceleration","currentValue":"inactive","dataType":"ENUM","values":["inactive","active"]},{"name":"battery","currentValue":85,"dataType":"NUMBER"},{"name":"contact","currentValue":"closed","dataType":"ENUM","values":["closed","open"]},{"name":"temperature","currentValue":25.88,"dataType":"NUMBER"},{"name":"threeAxis","currentValue":null,"dataType":"VECTOR3"}],"capabilities":["TemperatureMeasurement",{"attributes":[{"name":"temperature","dataType":null}]},"Battery",{"attributes":[{"name":"battery","dataType":null}]},"ContactSensor",{"attributes":[{"name":"contact","dataType":null}]},"Configuration","ThreeAxis",{"attributes":[{"name":"threeAxis","dataType":null}]},"AccelerationSensor",{"attributes":[{"name":"acceleration","dataType":null}]},"Refresh","Sensor"],"commands":["configure","refresh"]}
Add comment