By setting an auto-turnoff timer on a switch,you can determine the time after which it will automatically turn off.
Toset this timer,tap on the settings icon on the top right corner of the switch.Click on 'SetAutoturn-offtimer' > Enter the time in minutes and save.