1 - Motion Sensing

If
Camera
Detects motion

Then
Turn on
Lights
2 - Control with a Switch

If
Switch
button pressed

Then
Turn Off
Group
3 - Schedule a Scene

If
Time
is reached

Then
Turn on
Scene
4 - Auto-Off Timer

If
Light
Turns on

Then
Turn the device off after
15 Min