A command line switch should do the first, though it’ll be a pair of buttons for on and off, not a toggle.
For a slider, there’s an input_slider.
If you want both on the same card, you’ll need to look at creating custom elements.
That said, for blind control, have a look at the cover component.