phil13 Groupie
Joined: December 19 2004 Location: France
Online Status: Offline Posts: 60
|
Posted: April 21 2005 at 08:29 | IP Logged
|
|
|
not really a bug but i've noticed that you can't make an ph.x10btn command on an x10 adress not defined in the x10 powerhome device table ...
for example ph.x10btn("G",2,3,0) with G2 no defined
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: April 21 2005 at 10:24 | IP Logged
|
|
|
That is correct. The X10 device needs to be defined so it knows what X-10 controller to use (no controller specified in ph.x10btn) and how to handle absolute dimming (use extended dim first if supported, then try preset dim, and last use standard dim commands). It also needs to be defined so PowerHome tracks the current level to calculate the absolute dim for standard dim commands.
You would need to use the ph.x10 function to send raw X-10 commands to undefined devices. The equivalent for the function above would be:
ph.x10(1,"G",2,0) + ph.x10(1,"G",103,0)
Dave.
|