[Feature request]: Sonoff ZBMINIR2: report long press release in detached mode (hold-to-dim)
Is your feature request related to a problem? Please describe
I use 5 ZBMINIR2 in detached relay mode with smart bulbs (relay always on), controlled by momentary push buttons (2 per light, wired in parallel on S1/S2).
Device details:
- Model: ZBMINIR2
- Firmware: 1.1.0 (build 4352)
- Zigbee2MQTT: 2.14.2 (zigbee-herdsman-converters 26.115.1)
- External trigger mode: pulse
- Detach relay mode: enabled
Since firmware 1.1.0, single, double and long presses are reported (toggle, double_click, long_press). This works very well, thanks!
What I measured:
long_pressis sent while the button is still held, after about 2-3 s.- Holding longer (10 s) sends nothing else: no repeat, no event on release.
- Releasing before the threshold is reported as
toggle.
Without a release event, hold-to-dim (start dimming on press, stop on release) is not possible. That is the most natural gesture for a wall button controlling smart bulbs.
Describe the solution you'd like
In detached mode with a pulse switch, report a release event after a long press, for example a new detachRelayActionEvent value exposed as long_press_release. The firmware already measures how long the contact stays closed to detect the long press, so it knows when the button is released.
Nice to have:
- a configurable long press threshold (2-3 s feels long, remotes usually use about 1 s);
- optionally, a repeated hold event while the button stays pressed.
Describe alternatives you've considered
- A battery-powered wall switch module with press/hold/release events, but it means removing the ZBMINIR2s, which otherwise fit perfectly.
- The open source firmware for the ZBMINIR2: it does not support pulse switches, and flashing it cannot be reverted.
Additional context
Same kind of request for the MINI-ZB2GS-L: #33216 (single/double/long press planned for December 2026). It would be great if a release event could be considered for the ZBMINIR2 as well.
Please send this request to the manufacturer (Sonoff) cc @cubez2mdeveloper
Thanks for the pointer and the cc, @andrei-lazarov!
@CubeZ2mDeveloper, could you forward this request to your product and firmware teams? It is the ZBMINIR2 counterpart of #33216: a release event after a long press would make hold-to-dim possible with smart bulbs. Thanks!
Independent confirmation from a Home Assistant setup: SONOFF ZBMINIR2 (SN-MG21-ZGMR2-01), firmware 1.1.0/build 4352, Zigbee2MQTT 2.14.3-1, external_trigger_mode=pulse and detach_relay_mode=true. The captured log contains a single MQTT action with payload long_press and no repeated long_press during the hold. A generic toggle appears later, but it does not clearly identify the end of the long-press gesture.
More generally, a long-press event without a clear indication that the gesture has ended is difficult for automation controllers to use reliably: they cannot know when to stop or complete an action. This affects many stateful/continuous use cases, not only hold-to-dim (for example, press-and-hold controls, continuous adjustment, or start/stop actions).
Please consider exposing the full long-press lifecycle: ideally an explicit release/end event (e.g. long_press_release), or an equivalent held-state transition. Repeated hold events with documented timing could also help. Existing single- and double-click behavior should remain unchanged. In my setup, HA consequently applies only one configured 5% brightness step.
Thanks for the detailed feedback and for sharing your use case. I'll forward this request to the relevant product and firmware teams for evaluation and share any confirmed updates here.
Thank you for sharing such detailed feedback and your use case!
We understand that users have different preferences and ways of using the ZBMINIR2. Your suggestion is valuable, especially the need for a release event to support hold-to-dim functionality.
We'll be evaluating possible solutions in the near future, with the goal of accommodating different usage scenarios and user needs. We'll take your feedback into consideration when planning future firmware improvements.
Thanks again for helping us improve the product!