[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Homevision Schedule question...
- To: ukha_d@xxxxxxx
- Subject: Homevision Schedule question...
- From: "Andy Powell" <ukha@xxxxxxx>
- Date: Tue, 08 Jan 2002 11:31:03 +0100
- Delivered-to: mailing list ukha_d@xxxxxxx
- Mailing-list: list ukha_d@xxxxxxx; contact
ukha_d-owner@xxxxxxx
- Reply-to: ukha_d@xxxxxxx
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
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
|