{
  "schema": "resourceitem1.schema.json",
  "id": "config/bri/execute_if_off",
  "datatype": "Bool",
  "access": "RW",
  "public": true,
  "description": "Execute brightness changes when the device is off.",
  "default": true,
  "parse": {
    "fn": "zcl:attr",
    "ep": 0,
    "cl": "0x0008",
    "at": "0x000F",
    "eval": "Item.val = (Attr.val & 0x01) !== 0"
  },
  "write": {
    "fn": "zcl:attr",
    "ep": 0,
    "cl": "0x0008",
    "at": "0x000F",
    "dt": "0x18",
    "eval": "Item.val ? R.item('config/bri/options').val | 0x01 : R.item('config/bri/options').val & ~0x01"
  }
}
