piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.3k stars 311 forks source link

[Feature]: add a range slider (2 headed slider) #1408

Open juergen-weber opened 2 months ago

juergen-weber commented 2 months ago

Requirements

Is your feature request related to a problem?

I coundn't find a slider for HA anywhere which implements the definition of ranges. Use cases are obvious and widely applicable. image

Describe the solution you'd like

Implement it in lovelave-mushroom. This would make this package even more attractive.

Describe alternatives you've considered

No response

Additional context

No response

piitaya commented 2 months ago

Can you provide a use-case ? I don't see a domain that can use that feature. It can be used for target temperatures for climate but it already has been discussed here : https://github.com/piitaya/lovelace-mushroom/issues/107

juergen-weber commented 2 months ago

Use case: A battery to be charged in the range of 20-80% of its capacity.

rzolau commented 1 week ago

I found mushroom looking for exactly this feature. There are really quite a few cases where range becomes handy. For example, I want to monitor whether certain temperatures are within a desired range (note that I consider this a different issue than #107). And yes, this can be done with two sliders, but I still would argue that from the UI perspective range is better (e.g., gives you immediate inside into the span for example).