BrightnessRange


This configuration sets up the brightness range of a device.

Required Attribute:

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 NameTypeNote
minIntegerMinimum brightness of the device.
maxIntegerMaximum 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
    }
  }]
}