zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

MINI-ZB2GS-L: send detached-mode presses to bound devices/groups, not only to the coordinator

Open Flopi-flop opened this issue 1 month ago โ€ข 7 comments

Hi,

I've got a MINI-ZB2GS-L (fw 1.0.4, build 4100, no OTA available for the -L as far as I can tell) behind a 2-gang wall switch in my bathroom. L1 is in detached mode and feeds a smart bulb, L2 is a normal relay for a mirror light.

I know smart bulbs on the output aren't the recommended use for this module. But in detached mode it actually works really well: the bulb stays powered, the presses come through as toggle_l1 and Home Assistant does the rest. The one thing missing is direct control without the coordinator. If the presses also went to bound devices, this would be the ultimate in-wall module for me, and I'd happily put one behind every switch in the house.

What I tried (Z2M 2.14.2, Z-Stack coordinator, target bulb is an Innr RCL 232 C, router, same room):

  1. Bind genOnOff from endpoint 1 (detached) to the bulb. Z2M says ok, the bind shows up for the device, but pressing the switch does nothing on the bulb. Z2M still gets toggle_l1 every time.
  2. Same thing through a Z2M group with the bulb as member, endpoint 1 bound to the group. Sending TOGGLE to the group from Z2M works, the switch doesn't.
  3. Endpoint 2 (relay attached) bound directly to the bulb: relay toggles, bulb doesn't.
  4. Endpoint 2 again with the coordinator bind removed, so the bulb is the only genOnOff target, in case the firmware only sends to the first entry. Still nothing.

Endpoints as interviewed: ep1 in [0, 3, 4, 6, 32, 2821, 64599, 64529] / out [3, 6, 25], ep2 in [0, 3, 4, 6, 64529] / out [3, 6]. So genOnOff is there as an output cluster, it just doesn't seem to use the binding table.

To rule out the bulb or the network: on the same network, a Moes TS004F button in command mode, added to a group with the same bulb, controls it directly with no issue.

So my guess is the firmware sends the toggle straight to the coordinator instead of going through the binding table. Would it be possible, in the firmware planned for detached-mode click events (#33216), to send these commands to bound devices and groups as well? ZBMINIR2 seems to do it since 1.0.8, so hopefully it's not too far off.

Happy to test a beta or grab debug logs if that helps.

Thanks!

Flopi-flop avatar Oct 23 '26 14:10 Flopi-flop

Thank you for the detailed testing and feedback. Weโ€™ve forwarded this request to our product and firmware teams for evaluation.

CubeZ2mDeveloper avatar Oct 26 '26 02:10 CubeZ2mDeveloper

Weโ€™ve identified the cause of this issue, and the fix will be included in the next firmware release.

Thank you for your patience and for helping us improve the MINI-ZB2GS-L.

CubeZ2mDeveloper avatar Oct 27 '26 02:10 CubeZ2mDeveloper

Great news thank you so much !

Flopi-flop avatar Oct 27 '26 12:10 Flopi-flop

Hi, and sorry for the long silence after the good news. I wanted to test this with a single smart bulb and the relay before coming back with feedback.

Short version: the detached mode works well for me when the module has enough power available in standby, but not with a single smart bulb on the output.

  • Works (bathroom): L1 in detached mode feeds a smart bulb, L2 switches a conventional mirror light. The module stays powered and online, and the presses arrive as toggle_l1.
  • Doesn't work (bedroom): L1 in detached mode with a single smart bulb as the only load (I also tried another simple connected LED bulb), L2 not used, no neutral at the switch box. The power is insufficient: when the bulb is turned off, the module drops off the Zigbee network (no answer to pings or writes, "Request superseded") and comes back as soon as the bulb is turned on again. The module's stated minimum load is 3 W.

I haven't tried a bypass yet; I'll report back once I have, since that should tell whether the supply problem is the only blocker with a single smart bulb. Context and the questions from Sonoff are in #33216.

None of this changes the original request. Sending the detached-mode presses to bound devices and groups remains very valuable for me, and if the bypass works it will be just as useful with a single bulb. I'm still happy to test a beta of the firmware that includes the fix.

Thanks again for the work on this!

Flopi-flop avatar Nov 16 '26 15:11 Flopi-flop

I am also looking forward to have binding possible for the zb2gs-l device. I am currently using two of these same devices with zigbee2mqtt. In both locations (behind a momentary wall switch) i use one output to relay the locally present, wired light from the wall switch (i.e. line comes in to this "first" zb2gs-l's L, wall switch to SW1, bulb from L1, in relay mode). In that setup it is fast and relies only on electricity (works also if homeassistant and/or cordinator is down). The momentary switch's other button is connected to sw2, and it is in detached mode. It is in detached mode, because it operates the living room light, which has no wiring here. The living room light is also controlled from the other, "second" zb2gs-l device. That second device is located behind another switch, the living room swithch, where the living room light has wiring, therefore it is in relay mode there (i.e. line to this "second" zb2gs-l device's L, switch to SW1, bulb from L1). This setup lets me switch living room light from the switch which does not have wiring for it, trough automation in homeassistant. But the reaction time with the necessary homeassistant automation is far from optimal even for on-off, and if ha is down, it is not even working. If direct binding would be possible between these two devices (and optimally with any other zigbee devices) the detached mode switch would be able to turn the other light on-off with sufficient reaction time, and would work even if ha or cordinator is down, therefore would feel like a normal dumb wired light which is fast and just works. I think this would be a huge benefit and somewhat the main purpose of these devices, and would make them a new possibility, a solution that not yet really exists. Currently, my limited experience with 1.0.4 was the same, that these devices send info only to the cordinator and are not able to send it to groups or devices directly.

peterfiabigron avatar Nov 18 '26 10:11 peterfiabigron

Is this firmware also available or applicable for the Mini-ZB2GS?

MarcelP77 avatar Nov 25 '26 20:11 MarcelP77

Short note: with a basic 0.33 ยตF / 275 V X2 bypass the single-bulb case works perfectly in detached mode (details in #33216). The request above stands.

Flopi-flop avatar Nov 27 '26 15:11 Flopi-flop