This thread may be of interest to you.
Create a virtual switch that turns on when you’re home and off when you’re not.