2-channel switch - strange behavior

Hello everyone,

I’m having an issue with a 2-channel micro-module that I recently installed.
This is the one: https://fr.aliexpress.com/item/1005003438720832.html?gatewayAdapt=glo2fra&spm=a2g0o.order_list.0.0.21ef5e5bZZOUax

I managed to install it without too many issues. The integration with zigbee2mqtt works fine, but not so much with Gladys.

When I click on the second toggle button, this is what happens (very quickly):

  • The toggle turns blue for a very short time and then turns back to gray
  • At that moment, it’s the first toggle that turns blue.. :thinking: and my light (the wrong one) turns on.

I have a video with a capture that shows the issue… but I can’t integrate it into my post, sorry :confused:

From the z2m interface, I can control both independently of each other, which is the expected behavior.

Could this be related to « splitting » a device that has multiple features, as already discussed elsewhere in the forum?

Wouldn’t your problem look like this now:

Small clarification:
When I manipulate the Switches on the [Zigbee2MQTT] interface, all functions work, and all status returns on the Gladys dashboard are correct.
So the problem:
When you manipulate switch L1 on Gladys, lamp L1 turns on and status return on [Zigbee2MQTT] is OK.
When you manipulate switch L2 on Gladys, the switch returns to the Off position and sends button L1 to ON, lamp L1 turns on and the status return [Zigbee2MQTT] acts on L1.
When you act on the Interlock switch on Gladys, it returns to Off and sends button L1 to ON, L1 turns on and the status return [Zigbee2MQTT] acts on L1
Here you go if it can help :slightly_smiling_face:

It’s exactly the same behavior (except that I don’t know what « interlock » is).

Thanks, I hadn’t made the connection!

The interlock is a third switch that allows you to change the operating modes of the two switches L1 and L2. When it is ON, it locks L1 and L2 so that they are not ON at the same time. Either you have L1 = ON or you have L2 = ON but not both. And if the interlock is OFF, L1 and L2 can be ON at the same time. But you may not have this switch in the functions of your switch (see in IPGaldys:8080, it’s the zigbee2Mqtt dashboard),

It seems like I have a more « advanced » version in terms of interlock at my place:

It looks like the « type » to me, in my opinion.

Set the switch type to state mode to see (you don’t have an interlock)

Yes apparently, it’s the same kind of function
Did you do an update of the device in the Zigbee2Mqtt dashboard, by any chance?
For me, my double relay has never worked, I’ve always had this strange behavior. After digging around, I found an update for my device (xiaomi-llkzmk11lm-double-relais) in Zigbee2Mqtt. To try to improve the situation, I did this update and the result is that the update restricted some features :sneezing_face:

No, I haven’t made any updates on my side.

I tried it but it doesn’t change anything at all… :confused:

When you go to the zigbee2Mqtt interface, on the dashboard (IPgladys:8080), you should see your device. Do the lights turn on when you manipulate it on this dashboard?

Yes absolutely and there is not the « bug » that I described in gladys

I notice that we have the same problem, but it has never worked for me in Gladys. And now, I don’t know what to do; we have to wait for a developer to look into the issue :slightly_smiling_face:

Have you checked what Zigbee2mqtt sends to Gladys?

I assume that in Zigbee2mqtt, you can retrieve all MQTT messages sent to Gladys?

We need to check if the issue is on the Zigbee2mqtt side (the sent messages are incorrect), or if it’s an issue with the Zigbee2mqtt integration in Gladys (the parsing of the received messages assigns the device to the wrong Gladys device).

Hello Pierre Gilles
For me, it’s on the Gladys side, because from the Zigbee2Mqtt interface I control my device well.

That doesn’t mean the MQTT messages propagated to Gladys are good :slight_smile:

In any case, whether it’s a Z2M or Gladys issue, we need the exchanged frames. It’s quite hard to see what’s wrong blindly.

how to view these frames?

It’s the same for me, I need an explanation of what I should look at / where to look?

I imagine it’s in the browser’s developer tool, but I get lost there.

I think that on the Zigbee side it works like this:


« Journaux » / then select « debug » in « Log level »

Hello Terdious
I’ll check that later, as I no longer have access to it right now
Thanks to you

Good evening Pierre-Gilles
Here is the zigbee2mqtt log for my double relay: Xiaomi LLKZMK11LM control via MQTT | Zigbee2MQTT
Interlock = Off (noted as false on the zigbee dashboard)
turn on L1
turn off L1
turn on L2
turn off L2
turn on L1 and L2
turn off L1 and L2

Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":96,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"ON","state_l2":"OFF","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":102,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"ON","state_l2":"OFF","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":99,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"OFF","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":93,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"OFF","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":96,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"ON","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":96,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"ON","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":96,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"OFF","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":93,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"OFF","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":96,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"ON","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":96,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"ON","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":90,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"ON","state_l2":"ON","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":90,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"ON","state_l2":"ON","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":96,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"ON","state_l2":"OFF","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":102,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"ON","state_l2":"OFF","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":96,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"OFF","temperature":30,"voltage":229.8}'
Info MQTT publish: topic 'zigbee2mqtt/xiaomi double relay', payload '{"consumption":0.01,"current":0.0071,"energy":0.01,"interlock":false,"linkquality":96,"power":0,"power_outage_count":33,"state":"OFF","state_l1":"OFF","state_l2":"OFF","temperature":30,"voltage":229.8}'
```Interlock = On (noted true on the zigbee dashboard)
L1 turned on
L2 turned on
L1 turned on
L1 turned off

Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:105,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« OFF »,« state_l2 »:« OFF »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:111,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« ON »,« state_l2 »:« OFF »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:108,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« ON »,« state_l2 »:« OFF »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:105,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« ON »,« state_l2 »:« OFF »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:105,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« ON »,« state_l2 »:« ON »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:108,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« OFF »,« state_l2 »:« ON »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:108,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« OFF »,« state_l2 »:« ON »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:108,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« ON »,« state_l2 »:« ON »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:105,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« ON »,« state_l2 »:« OFF »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:105,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« ON »,« state_l2 »:« OFF »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:108,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« OFF »,« state_l2 »:« OFF »,« temperature »:30,« voltage »:225} ›
Info MQTT publish: topic ‹ zigbee2mqtt/relais double xiaomi ›, payload ‹ {« consumption »:0.01,« current »:0.0897,« energy »:0.01,« interlock »:true,« linkquality »:108,« power »:0,« power_outage_count »:33,« power_outage_memory »:false,« state »:« OFF »,« state_l1 »:« OFF »,« state_l2 »:« OFF »,« temperature »:30,« voltage »:225} ›

Here it is, I hope that's what you asked for
However, this is only valid for the Xiaomi double relay (LLKZMK11LM)
For Guim31, I think it's an in-wall relay (different functions)
Good evening