Dimmable Bulb: Brightness not restored after on -> dimm -> off -> on operation

Hi there,

I’m pretty new to HA and I almost feel bad for asking, I’ve located some discussions about the topic in the forums but it was mainly related to scripts and restoring’s previous state in scripts, so I’m not quite sure if this should work, if it doesn’t (bug) or if it doesn’t (by design).

I’m controlling a Z-wave (plus) bulb from HA. HA controls the light via veraplus. What I’ve noticed is: If I turn on the light, it is always turned on with the maximum brightness. If I adjust the brightness (dim it) and turn it off and then on again, it is again powered on with 100% brightness.

If I do the same thing using vera’s UI (http://1.2.3.4/cmh/) it works as I would expect. Once the brightness is set, turning the bulb on and off always restores it to the previous brightness level. Can’t I have the same behavior in Home-Assistant? Is this by design?

If restoring the previous brightness is not possible, can I modify the default brightness that is sent together with the “turn on” command?

Any input is greatly appreciated.

The way HASS is currently written it doesn’t store any info about the brightness the bulb was at when it was switched off. It is possible to set the brightness attribute when turning the bulb on. You can do this via a service call, but the easiest way is to use a scene.

1 Like

Uh, that’s a bummer. I would certainly have expected it to do it by default. I mean, not storing the previous value is effectively overwriting it with a new (incorrect) value each time.

Anyway, I’ll have a look at the workaround with the scene, thank you for your input!

1 Like