Shelly Button 1 - When asleep first click does not generate event in HA

Hi,
The Shelly Button works OK when connected to a power supply allowing continuous wifi connection. With no power supply the button gets asleep. A first click awakes it and after about 2 seconds for wifi connection the led turns green signalling a successful command… but HA does not see any incoming event. A second click while the button is still connected to wifi (thanks to “Remain Awake” timer) makes HA receive TWO events one shot : the first and second click I imagine. I have the latest Shelly Button firmware : v1.12.1.
Any idea to have the first click working?
Thanks for your help.

I was wondering what you meant here, but now I understand that the button has two modes: battery (constantly sleeping) and 5v USB powered (constantly awake).
From the manual:

Additional Information
The device is battery powered, with a “wake” and “sleep” mode.
The majority of the time Shelly Button will be in “sleep” mode when on battery power, to provide a longer battery life. When you press the button, it “wakes up”, sends the command you need and it goes in “sleep” mode, to preserve power.
When the device is constantly connected to a charger, it sends the command immediately.
• When on battery power - the average latency is around 2 seconds.
• When on USB power - the device is always connected, and there is no latency.
The reaction times of the device are dependent on
internet connection and signal strength

This looks a little like your issue:

Does your device behaviour differ after a HA restart like as suggested here?

Thank you for your answer. I confirm the button works after HA restart but only one time. Once the button is back to asleep mode, subsequent “first” clicks do not work anymore. I think this is the same bug than the one you were refering to. What surprises (and worries) me is that this bug is one year old. I have submitted a case to Shelly support in Sofia. If I have a solution or valuable information I’ll update this topic.

1 Like

A quick update from Shelly support in Sofia :

Blockquoteemphasized text
Thank you for the report as well, we have a similar issue, at the firmware level right now, maybe its related. We will release a fix for this soon with the next firmware version 1.12.3.
Blockquoteemphasized text

They also asked for “dumps”. Let’s see…

Blockquote

1 Like