[Hai-users] Ignoring flag when Event Overrides

Byron Peebles ByronPeebles at ieee.org
Mon Dec 11 23:39:44 CST 2006


I think I answered my own question:

WHEN UNIT23 PRESSED ON SET flagOVERRIDE ON for 10 MINUTES
WHEN UNIT23 PRESSED OFF SET flagOVERRIDE OFF
and
add the &IF flagOVERRIDE OFF to my WHEN flagLIGHTTHINGS ON statement.

Is there a simpler way?  (The 10 above is greater than 5  below for a 
reason in this usage.)

Byron Peebles wrote:

> OK, I've lost it.  Maybe it's getting late.
> I know I've done this before but I've forgotten how.
>
> I have been using RadioRa for quite awhile and am very happy with it.
> It has an ability, like most lighting control systems, to let the HAI 
> Omni
> know when a switch is pressed ON or OFF.
>
> I have code like:
>
> WHEN ZONE1 NOT READY &IF DARK SET flagLIGHTTHINGS ON for 5 MINUTES
> WHEN flagLIGHTTHINGS ON SET UNIT23 LEVEL to 100%
> WHEN flagLIGHTTHINGS OFF SET UNIT23 LEVEL to 0%
>
> What I want next is that if
>
> WHEN UNIT23 PRESSED ON (manual switch setting)
>
> happens I don't want the flag expiration to turn off the light.
>
> But my brain is making things pretty ugly when I try to code this.
>



More information about the HAI-users mailing list