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] shellyforhass.click huge delay with Shelly 1 Switches

See original GitHub issue

Environment

  • ShellyForHASS release with the issue: 1.9
  • Last working ShellyForHASS release (if known): (new feature)
  • Home Assistant Core release with the issue: 113.1
  • Operating environment (Home Assistant/Supervised/Docker/venv): Docker

Describe the bug

The event shellyforhass.click seems to work just fine with a Shelly Button 1. However, the Shelly 1 switches show a huge delay before firing the shellyforhass.click-event (sometimes up to 50 seconds!). The state of the switch itself updates correctly and in a timely manner, so the shelly_switch_click-event still works as well as it did before…

Steps to Reproduce

  1. Setup a Docker with ShellyForHass installed on Home Assistant
  2. Hook up a Shelly 1 to a switch (momentary)
  3. Register event listener to shellyforhass.click
  4. Observe state of the switch in one browser window …
  5. …and observe the output of the event listener in another

Expected behavior

The event should be fired within a second or so of clicking the button.

Screenshots

GIF of behavior (Duration: 50 Seconds)

ezgif com-video-to-gif (1) Notice the switch change and how long it takes for the event to be triggered

Traceback/Error logs

Nothing as far as I can tell...

Additional context

This issue is weird since it’s inconsistent. Sometimes it works right away, other times it takes nearly a minute to trigger…

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:35 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
MathiasThorcommented, Aug 2, 2020

Thanks for the heads up 😃 - I deleted my response. I made a bit of progress in the meanwhile. By setting scan_interval to 0 the delay is subretinally decreased - but not gone. I am not sure if I understand the description of this variable: If the not CoAP supported this will be the delay for status updates. Does this mean that CoAP is not supported in my setup or that it is?

0reactions
halecivocommented, Sep 15, 2020

I can confirm having this issue as well. Sometimes, events are lost completely. MQTT (without shellyforhass) works well. 😢

Read more comments on GitHub >

github_iconTop Results From Across the Web

ShellyForHASS | Shelly Input Switch Delayed ... - Facebook
When using MQTT there are no delays. For shellyforhass.click events the button type must be momentary or detached for it to work and...
Read more >
Shelly updates started getting delayed - Configuration
I set up a couple shellys to control some of my lights about a week ago, (a 1 and a 2.5,) using the...
Read more >
Home Assistant How To - integrate Shelly IoT devices - YouTube
Today I'll be talking about Shelly devices. What types exist, how to get maximum number of sensors, why use internal or HACS Shelly...
Read more >
Untitled
Shelly 3em wiring Open the Networks tab and fill in your WiFi information under Wifi 1. Toggle the Enable button and click Apply....
Read more >
Shelly firmware - Diagnosi Precoce Autismo
Shelly 1 OS can automatically turn on/off based on the sunrise and sunset hours. At the moment only switch functionality is supported Apple...
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