2-channel switch - strange behavior

I cleaned the logs you posted to keep only the 2 states that interest us.

You tell us:

Interlock = On (noted as true on the zigbee dashboard)
L1 lighting
L2 lighting
L1 lighting
L1 lighting off

And Zigbee2mqtt sends to Gladys:

"state_l1":"ON","state_l2":"OFF"
"state_l1":"ON","state_l2":"OFF"
"state_l1":"ON","state_l2":"OFF"
"state_l1":"ON","state_l2":"ON"
"state_l1":"OFF","state_l2":"ON"
"state_l1":"OFF","state_l2":"ON"
"state_l1":"ON","state_l2":"ON"
"state_l1":"ON","state_l2":"OFF"
"state_l1":"ON","state_l2":"OFF"
"state_l1":"OFF","state_l2":"OFF"
"state_l1":"OFF","state_l2":"OFF"

Does this seem good to you @Psoy?

I’m rather a beginner in Z2M, so I’m not necessarily the best to see if it’s good or not, but it seems strange to me.

When you turn on L2, Z2M turns off L1!

Good evening Pierre-Gilles
When you turn on L2, Z2M turns off L1!
When you turn on L1, Z2M turns off L2!
What you’re showing me is when the « interlock » switch is On, this switch locks L1 and L2, in other words you cannot have L1 and L2 on at the same time, one turns off the other if it is on. So for me it’s fine.
And when Interlock is Off, L1 and L2 are independent

Ok, I learned something today! :grinning_face_with_smiling_eyes:

@cicoub13 @AlexTrovato does the Zigbee2mqtt integration in Gladys handle this kind of device?

@Pierre-Gilles Can you tell us what you think about this
Problem with node red and the latest version of Gladys 64bits.

I think this issue is fixed with the PR merged after v3.8.4, i.e. the « beta » version that I have been proposing for validation for some time.

By default, the switch is managed on a single property « state », which causes problems when there are multiple switches on a device. In my fix, the mapping between the feature and the z2m property is preserved.

Fingers crossed :wink: :crossed_fingers:

On my end, this fix has been merged since Monday, and I will probably release a version at the beginning of next week.

In the meantime, I am still looking for testers, I have only had one feedback so far:

No no it’s a micro-module too, which manages 2 switches (I will update my first post just in case)
My model: https://fr.aliexpress.com/item/1005003438720832.html?gatewayAdapt=glo2fra&spm=a2g0o.order_list.0.0.21ef5e5bZZOUax

Sorry, I thought I saw a double inter mural, I think I’m mixing up the posts :thinking: