[Hai-users] RE: OMNI Programming
Hebert, Fred
fred.hebert at homeauto.com
Mon Apr 20 08:33:06 CDT 2009
The Omni programming is event driven. Actions are triggered when event occur. In your example:
WHEN ARM Area_1 DAY & IF Area_1 AWAY & IF DARK: RUN BUTTON 10
The even is the moment Area_1 is armed DAY. When this occurs the Omni evaluates the conditions (& IF Area_1 AWAY & IF DARK) to see if it is OK to execute the action (RUN BUTTON 10).
When Area_1 is in the DAY mode, testing against any other mode will always fail and BUTTON 10 will never run. Area_1 can not be in DAY mode and AWAY mode at the same time. The test for DARK is fine.
If you are trying to run BUTTON 10 when Area_1 is armed DAY or AWAY you will need to use 2 lines:
WHEN ARM Area_1 DAY & IF DARK: RUN BUTTON 10
WHEN ARM Area_1 AWAY & IF DARK: RUN BUTTON 10
Now when Area_1 is armed DAY the first line will be evaluated. If it is dark then BUTTON 10 will run. When Area_1 is armed AWAY the second line will be evaluated...
Think of a program line in the terms of:
When this event occurs
and if these conditions/restrictions are met,
then execute this command.
I hope this helps.
Date: Sun, 19 Apr 2009 17:41:25 +0700
From: Wijoyo Utomo <utomow at gmail.com>
Subject: [Hai-users] OMNI Programming
To: HAI-users at tssi.com
Message-ID: <1240137685.5862.5.camel at wijoyo-desktop>
Content-Type: text/plain
To all HAI gurus,
I have a line of code which is the following:
WHEN ARM Area_1 DAY & IF Area_1 AWAY & IF DARK: RUN BUTTON 10
which I assume to be executed whenever the Area_1 security mode is armed
to DAY Mode and from current security mode of AWAY and the current
situation is DARK.
But, this piece of code is never executed. Any idea what I have done
wrong?
Thanks in advance for your help.
Best Regards,
Wijoyo Utomo
More information about the HAI-users
mailing list