I am trying to create a rule to check the temperature then send a http request.
Referring to the link @ Production Capabilities | SmartThings Developers
I was doing something like
{
"name": "Example",
"actions": [{
"if": {
"lessThanOrEquals": {
"left": {
"device": {
"devices": [
"device_id"
],
"component": "main",
"capability": "temperatureMeasurement",
"attribute": "temperature"
}
},
"right": {
"number": 62
}
},
"then": [{
"command": {
"devices": [
"device_id"
],
"commands": [{
"component": "main",
"capability": "partyvoice23922.webrequest",
"command": "GET",
"arguments": [{
"string": "URL_endpoint"
}]
}]
}
}]
}
}]
}
However, I received error
"error": {
"code": "ConstraintViolationError",
"message": "The request is malformed.",
"details": [
{
"code": "BodyMalformedError",
"target": "number",
"message": "Unknown field on line 18",
"details": []
}
]
}
Isn’t number the type? I am confused.