Request: Sliding toggle

I’m looking for a slide toggle, kind of like answering a call on iphone.

I have an idea to use it for my garage opener instead of regular buttons, hopefully a slider will prevent accidental taps.

I can imagine making this work with an input number helper, then test the elper value in your automation:

I normally use nothing for tap and put the action as a hold_action for this.