Sleep timer with time slide control?

I would like a switch with a flexible slide control for the time that passes until several switches are turned off.

I have found the following example here:

And the Timer discription " Control a timer manually":

That sounds very good, but I have trouble understanding it.
Do I need to watch out for something special with lovelace?

Did you ever figure this out?