I had a Kwikset lock on my front door and this RM was set up as that worked.
Trigger events: Front door unlock:
Actions to run: If the time between x and z and the front door unlocks, then turn on the lights.
Now I have an Alfred door lock, so unlike the Kwikset, I have to unlock it from the inside vs just turning the doorknob and walking out with it still being technically locked, but with the Alfred, I have to unlock it from the inside to get out and it's causing the lights to come on using the same rule as stated above. So I've been playing around with my RM but after several different combinations I just can't seem to get it.
What I want to see happen is,
Event: when door unlocks with code
Action: if time is between X and Y then turn on lights.
Event: when door unlocks
action: if time is between X and Y and front door lock code, user1, user2 etc and front door unlocks, turn on light
I know i'm missing something or adding something I don't need but after trying several different ways I thought the rule should be written, i'm at a lost