Choose File > Add Automation.
Click People Leave, choose when you want the automation to occur, then click Next.
Choose one or more scenes and accessories, then click Next.
Review your choices.
If accessories were turned on by the automation, you can set how long they stay on before they turn off.
Click Done.
Go to the Books app Share control of Home accessories on MacApple Support article: Create scenes and automations with the Home app