Hello
I recently began to migrate my Mi buttons (WXKG01LM) directly to HA, but ended only on getting single click.
My problem is, that i don’t know what value to set to listen for double press and long press.
Tried double click, double_click, hold, etc etc…
Here’s my node with working only click:
[{"id":"d81428fa.669568","type":"switch","z":"a8f1c526.03ac38","name":"","property":"payload.event.command","propertyType":"msg","rules":[{"t":"eq","v":"click","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":360,"wires":[["3a0fdc50.5d8d94"]],"outputLabels":["Double Click"]},{"id":"63f23784.364d38","type":"server-events","z":"a8f1c526.03ac38","name":"zha_event","server":"666b1cf9.686414","event_type":"zha_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"x":70,"y":360,"wires":[["7e362b8c.229c04"]]},{"id":"7e362b8c.229c04","type":"switch","z":"a8f1c526.03ac38","name":"lumi.switch","property":"payload.event.unique_id","propertyType":"msg","rules":[{"t":"eq","v":"00:15:8d:00:01:b1:87:dd:1:0x0006","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":270,"y":360,"wires":[["d81428fa.669568"]]},{"id":"3a0fdc50.5d8d94","type":"api-call-service","z":"a8f1c526.03ac38","name":"living","server":"f9298d6e.8cb6c","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.living","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":360,"wires":[[]]},{"id":"666b1cf9.686414","type":"server","name":"Home Assistant","addon":true},{"id":"f9298d6e.8cb6c","type":"server","name":"Home Assistant","addon":true}]