{
  "schema": "devcap1.schema.json",
  "manufacturername": ["Xiaoyan", "TERNCY"],
  "modelid": ["TERNCY-SD01", "TERNCY-SD01"],
  "vendor": "Terncy",
  "product": "Terncy Smart Dial SD01",
  "sleeper": true,
  "status": "Gold",
  "md:known_issues": [ "terncy_sd01_known_issues.md" ],
  "subdevices": [
    {
      "type": "$TYPE_SWITCH",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0xfccc"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x01F2",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0xFCCC",
          "0x0001"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid",
          "awake": true
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion",
          "read": {
            "fn": "none"
          }
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "parse": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          },
          "read": {
            "fn": "none"
          }
        },
        {
          "name": "config/checkin",
          "public": false,
          "static": 3600
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/angle",
          "awake": true,
          "parse": {
            "at": "0x001B",
            "cl": "0xFCCC",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          }
        },
        {
          "name": "state/buttonevent",
          "awake": true
        },
        {
          "name": "state/eventduration",
          "awake": true,
          "parse": {
            "at": "0x001A",
            "cl": "0xFCCC",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ]
}