Using PLC to activate a scene at X time and then deactivate it at X time

Richard (and crew here) is there a way to set up PLC to activate a scene at a specific time, then deactivate it at specific time?

The scenario is:

I have a motion detector on my front porch. If it is after 11:30pm and motion is detected I’d like to turn the front lights on, turn the living room lights on and lock the front door. I then want to deactivate the scene after 6am so if motion is detected don’t do anything.

I have the scene set up but as I discovered by reading about scenes, you can’t stop a scene from running. I assume this is what PLC can do, but I am struggling with wrapping my head around the logic. I read some of your examples…but I am not “getting” them yet.

Thanks in advance.

LH

You can use a sequence expression to limit the time frame a trigger is active.

If you have an input trigger:
Motion DoorSensor detects motion.

Than you can have a condition:
React Motion and (NOT (6:00:00;Motion; 23:30:00))

Actions:
React Turn on Front Light, Living Room Lights, Lock Door

You could add more logic to turn the lights back off at a later time.

Thanks Richard.

I’ll try that.

Thinking about it though…could I accomplish the same thing by setting a time for the Sensor to be armed (23:30) and disarmed (06:00) and then only have another scene activate when the sensor is armed ?

Yep … That would work as well.
3 Scenes (Active, Deactive, Respond) or 1 PLEG … and you can use the PLEG for other logic as well.