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 in response from a real device then hardware version do not support this feature.
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",
- "type": "shutterBox",
- "apiLevel": "20190911",
- "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 extended information about shutter state
(all parameters needed to display user interface)
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 0,
- "tilt": 0
}, - "desiredPos": {
- "position": 0,
- "tilt": 0
}, - "favPos": {
- "position": 0,
- "tilt": 0
}, - "controlType": 1,
- "calibrationParameters": {
- "isCalibrated": 1,
- "maxMoveTimeUpMs": 32423,
- "maxMoveTimeDownMs": 29815,
- "maxTiltTimeUpMs": 1250,
- "maxTiltTimeDownMs": 1250
}
}
}
Allows to control shutter using GET request
command required | string Enum: "u" "d" "s" "n" "f" "us" "ds" Example: u
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 0,
- "tilt": 0
}, - "desiredPos": {
- "position": 0,
- "tilt": 0
}, - "favPos": {
- "position": 0,
- "tilt": 0
}
}
}
Allows to set position of shutter using GET request
(requires calibration - can be used only when shutter is calibrated)
positionPercentage required | integer <int8_t> (position_set) [ 0 .. 100 ] Example: 42
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 0,
- "tilt": 0
}, - "desiredPos": {
- "position": 0,
- "tilt": 0
}, - "favPos": {
- "position": 0,
- "tilt": 0
}
}
}
Allows to set tilt using GET request
(only for tilt-supported controlTypes)
tiltPercentage required | integer <int8_t> (tilt_set) [ 0 .. 100 ] Example: 50
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 0,
- "tilt": 0
}, - "desiredPos": {
- "position": 0,
- "tilt": 0
}, - "favPos": {
- "position": 0,
- "tilt": 0
}
}
}
Allows to set position and tilt of shutter using GET request
(requires calibration - can be used only when shutter is calibrated)
(only for tilt-supported controlTypes)
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": 0,
- "tilt": 0
}, - "desiredPos": {
- "position": 0,
- "tilt": 0
}, - "favPos": {
- "position": 0,
- "tilt": 0
}
}
}
Allows to increase tilt using GET request
(only for tilt-supported controlTypes)
tiltDiffPP required | integer <int8_t> (value_diff_pp_set) [ 0 .. 100 ] Example: 33
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 0,
- "tilt": 0
}, - "desiredPos": {
- "position": 0,
- "tilt": 0
}, - "favPos": {
- "position": 0,
- "tilt": 0
}
}
}
Allows to decrease tilt using GET request
(only for tilt-supported controlTypes)
tiltDiffPP required | integer <int8_t> (value_diff_pp_set) [ 0 .. 100 ] Example: 33
|
{- "shutter": {
- "state": 2,
- "currentPos": {
- "position": 0,
- "tilt": 0
}, - "desiredPos": {
- "position": 0,
- "tilt": 0
}, - "favPos": {
- "position": 0,
- "tilt": 0
}
}
}
{- "settings": {
- "deviceName": "My BleBox device name",
- "tunnel": {
- "enabled": 1
}, - "statusLed": {
- "enabled": 1
}, - "shutter": {
- "controlType": 1,
- "inputsSwap": 0,
- "moveDirectionSwap": 0,
- "calibrationParameters": {
- "isCalibrated": 1,
- "maxTiltTimeUpMs": 1250,
- "maxTiltTimeDownMs": 1250
}, - "moveTimeoutMs": 120000,
- "limitThresholdVA": 25
}
}
}
Allows to set device's specific settings
object Object which contain specific settings |
{- "settings": {
- "deviceName": "My BleBox device name",
- "tunnel": {
- "enabled": 1
}, - "statusLed": {
- "enabled": 1
}, - "shutter": {
- "controlType": 1,
- "inputsSwap": 0,
- "moveDirectionSwap": 0,
- "calibrationParameters": {
- "isCalibrated": 1,
- "maxTiltTimeUpMs": 1250,
- "maxTiltTimeDownMs": 1250
}, - "moveTimeoutMs": 120000,
- "limitThresholdVA": 25
}
}
}
{- "settings": {
- "deviceName": "My BleBox device name",
- "tunnel": {
- "enabled": 1
}, - "statusLed": {
- "enabled": 1
}, - "shutter": {
- "controlType": 1,
- "inputsSwap": 0,
- "moveDirectionSwap": 0,
- "calibrationParameters": {
- "isCalibrated": 1,
- "maxTiltTimeUpMs": 1250,
- "maxTiltTimeDownMs": 1250
}, - "moveTimeoutMs": 120000,
- "limitThresholdVA": 25
}
}
}