|
发表于 2024-2-23 23:36:57
|
显示全部楼层
DEVICES = [{
14610: ["PTX", "Triple Wireless Switch", "PTX-AK3-QMIMC"],
"spec": [
MiBeacon, BLEAction, Button1, Button2, Button3,ButtonBoth,
EventConv("action", mi="2.e.1012", value="button_1_single"),
EventConv("action", mi="4.e.1012", value="button_2_single"),
EventConv("action", mi="5.e.1012", value="button_3_single"),
EventConv("action", mi="2.e.1014", value="button_1_hold"),
EventConv("action", mi="4.e.1014", value="button_2_hold"),
EventConv("action", mi="5.e.1014", value="button_3_hold"),
],
}] + DEVICES
注意格式,这个是我自己正在使用的,只有单击跟长按两种状态,希望可以帮到你 |
|