|
楼主 |
发表于 2023-5-18 21:12:36
来自手机
|
显示全部楼层
from custom_components.xiaomi_gateway3.core.converters.devices import *
DEVICES = [{
2954: ["Xiaomi", "Mesh Triple Wall Switch", "DIYSWITCH03N"],
"spec": [
Converter("Left Switch", "switch", mi="2.p.1"),
Converter("Middle Switch", "switch", mi="3.p.1"),
Converter("Right Switch", "switch", mi="4.p.1"),
],
}, {
9610: ["Xiaomi", "Mesh Doublle Wall Switch", "DIYSWITCH02"],
"spec": [
Converter("Left Switch", "switch", mi="2.p.1"),
Converter("Right Switch", "switch", mi="3.p.1"),
],
}, {
9609: ["Xiaomi", "Mesh Single Wall Switch", "DIYSWITCH01"],
"spec": [
Converter("Switch", "switch", mi="2.p.1"),
],
}] + DEVICES |
|