Turn off device when plugged in after 10pm and before 7am