The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Bush Internet STB


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Homevision Schedule question...


  • To: ukha_d@xxxxxxx
  • Subject: Re: Homevision Schedule question...
  • From: "andy_powell_is" <ukha@xxxxxxx>
  • Date: Tue, 08 Jan 2002 10:50:30 -0000
  • Delivered-to: mailing list ukha_d@xxxxxxx
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx


--- In ukha_d@y..., "Andy Powell" <ukha@b...> wrote:
>
> Ok,
>
> So I'vestarted plunging into Homevision and just wanted to confirm
that
> I've got my understandign correct.
>
> This is the scenario...
>
> 1 X10 PIR
> 1 Lamp
>
> When the PIR is triggered the lamp will come on for 5 minutes. If
the PIR
> is triggered again within those 5 minutes it will add another 2
minutes.
> When the total time has expired the lamp goes off..
>
> So this is what I thought:
>
> Let's say the PIR is A1 and the lamp is A2
> I have 4 variables defined HH, MM, SS and HUN
> I have 1 timer defined (Timer #0)
>
> The following is in the A1 On (PIR Triggered)
>
> If
>    Timer#0(Hall PIR Timer) is not stopped
> Then
>    Halt timer#0 (Hall PIR Timer)
>    Put timer#0 (Hall PIR Timer) value into 4 variables: #1 (HH) thru
#4
> (Hun)
> Var #2 (MM) = var#2(MM)+2


I accidentally missed off theload of the timer variables back into the
timer 0 here!!!


> Resume timer#0 (Hall PIR Timer)
> else
> X-10:A2 (Hall Lamp) On
> Load timer#0 (Hall PIR Timer) with 00:05:00:00 and start
> endif
>
>
> and in the timer#0 actions defined
>
> X-10:A2 (Hall Lamp) Off
>
> Does that look right? (aside from typos.. had to retype the lot :)
>
> Andy
>
>
> --- Tag-it! v2.0 (c) Andy Powell 1998
>
> My computer is on fire!  Should I exit Windows before I turn it off?



Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.