Help needed with creating flow

I would like to make a flow that only activates our securitycam while we are away from home or sleeping.
The camera is plugged in a Innr SP120 smartplug.
So far I can’t seem to find a reliable trigger that activates both while sleeping or away.
Maybee the smart schedule from Tado or the Heimdall app could help, but I can’t figure it out,
Could someone please help me with this flow?