HeatIt Thermostat - Formatting Setpoint Commands #163
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @Rollem1, First be aware CCAPI and ValueAPI act very differently from each other. The value API will poll the value after it is set. The CCAPI is an extremely manual API, you have to do everything yourself - whilst easier to look at, is a very lazy API. With that said, setting setpoints (with the different types) via the CCAPI, your params should evaluate to something like. If you click View Parameter Definition - it gives some indication on what is expected. Setpoint types. as for forceUpdate if using ValueAPI - its of no use.
|
Beta Was this translation helpful? Give feedback.
-
Full example CCAPI let Message = {
payload: {
mode: "CCAPI",
node: 2,
cc: "Thermostat Setpoint",
method: "set",
params: ["Heating", 22, 0x00],
forceUpdate: {
property: "setpoint",
propertyKey: 1
}
}
}
return Message Full example ValueAPI let Message = {
payload: {
mode: "ValueAPI",
node: 2,
method: "setValue",
params: [<ValueID>, <Value>],
}
}
return Message |
Beta Was this translation helpful? Give feedback.
Full example CCAPI
Full example ValueAPI