Download OpenAPI specification:Download
It is specific API of BleBox devices with API type: thermoBox
Please check API type and API level (version) before use,
if you don't see the expected field in response from a real device then hardware version do not support this feature.
{- "device": {
- "deviceName": "My BleBox device name",
- "product": "shutterBoxV2",
- "type": "shutterBox",
- "apiLevel": "20200229",
- "hv": "9.1d",
- "fv": "0.987",
- "id": "g650e32d2217",
- "ip": "192.168.1.11"
}
}
Returns general information about device
It is deprecated -> look at:
{- "device": {
- "deviceName": "My BleBox device name",
- "product": "shutterBoxV2",
- "type": "shutterBox",
- "apiLevel": "20200229",
- "hv": "9.1d",
- "fv": "0.987",
- "id": "g650e32d2217",
- "ip": "192.168.1.11"
}
}
Returns information about internal WiFi AP or about connected local WiFi network
{- "ssid": "WiFi_Name",
- "bssid": "70:4f:25:24:11:ae",
- "ip": "192.168.1.11",
- "mac": "bb:50:ec:2d:22:17",
- "station_status": 5,
- "tunnel_status": 5,
- "apEnable": true,
- "apSSID": "shutterBox-g650e32d2217",
- "apPasswd": "my_secret_password",
- "channel": 7
}
Allows to set interal access Point's ssid and password. Allows also to turn off internal AP.
required | object Internal access Point's settings |
{- "network": {
- "apEnable": true,
- "apSSID": "shutterBox-g650e32d2217",
- "apPasswd": "my_secret_password"
}
}
{- "device": {
- "deviceName": "My BleBox device name",
- "product": "shutterBoxV2",
- "type": "shutterBox",
- "apiLevel": "20200229",
- "hv": "9.1d",
- "fv": "0.987",
- "id": "g650e32d2217",
- "ip": "192.168.1.11"
}, - "network": {
- "ssid": "WiFi_Name",
- "bssid": "70:4f:25:24:11:ae",
- "ip": "192.168.1.11",
- "mac": "bb:50:ec:2d:22:17",
- "station_status": 5,
- "tunnel_status": 5,
- "apEnable": true,
- "apSSID": "shutterBox-g650e32d2217",
- "apPasswd": "my_secret_password",
- "channel": 7
}
}
Perform WiFi scan and return list of found WiFi networks. Return conflict if scanning is in progress
{- "ap": [
- {
- "ssid": "Funny_WiFi_Name",
- "rssi": -60,
- "enc": 3
}, - {
- "ssid": "Less_Funny_WiFi_Name",
- "rssi": -75,
- "enc": 4
}, - {
- "ssid": "Not_Funny_WiFi_Name",
- "rssi": -90,
- "enc": 0
}
]
}
Perform connect to local WiFi network
ssid required | string [ 0 .. 32 ] characters SSID of WiFi network. |
pwd | string [ 0 .. 64 ] characters Nullable Password to WiFi network. Empty string or 'null' indicates open mode (without password). |
{- "ssid": "WiFi_Name",
- "pwd": "my_secret_password"
}
{- "ssid": "WiFi_Name",
- "station_status": 5
}
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
Allow to set desired state (ON, OFF, BOOST) and temperature
object Section of thermoBox |
{- "thermo": {
- "state": 1,
- "desiredTemp": 2150
}
}
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
Allow to set desired state (ON, OFF, BOOST) and temperature
object Section of thermoBox |
{- "thermo": {
- "state": 1,
- "desiredTemp": 2150
}
}
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "mode": 1,
- "maximumTemp": 2800,
- "minimumTemp": 1800,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}, - "safetyTempSensor": {
- "sensorId": 0
}, - "powerMeasuring": {
- "enabled": 1
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "mode": 1,
- "maximumTemp": 2800,
- "minimumTemp": 1800,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}, - "safetyTempSensor": {
- "sensorId": 0
}, - "powerMeasuring": {
- "enabled": 1
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
Set state of controller using GET request
state required | integer <uint8_t> (stateSet) Enum: 0 1 2 3 Example: 1
|
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
Set desired temperature using GET request
desiredTemp required | integer <int16_t> (desiredTemp) [ -5500 .. 12500 ] Example: 2150 Desired temperature, where
|
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
Increase temperature using GET request
byTempValue required | integer <uint16_t> (increaseDecreaseTempValue) >= 0 Example: 50
|
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
Decrease temperature using GET request
byTempValue required | integer <uint16_t> (increaseDecreaseTempValue) >= 0 Example: 50
|
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
Set state of controller and temperature using GET request
state required | integer <uint8_t> (stateSet) Enum: 0 1 2 3 Example: 1
| ||||||||||
desiredTemp required | integer <int16_t> (desiredTemp) [ -5500 .. 12500 ] Example: 2150 Desired temperature, where
|
{- "thermo": {
- "state": 1,
- "operatingState": 1,
- "desiredTemp": 2150,
- "safety": {
- "eventReason": 0,
- "triggered": [
- 1
]
}
}, - "sensors": [
- {
- "id": 0,
- "type": "temperature",
- "value": 2150,
- "state": 2
}, - {
- "id": 1,
- "type": "temperature",
- "value": 2850,
- "state": 2
}, - {
- "id": 2,
- "type": "activePower",
- "value": 1206,
- "state": 4
}, - {
- "id": 2,
- "type": "powerConsumption",
- "value": 0.712,
- "periodS": 3600,
- "state": 4
}
]
}
{- "settings": {
- "deviceName": "My BleBox device name",
- "tunnel": {
- "enabled": 1
}, - "statusLed": {
- "enabled": 1
}, - "powerMeasuring": {
- "enabled": 1
}, - "thermo": {
- "mode": 1,
- "outputMode": 0,
- "minimumTemp": 1800,
- "maximumTemp": 2800,
- "boostTimeM": 60,
- "controlTimeS": 10,
- "userTempOffset": {
- "0": 3,
- "1": -11
}, - "hysteresisWindow": [
- -2,
- 2
], - "safetyTempSensor": {
- "sensorId": 0,
- "safetyTemp": 3000
}, - "fieldsPreferences": [
- {
- "name": "minimumTemp",
- "minValue": -1000,
- "maxValue": 7000
}, - {
- "name": "maximumTemp",
- "minValue": -1000,
- "maxValue": 7000
}, - {
- "name": "safetyTemp",
- "minValue": -1000,
- "maxValue": 7000
}, - {
- "name": "hysteresisWindow",
- "minValue": 8,
- "maxValue": 50
}
]
}
}
}
Allow to set device's specific settings
object |
{- "settings": {
- "deviceName": "My BleBox device name",
- "tunnel": {
- "enabled": 1
}, - "statusLed": {
- "enabled": 1
}, - "powerMeasuring": {
- "enabled": 1
}, - "thermo": {
- "mode": 1,
- "outputMode": 0,
- "minimumTemp": 1800,
- "maximumTemp": 2800,
- "boostTimeM": 60,
- "controlTimeS": 10,
- "userTempOffset": {
- "0": 3,
- "1": -11
}, - "hysteresisWindow": [
- -2,
- 2
], - "safetyTempSensor": {
- "sensorId": 0,
- "safetyTemp": 3000
}
}
}
}
{- "settings": {
- "deviceName": "My BleBox device name",
- "tunnel": {
- "enabled": 1
}, - "statusLed": {
- "enabled": 1
}, - "powerMeasuring": {
- "enabled": 1
}, - "thermo": {
- "mode": 1,
- "outputMode": 0,
- "minimumTemp": 1800,
- "maximumTemp": 2800,
- "boostTimeM": 60,
- "controlTimeS": 10,
- "userTempOffset": {
- "0": 3,
- "1": -11
}, - "hysteresisWindow": [
- -2,
- 2
], - "safetyTempSensor": {
- "sensorId": 0,
- "safetyTemp": 3000
}, - "fieldsPreferences": [
- {
- "name": "minimumTemp",
- "minValue": -1000,
- "maxValue": 7000
}, - {
- "name": "maximumTemp",
- "minValue": -1000,
- "maxValue": 7000
}, - {
- "name": "safetyTemp",
- "minValue": -1000,
- "maxValue": 7000
}, - {
- "name": "hysteresisWindow",
- "minValue": 8,
- "maxValue": 50
}
]
}
}
}