piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.75k stars 341 forks source link

Option to Limit Minimum Brightness on Slider to 1% #277

Open NathanVanCleave opened 2 years ago

NathanVanCleave commented 2 years ago

Is your feature request related to a problem? Please describe. I have a lot of situations where I want to turn the light on at or down to the lowest brightness. This is very difficult to achieve on any device without turning the light off since the slider goes to 0%.

Describe the solution you'd like Create an option to limit the minimum brightness for the slider to 1%. Since I already have the option to make taping the card to toggle the light ON/OFF, I don't see the need to turn off the light with the slider.

Describe alternatives you've considered I haven't seen this issue discussed anywhere and I'm not comfortable editing the code myself. I could maybe use Trigger IDs to turn the light back on to 1% when it was turned off by the Mushroom card and make tapping the card call a service to toggle it via an automation. But, I'm not sure this would work very well, it would cause the light to flicker off then on, and is overall very inelegant.

Double tapping the card to set the brightness to 1% was also something I briefly thought about, but requiring additional know-how to use lights often doesn't pass the wife approval test and may result in unwanted behavior if not done correctly/quickly enough.

Additional context This is already how the entity pop-up in HA behaves. The slider only changes the brightness and you have to click the ON/OFF button to change its state. If there is a limitation to why this can't be replicated with Mushroom cards or would be too difficult/time consuming then I understand, but this is the final piece that is keeping me from fully implementing Mushroom as my go-to for light dashboards. FWIW, the Slider Button Card is also missing this functionality.

Hl2run commented 6 days ago

It would be awesome if this could be implemented. Especially during night and feeding little kids when you want to turn stuff on only to 1% fast.

Thanks.