There are some simulated presence sensors which also have switch capability. That then allows you to turn them on and off from a regular automation or from smart lighting.
You can read more about these in the presence FAQ. See post 5.
FAQ: The Many Ways of Detecting Presence (2020) - #5 by JDRoberts