Download OpenAPI specification:Download
It is specific API of BleBox devices with API type: shutterBox
Please check API type and API level (version) before use,
if you don't see the expected field or object 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": "20210413",
- "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": "20210413",
- "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": "20210413",
- "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 (ssid_connect) [ 0 .. 32 ] characters SSID of WiFi network. |
pwd | string or null (pwd) [ 0 .. 64 ] characters 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
}
Returns information about the device state
(Includes e.g. state, current position, desired position, favorite position, and tilt)
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
Allows setting the desired state of the device and configuring a favorite position
object Object that allows setting the device state or configuring favorite position |
{- "shutter": {
- "command": "up",
- "desiredPos": {
- "position": 42,
- "tilt": 50
}, - "favPos": {
- "position": 42,
- "tilt": 50
}
}
}
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
Returns extended information about the device state
(Includes all parameters required to display the user interface)
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}, - "controlType": 1,
- "tiltMinAngle": 0,
- "tiltMaxAngle": 135,
- "tiltDisplayUnit": 0,
- "calibrationParameters": {
- "isCalibrated": 1,
- "maxMoveTimeUpMs": 32423,
- "maxMoveTimeDownMs": 29815,
- "maxTiltTimeUpMs": 1250,
- "maxTiltTimeDownMs": 1250
}
}
}
Returns information about the device state
(Includes e.g. state, current position, desired position, favorite position, and tilt)
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
Allows setting the desired state of the device and configuring a favorite position
object Object that allows setting the device state or configuring favorite position |
{- "shutter": {
- "command": "up",
- "desiredPos": {
- "position": 42,
- "tilt": 50
}, - "favPos": {
- "position": 42,
- "tilt": 50
}
}
}
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
Returns extended information about the device state
(Includes all parameters required to display the user interface)
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}, - "controlType": 1,
- "tiltMinAngle": 0,
- "tiltMaxAngle": 135,
- "tiltDisplayUnit": 0,
- "calibrationParameters": {
- "isCalibrated": 1,
- "maxMoveTimeUpMs": 32423,
- "maxMoveTimeDownMs": 29815,
- "maxTiltTimeUpMs": 1250,
- "maxTiltTimeDownMs": 1250
}
}
}
Allows controlling the device using GET request
command required | string Enum: "u" "d" "s" "n" "f" "us" "ds" Example: u
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
Allows setting the position using a GET request
(Requires calibration - can only be used when the device is calibrated)
positionPercentage required | integer <int8_t> (position_set) [ 0 .. 100 ] Example: 42
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
Allows adjusting (incrementing or decrementing) the position using a GET request
(Requires calibration - can only be used when the device is calibrated)
adjustmentType required | string (adjustmentType) Enum: "inc" "dec" Example: inc
| ||||||
positionDiffPP required | integer <int8_t> (value_diff_pp_set) [ 0 .. 100 ] Example: 33
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
Allows setting the position and tilt using a GET request
(Requires calibration - can only be used when the device is calibrated)
(only tilt-supported controlType)
positionPercentage required | integer <int8_t> (position_set) [ 0 .. 100 ] Example: 42
| ||||||||
tiltPercentage required | integer <int8_t> (tilt_set) [ 0 .. 100 ] Example: 50
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
Allows setting the tilt / rotation using a GET request
(only for tilt-supported controlTypes)
tiltPercentage required | integer <int8_t> (tilt_set) [ 0 .. 100 ] Example: 50
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
Allows adjusting (incrementing or decrementing) the tilt / rotation using a GET request
(only for tilt-supported controlTypes)
adjustmentType required | string (adjustmentType) Enum: "inc" "dec" Example: inc
| ||||||
tiltDiffPP required | integer <int8_t> (value_diff_pp_set) [ 0 .. 100 ] Example: 33
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 42,
- "tilt": 55
}, - "desiredPos": {
- "position": 42,
- "tilt": 55
}, - "favPos": {
- "position": 42,
- "tilt": 55
}, - "safety": {
- "eventReason": 0,
- "triggered": [
- 6
]
}
}
}
{- "settings": {
- "deviceName": "My BleBox device name",
- "tunnel": {
- "enabled": 1,
- "logEnabled": 1
}, - "statusLed": {
- "enabled": 1
}, - "shutter": {
- "controlType": 1,
- "limit": {
- "type": 1,
- "overloadThresholdMa": 100,
- "powerCutThresholdMa": 1600,
- "powerCutThresholdVA": 25,
- "fieldsPreferences": [
- {
- "name": "type",
- "values": [
- 2
]
}, - {
- "name": "overloadThresholdMa",
- "minValue": 0,
- "maxValue": 4500
}
]
}, - "safety": {
- "overload": {
- "enabled": 1,
- "thresholdMa": 2000,
- "fieldsPreferences": [
- {
- "name": "thresholdMa",
- "minValue": 100,
- "maxValue": 4500
}
]
}
}, - "softStartMs": 2000,
- "reverseMoveMs": 500,
- "moveTimeoutMs": 120000,
- "slowModePower": 75,
- "tiltMinAngle": 0,
- "tiltMaxAngle": 135,
- "tiltDisplayUnit": 0,
- "moveDirectionSwap": 0,
- "inputsSwap": 0,
- "calibrationParameters": {
- "isCalibrated": 1,
- "maxMoveTimeUpMs": 32423,
- "maxMoveTimeDownMs": 29815,
- "maxTiltTimeUpMs": 1250,
- "maxTiltTimeDownMs": 1250
}, - "fieldsPreferences": [
- {
- "name": "controlType",
- "disabled": 1
}, - {
- "name": "softStartMs",
- "minValue": 1,
- "maxValue": 10000,
- "specialValues": {
- "off": 0
}
}, - {
- "name": "reverseMoveMs",
- "minValue": 100,
- "maxValue": 20000,
- "specialValues": {
- "off": 0
}
}, - {
- "name": "moveTimeoutMs",
- "minValue": 3000,
- "maxValue": 600000,
- "specialValues": {
- "off": 0
}
}, - {
- "name": "slowModePower",
- "minValue": 50,
- "maxValue": 90
}
]
}
}
}
Allows setting the device's specific settings
object Object which contains specific settings |
{- "settings": {
- "deviceName": "My BleBox device name",
- "tunnel": {
- "enabled": 1,
- "logEnabled": 1
}, - "statusLed": {
- "enabled": 1
}, - "shutter": {
- "controlType": 1,
- "limit": {
- "type": 1,
- "overloadThresholdMa": 100,
- "powerCutThresholdMa": 1600,
- "powerCutThresholdVA": 25
}, - "safety": {
- "overload": {
- "enabled": 1,
- "thresholdMa": 2000
}
}, - "softStartMs": 2000,
- "reverseMoveMs": 500,
- "moveTimeoutMs": 120000,
- "slowModePower": 75,
- "tiltMinAngle": 0,
- "tiltMaxAngle": 135,
- "tiltDisplayUnit": 0,
- "moveDirectionSwap": 0,
- "inputsSwap": 0,
- "calibrationParameters": {
- "isCalibrated": 1,
- "maxTiltTimeUpMs": 1250,
- "maxTiltTimeDownMs": 1250
}
}
}
}
{- "settings": {
- "deviceName": "My BleBox device name",
- "tunnel": {
- "enabled": 1,
- "logEnabled": 1
}, - "statusLed": {
- "enabled": 1
}, - "shutter": {
- "controlType": 1,
- "limit": {
- "type": 1,
- "overloadThresholdMa": 100,
- "powerCutThresholdMa": 1600,
- "powerCutThresholdVA": 25,
- "fieldsPreferences": [
- {
- "name": "type",
- "values": [
- 2
]
}, - {
- "name": "overloadThresholdMa",
- "minValue": 0,
- "maxValue": 4500
}
]
}, - "safety": {
- "overload": {
- "enabled": 1,
- "thresholdMa": 2000,
- "fieldsPreferences": [
- {
- "name": "thresholdMa",
- "minValue": 100,
- "maxValue": 4500
}
]
}
}, - "softStartMs": 2000,
- "reverseMoveMs": 500,
- "moveTimeoutMs": 120000,
- "slowModePower": 75,
- "tiltMinAngle": 0,
- "tiltMaxAngle": 135,
- "tiltDisplayUnit": 0,
- "moveDirectionSwap": 0,
- "inputsSwap": 0,
- "calibrationParameters": {
- "isCalibrated": 1,
- "maxMoveTimeUpMs": 32423,
- "maxMoveTimeDownMs": 29815,
- "maxTiltTimeUpMs": 1250,
- "maxTiltTimeDownMs": 1250
}, - "fieldsPreferences": [
- {
- "name": "controlType",
- "disabled": 1
}, - {
- "name": "softStartMs",
- "minValue": 1,
- "maxValue": 10000,
- "specialValues": {
- "off": 0
}
}, - {
- "name": "reverseMoveMs",
- "minValue": 100,
- "maxValue": 20000,
- "specialValues": {
- "off": 0
}
}, - {
- "name": "moveTimeoutMs",
- "minValue": 3000,
- "maxValue": 600000,
- "specialValues": {
- "off": 0
}
}, - {
- "name": "slowModePower",
- "minValue": 50,
- "maxValue": 90
}
]
}
}
}