Z-Wave light preserve brightness when toggled off

When a Z-Wave light entity is turned off the brightness value is set to max. This means that the next time the light (dimmer) is toggled on it will go to full brightness. It would be great if there was an option for the zwave component that preserved the last brightness value (does not update brightness when turning the light entity off). This way the next time you turn the light on it will go to the previous brightness.

https://github.com/balloob/home-assistant/blob/dev/homeassistant/components/light/zwave.py#L111
https://github.com/balloob/home-assistant/blob/dev/homeassistant/components/light/zwave.py#L42

Thanks,
Devan

For GE/Jasco zwave dimmers, this is built into the switch already. You’d turn the light on to its previous dim level by setting the “value” to be 255 instead of something between 0 and 99. It would be awesome if the zwave light component supported this. Also, this is the only way to get GE/Jasco switches to dim on. Setting the brightness to something between 0 and 99 makes the switch instantly go to that brightness.

Looks like someone saw my comment! This feature has been merged https://github.com/home-assistant/home-assistant/pull/5160

1 Like

Awesome, glad to see this made it in!