112 lines
3.4 KiB
JSON
112 lines
3.4 KiB
JSON
{
|
|
"_meta": {
|
|
"device_type": "Window Covering",
|
|
"device_type_id": "0x0202",
|
|
"matter_spec_ref": "Device Library 8.3, p.101-102",
|
|
"matter_version": "1.5.1",
|
|
"class": "Simple",
|
|
"scope": "Endpoint",
|
|
"description": "窗帘/窗户覆盖物控制器",
|
|
"security_role": "窗户/窗帘的位置状态,异常时间的窗帘打开可能是入侵信号"
|
|
},
|
|
"clusters": {
|
|
"Identify": {
|
|
"cluster_id": "0x0003",
|
|
"role": "Server",
|
|
"conformance": "M"
|
|
},
|
|
"Groups": {
|
|
"cluster_id": "0x0004",
|
|
"role": "Server",
|
|
"conformance": "Active, O"
|
|
},
|
|
"ClosureControl": {
|
|
"cluster_id": "0x0104",
|
|
"role": "Server",
|
|
"conformance": "X",
|
|
"description": "当前版本不允许出现在同一 endpoint"
|
|
},
|
|
"ClosureDimension": {
|
|
"cluster_id": "0x0105",
|
|
"role": "Server",
|
|
"conformance": "X",
|
|
"description": "当前版本不允许出现在同一 endpoint"
|
|
},
|
|
"WindowCovering": {
|
|
"cluster_id": "0x0102",
|
|
"role": "Server",
|
|
"conformance": "M",
|
|
"description": "窗帘/窗户覆盖物控制核心 cluster",
|
|
"attributes": {
|
|
"Type": {
|
|
"type": "enum8",
|
|
"description": "窗帘类型",
|
|
"values": {
|
|
"0": "Rollershade (卷帘)",
|
|
"1": "Rollershade2Motor (双电机卷帘)",
|
|
"2": "RollershadeExterior (外部卷帘)",
|
|
"3": "RollershadeExterior2Motor (双电机外部卷帘)",
|
|
"4": "Drapery (窗帘)",
|
|
"5": "Awning (遮阳篷)",
|
|
"6": "Shutter (百叶窗)",
|
|
"7": "TiltBlindTiltOnly (仅倾斜百叶窗)",
|
|
"8": "TiltBlindLiftAndTilt (升降+倾斜百叶窗)",
|
|
"9": "ProjectorScreen (投影幕)",
|
|
"255": "Unknown (未知)"
|
|
}
|
|
},
|
|
"CurrentPositionLiftPercent100ths": {
|
|
"type": "uint16",
|
|
"description": "当前升降位置 (0=全开, 10000=全关), 百分之一精度",
|
|
"range": "0-10000"
|
|
},
|
|
"CurrentPositionTiltPercent100ths": {
|
|
"type": "uint16",
|
|
"description": "当前倾斜位置 (0=全开, 10000=全关), 百分之一精度",
|
|
"range": "0-10000"
|
|
},
|
|
"OperationalStatus": {
|
|
"type": "bitmap8",
|
|
"description": "操作状态 (是否正在移动)",
|
|
"fields": {
|
|
"bit0-1": "Global (00=停止, 01=开启中, 10=关闭中)",
|
|
"bit2-3": "Lift (同上)",
|
|
"bit4-5": "Tilt (同上)"
|
|
}
|
|
},
|
|
"ConfigStatus": {
|
|
"type": "bitmap8",
|
|
"description": "配置状态"
|
|
},
|
|
"Mode": {
|
|
"type": "bitmap8",
|
|
"description": "操作模式 (校准模式/维护模式/LED反馈等)"
|
|
}
|
|
},
|
|
"commands": {
|
|
"UpOrOpen": {
|
|
"description": "打开窗帘/升起"
|
|
},
|
|
"DownOrClose": {
|
|
"description": "关闭窗帘/降下"
|
|
},
|
|
"StopMotion": {
|
|
"description": "停止运动"
|
|
},
|
|
"GoToLiftPercentage": {
|
|
"description": "移动到指定升降百分比",
|
|
"fields": {
|
|
"LiftPercent100thsValue": { "type": "uint16" }
|
|
}
|
|
},
|
|
"GoToTiltPercentage": {
|
|
"description": "移动到指定倾斜百分比",
|
|
"fields": {
|
|
"TiltPercent100thsValue": { "type": "uint16" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|