84 lines
2.6 KiB
JSON
84 lines
2.6 KiB
JSON
{
|
|
"_meta": {
|
|
"device_type": "Occupancy Sensor",
|
|
"device_type_id": "0x0107",
|
|
"matter_spec_ref": "Device Library 7.3, p.85-86",
|
|
"matter_version": "1.5.1",
|
|
"class": "Simple",
|
|
"scope": "Endpoint",
|
|
"description": "占用/运动传感器,检测指定区域是否有人存在",
|
|
"security_role": "检测房间是否有人,是行为模式分析和入侵检测的核心传感器"
|
|
},
|
|
"clusters": {
|
|
"Identify": {
|
|
"cluster_id": "0x0003",
|
|
"role": "Server",
|
|
"conformance": "M",
|
|
"description": "用于识别该 endpoint"
|
|
},
|
|
"BooleanStateConfiguration": {
|
|
"cluster_id": "0x0080",
|
|
"role": "Server",
|
|
"conformance": "O",
|
|
"description": "配置传感器灵敏度等参数,关联到 OccupancySensing cluster"
|
|
},
|
|
"OccupancySensing": {
|
|
"cluster_id": "0x0406",
|
|
"role": "Server",
|
|
"conformance": "M",
|
|
"description": "指示占用状态、传感器类型和占用/非占用转换延迟配置",
|
|
"attributes": {
|
|
"Occupancy": {
|
|
"type": "bitmap8",
|
|
"description": "当前占用状态 (bit 0: occupied)",
|
|
"values": {
|
|
"0": "Unoccupied (无人)",
|
|
"1": "Occupied (有人)"
|
|
}
|
|
},
|
|
"OccupancySensorType": {
|
|
"type": "enum8",
|
|
"description": "传感器类型",
|
|
"values": {
|
|
"0": "PIR (被动红外)",
|
|
"1": "Ultrasonic (超声波)",
|
|
"2": "PIRAndUltrasonic (红外+超声波)",
|
|
"3": "PhysicalContact (物理接触)"
|
|
}
|
|
},
|
|
"OccupancySensorTypeBitmap": {
|
|
"type": "bitmap8",
|
|
"description": "支持的传感器类型位图"
|
|
},
|
|
"PIROccupiedToUnoccupiedDelay": {
|
|
"type": "uint16",
|
|
"description": "PIR 从占用到非占用的延迟(秒)",
|
|
"default": 0
|
|
},
|
|
"PIRUnoccupiedToOccupiedDelay": {
|
|
"type": "uint16",
|
|
"description": "PIR 从非占用到占用的延迟(秒)",
|
|
"default": 0
|
|
},
|
|
"PIRUnoccupiedToOccupiedThreshold": {
|
|
"type": "uint8",
|
|
"description": "PIR 从非占用到占用的触发阈值",
|
|
"default": 1
|
|
}
|
|
},
|
|
"events": {
|
|
"OccupancyChanged": {
|
|
"description": "占用状态变化时触发",
|
|
"fields": {
|
|
"Occupancy": {
|
|
"type": "bitmap8",
|
|
"description": "新的占用状态"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"_note": "多模态传感器可以在单个 endpoint 上组合多种传感类型,也可以在多个 endpoint 上分开"
|
|
}
|
|
}
|
|
}
|