Macro 1 -- triggered by hallway/stairwell
motion sensor
if Flag A OFF and Hall Phantom OFF
Flag
A ON
Hall Phantom ON
Hallway Light ON and DIM to 25% --turn
on the lights in the foyer and 1st floor hallway. both have the
same HC/UC
delay 1 minute -- it takes 30seconds or less to make it from the top of
the steps, through the hall and into the kitchen
Hallway Light OFF
endif
Macro 2 -- triggered by
kitchen motion sensor
IF time is between 11PM and
6AM then
IF
Flag A ON and Hall Phantom ON -- this is the first time someone has
entered the kitchen
Kitchen
Light ON and DIM to 25%
endif
endif
Macro 3 --
triggered by kitchen motion sensor
IF time is between 11PM and
6AM then
IF
Flag A ON and Hall Phantom OFF then -- continuous movement by someone
who's already entered the kitchen from the hallway
delay
2 minutes -- reset delay
Flag
A OFF -- kitchen is
ready to be re-triggered on new entry by macro 2, and macro 1 can be
triggered to light the hall/stairwell
endif
endif