Koenkk / Koenkk/zigbee2mqtt

MINI-ZBDIM does not work properly when setup with single button (momentary)

Open
#32,540 14 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

problem
Dominant language
TypeScript
Stars
15.7k
Forks
2k
Avg merge
18h 55m
Merged PRs (30d)
35

Description

What happened?

When the device is setup as momentary and connected to a single button (L - S1) the button can turn ON the load (short press), dimmer it up and down (long press) but it will never goes to OFF with again short press.
The only way to turn it off is to long press and hold it until brightness is 1%.
from the Z2M GUI (or Home Assistant) I can toggle ON and OFF without any problem.

What did you expect to happen?

toggle ON/OFF the load with short press not just ON when OFF and never OFF when ON

How to reproduce it (minimal and precise)

as said, short press from OFF turn the device ON but then there's no way to turn if OFF with short press

Zigbee2MQTT version

2.12.1

Adapter firmware version

7.4.5 [GA]

Adapter

Sonoff Dongle MAX Pro

Setup

Zigbee2MQTT on his own LXC container, ProxMox server; Home Assistant is on a VM on the same ProxMox server but it's irrelevant for the issue I have

Device database.db entry

{"id":102,"type":"Router","ieeeAddr":"0xf044d3fffef388c7","nwkAddr":62703,"manufId":4742,"manufName":"SONOFF","powerSource":"Mains (single phase)","modelId":"MINI-ZBDIM","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":257,"inClusterList":[0,3,4,5,6,8,2820,2821,64599,64529],"outClusterList":[25],"clusters":{"genOnOff":{"attributes":{"onOff":0,"startUpOnOff":0}},"genLevelCtrl":{"attributes":{"currentLevel":0}},"genBasic":{"attributes":{"modelId":"MINI-ZBDIM","manufacturerName":"SONOFF","powerSource":1,"zclVersion":8,"appVersion":0,"stackVersion":0,"hwVersion":0,"dateCode":"20251205","swBuildId":"1.0.5"}},"haElectricalMeasurement":{"attributes":{"rmsVoltage":0,"rmsCurrent":0,"activePower":0}},"customClusterEwelink":{"attributes":{"17":"\u0004\u0005\u0005\u0010\u0001\u0001\u0002","33":0,"16388":0,"16389":0,"networkLed":1,"calibrationStatus":3,"transitionTime":10,"externalTriggerMode":1,"delayedPowerOnState":0,"minBrightnessThreshold":33,"maxBrightnessThreshold":255,"dimmingLightRate":3,"levelForCalibration":0,"acCurrentCurrentValue":0,"acCurrentVoltageValue":220860,"acCurrentPowerValue":90,"delayedPowerOnTime":1,"calibrationProgress":100,"setCalibrationAction":"\u0001\u0001\u0001","faultCode":84017152}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x449fdafffe99f68a","endpointID":1},{"cluster":8,"type":"endpoint","deviceIeeeAddress":"0x449fdafffe99f68a","endpointID":1},{"cluster":64529,"type":"endpoint","deviceIeeeAddress":"0x449fdafffe99f68a","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1},{"cluster":8,"attrId":0,"minRepIntval":5,"maxRepIntval":65000,"repChange":1},{"cluster":64529,"attrId":28678,"minRepIntval":10,"maxRepIntval":65000,"repChange":0}],"meta":{"onLevelSupported":false}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":0,"stackVersion":0,"hwVersion":0,"dateCode":"20251205","swBuildId":"1.0.5","zclVersion":8,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":"0.0.0"},"lastSeen":1783791361182}

Debug log

No response

Notes

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the MINI-ZBDIM issue with the momentary single-button setup described, using short presses from OFF and ON while collecting a debug log. Trace the device handling for model MINI-ZBDIM and its on/off and level-control behavior; done means a short press toggles the load both on and off.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.