|
楼主 |
发表于 2024-6-13 13:02:29
|
显示全部楼层
好的,多谢多谢!
如果以后Xiaomi Gateway 3插件更新只要将这段代码加到这个文件中就可以正常使用对吗:
#https://home.miot-spec.com/spec? ... 021:090615-akswr2:1
14609: ["PTX", "Double Wireless Switch", "PTX-AK2-QMIMC", "PTX-AK2-QMIMB2"],
"spec": [
BaseConv("action", "sensor"),
ConstConv("action", mi="2.e.1012", value=BUTTON_1_SINGLE),
ConstConv("action", mi="4.e.1012", value=BUTTON_2_SINGLE),
ConstConv("action", mi="2.e.1014", value=BUTTON_1_HOLD),
ConstConv("action", mi="4.e.1014", value=BUTTON_2_HOLD),
],
}, { |
|