custom-cards / slider-button-card

A button card with integrated slider
MIT License
105 stars 16 forks source link

Request direction: right to left #48

Closed stefanbode closed 10 months ago

stefanbode commented 1 year ago

Great work and hopefully the right active fork that is also used by HACS. Not easy to find.

I have automated doors that act like shutters, with positioning and all this magic.

Some doors open from left to right and some from right to left. To have a UI experience that the door move where you move the finger the last direction can make it.

I was thinking in a workaround of inverting the color and also inverting the % on the right door. But this does not look well either.

rohankapoorcom commented 10 months ago

You found the active fork @stefanbode! Thanks for the feature request. I've added support for right-to-left sliders in #53 if you'd like to give it a shot before I merge and push it out. Here's what it looks like in my testing environment (the same light is controlled in all directions).

image

stefanbode commented 10 months ago

Thx. Be back tomorrow to check it out.

danielbrunt57 commented 10 months ago

Thanks! Much appreciated!!

stefanbode commented 10 months ago

Works perfectly. The only thing I did not catch directly: There is a restart required after the update.

rohankapoorcom commented 10 months ago

Interesting, a restart shouldn't be needed. However you do need to force refresh the page to clear the cache after installing the latest version with HACS.