-
Notifications
You must be signed in to change notification settings - Fork 507
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
QBKG12LM decoupled mode #1420
Comments
Interesting, but looking at the issue, they haven't sniffed the command that the Mi gateway sends to the switch to disconnect the button from the relay. I think this is a |
Hello @ebaauw , From the thread it looks like they actually managed to just turn it into wireless and not use the switch as relay. I can see the buttons on the logs:
But the switch still turns it on/off when I push the buttons. |
Yes, enabled from the Mi app connected to the Mi gateway.
To change that, we need to know what command the Mi gateway sends. That info is not in the thread. |
I have a gateway and I am more than happy to sniff it. |
Use ZShark and Wireshark. See #405. You need to specify the ZigBee channel of the Mi gateway in ZShark. You need to configure the ZHA Link Key, 0x5a6967426565416c6c69616e63653039 (ZigBeeAlliance09), as pre-configured key in WireShark under Preferences|Protocols|ZigBee. Then start capturing and pair a device to the Mi gateway, to capture the network key exchange (which is encrypted with the link key). You might want to add the network key to the pre-configured keys for future sessions. Now change the setting on the Mi app and see what messages are sent to the switch. I would expect a Write Attributes command of some manufacturer specific attribute. |
I hope I did it right. I enabled decouple on the left key, then on the right key, then disabled on the left and on the right key. |
Is the capture correct? If I need to do it again, I can. |
The Zigbee messages are encrypted and I don't see the network key in there. Do you know the network key? Did you capture linking a device? |
You can probably pinch the command from the drivers we use on Hubitat for these:
Thanks to guyeeba for his work on supporting Aqara in Hubitat. |
Nice one, @martynwendon. |
The info pointed to by @martynwendon is just what the doctor ordered! @manup: the link also contains some new insights into the Xiaomi special attribute. Added the disconnect attributes to general.xml. With that you should be able to set them from the deCONZ GUI. The file sits in My |
Cool, guess there are more treasures in the firmware. Last time I've checked the Xiaomi gateway also sends a special command when the (double, single) switch button is long pressed in order to stop it from leaving the network. The gateway also sends a leave network request on long press, in order to reset the switch, when the switch was deleted in the Mi Home App. |
There's a difference between the behaviour on the single switch and double switch with regards to disconnecting it from the relay. The single switch works fine, I am able to disconnect from the relay and turn on/off the lights just fine without trigging the switch itself. The double switch just doesn't work, doesn't matter what I try. Anything I am missing? |
As for the link refferenced by @martynwendon: Should it work the same way for LLKZMK11LM ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Guys, I went through this 3 times and I am still not sure if you managed integrate decoupled mode. If so, what exactly should I do to have it running in HA? |
Nothing more you already have. |
@Smanar where about? I added wall switch to HA via Conbee II, but I can not see decoupled mode anywhere? |
You see that ? It's on deconz, not HA. |
@Smanar Deconz's GUI in HA looks totally different, unless I need to plug in Conbee into PC first or something.. |
I don't understand, "deconz GUI in HA", I m speaking about deconz itself, nothing to see with HA. Else yep, the setting is written on device itself. |
I have a question, i can't find Xioami Disconnect 1/2 from my Deconz GUI All options appear in general.xml file: I try to modify general.xml like this: #1816 but without results. I try to execute POST via API:
But i recieve:
How can i activate decoupled mode? |
Hello, have you tried with "PUT" ? |
I got a QBKG12LM and it works fine with deCONZ and HA. I heard this switch has a decouple mode so you can also use it as wireless switch instead of a relay. ( This Z2M link talks a little about it: Koenkk/zigbee2mqtt#723 ). Is this something doable on deCONZ?
Many thanks!
The text was updated successfully, but these errors were encountered: