What is the right syntax for the argument parameter when using the capability “thermostatCoolingSetpoint” ?
I have tried the following:
{
"name": "Set at 7:30PM",
"actions" : [
{
"every" : {
"specific": {
"reference": "Noon",
"offset": {
"value": { "integer": 450 },
"unit": "Minute"
}
},
"actions": [
{
"command": {
"devices": [ "device id" ],
"commands": [
{
"component": "main",
"capability": "thermostatCoolingSetpoint",
"command": "setCoolingSetpoint",
"arguments": [ 70 ]
}
]
}
}
]
}
}
]
}
I get the following error:
{"requestId":"8E6B090A-AF9E-4693-8488-3BD135F68EE2","error":{"code":"ConstraintViolationError","message":"The request is malformed.","details":[{"code":"BodyMalformedError","target":"Unknown target","message":"Malformed body on line 23","details":[]}]}}
I also tried with
"arguments": [{"number": 70} ]
and
"arguments": [{"setpoint": 70} ]
and
"arguments": [{"setpoint": {"number": 70}} ]
With similar errors.
Thank you for any help,
Jose