Shelly Dimmer 2 - startLevelChange (do....while loops)

Hi, I've had several Shelly Dimmer 2's connected to HE for a while now using the inbuilt driver (Shelly WiFi Dimmer), up until now I've only used integrations that turn them on/off or on at a set level which works fine. I thought i'd try dimming up/down using a button but get an error

This error occurs when I use 'start raising'

image

Does anyone know how to resolve this?

The device doesn't support this command, so there's no resolution available.

1 Like

As a workaround you could create a virtual dimmer and slave the shelly to it with Built in mirror app or community switch bindings. I use the latter to control a shelly dimmer from a zwave wall switch. It's not 100% but it works pretty good considering it's switch-> zwave-> hub -> wifi -> shelly. Then you could control the virtual dimmer with your button device. (I also have a zen34 remote that controls the wall switch using Dimmer Button Controller which then relies on the switch binding to control the shelly.) So...assuming the virtual dimmer supports those level change commands, it should work. As an alternative, see if Dimmer Button Controller could work for you straight to the shelly...it's not perfect dimming but I do stuff like this:
image

1 Like

I created a Virtual Dimmer and used the Mirror app but I still get the same errors when controlling the Virtual Dimmer from my button. I'll try the other options

Same with Dimmer Button Controller using 'Dim up' on held, they just pass the same request to the Shelly so give the same error.

In my head I need to have a global variable (OfficeDimmerIsHeld:Boolean) that is set to true when button is held then a do....while loop that dims in increments until the button is release (OfficeDimmerIsHeld = false)

Like this but do.....while instead of if....then


I didn't realise that you can actually do while loops! All this seems to do is update the light by +5 once though, it doesn't repeat, does anyone know what I'm doing wrong here?


I also tripped across wanting to use startLevelChange and after doing a bit of research it appears that the Shelly DImmer 2 device now supports an API that could be used.

Is there a chance we can get the built-in Shelly WiFi Dimmer updated??