Turn camera off except if everyone is away

Hi, I wonder if it’s possible to automate the camera to turn off every day in the morning, except when everyone in the house is away, so for instance in a normal day the camera is off when we get up but if we are on away on vacations the camera doesn’t turn off and keeps recording.

I tried with shortcuts in the app but there is only time automation no presence, and I tried to integrate with IFTT but I cannot use to conditions on the “if” part so it’s only time or only when everyone is away (using life360)

Any ideas on how I can do this?