Shelly Dimmer 2 driver not working Take 2

I'm having to revive an old topic...

and it's related topic:

Everything described is still occurring for me 2 years later. I put a Shelly Dimmer 2 inside the base of a lamp and connected it with ease. But I cannot get status back from the device without a refresh. For the most part, I don't care. :slight_smile: I use automations to turn the lamp on/off at specific dim levels based on time and motion. I got a couple of Lifx bulbs to fill some WiFi curiosity and then decided I wanted to bury a dimmer inside a lamp. Availability being what it is in 2022, I picked the Shelly.

I've upgraded from the as-delivered v1.7 to v1.11.7 and that made a detectable difference because before that, the failure was entirely related to missing Actions. V1.11.7 displays the Actions "properly" -- as in, not empty.

One example:
Screen Shot 2022-05-23 at 4.25.34 PM

The Shelly app in the device works and displays the status correctly. Any wisdom @mike.maxwell ?

I can have a look, maybe this is not broken with a later firmware version, been a while since I tested these...

1 Like

Did you find anything?? My nag rationale is that another release is nigh ...

Haven't had a chance to look into it yet...

ok, no problem, I'll nag again tomorrow.

.
...
Just kidding :slight_smile:

1 Like

Looks like you had time...

* Fixed Shelly WiFi dimmer setLevel(0) error.

and it fixed my issue.

Thanks. :smiley:

1 Like

A follow up..

As I described initially, the light would work fine, it's the status that was wrong. The update fixed that BUT... the Light and my fingers are far apart. I tested via clicking and saw that the status went from off to on and back, and that the dim level tracked.

A few days ago I noticed the light wasn't on when I thought it should be. I got back to the computer, checked, it was On. So I thought it was a missed event, turned it off, on again. Status tracked, I figured I'd check again "tomorrow"

Yesterday I noticed again that the light wasn't on when I thought it should be... so I unplugged it and brought the whole thing here, next to my computer. I turned it on via level =99 and it came on.. changed it to 33 and again, it worked. However, the dimmest I could use was 28%. Then suddenly, the lamp went off. All by itself. I'll skip the lengthy debugging to the final step... looking at the dimmer via its web interface. And there, big bold letters: Calibration Failed

On the dimmer's interface I clicked calibrate and once that was done, success. Everything worked properly, everything. :smiley: Can now dim down to 3% with no problem for the LED lamp I'm using,

Since this required a recovery path outside of Hubitat, I'm documenting it for the next reader of this topic.

TL:DR
The Shelly Dimmer 2 works with the latest platform (v2.3.2 at the time of writing) but the update to the driver exposed a calibration error that was harmless back when it was not receiving correct status from the dimmer. Use a browser to the IP address of the Shelly Dimmer and click Calibrate (Settings:Calibration) It takes at least a minute to complete. Nothing else is needed after.