This configuration sets up the brightness range of a device.
Required Attribute:
brightnessRangeConfigurable
brightnessRangeConfigurable{
"name": "brightnessRangeConfigurable",
"value": true
}Device Model Example
{
"Light": {
"type": "LIGHT",
"traits": ["OnOff", "Brightness", "ColorSetting"],
"disabled": false,
"attrs": [
{"name": "commandOnlyOnOff", "value": false},
{"name": "commandOnlyBrightness", "value": false},
{ "name": "colorTemperatureRange", "value": {"temperatureMinK": 2700, "temperatureMaxK": 6500} },
{
"name": "fade",
"value": { "durationRange": {"min": 1, "max": 10} }
},
{"name": "brightnessRangeConfigurable", "value": true}
]
},
"Ultron Device": {
"type": "ULTRON",
"traits": ["UltronCommand", "BluetoothGateway", "ReportState", "UltronConfig"],
"disabled": false,
"attrs": [
{"name": "rebootTime", "value": 20},
{"name": "fwUpgradeTime", "value": 60},
{"name": "iotConfigurableIntervals", "value": true},
{
"name": "schedulable",
"value": { "Light": ["OnOff"] }
},
{"name": "periodicity", "value": true}
]
}
}
Config Item Attributes
| Field Name | Type | Note |
|---|---|---|
min | Integer | Minimum brightness of the device. |
max | Integer | Maximum brightness of the device. |
Example
{
"config": "BrightnessRange",
"items": {
"min": 10,
"max": 90
}
}API Example: /usr/v5/SetDeviceConfigs
{
"sn": "UT2Z07-6JXXXXX",
"configs": [{
"config": "BrightnessRange",
"items": {
"min": 10,
"max": 90
}
}]
}