[BUG] Cover/Roller is broken in Zigbee2MQTT 2.14.0
Regression in Zigbee2MQTT 2.14.0 affecting covers and roller shutters
Issue #32997 was originally reported for the Schneider Electric S520567 / Wiser Odace roller shutter switch. The comments confirm that the same regression also affects other cover devices, including the SONOFF MINI-ZBRBS and several Tuya-branded switches/controllers.
Reported symptoms:
- After upgrading from Zigbee2MQTT 2.13.x to 2.14.0, existing shutter devices are removed and recreated with additional entities.
- Open/close commands are physically inverted. Depending on the device, the shutters may only open or only close.
- The newly exposed
reversedswitch can restore the correct physical direction when toggled manually, but its default value does not preserve the previous device calibration. - For the SONOFF MINI-ZBRBS, the
Stopevent is not emitted when the cover reaches the end position (0%), leaving it stuck in theclosingstate. - The reported cover state is inconsistent or missing:
- The root MQTT topic may report
position: 0andstate: "CLOSE"while the shutter is physically 100% open. - The
/covertopic may report the correct position (100) butstate: null.
- The root MQTT topic may report
- Home Assistant entity IDs change, for example from:
cover.volet_wiser_grande_fenetreto:cover.volet_wiser_grande_fenetre_cover
This breaks dashboards, automations, and scripts that reference the original entity IDs.
- Multiple users confirmed the same behavior:
- Schneider Electric S520567 / Wiser Odace
- SONOFF MINI-ZBRBS
- Several Tuya-branded switches/controllers
The original report used an SLZB-06MU adapter with the latest adapter and Zigbee firmware on HAOS, virtualized on ESXi. One detailed report specifies:
- Zigbee2MQTT:
2.14.0 - zigbee-herdsman-converters:
26.103.0 - zigbee-herdsman:
10.9.1 - Schneider S520567 firmware:
002.013.000 R - zigbeeModel:
NHPB/SHUTTER/1
Reverting to Zigbee2MQTT 2.13.x restores the expected behavior. Manually enabling the reversed switch can restore the correct direction, but does not address the state reporting, missing Stop event, or changed Home Assistant entity IDs.
The related implementation is PR #12799 in the zigbee-herdsman-converters repository, titled โAdd more attributes to Schneider Electric roller shutter S520567โ. It adds lift/tilt controls, lift and tilt durations, motor direction reversal, button light mode, button lock, and tilt disabling. The PR was merged on August 3, 2026, and was included in converter release 26.91.0.
The regression appeared after the changes were included in Zigbee2MQTT 2.14.0, so PR #12799 is a possible related change. However, the exact root cause has not yet been confirmed. The version references in the original report are also inconsistent: it mentions converter 26.90.0, while the reported environment contains 26.103.0.
Another affected device, plus what I believe is the root cause.
Device: Niko 552-72301 (Connectable motor control,3A)
Z2M: 2.14.0 ยท zigbee-herdsman-converters: 26.103.0 ยท adapter: ember
Symptom: OPEN physically closes the blind. Position/state reporting
stays correct throughout, so HA faithfully shows the cover winding shut.
Evidence
07:58:36 z2m:mqtt: Received MQTT message on 'zigbee2mqtt/COVER_NAME/set' with data 'OPEN'
07:58:36 zh:controller:endpoint: ZCL command 0x70c59cfffe06e4c6/1 closuresWindowCovering.downClose({})
A second cover, commanded OPEN, then reported a clean monotonic
currentPositionLiftPercentage sweep 100 โ 0 over ~90s (full travel, physically
closing). No upOpen appears anywhere in the log.
Cause
#12707 changed tz.cover_state to consult the coverInverted device meta, which
previously only governed position:
const invert = utils.getMetaValue(entity, meta.mapped, "coverInverted", "allEqual", false)
? !meta.options.invert_cover
: meta.options.invert_cover;
src/devices/niko.ts declares meta: {coverInverted: true} for this model, and
invert_cover is unset, so this evaluates to true and selects invertedLookup
โ open โ downClose.
Before #12707, tz.cover_state used lookup unconditionally, which was correct
for this device.
Why no option value fixes it
fz.cover_position_tilt and tz.cover_state now derive invert from the same
expression, but they need opposite senses. For this device lift 0 = closed:
invert_cover |
fz position/state |
tz command |
|---|---|---|
| unset | correct | inverted โ |
true |
inverted โ | correct |
So there is no working configuration on 2.14.0 โ enabling invert_cover merely
trades a reversed command for reversed position and state reporting.
Note the PR description mentions an invert_cover_state option intended to
separate these two concerns, but no such option appears in the merged code;
tz.cover_state declares only options: [exposes.options.invert_cover()].
That separation looks like the missing piece.
Reverting to 2.13.0 restores correct behaviour, matching other reports here.
Same here. I opened an issue in the converters repository last night after trying to deal with this mess during hours. I reverted to 2.13 in order to make it fully work again.
I can confirm the same issue with a Tuya TS130F (_TZ3000_qa8s8vca).
After upgrading from Zigbee2MQTT 2.13.x to 2.14.0-1, the OPEN and CLOSE commands became reversed. Rolling back to the previous Zigbee2MQTT version immediately restored the correct direction.
So this regression also affects TS130F devices.
I can confirm the issue with Sunricher HK-ZCC-A, Open/Close are inverted in 2.14.0.
Problems with on off in my covers
Same thing for me, tried to figure out what was going on this morning with all my covers/rollers until I remembered I upgraded Zigbee2mqtt in Home Assistant last night and came here to see if other issues were reported.
I tried to enable the invert switch on them as some other users did, it enabled me to click the open button to open them (before they would not do anything), but as they opened they we reporting to be closing in home assistant. In the end their final physical state was opened, but reported closed in Home Assistant.
My devices are all Moes :
Same problem with TS130F_GIRIER. Open/Close are inverted in 2.14.0.
Same problem here TS130F
Same problem with Chacon ZB-ERSM-01. I reverted to 2.13.0 and working fine again.
Same problem with Schneider Electric S520567
Same problem here TS130F
Same problem here with Aquara ZNCLBL01LM but not with IKEA E1757
This looks like a regression bug. With MINI-ZBRBS, the state is now linked to the invert cover setting, which I believe is incorrect.
If the motor direction is wrong for a given state (open/close), you can simply swap two wires on the relay. However, the purpose of the inversion flag is to invert the 0โ100% position range to accommodate the internal automation logic (as it was in v2.13). For example, in my setup, 100% corresponds to the open state rather than the closed state.
Same problem here, using Aqara DS-K02D/DS-K02E. Issue happened immediately following yesterday Zigbee2MQTT upgrade. To be noted:
- One of my automation asked for an opening of some shutters at 25% => it worked as expected (ie no 75% opening).
- Automations asking for full open / full close => does not work. Opening in full the shutter (manually) then triggering an automation asking to fully open it make it fully close instead. To be noted that the open/close status is properly reported when looking at the status of the devices (development tools). Means if the shutter is close HA sees it properly as close, but when asked to open it it sends a close command (and the other way around).
Analysis: moving and motor_run_status Changes Between 2.13.0 and 2.14.0
Scope
This investigation looked for commits between Zigbee2MQTT 2.13.0 and 2.14.0 that could explain reports involving cover movement, direction, moving, or motor_run_status. The analysis included the sibling zigbee-herdsman-converters repository and used issue #32999 as symptom context.
The release boundary is:
- Zigbee2MQTT
2.13.0:zigbee-herdsman-converters26.90.0 - Zigbee2MQTT
2.14.0:zigbee-herdsman-converters26.103.0
Highest-Confidence Candidate: Generic Cover Inversion
3c1b41986
Subject: fix: Fix state not inverted when setting invert_cover: true
First converter release containing it: v26.92.0
Affected code:
src/converters/fromZigbee.ts:fz.cover_position_tiltsrc/converters/toZigbee.ts:tz.cover_state
This commit changes how cover inversion is applied to both reported state and cover commands. The cover_position_tilt converter moves from the previous metaInvert handling to combined inversion logic. cover_state also gains invert_cover handling and changes the command lookup accordingly.
This is the strongest candidate for a generic regression where OPEN and CLOSE, movement direction, or the reported cover state are reversed. It is the first relevant change to the shared cover inversion path after the 2.13.0 converter version and is included in the dependency versions used by 2.14.0.
Confidence: High for generic direction/state inversion, especially for devices using coverInverted or invert_cover.
SONOFF Movement Expose Rename
016d65e2e
Subject: fix: SONOFF MINI-ZBRBS: rename motor_run_status to moving (#12821)
First converter release containing it: v26.91.0
Affected code:
The SONOFF MINI-ZBRBS definition renames the expose from motor_run_status to moving. This can break automations, dashboards, state consumers, or discovery payloads that still expect the old property name.
The value casing changed at the same time. The old enum lookup was {Stop: 0, Forward: 1, Reverse: 2}; the new lookup is {stop: 0, forward: 1, reverse: 2}. The numeric values and the underlying motorRunStatus attribute did not change. This was an explicit change in 016d65e2e, not an automatic consequence of renaming the expose.
As a result, the published payload changed from values such as motor_run_status: Reverse to moving: reverse. Case-sensitive automations and consumers must account for both the property rename and the lowercase values. Home Assistant's current cover discovery code lowercases enum values before matching them against its opening, closing, and stopped lookup lists, so this particular casing change is handled for movement classification in discovery.
This change does not explain a generic physical reversal of cover direction. It is a separate compatibility and entity-schema change that can explain why a movement property disappeared or changed name after upgrading.
Confidence: Medium to high for SONOFF-specific moving or entity compatibility symptoms.
Home Assistant Follow-Up Changes
These Zigbee2MQTT commits are all present in 2.14.0 and affect how movement information is exposed to Home Assistant.
c649d04b1
Subject: fix: Home Assistant: Improve various discovery mappings (#32842)
Updates general Home Assistant discovery mappings. Relevant when the observed symptom is an entity or discovery payload change rather than a Zigbee command behaving incorrectly.
be1cbb5f3
Subject: fix: Home Assistant: fix motor_state not exposed for SONOFF MINI-ZBRBS (#32702)
Fixes detection of the enum motor_state expose by checking the state access bitmask. Without this check, Home Assistant discovery could fail to find the motor state even when the converter exposed it.
c867ca518
Subject: fix: Improve Home Assistant cover state discovery
Improves the Home Assistant cover value_template, including handling of movement values and the regular cover state value.
The current implementation in lib/extension/homeassistant.ts looks for an enum named motor_state or moving, then maps values such as opening, closing, and stopped into the Home Assistant cover discovery payload.
These commits can explain incorrect or missing Home Assistant cover state, but they are less likely to be the root cause of a physical direction inversion than 3c1b41986.
Confidence: Medium for Home Assistant-only symptoms; low for direct Zigbee command inversion.
Cover Stays closing at 0%
A separate symptom is that calling cover.close_cover leaves the Home Assistant cover in closing, often represented by moving: reverse, even after the cover reaches position 0.
The current Home Assistant discovery template gives movement state priority over the regular cover state. In lib/extension/homeassistant.ts, reverse matches COVER_CLOSING_LOOKUP, so the template returns closing before it evaluates the reported cover state. If the device continues publishing moving: reverse after it reports position 0 or state CLOSE, Home Assistant remains closing even though the terminal position is known.
This separates the symptom into two cases:
- If the MQTT payload itself still contains
moving: reverseafter reaching0, the converter or device is failing to publish a stopped movement value. The Home Assistant template is only reflecting that stale value. - If the MQTT payload contains position
0and stateCLOSE, but Home Assistant remainsclosingbecausemoving: reverseis also present, the direct problem is the precedence in the Home Assistant template introduced or refined byc867ca518.
This is different from 3c1b41986: the inversion commit can make the terminal position or state wrong, but it does not by itself explain a stale moving: reverse value after the motor stops.
Confidence: High for the Home Assistant symptom when the MQTT payload contains both terminal position/state and stale moving: reverse; medium for the underlying converter or device reporting fault.
Device-Specific Definition Changes
0653f2e52
Subject: feat: Schneider Electric S520567: expose more features (#12799)
First converter release containing it: v26.91.0
Affected code:
Adds a dedicated cover endpoint and additional exposes and configuration for Schneider Electric S520567. This can change entity IDs, endpoint-qualified properties, and Home Assistant discovery results for that model.
It is relevant when the symptom is limited to Schneider S520567. It does not explain a generic inversion affecting unrelated cover devices.
Confidence: High for Schneider-specific entity or expose churn; low for generic direction inversion.
501632e96
Subject: fix: Legrand K4027C: improve moving state detection (#13007)
Adds custom movement detection for Legrand K4027C, including a device-specific moving expose and cover converters. It is limited to that model and is unlikely to explain a general regression across cover devices.
Confidence: Low for the reported generic symptom.
Timeline
- Zigbee2MQTT
2.13.0ships with converter26.90.0. 016d65e2eenters converterv26.91.0and renames SONOFFmotor_run_statustomoving.0653f2e52entersv26.91.0and changes Schneider S520567 cover exposes.3c1b41986entersv26.92.0and changes shared cover inversion behavior.- Zigbee2MQTT
2.14.0ships converter26.103.0, containing all of the converter changes above. - Zigbee2MQTT
2.14.0also contains the Home Assistant discovery changesc649d04b1,be1cbb5f3, andc867ca518.
Conclusion
The investigation points to two separate regression families:
- Generic cover direction or state inversion: investigate converter commit
3c1b41986first. It changes the sharedcover_position_tiltandcover_stateinversion path and has the strongest match for reversedOPEN/CLOSEor movement direction. - Movement property or Home Assistant entity compatibility: investigate
016d65e2etogether withbe1cbb5f3,c649d04b1, andc867ca518. The relevant property names aremotor_run_status,moving, andmotor_state.
The Schneider and Legrand commits should only be treated as primary suspects when the affected devices are specifically Schneider S520567 or Legrand K4027C.
No source files were modified and no tests or builds were run; this was a read-only history and code-path analysis.
Hi,
Iโm also affected by this issue after updating to Zigbee2MQTT 2.14.0. Iโm using Schneider S520567 roller shutter modules. Since the update, the covers are still physically controllable from Zigbee2MQTT, but the reported position/state is wrong.
For example, a fully open shutter can be reported as 0%, while Home Assistant shows the cover state as unknown with is_closed: null. Because of this, the open/close controls in Home Assistant can remain disabled or stuck even though the shutter can still be operated directly from Zigbee2MQTT. I also noticed that the cover entities were renamed/recreated after the update, which broke some existing dashboard cards and automations.
I tested the new reversed and invert_cover options, but they do not solve the issue. reversed actually changes the motor direction, so it is not a valid workaround in my case.
Everything was working correctly before the 2.14.0 update.
I also have this issue with Smartwings WM25L-Z roller shades.
Open/Close is reversed on Schneider Electric CCT5015-0001 shutter controller. Setting position as %age continues to work.
Hello,
same on https://www.zigbee2mqtt.io/devices/TS130F.html toogle cover action stop working after update.
Probably fix: #33003