Shelly SBDW-203C: Transient 'open' state when tilting window
What happened?
The Shelly BLU Door/Window Mini ZB (SBDW-203C) briefly reports "handle_position: open" when the window is being tilted from the closed position.
After approximately one second, the state changes to "handle_position: tilted".
This causes incorrect state transitions in Home Assistant and can trigger automations intended only for fully opened windows.
The behavior was reproduced multiple times on a physical device using a custom external converter.
I implemented a workaround that delays publishing "handle_position: open" by 3000 ms. If a "tilted" or "closed" report arrives during that interval, the pending "open" event is cancelled.
A delay of 1500 ms was insufficient in some tests, whereas 3000 ms worked reliably.
The "contact" state remains immediately updated.
The native converter currently publishes "handle_position" immediately without debouncing.
This behavior was also documented in my earlier comment on the device support PR:
https://github.com/Koenkk/zigbee-herdsman-converters/pull/13538#issuecomment-6298628721
What did you expect to happen?
When tilting the window from the closed position, "handle_position" should transition directly from "closed" to "tilted", without briefly reporting "open".
A fully opened window should continue to report "open".
Ideally, the converter should debounce the "open" state while keeping "contact" updates immediate.
How to reproduce it (minimal and precise)
- Pair a Shelly BLU Door/Window Mini ZB (SBDW-203C) with Zigbee2MQTT.
- Monitor the "handle_position" property via MQTT or the Zigbee2MQTT frontend.
- Start with the window fully closed.
- Tilt the window without fully opening it.
- Observe a temporary "open" state followed by "tilted" after approximately one second.
- Repeat the procedure. The transient "open" state can occur repeatedly.
The issue was observed with the device's IAS Zone reports. The native converter interprets these reports immediately, without debouncing.
Zigbee2MQTT version
2.14.3
Adapter firmware version
20260310
Adapter
ZStack3x0 (Texas Instruments Z-Stack 3.x)
Setup
Home Assistant OS on Raspberry Pi 5 (ARM64), running Zigbee2MQTT as a Home Assistant add-on. Zigbee coordinator: SMLIGHT Ultima 3, Z-Stack 3.x, firmware revision 20260310.
Zigbee2MQTT 2.14.3, zigbee-herdsman-converters 26.125.0, zigbee-herdsman 11.2.0, Node.js 24.22.1.
Device database.db entry
No response
Debug log
No response
Notes
The external converter workaround is currently in use because the transient "open" state can affect Home Assistant automations.
The current native SBDW-203C definition in zigbee-herdsman-converters uses the shared "blu_door_window" converter and does not appear to implement any debounce delay.
I would be happy to provide additional logs or test a proposed fix on the physical device.
Additional implementation details for the tested workaround:
The external converter uses "globalStore" from "zigbee-herdsman-converters/lib/store" to maintain a pending timer per Zigbee endpoint.
On each incoming IAS Zone status message, any existing timer is cancelled using "clearTimeout()".
- "closed" and "tilted" are published immediately.
- For "open", a new 3000 ms timer is started.
- If no subsequent state change cancels that timer, "publish({handle_position: 'open'})" is called.
- The "contact" state and IAS alarm information are returned immediately, independently of the delayed "handle_position".
This avoids briefly publishing "open" during a normal tilt operation while preserving immediate detection that the window is no longer closed.
The workaround has been tested successfully with the SBDW-203C using an external Zigbee2MQTT converter.