[BUG] shellyforhass.click huge delay with Shelly 1 Switches
See original GitHub issueEnvironment
- 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
- Setup a Docker with ShellyForHass installed on Home Assistant
- Hook up a Shelly 1 to a switch (momentary)
- Register event listener to
shellyforhass.click
- Observe state of the switch in one browser window …
- …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)
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:
- Created 3 years ago
- Comments:35 (12 by maintainers)
Top 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 >
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
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?
I can confirm having this issue as well. Sometimes, events are lost completely. MQTT (without shellyforhass) works well. 😢