Please login or register.

Login with username, password and session length
Advanced search  

News:

The X10Hub (PiX10Hub) is here! Created by the Community, for the Community.:)% #:)

Author Topic: sdk queryplc (status) not working with cm15 and pam21  (Read 4559 times)

wl

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 10
sdk queryplc (status) not working with cm15 and pam21
« 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
Logged

-Bill- (of wgjohns.com)

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 81
  • Posts: 1340
  • He's just this guy. You know?
    • wgjohns.com
Re: sdk queryplc (status) not working with cm15 and pam21
« Reply #1 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.

 >!
Logged
-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!
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.