Disable physicals button from a smart switch

I just installed a Xiaomi QBKG41LM switch (Aqara E1 2 gang switch, with neutral) and added it to Zigbee2mqtt in HA.
Is there a possibility to disable the physicals buttons on the switch and control the lights only from HA app?

  • unelated question from my first one:
    When I create an automation for double press action, by pressing 2 times on the switch, first it turns on the light that the switch is connected (for a single press), and then turns on the automation that I’ve set for double press.
    It does not act as a normal wi-fi switch - no wires kind, that can do single double or hold action.
    Is this normal for wire connected switches?

From my experience with some of the Xiaomi/Aqara wall switches, it is a bit of a crap shoot as to two things, whether/how the switch supports ‘decoupled’ mode and then 2nd whether the given Zigbee system you are using supports setting the operation mode to ‘decoupled’.

Two links below compare what I think is your switch in Zigbee2MQTT and a different switch that I am using in ‘decoupled’ mode in Zigbee2MQTT. Both seem to show they support the decouple mode, you have to send the set decoupled mode command to the switch one time for the desired ‘paddle’ then from my experience with the device I have the action generated by a switch press on the ‘paddle’ set to decoupled only sends out a message via Zigbee and does not change the physical state of the circuit wired thru the ‘paddle’ connections on the switch. Not sure if this help you…

My experience with the the single, double and maybe triple press functions of various switches again has been a bit of a ‘roll of the dice’. The amount of time that a given switches implementation of the ‘delay’ between presses seems to vary between manufactures. It does not really help with the ‘signification other acceptance factor’, when one switch ‘double clicks’ differently than another :wink:

Good hunting!

Thanks for the reply.
It seems that I have te option for ‘decuopled’ mode.
Didn’t understand what this option was doing.
Nevetheles when I try to select it I have the below error., and the option does not register after a refresh of the browser.

How to send decoupled mode command to the switch ?

So, decouple mode, should set the switch button to just send a message via MQTT (in the case of Zigbee2MQTT), it should not change the state of the physical relay attached to the circuit connected/associated with this ‘button’ on the switch. After you do the below, the relay will be either on or off. You need to send a MQTT message to the switch or use the GUI in MQTT to set the relay state to ‘ON’. It should stay on thru power cycles and presses of the associated ‘button’. Then the only way to change the state of this relay should be via sending MQTT message to the switch.

Yes, as I said, this can be a real PIA. I believe I remember similar. Try sending via MQTT message

So for example, install the MQTT Explorer app, link below, and find the MAC address of your switch. Then send the following message topic:

(sorry I am having problems with this new forum software to allow me to post below as ‘code’

zigbee2mqtt/0x54ef441ac3629f03/set
with value:

{"operation_mode_bottom": "decoupled"}



Note, I forget it it requires quotes around decoupled or not.


zigbee2mqtt/FRIENDLY_NAME/set with payload {"operation_mode_bottom": NEW_VALUE}. The possible values are: control_relay, decoupled.

https://mqtt-explorer.com/
1 Like

Using Z2M like in your example has stopped working in the latest Z2M update. Can confirm that this used to work flawlessly, and I even had an automation to turn certain switches from relay to decouple and back through an input select.

I can’t remember where now but it has been raised as a bug. No idea when the fix will be released to Z2M for HA :frowning:

1 Like