[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xPLHal scripting matches
- Subject: Re: xPLHal scripting matches
- From: Doogie Brodie
- Date: Fri, 12 Sep 2003 07:50:00 +0000
Tony Tofts wrote:
Hi Tony,
> Which unit is the LW11?
This is mainly for my kitchen and bathroom which are the ... ack...
LW10U - the bedroom is an LW11G d'oh. The LW10U doesn't support soft
start etc.
> I'm not totally clear from the description above what you are wanting
to
> achieve. Probably as I'm still knackered!
No problem, I didn't explain it too well!
Put simply - when the PIR is activated, the light comes on, when the PIR
is deactivated, the light goes off. Rather than simple on-off, I do on
at 80% or on at 40% depending on time of day.
If I send the following during testing:-
xpl-cmnd
{
hop=1
source= XPL-XPLHAL.HOMEAUTO1
target=JOHNB-CM12.DOOGIE
}
x10.basic
{
device=a3
command=dim
level=80
}
a light that's at 100% will dim to 80%. If I send it again, the light
will dim to 80% of 80% - one of the things I want to do is to say go to
level 80% without it being incremental the 2nd and 3rd time etc that the
PIR is triggered.
Slightly more concerning/ confusing me, is when I try this at all in
xPLHal I'm getting nothing......
The following in xPLHal:-
Sub X10_M2_On_Trigger (XplMsg)
call x10.Send("A3","ON",0)
call x10.Send("A3","DIM",80)
End Sub
does this:-
Message
"xpl-trig
{
hop=1
source=johnb-cm12.doogie
target=*
}
x10.basic
{
Command=ON
Device=M2
}
"
"XPL-CMND
{
hop=1
source=xpl-xplhal.homeauto1
target=*
}
X10.BASIC
{
Command=ON
Device=A3
}
"
"xpl-trig
{
hop=1
source=johnb-cm12.doogie
target=*
}
x10.confirm
{
Command=ON
Device=A3
}
"
There's no mention of a DIM being sent out at all. If I comment out the
"ON" line, I get the xpl-trig but no commands sent out at
all..... am I
doing something wrong or is something broken, or what?
Thanks guys!
--
Doogie
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|