Files
llmiotsafe/data/device_schemas/onoff_light.json
2026-05-12 17:01:39 +08:00

45 lines
1.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"_meta": {
"device_type": "On/Off Light",
"device_type_id": "0x0100",
"matter_spec_ref": "Device Library 4.1, p.49-50",
"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": "M" },
"ScenesManagement": { "cluster_id": "0x0062", "role": "Server", "conformance": "M" },
"LevelControl": { "cluster_id": "0x0008", "role": "Server", "conformance": "O", "description": "推荐包含以便与可调光灯分组时保持一致体验" },
"OccupancySensing": { "cluster_id": "0x0406", "role": "Client", "conformance": "O" },
"OnOff": {
"cluster_id": "0x0006",
"role": "Server",
"conformance": "M",
"attributes": {
"OnOff": {
"type": "bool",
"description": "当前开关状态",
"values": { "true": "On (开)", "false": "Off (关)" }
},
"GlobalSceneControl": { "type": "bool" },
"OnTime": { "type": "uint16", "description": "自动关闭倒计时(秒/10" },
"OffWaitTime": { "type": "uint16" },
"StartUpOnOff": {
"type": "enum8",
"description": "上电后初始状态",
"values": { "0": "Off", "1": "On", "2": "Toggle previous" }
}
},
"commands": {
"Off": { "description": "关灯" },
"On": { "description": "开灯" },
"Toggle": { "description": "切换状态" }
}
}
}
}