-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xaomi WXKG11LM Switches trigger without button press #13685
Comments
I don't see any actions being published in
You see that The |
I can see that - but why then is the light ("Living Room Colour 2") state being changed to "ON" off the back of that 'null' action? Something is clearly triggering it. In fact, why are there even any messages from the switch at all... they should'nt be doing anything unless the button is pressed. |
This issue seems to be like There is a comment there about the 50 minute cycle and the device sending a 'genBasic' message to itself. This sounds like a very similar issue to me |
Because you probably have an automation which triggers on this. See https://www.zigbee2mqtt.io/guide/usage/integrations/home_assistant.html#responding-to-button-clicks how to properly setup your automation. |
No, I don't have any other automation triggering this light. As a test, I amended zigbee-herdsman-converters/devices/xiaomi.js as follows:
I removed: fz.xiaomi_basic and added: fz.ignore_basic_report and this solved the issue completely. The button actions still work and of course, if I had any other automations triggering these lights then this change obviously wouldn't have made any difference because it is specific to only one device: WXKG11LM. For whatever reason, the WXKG11LM genBasic status update triggers the automation despite the fact that the action is set to "null" |
That is a problem in your automation, not in zigbee2mqtt. Your automation should not do anything when action null is published. https://www.zigbee2mqtt.io/guide/usage/integrations/home_assistant.html#via-mqtt-device-trigger-recommended shows how to properly set up an automation which does not trigger on |
I'll revisit that to see where this is going wrong. Thanks for the pointer |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
What happened?
I have installed two Xaomi WXKG11LM switches and setup a simple automation to toggle two lights on/off with a single button press. This works fine. However, if I leave the switches alone - they both trigger 50 minutes later - without any button press.
The logs clearly show the button presses I made but then show that Zigbee2MQTT received a message 50 minutes later to switch the units again - without any intervention by me.
Curiously, this appears to be 3000 seconds after the first press - not sure if that is significant.
What did you expect to happen?
I expected that there would be no change to the light status without a press of the switch
How to reproduce it (minimal and precise)
Setup HA automation to set button press to toggle light on/off.
Zigbee2MQTT version
1.27.0-1
Adapter firmware version
26780700
Adapter
Conbee II
Debug log
First Button Press.log
Phantom Button Press.log
The text was updated successfully, but these errors were encountered: