Webportal v2

embedded apps

API Reference - HVAC.climateControlPush

Required Privacy: Data & Location
Operation:

This API allows to set the climate values.

Input Parameter
Param name Description Type Unit/Values Example Required
cliamateConstrolPush

Modifier to apply on the current climate.

Enum of int

- 0 = IncreaseFrontLeftTemp

- 1 = decreaseFrontLeftTemp

- 2 = IncreaseFrontRightTemp

- 3 = decreaseFrontRightTemp
1 true
Output Data
No outputted data
Code Example
1
2
3
4
5
6
7
8
9
10
11
12
13
webportal.set(
    /* api name */
    "HVAC.climateControlPush",
    /* parameters */
    "1"
  )
  /* callback for `REPLY` messages */
  .then((message) => {
    if (message.status === 200) {
      /* handle `REPLY` success */
    }
    else { /* handle `REPLY` error */ }
  })
1
2
3
4
5
6
{
  "id": "7372c16f-5f2f-42c9-84a7-5490e35f1be0", 
  "type": "SET", 
  "api": "HVAC.climateControlPush",
  "params": "1"
}
1
2
3
4
5
6
7
8
9
// --- format of the `REPLY` message ---

{
  "id": "7372c16f-5f2f-42c9-84a7-5490e35f1be0",
  "type": "REPLY",
  "api": "HVAC.climateControlPush",
  "status": 200,
  "statusText": "OK"
}

false