This is a replacement slider for a dimmer switch. I don't know what the original switch is called but I have included pictures of the switch post that this switch is installed on.
If you'd like you can buy me a coffee here: https://www.buymeacoffee.com/junrenman
The author marked this model as their own original creation. Imported from Thingiverse.