on-off switch
nounUK /ˌɒn ˈɒf swɪtʃ/
US /ˌɑːn ˈɔːf swɪtʃ/
A small button you press to turn something on or off.
Press the on-off switch to start the lamp.
OTHER MEANINGS
2. A control that starts and stops a machine or device.
The on-off switch on the fan is broken.
3. A setting that has only two states, on or off.
This toy has a simple on-off switch.
4. A way to turn a feature on or off in software.
Find the on-off switch for notifications in the settings.