ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ECS] why won't my lights go off?
ckeyes
Sun, 23 Jan 2000 11:33:06 -0800

Hi,

I always wondered what the practical differences are
between the two, or more approaches here.
Is it more efficient to use BEGINIFs etc., or is it
just a matter of preference?

Thanks,

Carl

Bill Walters wrote:

> 2nd possiblity if you really want to use BEGINIF:
>
> BEGINIF Front porch motion    Is Now      On
>
> If           Daytime                     Is               False
> Then      Front Porch Lights      Set             On
> Then      Front Porch timer       Set              10
>
> Else If    Daytime                     Is                True
> Then     A/V - Stereo             Set               Off
>
> ENDIF
>
>  If          Front Porch timer          Is Now        0
>  Then     Front Porch Lights        Set               Off
>  Then     Event-Exit                     Set               True
>
> Either way you go........
>
> Bill
>
> >
> > Remember
> >
> > Why not structure it like this?
> >
> > If         front porch motion          Is Now      On
> > And     Daytime                         Is               False
> > Then    Front Porch Lights         Set             On
> > Then    Front Porch timer           Set             10
> >
> > Else If  front porch motion          Is Now       On
> > And     Daytime                         Is                True
> > Then    A/V - Stereo                  Set             Off
> >
> > If          Front Porch timer          Is Now        0
> > Then     Front Porch Lights        Set               Off
> > Then     Event-Exit                     Set               True
> >
> >
> > You don't say what kind of device is setting your "front porch motion"
> item
> > ON...  Just to make sure that there isn't "random" motion that keeps
> kicking
> > this device on (thereby re-setting the Front Porch timer to 10), I'd
> create
> > an item in one of my Group screens to monitor the state of this item.....
> > just while "debugging".
> >
> > Bill Walters
> >
> >
> >
> > ----- Original Message -----
> > From: A.J. Griglak <aj@griglak.com>
> > To: <ecs-list@netbloc.com>
> > Sent: Saturday, January 22, 2000 5:03 PM
> > Subject: [ECS] why won't my lights go off?
> >
> >
> > > They come on OK, the stereo turns off OK during the day, the timer is
> > > working right, yet when it gets to 0, the lights stay on...  anyone?
> > >
> > > -=A.J.
> > >
> > >
> > > BEGINIF    Daytime              Is         False
> > > And        front porch motion   Is Now     On
> > > Then       Front Porch Lights   Set        On
> > > Then       Front Porch timer    Set        10
> > >
> > > IF         Front Porch timer    Is Now     0
> > > Then       Front Porch Lights   Set        Off
> > >
> > > If         Front Porch timer    Is         0
> > > Then       Event-Exit           Set        True
> > > ENDIF
> > >
> > > BEGINIF    Daytime              Is         True
> > > If         front porch motion   Is Now     On
> > > Then       A/V - Stereo         Set        Off
> > > ENDIF
> > >
> >
> >


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.