Hi,
I am trying to send a request to the API for getting the temperature value.
I read the API documentation and sent the GET request to my temperature sensor using:
https://api.smartthings.com/v1/devices/device_ID
In the received json, there is no value for the temperature sensor:
{
"deviceId": "",
"name": "temperature1",
"label": "temperature1",
"manufacturerName": "SmartThingsCommunity",
"presentationId": "",
"locationId": "",
"components": [
{
"id": "main",
"label": "main",
"capabilities": [
{
"id": "temperatureMeasurement",
"version": 1
}
],
"categories": [
{
"name": "TempSensor",
"categoryType": "manufacturer"
}
]
}
],
"createTime": "",
"profile": {
"id": ""
},
"virtual": {
"name": "temperature1",
"executingLocally": false
},
"type": "VIRTUAL",
"restrictionTier": 0,
"allowed": null
}
What is the solution?
Thanks