Hi, I connected an Agara Wireless Mini Switch Model WXKG11LM. I loaded the driver ??
I setup the actions in Safety Monitor for a single click (Switch 1) to 'Disarm', a double click (Switch 2) to arm 'Arm-Night' & triple click (switch 30 'Arm-Away'
The driver I loaded is -
/**
Xiaomi Aqara Button - models WXKG11LM / WXKG12LM
Device Driver for Hubitat Elevation hub
Version 0.6.5
The driver says -
Notes on capabilities of the different models:
Model WXKG11LM (original revision)
Single click results in button 1 "pushed" event
Double-click results in button 2 "pushed" event
Triple-click results in button 3 "pushed" event
Quadruple-click results in button 4 "pushed" event
Button release is automatic, based on user-adjustable timer, results in button 0 "pushed" event
Model WXKG11LM (new revision):
Single click results in button 1 "pushed" event
Hold for longer than 400ms results in button 1 "held" event
Release of button results in button 1 "released" event
Double click results in button 1 "doubleTapped" event
Model WXKG12LM:
Single click results in button 1 "pushed" event
Hold for longer than 400ms results in button 1 "held" event
Release of button results in button 1 "released" event
Double click results in button 1 "doubleTapped" event
Shaking the button results in button 2 "pushed" event
This is a print of the 'Event', you can see that I double clicked, however the value is '1' which is assume means that it hasn't recognised the double click as being for 'Button 2' am I correct in thinking that?? -
OK so I need the 'Original" why would that be the case? one would think that the 'new version' would be better than the original???
I'll load the original, thanks
The driver suits several models of the button device and provides different capabilities depending on the model and version that you physically have.
Which version of the WXKG11LM button do you have?
My comment was that based on your Event log, you appear to have the "new revision" which supports different capabilities to the "original revision" - you can see the capabilities that each version supports in the notes at the top of the driver.
The box is covered in asian words (I guess thats what there called). I can see 'WXKG11LM', then a little lower there is '2015' si I guess it's 'WXKG11LM 2015' ??
The only driver for all these versions is noted as '155' -
Aqara Button - models WXKG11LM & WXKG12LM (code here )
Further down the page the same -
Aqara Wireless Mini Switch
Multi-function Button
WXKG11LM (2015)
lumi.sensor_switch.aq2
available 155
Aqara Wireless Mini Switch
Multi-function Button
WXKG11LM (2018)
lumi.remote.b1acn01
available 155
Aqara Wireless Mini Switch
Multi-function Button
WXKG12LM
lumi.sensor_switch.aq3
available 155
Do I have to edit it in some way after I paste it?
You've loaded the right driver, you don't need to load anything else.
You have the "new revision" of device (identified by "lumi.remote.b1acn01"), not the "original revision" (identified by "lumi.sensor_switch.aq2").
For the device that you physically have, the driver offers the capabilities that I listed before - i.e. single click, hold, release and double click on button 1.
From what I can see from the Event log, the device is working correctly.
You should be able to use those capabilities in HSM or Rule Manager?
Thanks for all the advice.
Is there somewhere I can find instruction on how to set up the switch to do different things based on the amount of clicks (or double tap event) or hold in HSM?
I want the button to 'Disarm on 1 tap, 'Arm-Night' with 'Double Tap'
I thought you wanted this working in HSM from your OP?
For other apps (where buttons are not natively supported in the app) and devices, use the Button Controller app. For apps that don’t natively support buttons, you can create a virtual switch and have button controller toggle that virtual switch. Then in the app that doesn’t support buttons, define the virtual switch for your triggers instead.
If you’re not sure if the various clicks are working, look at the driver details for the button to see which button press is reported in the status when you do the various clicks. Xiaomi buttons need a certain cadence to get the different button presses to report.