I have read many many post concerning smart macros, flags, dummy/phantom modules.. but I just can't get this to work.
F1,2,3,4 are floodlights
"L" is the monitored house code
L5 On = it;s OK to turn on the light
L6 On = it's OK to sound the chime
L11 On = security system armed Away From Home status
L12 On = security system armed At Home status
L11 & L12 are never on at the same time but can both be Off at the same time
D9 is the trigger for sound Chime Macro
D16 is the trigger for the Light Disposition Macro. to see it the light should be turned off or not)
All of the above are defined as appliance modules.
E1 is an Active Eye. I intend to have an E2, E3, E4 Active Eyes each controlling floodlight F2, F3, F4 respectively. They will all need to do the Flood Light light disposition and sound chime macro.
Flags are used to prevent the Macro from executing if another trigger is received and the macro is still running.
Trigger E1 ON (Active Eye On)
If L5 ON And Flag2 Off (L5 on = light OK to turn on)
Delay 1 sec.
Set Flag2 On
Turn on Driveway Flood (F1) (turn the light on)
Set Flag2 Off
Else
Delay 1 Sec
Set D9 On (trigger the Sound Chimes Macro)
Set D16 On (trigger floodlight disposition Macro)
Trigger D16 On (floodlight disposition macro. This macro will either turn the light off or leave it on. This macro checks the status of the security system. If it is armed away from home L11 on, do the following)
Trigger D16 On
If Alarm On Away From Home (L11 On) And Flag13 Off
Delay 1 sec.
Set Flag13 on
Turn On Inside House lights H1, H2
Delay 1 minute
Turn Off All Floods (F1, F2, F3, F4)
Delay 30 seconds
Turn Inside House Lights Off H1, H2
Set Flag13 off
Set D16 Off
Else (if the security system is armed at home (L12 on, do this)
If Alarm Armed At Home (L12 On) and Flag14 Off
Delay 1 sec
Set Flag14 On
Delay 1 minute
Turn Off All Floods (F1, F2, F3, F4, F5, F6)
Set Flag14 Off
Set D16 Off
Else (If neither armed away nor armed at home, or not armed at all, do this)
Delay1
Set D16 Off (turn the Floodlight disposition macro trigger off)
Trigger D9 On (Sound Chimes Macro L6 On means that it is OK to sound the chime)
If L6 On And Flag12 Off (L6 on = OK to sound the chime)
Set Flag12 On
Sound Chimes (n9, N10, N11)
Set Flag12 Off
Set D9 Off
Else
Delay 1 sec
Set D9 Off (turn off the Sound Chime trigger)
Before I run the E1 On macro, I make sure the the Alarm is set to only one of the following
L11 on or L12 On Which ever is on I have the other turned off before I run the E1 On macro.
I have the Lights OK to turn on Dummy module (L5 On)
I have the Chimes OK to turn sound Dummy module (L6 On)
When I run it on the PC, all is fine.
If I run it on the interface, it doesn't work correctly or the same each time. Either the Chimes do not sound or the floodlight doesn't turn off. I can see the D9 On in the Activity Monitor and I can also see the D16 ON but only the D16 floodlight disposition macro gets ran.
Any help is appreciated.
Thanks