Went thru a similar thing here. This is what I did.
Make sure you download your macros to the interface and also update the monitored house code.
Then:
I run this macro before I do any testing.
Reset Flags Macro O1 On Clear Flags [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] Flag Command
Turn on the light (I have 6 of these macros triggered by E1 - E6 on turning in light F1 - F6) I'm only showing the 1st one here.
Flood Drive On E1 E1 On and
Module Status On Floods On/Off Ok LM465 and (this is on the monitored housecode) (if this is on, it's OK to turn on the light)
Flag Status Off exactly 2
Set Flags [2] Flag Command
(F1) Flood Driveway WS467 ON
(F1) Flood Driveway WS467 ON
(L1) Flood Is Turned On LM465 ON (used as a switch on the monitored house code)
(D9) Dum Chime Trigger ON
Flood Drive On E1 else1
E1 On and
Module Status Off Floods On/Off Ok LM465 or(this is on the monitored housecode) (if this is OFF, it's NOT OK to turn the light on)
Module Status On Flood Is Turned On LM465
(P3) Dummy Module 1 AM486 OFF (need to do something here because you can't have a delay as the 1st statement in a macro. It would cause this else to always run)
Delay for 2 Seconds (had to put this here because of internal timing issues with the CM15A. Seems it doesn't like a continuous stream of commands)
(D9) Dum Chime Trigger ON
Sound the Chime once every 15 seconds.
Sound Chime D9 D9 On and
Module Status On Chimes On/Off Ok and(this is on the monitored housecode) (if this is on, it's OK to sound the chime)
Flag Status Off exactly 12
Set Flags [12] Flag Command
Delay for 1 Second
(N10) Chime Patio SC546A ON
Delay for 1 Second
(N11) Chime Basement SC546A ON
Delay for 1 Second
(D16) Dum Flood Disp Trigger ON
Delay for 15 Seconds
Clear Flags [12] Flag Command
Sound Chime D9 else1
D9 On and
Module Status Off Chimes On/Off Ok (this is on the monitored housecode) (if this is OFF, it's Not OK to sound the chime)
(P3) Dummy Module 1 AM486 OFF
Delay for 2 Seconds
(D16) Dum Flood Disp Trigger ON
Turn the light off depending on the status of my security system.
Flood Disposition D16 D16 On and
Module Status On Flood Is Turned On LM465 (a light was turned on), Armed Away Macro LM465 and(this is on the monitored housecode)
Flag Status Off exactly 13
Set Flags [13] Flag Command
Delay for 1 Second
(H2) inside Sec Light 2 LM465 ON
Delay for 5 Seconds
(H1) Inside Sec Light 1 LM465 ON
Delay for 04:00
(H1) Inside Sec Light 1 LM465 OFF
Delay for 6 Seconds
(H2) inside Sec Light 2 LM465 OFF
Delay for 4 Seconds
(F1) Flood Driveway WS467 OFF
(F2) Flood Patio WS467 OFF
(F3) Flood Back Yard WS467 OFF
(F4) Flood Side Yard WS467 OFF
(F5) Light Front Porch WS467 OFF
(F6) Light Back Porch WS467 OFF
(L1) Flood Is Turned On LM465 OFF
Clear Flags [2,3,4,5,6,8,13] Flag Command
Flood Disposition D16 else1
D16 On and
Module Status On Flood Is Turned On LM465, Armed At home LM465 and(this is on the monitored housecode)
Flag Status Off exactly 14
Set Flags [14] Flag Command
(H1) Inside Sec Light 1 LM465 OFF
Delay for 04:40
(F1) Flood Driveway WS467 OFF
(F2) Flood Patio WS467 OFF
(F3) Flood Back Yard WS467 OFF
(F4) Flood Side Yard WS467 OFF
(F5) Light Front Porch WS467 OFF
(F6) Light Back Porch WS467 OFF
(L1) Flood Is Turned On LM465 OFF
Clear Flags [2,3,4,5,6,8,14] Flag Command
Or leave the light on if I'm at home and want to turn the light off manually.
Flood Disposition D16 else2
D16 On and
Module Status Off Armed Away Macro LM465, Armed At home LM465 and
Flag Status Off exactly 10
Set Flags [10] Flag Command
(L1) Flood Is Turned On LM465 OFF
Delay for 5 Seconds
Clear Flags [2,3,4,5,6,8,10,13,14] Flag Command