Automations with multiple if/and/or conditional triggers

I would like the ability to say if this and this are true the allow this to happen. For instance to say if I’m at home and it’s 7PM then turn the lights on. Not just if I’m home turn the lights on. Or if it’s 7PM then turn the lights on. Because if I’m not home then I don’t need the lights on.

If I’m not home and it’s after 7 PM and someon rings my doorbell the turn the lights on.

If I’m at home and caught on camera then unlock the door.

[Mod Note]: Post moved to correct topic.

3 Likes