question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Shelly Door/Window2 (DW2) status not updated or incorrect

See original GitHub issue

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

image image image

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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:33 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Meyer3commented, Nov 19, 2022

… I configured CoIoT in the Shelly configuration,

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:

We recommend using unicast for communication. To enable this, enter the local IP address of the Home Assistant server and port 5683 into the CoIoT peer field [of web interface, not app] and push SAVE button.

0reactions
MarkusHempelcommented, Dec 14, 2022

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 ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found