Motion detector behavior question
Thomas D Arman
tdarman at us.ibm.com
Mon Jun 9 13:21:18 PDT 2008
If you remove the else clause, then only "LateNight" actions will occur.
I think it is that simple.
Tom
------------------------------------------------------------------
xtensionlist-bounces at shed.com wrote on 06/09/2008 11:03:01 AM:
>
> Charles Pendleton
>
> All,
>
> I have a motions detector that is in my kitchen that controls rope
> lighting that is atop my kitchen cabinets. My hope was that when we
> need to come down in the middle of the night for cough medicine or "I
> need a drink to go back to sleep mommy", that the rope lights would
> turn on and off accordingly.
>
> They in fact do; however, when the argument of "Latenight" is false,
> and the lights happen to be on because we want them on, whenever
> someone trips the detector, the lights turn out.
>
> Here is the on script of the motions detector:
>
>
> if (status of "LateNight") is true then
> try
> suspend event "Kitchen: Over Cabinet Lights" for 3 * minutes
> on error
> turnon "Kitchen: Over Cabinet Lights" for 3 * minutes
> end try
> else
> turnoff "Kitchen: Over Cabinet Lights"
> end if
>
>
> The question is - how do I get the motion sensor to continue to log
> motion (all hours of the day), do its "latenight" thing as desired,
> BUT NOT shut the lights off when we actually want them on?
>
> THanks,
> Charlie-
More information about the XTensionlist
mailing list