This blueprint is a copy customized for the Aqara switch with single, double and hold actions (model: WXKG11LM).
The original blueprint for the WXKG12LM is made by Malte.
This switch comes in different versions. Make sure that you have the version supporting single, double and hold actions.
The supported actions are:
Single
Double
Hold
Please note: If your button is the other model (WXKG12LM), then this blueprint won’t work and you should download and use this blueprint.
btw.
I have extended it as my WXKG11LM also supports the “release” action in addition to the “hold” action. Give it a try, yours might also support it.
I have published an update to this blueprint today that should fix the errors you have experienced. Try updating (if you cannot update, then remove and reinstall).
Give it a try and give me an update if you have more problems.
Hi there, I can’t get this to work. The button actions are happening when I view the logbook, but the actions in the blueprint don’t occur. I’m not sure what to try, I have the WXKG11LM button.
I had the same problem, modified the blueprint and it seems to work now: Aqara Wireless Switch (single, double, hold, release) · GitHub.
^ It’s a new version that uses trigger.to_state.state if available (in addition to trigger.to_state.attributes.action).
Thanks, but I just imported the blueprint again, but the automation still won’t trigger. Oh well the Aqara Buttons All-In-One [Zigbee2MQTT] blueprint is working for me.