Lights automation and device tracker

I’m not so familiar with it, but maybe schedy can be used for this.