sdk queryplc (status) not working with cm15 and pam21

Started by wl, September 09, 2010, 05:12:15 PM

Previous topic - Next topic

wl

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

-Bill- (of wgjohns.com)

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.

>!
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

SMF spam blocked by CleanTalk