Some people never learn – I’ve been typing a post for an hour – then I hit a wrong key and it’s gone = POOF. So now I’m in Word – I’ll cut & paste.Mr Puck! You’re a genius! Now I can run a status of my entire system with using only ONE address!
“Multiple ELSE’s”
[/color][/size]
- The oldtimers and other high-IQ folks can jus skip this. For NewBee’s and those who are a tad slower, please read on.
…so you’re in bed and your wife says, “Did you close the garage door?” ………or you’re at work and you get a text message from your system saying, “Every Ting’s cool mon!”……….
For any number of reasons, you want a macro that checks your system and reports back via a light flash, an email, BVC, whatever. But you have 5 doors, 6 windows, and 3 lights you want to check – all at once, and you don’t want to write 14 different macros, with 14 addresses, 14 triggers, and 14 x howmany timers.
Here’s how – and it’s Mr. Puck’s idea, not mine – and it works!
Assumptions:
Always-on, Internet-connected PC running AHP with Smart Macros, On-Alert, and MyHouse Online plug-ins, with the CM15A connected.
You know a little about the 16 FLAGS, 16 MONITORED UnitCodes, and I-don’t-know-the-limit-of Installed Security Sensors.
You know that you can NOT test a conditional macro by clicking on it in AHP – you MUST trigger it by either a switch, or another macro (via an appliance call).
So here you go:
BACK-UP your AHX file.
Make a room called System Check (no you don’t have to – it’s just cleaner.
Pick an un-used, and un-MONITORED HC/UC – I’m using M3
If you want to only use 1 address, add a simple AM486 Appliance Module and give it “M3” as an address.
Name it SystemCheckTrigger
Add a macro
================
Name is “AlwaysRun”
Trigger is M3-ON
Condition is NOTHING – this will always run
DELAY – 1 Minute (More or less, the object is to delay long enough for all of the ELSE’s to complete)
Set M3-OFF
Set M4-ON (I’m not going to write it, but Switch M4 or an “Appliance Call” here is a trigger to a macro that looks at FLAG#6 (below) and performs an action, like flashing a light, to indicate that one of the ELSEs tested abnormal and you need to take further action)
================
Add an ELSE
================
Name is “Open Back Door”
Trigger is M3-ON
Condition is Security Sensor “Back Door” is TRIGGERED
Send Email saying “Back Door Open”
-or-
Start x10WavPlayer
-or-
Use BVC to announce the door is open
-or-
Set FLAG #6 (or whatever FLAG you have available) - Indicates you’ll need a light-flash when complete
================
Add an ELSE
================
Name is “Garage Light On”
Trigger is M3-ON
Condition is MONITORED module status for “Garage Light” is ON
Send an Email
-or-
Do whatever you want
-or-
Set FLAG #6 (or whatever FLAG you have available) - Indicates you’ll need a light-flash when complete
================
Add an ELSE
================
Name is “The Liquor Cabinet Was Opened”
Trigger is M3-ON
Condition is FLAG #2 –SET (FLAG #2 was set by a DS10A [mounted inside the cabinet] when the door was opened)
Send an Email
-or-
Do whatever you want
-or-
Set FLAG #6 (or whatever FLAG you have available) - Indicates you’ll need a light-flash when complete
================
There's a lot more you can do with this concept - and I don't know how many simoultaneous macros will run. And then there's those who want positive feedback - tell me if the door is CLOSED, the window SHUT, etc.
Can you imagine the bar bets - especially with BVC is your house was within site!