{
  "id": "6c7c07b68acc25bd8cpjaf-0d2b-9fc6-3a0c-1e6354b7e75",
  "name": "人体传感器",
  "expands": {
    "category": "pir"
  },
  "properties": [{
    "id": "batteryLevel",
    "name": "电池电量状态",
    "accessMode": "r",
    "dataType": {
      "type": "int",
      "min": "0",
      "max": "100",
      "step": "1",
      "unit": "%"
    },
    "expands": {
      "code": "battery_percentage",
      "reportMethod": 2,
      "scalingFactor": 1.0
    },
    "remark": ""
  }, {
    "id": "pir",
    "name": "人体感应状态",
    "accessMode": "r",
    "dataType": {
      "type": "enum",
      "elements": [{
        "value": "pir",
        "key": "",
        "text": "移动"
      }, {
        "value": "none",
        "key": "",
        "text": "无"
      }]
    },
    "expands": {
      "code": "pir",
      "reportMethod": 2,
      "scalingFactor": 1.0
    },
    "remark": ""
  }],
  "functions": [],
  "events": [],
  "protocol": {
    "type": "TUYA-HTTP",
    "expands": {
      "device_id": ""
    }
  }
}