ShellyForHASS: [BUG] Shelly Door/Window2 (DW2) status not updated or incorrect
Environment
- ShellyForHASS release with the issue: 0.2.0-b6
- Last working ShellyForHASS release (if known): /
- Home Assistant Core release with the issue: HassOS 4.12 / Home Assistant 0.114.4
- Operating environment (Home Assistant/Supervised/Docker/venv): Home Assistant VM
shelly: 0.2.0-b6
pyShelly: 0.2.8
developed_by: StyraHem.se
friendly_name: ShellyForHass
| Supervisor | - |
|---|---|
| Version | 235 |
| Latest version | 235 |
| Host system | - |
|---|---|
| Hostname | homeassistant |
| System | HassOS 4.12 |
| Deployment | production |
Shelly firmware: 20200818-120407/v1.8.2@36539b0b
Describe the bug
The status of my Shelly DW2 in Home Assistant, doesn’t match the physical status of my doors.
They are correct in the Shelly app, so it’s not an issue with the sensors.
Status in HA is usually the status of the sensor when Home Assistant is rebooted.
State changes aren’t captured, so automations using the DW2 as trigger don’t work.
Steps to Reproduce
- Install ShellyForHASS
- Have one or more Shelly Door/Window2 sensors installed in your house and configured in the app
Expected behavior
- Have Home Assistant correctly display the current state of the DW2.
- Be able to build automations using the DW2 state change as trigger
Screenshots

Currently, my “Achterdeur” is open and my “Voordeur” is closed. Notice how “Voordeur” has been unavailable as some moments.
Traceback/Error logs
Additional context
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 37 (3 by maintainers)
That is the solution. RTFM. I almost threw away my DW2 that was not reporting to HA most of the time. Also helps with RGBW2 that reacts to dashboard now at first click.
In detail: