[BUG] Shelly Door/Window2 (DW2) status not updated or incorrect
See original GitHub issueEnvironment
- 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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:33 (3 by maintainers)
Top Results From Across the Web
Door/Window 2 Issues : r/ShellyUSA - Reddit
Just received a pair of these yesterday and so far not at all ... on the status page in the app, it will...
Read more >I bought a shelly 1 and a shelly door window 2 - Facebook
When I am very lucky I can sometimes click on save and then it just hangs on: connecting to cloud. And then after...
Read more >Shelly Door/Window 2 sensor in Home Assistant - YouTube
In last few years, I've purchased various Shelly devices. With most of them I'm happy, some work better then expected, but this one...
Read more >Shellies Discovery Script - Scripts - Home Assistant Community
I have added few Shelly Plug S with mqtt. Plugs does not appear in the devices list and I see in the logs:...
Read more >Shelly Family Overview – API Reference
[All devices] Fix bug with not applying the new wifi configuration immediately ... indicates if the door/window state is changed with the current...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
Hallo zusammen, Statusänderungen über die Shelly APP funktionieren. aber über Home Assistant 2022.12.5 werden immer die Werte und der Status zum Zeitpunkt der Einbindung angezeigt. Bis Home Assistant Version 2022.12.4 funktionierte es noch. Hat jemand eine Lösung ?