I am trying to set the fan mode and setpoint temperature on my Honeywell Z-wave thermostat. I can retrieve the thermostat status successfully through the ST API. However, I am encountering errors when trying to set the fan mode and setpoint temperature. What did I do wrong? Please help.
Body for setting the fan mode that I used. I feel like the arguments are not correct:
{
“commands”: [
{
“component”: “main”,
“capability”: “thermostatFanMode”,
“command”: “setThermostatFanMode”,
“arguments” : [
{
“thermostatFanMode”: “auto”
}
]
}
]
}
Response:
{
“requestId”: “20A972DB-99D5-4602-9726-0802ADBAED90”,
“error”: {
“code”: “ConstraintViolationError”,
“message”: “The request is malformed.”,
“details”: [
{
“code”: “UnprocessableEntityError”,
“target”: “[0].arguments.[0]”,
“message”: “invalid ENUM type”,
“details”:
}
]
}
}
Body for setting the cooling setpoint that I used:
{
“commands”: [
{
“component”: “main”,
“capability”: “thermostatCoolingSetpoint”,
“command”: “setCoolingSetpoint”,
“arguments” : [
{
“value”: 23,
“unit” : “C”
}
]
}
]
}
Response:
{
“requestId”: “1ECD4B4E-21D6-4994-AB16-DD9CD20F927C”,
“error”: {
“code”: “ConstraintViolationError”,
“message”: “The request is malformed.”,
“details”: [
{
“code”: “UnprocessableEntityError”,
“target”: “[0].arguments.[0]”,
“message”: “invalid NUMBER type”,
“details”:
}
]
}
}