Page 1 of 1

2022.2 API correction for increase/decrease HeatSetpoint

PostPosted: Wed Mar 08, 2023 5:00 am
by anyone
I am working with the Indigo 2022.2 API documentation and came across a couple of examples that I believe use an invalid parameter key.

the parameter key for both of these should reflect 'delta', just like the decreaseCoolSetpoint and increaseCoolSetpoint examples.

Code: Select all
{
  "id": "optional-user-generated-id",
  "message": "indigo.thermostat.decreaseHeatSetpoint",
  "objectId": 123456789,
  "parameters": {
    "value": 2
  }
}
{
  "id": "optional-user-generated-id",
  "message": "indigo.thermostat.increaseHeatSetpoint",
  "objectId": 123456789,
  "parameters": {
    "value": 2
  }
}

{"id":"- no message id -","validationErrors":{"value":"invalid parameter key"},"error":"invalid command payload received, id: '- no message id -'"}

Re: 2022.2 API correction for increase/decrease HeatSetpoint

PostPosted: Wed Mar 08, 2023 7:52 am
by DaveL17
Thanks for the report. I've updated the wiki docs to reflect that 'delta' is the right payload key for these two indigo.thermostat commands.