Turn on one light before one hour turn on two after

I am attempting to setup an automation or group of automations that when I have been away for less than an hour something happens (specifically turn on all the lights that were on when I left) and if it has been longer than 1 hour turn on only the entry way light.

The issue is that while I can test for how long a state has been in a state using the for: command, both automations still run and I am still left with all the lights that were previously on being turned on. As far as I can tell there is no way to ensure that an automation will only trigger between the 0 and 1 hour mark using a condition but I am posting here to make sure I didn’t overlook something.

Thank you in advance for the help!

1 Like