X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: wl on September 09, 2010, 05:12:15 PM

Title: sdk queryplc (status) not working with cm15 and pam21
Post by: wl on September 09, 2010, 05:12:15 PM
Hi, thought I would start a thread for the queryplc command.

SDK and cm15 are working beautifully except queryplc does not work on the pam21 2-way appliance module.

ActiveHomeObj.SendAction("queryplc", "b1 on")    '--> nothing is returned by  ActiveHome_RecvAction

I have tried ahscript.dll  .183   .200  .234 but none appear to work.

Hopefully I am doing something incorrectly and someone has a solution.
Thanks
Title: Re: sdk queryplc (status) not working with cm15 and pam21
Post by: -Bill- (of wgjohns.com) on September 18, 2010, 01:51:10 AM
The status is not returned as a RecvAction event.

SendAction is a function that returns a result code, so you have to do something like:

result = ActiveHomeObj.SendAction("queryplc", "b1 on")

Then the variable named result should contain -1 for status unknown, 0 if b1 is off, and 1 if b1 is on.

 >!