Skip to content

Commit 9a68edb

Browse files
authored
Add support for Hue Tap dial switch
1 parent bff9212 commit 9a68edb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

BridgeEmulator/services/mqtt.py

+14
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,25 @@
129129
"arrow_right_click": {"many": 4002},
130130
}
131131
},
132+
"8719514440937": {
133+
"dataConversion": {
134+
"rootKey": "action",
135+
"button_1_press": {"buttonevent": 34},
136+
"button_2_press": {"buttonevent": 16},
137+
"button_3_press": {"buttonevent": 17},
138+
"button_4_press": {"buttonevent": 18},
139+
"dial_rotate_left_step": {"buttonevent": 2000},
140+
"dial_rotate_right_step": {"buttonevent": 2001},
141+
"dial_rotate_left_slow": {"many": 3000},
142+
"dial_rotate_right_slow": {"many": 3001},
143+
}
144+
},
132145
}
133146

134147
# WXKG01LM MiJia wireless switch https://www.zigbee2mqtt.io/devices/WXKG01LM.html
135148

136149
standardSensors["RWL022"] = standardSensors["RWL021"]
150+
standardSensors["8719514440999"] = standardSensors["8719514440937"]
137151

138152
def getClient():
139153
return client

0 commit comments

Comments
 (0)