zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[Bug]: SONOFF MINI-ZB2GS (fw v1.1.2) - Missing double-click and long-press actions in Relay Detach mode

Open Vierxa opened this issue 2 weeks ago โ€ข 5 comments

What happened?

What happened?

On the SONOFF MINI-ZB2GS updated to firmware v1.1.2 (4354), double-click and long-press events are not exposed/published under action when using detach_relay_mode with momentary push-buttons (pulse mode).

According to the v1.1.2 OTA release notes:

"3. Added double-click and long-press event reporting in Relay Detach mode, and separate Follow ON/OFF event reporting."

Currently:

  • A single press publishes "action": "toggle_l1" / "action": "toggle_l2" (instead of single_l1 / single_l2).
  • A double press (< 400 ms) or long press (~2 s) triggers a Zigbee radio message from the device (confirmed by last_seen updating immediately in Z2M without firing two toggle actions), but no action field is published in the MQTT payload.

What did you expect to happen?

When detach_relay_mode is set to ENABLE and external_trigger_mode is set to pulse on firmware v1.1.2, single, double, and long press events on S1/S2 should be decoded and published under action (e.g. single_l1, double_l1, long_l1 and single_l2, double_l2, long_l2).

How to reproduce it (minimal and precise)

  1. Pair a SONOFF MINI-ZB2GS running firmware v1.1.2 (4354) wired to momentary push-buttons.
  2. Enable detach_relay_mode (ENABLE for detach_relay_outlet1 and detach_relay_outlet2).
  3. Set external_trigger_mode (l1 and l2) to pulse.
  4. Perform a single press, a fast double press, and a long press while monitoring MQTT logs:
    • Single press emits {"action":"toggle_l1", ...}
    • Double press and long press update last_seen but omit action completely.

Zigbee2MQTT & Environment

  • Platform: Home Assistant OS (Raspberry Pi 4)
  • Adapter: SONOFF Zigbee 3.0 USB Dongle Plus (EFR32MG21 / Ember)
  • Device: SONOFF MINI-ZB2GS
  • Firmware version: v1.1.2 (installed_version: 4354)

Relevant MQTT Payload

Single press on L1:

{
  "action": "toggle_l1",
  "detach_relay_mode": {
    "detach_relay_outlet1": "ENABLE",
    "detach_relay_outlet2": "ENABLE",
    "detach_relay_outlet3": "DISABLE"
  },
  "external_trigger_mode": "pulse",
  "external_trigger_mode_l1": "pulse",
  "external_trigger_mode_l2": "pulse",
  "last_seen": "2026-11-20T13:24:48+01:00",
  "linkquality": 156,
  "programmable_stepper_seq1": {
    "double_press_interval": 500,
    "enable_double_press": false,
    "enable_stepper": false,
    "switch_outlet": 1
  },
  "state_l1": "OFF",
  "state_l2": "OFF",
  "turbo_mode": true,
  "update": {
    "installed_version": 4354,
    "latest_version": 4354,
    "state": "idle"
  }
}

### What did you expect to happen?

_No response_

### How to reproduce it (minimal and precise)

_No response_

### Zigbee2MQTT version

 2.14.3

### Adapter firmware version

8.0.2 [GA]

### Adapter

EmberZNet

### Setup

Ru on a Raspberry ยจPi4

### Device `database.db` entry

_No response_

### Debug log

_No response_

### Notes

_No response_

Vierxa avatar Nov 20 '26 12:11 Vierxa

CC @cubez2mdeveloper

Koenkk avatar Nov 21 '26 07:11 Koenkk

https://github.com/Koenkk/zigbee-herdsman-converters/pull/13631

It needs this to work, should be available in next release or now in dev.

IetIesAai avatar Nov 22 '26 09:11 IetIesAai

Thanks for this information.

Vierxa avatar Nov 22 '26 09:11 Vierxa

I think, this is fail release OTA without Koenkk/zigbee-herdsman-converters#13631

panther7 avatar Nov 22 '26 13:11 panther7

The required converter changes are already included in https://github.com/Koenkk/zigbee-herdsman-converters/pull/13631 , which has been merged into the master branch.

This change is expected to be included in the next official Zigbee2MQTT release.

Thanks for your patience!

CubeZ2mDeveloper avatar Nov 23 '26 07:11 CubeZ2mDeveloper