Custom light slider/dimmer

Hello,

Check this thread: Card Tools popup? (Homekit style card )

I made a custom front-end and 2 types of cards with the second example as brightness slider. You van user that OR check the code and user it in your pen.