Narrative:AHP 3.206 with OnAlert and a DS10A connected to the garagedoor.
With the exception of security Macros, all are run from the Interface.
I have an outside camera to monitor motion in my driveway there is a motion sensor to control this camera. I also have a camera and motion sensor in my garage. When the garage door is open, this camera not only covers anyone who enters the garage, but also covers the entire driveway as well. At nighttime, I have a floodlight in the garage to provide extra light for this camera.
Control Logic:- When garagedoor is closed and motion detected in garage, just turn regular lights on
- When garagedoor is open and motion detected in garage, turn on garage camera
- When garagedoor is closed and motion detected in driveway, turn on driveway camera
- When garagedoor is open and motion detected in driveway, turn on garage camera
- When the garagedoor opens at night, turn on garage floodlight and garage camera
- When the garagedoor opens during daytime, turn on garage camera
- When the garagedoor closes, turn off garage camera, switch to driveway camera, turn off garage light and garage floodlight; and finally send a delayed signal to ensure driveway camera does not stay on.
The macro controls for this are one of the most complex that I have in my set-up.
Equipment, name and X10 references:1 ) Driveway motion detector, DWmotion, L7, Status Flag 4
2 ) Garage motion detector, GARmotion, L11, Status Flag 7
3 ) Driveway camera, DWcam, C1
4 ) Garage camera, GARcam, C5
5 ) VCR Commander, CAMrecord, C9
6 ) Garage light, GARlight, K5
7 ) Garage flood light, GARflood, J15
8 ) Garagedoor security sensor DS10A, SSgaragedoor
MACROS:1) Create a dummy appliance switch: A3 GarageDoor
2) Create the following 15 Macros: Macro Name: DWmotionON1
Trigger: L7 ON
Condition(s): Flag Status Off - 4, 15
Action(s): DWcam ON
C1 ON Delay 0 Seconds
CAMrecord ON
C9 ON Delay 1 Second
GARcam OFF
C5 OFF Set Flags [4]
Clear Flags [7]
Macro Name: DWmotionON2
Trigger: L7 ON
Condition(s): Flag Status Off - 7
Flag Status On - 15
Action(s): GARcam ON
C5 ON Delay 0 Seconds
CAMrecord ON
C9 ON Delay 1 Second
DWcam OFF
C1 OFF Set Flags [7]
Clear Flags [4]
Macro Name: DWmotionON3
Trigger: L7 ON
Condition(s): Flag Status Off - 15
Flag Status On - 4
Action(s): CAMrecord ON
C9 ON Macro Name: DWmotionON4
Trigger: L7 ON
Condition(s): Flag Status On - 7, 15
Action(s): GARcam ON
C5 ON Delay 0 Seconds
CAMrecord ON
C9 ON Macro Name: DWmotionOFF
Trigger: L7 OFF
Condition(s): Flag Status On - 4
Action(s): DWcam OFF
C1 OFF Clear Flags [4]
Macro Name: GARmotionON1
Trigger: L11 ON
Condition(s): Flag Status Off - 7, 15
Action(s): GARlight ON
K5 ON Delay 1 Second
Set Flags [7]
Macro Name: GARmotionON2
Trigger: L11 ON
Condition(s): Flag Status On - 15
Flag Status Off - 7
Action(s): GARcam ON
C5 ON Delay 0 Seconds
CAMrecord ON
C9 ON Delay 1 Second
DWcam OFF
C1 OFF Set Flags [7]
Clear Flags [4]
Macro Name: GARmotionON3
Trigger: L11 ON
Condition(s): Flag Status On - 7, 15
Action(s): CAMrecord ON
C9 ON Macro Name: GARmotionOFF1
Trigger: L11 OFF
Condition(s): Flag Status On - 7, 15
Action(s): GARcam OFF
C5 OFF Delay 0 Seconds
GARlight OFF
K5 OFF Clear Flags [7]
Macro Name: GARmotionOFF2
Trigger: L11 OFF
Condition(s): Flag Status Off - 15
Action(s): GARlight OFF
K5 OFF Clear Flags [7]
Macro Name: GARdoorUP
Trigger: SSgaragedoor - Sensor Triggered
Condition(s): Flag Status Off - 15
Action(s): Set Flags [15]
Delay 1 Second
GarageDoor ON
A3 ON Macro Name: GARdoorDOWN
Trigger: SSgaragedoor - Sensor Closed
Condition(s): Flag Status On - 15
Action(s): Clear Flags [15]
Delay 1 Second
GarageDoor OFF
A3 OFF Macro Name: GarageDoorOPEN1
Trigger: A3 ON
Condition(s): Flag Status On - 2
status flag 2 controlled by: Daytime / Nighttime Timer Flag Macro Action(s): Clear Flags [7]
Appliance Control: Turn L11 ON
Macro Name: GarageDoorOPEN2
Trigger: A3 ON
Condition(s): Flag Status Off - 2
Action(s): Clear Flags [7]
GARflood ON
J15 ON Delay 1 Second
Appliance Control: Turn L11 ON
Macro Name: GarageDoorCLOSE
Trigger: A3 OFF
Condition(s): none
Action(s): GARflood OFF
J15 OFF Delay 0 Seconds
GARlight OFF
K5 OFF Delay 1 Second
Clear Flags [4]
Appliance Control: Turn L7 ON
Delay 1 Minute
Appliance Control: Turn L7 OFF
Additional notes:The reason I have the Dummy Module (A3) and call it from the SSgaragedoor security sensor Macros instead of just doing the tasks here is because I use 2 CM15A at home and sending the A3 ON is my way of letting the other system know the Garagedoor is open.
Not shown in the Macros is a Status Flag I use to disable my cameras. There are times I don't want any cameras to come on so I use a Flag that when set, none of the above L7 & L11 macros will run.