{ "_meta": { "device_type": "Contact Sensor", "device_type_id": "0x0015", "matter_spec_ref": "Device Library 7.1, p.83-84", "matter_version": "1.5.1", "class": "Simple", "scope": "Endpoint", "description": "门窗接触传感器,用于检测门窗的开合状态", "security_role": "检测门窗是否被打开/关闭,是入侵检测的核心传感器" }, "clusters": { "Identify": { "cluster_id": "0x0003", "role": "Server", "conformance": "M", "description": "用于识别该 endpoint" }, "BooleanState": { "cluster_id": "0x0045", "role": "Server", "conformance": "M", "description": "指示传感器的检测状态", "attributes": { "StateValue": { "type": "bool", "description": "传感器当前状态", "values": { "true": "Closed or contact (关闭/有接触)", "false": "Open or no contact (打开/无接触)" } } }, "events": { "StateChange": { "description": "状态发生变化时触发", "fields": { "StateValue": { "type": "bool", "description": "新的状态值" } } } } }, "BooleanStateConfiguration": { "cluster_id": "0x0080", "role": "Server", "conformance": "O", "description": "用于配置传感器(如灵敏度等),关联到 BooleanState cluster" } } }