This makes me think about what I’ve read in the zigbee2mqtt docs some time ago about this button
and the configurable hold timeout:
hold_timeout: The WXKG01LM only reports a button press and release.By default, a hold action is published when there is at least 1000 ms between both events. It could be that due to delays in the network the release message is received late. This causes a single click to be identified as a hold action. If you are experiencing this you can try experimenting with this option (e.g. set it to 2000) (value is in ms). The value must be a number with a minimum value of 0
changelog of this blueprint:
2021-04-09: Changed Hold time default value (from 1s to 0.6s), along with the minimum hold time ( from 0 to 0.15s), max time (from 10s to 2.5s) and the step (from 1 to 0.05), to allow more granularity and flexibility. Kudos to @jant90
It could be that you have enough delay in the zigbee network that the release from a single press comes in too late and thats why It gets detected as a hold action. Try editing the blueprint to increase the hold time to a higher value again. Maybe this solves the issue
Incredible work mate - I was troubleshooting some general lag in my entire system, which turned out to be caused by a very niche custom component that the author very kindly rebuilt to prevent any more issues.
You were spot on though, the integration was causing my HA to lag so much that single presses were being interpreted as hold actions. As soon as the integration was fixed, this problem went away.
Thank you very much, I’d given up on this button thinking that I needed the Xiaomi gateway and the unusual handling of how clicking the button doesn’t show anything on the Device Info page where for other devices you can see all its sensors or diagnostics
I know this is an old Post but I could really use some help / fear that this is not working anymore.
I have recently bought a couple of the Switches and they are not able to pair with the HA SkyConnect Zigbee USB. The switches do not have any reset / pairing button and when pressing the switch for 5s they blink quickly twice, but nothing else happens.
On the Zigbee Connection page, no devices are visible.
As of HA 2024.8.0b01 (August Beta) this Blueprint is not working for me for short and long press functions. Double tap seems to still be working.
The automation gets to the choose section for figuring out what to do based on click type and then does nothing. I’m trying to get more info from the traces.
Triple and quadruple click has an attribute_value of 3 and 4 respectively, and 5 is more clicks has an attribute_value of 128 with the other values the same as double click.
Since I use a number of these buttons including for my doorbell I decided to move the automations over to Switch Manager just now. They are working perfectly there.
Nice try
But it doesn’t work if you have a choose action in your automation (like 100% of the cases in my house ), HA considers two separate simple clicks…
On the other hand, I saw something a few lines above and changing :
I’m trying to use my Mi Wireless Switches with my HA.
I used them previously with my Mi Home App through an Aqara Gateway. Now I got a Zigbee Dongle-E and I managed to pair them via ZHA and do some automations.
The problem I’m having is that they’re stopping being connected to ZHA.
After config I leave them without tap and they just disconnect and I have to pair them again.
This way they’re not useful, I have no idea what to do.
I’ve changed the line as stated in the blueprint (value → attribute_value). After restarting single press is not working for me.
I have 3 scene:
single: scene_warm
hold : scene_off
double: scene_cold
double and hold works with the patch but not single