Aqara Buttons All-In-One [Zigbee2MQTT]

@Scoff: Did you (or anyone else) ever find a solution? I’d like to do something like:

  • hold: brightness slowly increases to max until button is released
  • click and hold: brightness slowly decreases to min until button is released

…with my Aqara Mini Switch (single button), which exposes single, double, triple, quadruple, hold and release. Thanks!

Can be added support for WXKG13LM ? (The new T1 switch) Xiaomi WXKG13LM control via MQTT | Zigbee2MQTT

:warning::warning::warning::warning::warning::warning::warning::warning::warning:

Use a new native method to bind any keys without bluprints.

I no longer use this blueprint and have no plans to support it.

:warning::warning::warning::warning::warning::warning::warning::warning::warning:

I have a noob question.

I have the WXKG11LM switch, and HA is only showing “single” aciton in the triggers for this device.

Am I missing something?

I also tried few blueprints and the switch is not showing in the entities when I search for it, so none of the automations worked.

Thanks

Just press all combinations (double, hold, etc.) on the switch and they will appear in the list of triggers.

1 Like

This does not work properly.

Hello!
First of all, sorry if i am posting on the wrong section.
I am a newbie when it comes to Home Assistant. I’m trying to change from Mi Home to Home Assistant and i am having some troubles. I own QBKG11LM and QBKG12LM Aqara switches and on Mi Home there is a feature called “Wireless Switch” that can be enabled. I wonder if there is any similar feature on Home Assistant?
Thanks in advance.

This works like a charm! it’s soooo easy. Glad to have come across your post @Drafted !

May I ask you something? is there a way a sequence of conditions can be implemented? I would like for two consecutive gestures to happen before I trigger a high impact automation (turning on a mediaplayer connected to a power amplifier I can’t query the current volume set).

Thanks in advance!

This blueprint works perfect for years.
But now with the update of zigbee2mqtt to 2.x versión.
It stoped works.

Some one know how to update easy?

1 Like

I still use this, will need to enable the event entities in Z2M but I’ve created a fork here:

Thank you for the fork! I migrated multiple switch automations already. I’m using the WXKG11LM (Supports single, double and hold actions).

Tried it again, and for some reason it is working now… Fine by me :stuck_out_tongue:
The single and double actions are working fine, but the hold action is giving me some issues, they are not executed.

Z2M does sees the hold action, in the log:

> z2m:mqtt: MQTT publish: topic ‘zigbee2mqtt/Switch Bureau’, payload ‘{“action”:“single”,“battery”:100,“device_temperature”:21,“linkquality”:255,“power_outage_count”:21,“voltage”:3015}’

Any ideas?

hello
thanks for this fork
but maybe i lost some part of the process.
you say “will need to enable the event entities in z2m”. can you explain this step?

If I import this blueprint, not apears any event in the blueprint :frowning:

From Z2M, under Settings > Home Assistant Integration, enable experimental event entities like below:

You can actually also enable the legacy action sensors and the original blueprint will still work, but these will be removed eventually so really just delaying when this will come up again in my view by doing that.

1 Like

thanks a lot! I will try again with your fork!

1 Like

I have created Blueprints for Aqara WXKG02LM_rev2 and Xiaomi Mi WXKG01LM switches working with Zigbee2MQTT 2.0.0-1.

Home Assistant Community links:
WXKG02LM_rev2
WXKG01LM

GitHub links:
WXKG02LM_rev2
WXKG01LM

Hello.
This fork have a problem.
When i reboot zigbee2mqtt, the automation trigger with the last action detected in the button.

The last action was registered and home assistant detect a change from unavailable to the estate recordered, and triger the automation.

Anyone have this problem too?

Not come across that yet, but admittedly I haven’t rebooted HA or Z2M…
Easy to fix though, I’ve just updated the gist so you should be able to update the blueprint in HA :slight_smile:

I have the same problem with my WXKG12LM

Only with another blueprint.

Maybe its a setting in zigbee2mqtt

@kalmma Use MQTT triggers: Aqara Buttons All-In-One [Zigbee2MQTT] - #45 by Drafted

2 Likes