Hopefully this will help.
I have just cut this from an object I use to set appliance models and cut-out sizes.
I have left just the parts for a stretchable on/of style hotspot and also a rotating hotspot.
The rotating hotspot has 4 positions rather than just the 2 you want.
If just a choice of two settings I use the straight stretchy method.
You can amend the rotating one to have as many or as few options as you want.
And obviously change the names of the parameters so they mean something to you.
I did this in a bit of a rush so haven’t altered the names to anything more generic.
Normally I would agree about using a sliding arrangement for simple on/off but I have reason to use the rotating shape in this instance. And no worries about cleaning up the names and such, I’m just looking for good example to save some trial and error.