I’ve got a few Aqara Wireless Mini Switches and until recently (few weeks ago I think) they’ve been working fine. However, I no longer seem to be able to have an option to detect when the button is either pressed, double pressed or long pressed.
They appear in Homekit devices as they always did fine, but my automations no longer work when they are pressed now.
Did something update Home Assistant side recently that might have caused this? Or perhaps Aqara did something, not sure?
I have 3 Aqara Wireless Mini Switches in the HomeKit device integration and do not have any issues. I’ve had them 18 months. I’m currently on Ha core 2024.1.6.
What kind of switches are they?
I have a buch of these Aqara WXKG11LM and have them working through Zigbee2MQTT, not Homekit, and they work fine.
Depite the fact that they have the same model number, though, some of the have single/double/triple/quadruple functions while others report single/double/hold/release.
They are the Aqara Wireless Mini Switch(WXKG11LM). They are connected to my Aqara Camera Hub G3 and connected to Home Assistant via Homekit.
The event is coming through to Home Assistant but I think something has changed stopping the automation from working. Here’s a log from “Listen to events” when pressing the button once:
The issue I believe I’m having is on an event e.g. “single_press” the state is changing to that event but then on the following same event is not changing because the device is already in that state. So having a simple automation to toggle a light on the button press doesn’t seem so simple.
Here is one of my automations for a single press. I usually use entities instead of devices in my automations, but the buttons are easier to use as devices.
I’ve just restarted Home Assistant a few times and now suddenly they are there and all is working. I can select the device and the triggers short, long and double.
I’ve no idea why it is suddenly appearing but problem “solved”
My issue was that the automation was only working when the state changed to something new (e.g. from long_release to multi_press_1). The automation wouldn’t trigger when there was a state change to itself (e.g from multi_press_1 to multi_press_1). I changed my trigger to this: