I used a WiFi plug at my last house. Wemo/Kasa will do it. Depends if you have wifi though. Had it linked to Alexa so when I said "goodnight" or left the house the plug would turn off meaning the...