-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Aqara relay LLKZMK11LM - Interlock mode #544
Comments
After some tests, I was able to decouple the switch from the relays, it works the same way as the double key switch. Unfortunalety there is no endpoint for S1 and S2 so they are useless when decoupled from the relay as the status is not sent when S1 or S2 is pressed. |
Interlock should be an option to force to have only one relay swtched on: if one relay is switched on, the second one is switched off. |
It's confirmed in this russian video (you can activate subtitle and use option/translate): Is this interlock function supported actually ? |
I don't think it's supported in Z2M yet, if it is it's not documented. |
I've checked quickly shepherd code and I have found nothing about this option. |
Yes, I know, my goal was also to use this for a roller shutter. |
If somebody manages to sniff the packets send when configuring this option via the Xiaomi gateway we could support this. (https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html) |
@Koenkk After fixing the issue with my Xiomi GW, I was able to get the trace when enabling and disabling the interlock mode, here is the result:
when disabling it I get this:
I tried to add the missing piece in toZigbee.js but I do not really understand how this works. Do you have some docs on how to add things like the interlock mode, I tried this (inspired from other piece of code but did not work)
with
|
The code you provided looks good to me, however one thing I cannot check if the cluster is correct. That is shown under ZigBee Application Support Layer Data, Dst Endpt: 1, Src Endpt: 1 but this is hidden in your post. |
@Koenkk I pasted the full frame here https://pastebin.com/8uPq9Y65
I restarted Z2M after this change but it's not working; I ran the sniffer, I suppose I should see the same frame but nothing. I there something else to update ? I changed only devices.js and toZigbee.js. |
After adding the code, did you send to |
@Koenkk Yes, I used this MQTT message. On Xiaomi I have this:
on Z2M packet I have this
So I suppose this is coming from this part of the code but I don't know what to change:
|
The used cluster is wrong, you should use |
@Koenkk It's working now but I had to change the first number in bracket as it was not the correct attribute so now, I have this code I tested and it's working as expected:
So now, with Interlock = ON, if we start with L1=ON and L2=OFF and set L2=ON, L1 is automatically set to OFF and status of each relay is updated in Z2M. In the log I have this:
If this is OK for you I will introduce a PR to update device.js, toZigbee.js and the doc too. |
Yes please make a pr for the docs and converters. One thing I propose to change that instead of on off use true false, then you could publish LLKZMK11LM_interlock: {
key: ['interlock'],
convertSet: async (entity, key, value, meta) => {
await entity.write('genBinaryOutput', {0xff06: {value: value ? 0x01 : 0x00, type: 0x10}}, options.xiaomi);
return {state: {interlock: value}};
},
}, |
I updated the code with this and tested it again, everything is woking fine so will introduce the PR. Thank you ! |
@Koenkk I don't see where I can update the device page for the LLKZM11LM relay. |
I've added the documentation, thanks! |
Hey @Fabiancrg, |
that would be great for me also |
Hello, sorry I am new to home assistant and I am looking to set up this interlock function on ZHA for my aqara relay. Can you please detail me the setting up of this function? Thanks in advance! |
Hi,
Does anyone knows what is the interlock mode for the Aqara relay ?
I can see this in the App but I can't activate it, did someone manage to do it with the official Xiaomi App? What is it used for ?
Also, is there away to have the same 'decoupled' functionality with the relay, like the wall switch ?
Thank you,
Fabian
The text was updated successfully, but these errors were encountered: