{
  "schema": "devcap1.schema.json",
  "manufacturername": ["$MF_LUMI", "$MF_LUMI"],
  "modelid": ["lumi.sensor_cube", "lumi.sensor_cube.aqgl01"],
  "vendor": "Xiaomi",
  "product": "Aqara Cube MFKZQ01LM",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_SWITCH",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x03",
        "0x000c"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x5F03",
        "endpoint": "0x03",
        "in": [
          "0x000C"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername",
          "awake": true
        },
        {
          "name": "attr/modelid",
          "awake": true
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion",
          "parse": {
            "at": "0x0006",
            "cl": "0x0000",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          },
          "read": {
            "at": "0x0006",
            "cl": "0x0000",
            "ep": 1,
            "fn": "zcl:attr"
          }
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "parse": {
            "at": "0xff01",
            "ep": 1,
            "idx": "0x01",
            "fn": "xiaomi:special",
            "script": "xiaomi_battery.js"
          }
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/gesture"
        },
        {
          "name": "state/buttonevent",
          "parse": {
            "at": "0x0055",
            "cl": "0x000C",
            "ep": 3,
            "fn": "zcl:attr",
            "script": "xiaomi_cube_rotation.js"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_SWITCH",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x02",
        "0x0012"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x5F02",
        "endpoint": "0x02",
        "in": [
          "0x0012"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername",
          "awake": true
        },
        {
          "name": "attr/modelid",
          "awake": true
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion",
          "parse": {
            "at": "0x0006",
            "cl": "0x0000",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          },
          "read": {
            "at": "0x0006",
            "cl": "0x0000",
            "ep": 1,
            "fn": "zcl:attr"
          }
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "parse": {
            "at": "0xff01",
            "ep": 1,
            "idx": "0x01",
            "fn": "xiaomi:special",
            "script": "xiaomi_battery.js"
          }
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/gesture"
        },
        {
          "name": "state/buttonevent",
          "parse": {
            "at": "0x0055",
            "cl": "0x0012",
            "ep": 2,
            "fn": "zcl:attr",
            "script": "xiaomi_cube_gestures.js"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ]
}