Author |
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: October 13 2009 at 20:04 | IP Logged
|
|
|
From the online help:
ph_getinsteonstat ( s )
A string representing the Insteon Device ID from which you wish to retrieve the status.
Return value
Integer. Returns the status associated with the specified Insteon Device ID that PowerHome currently has stored. Valid values are 0 for Unknown, 1 for Off, and 2 for On.
However, when I try :
ph_getinsteonstat("kitchen lights")
or "kitchen light" (no last "s")
I get a return of 1 or 2, never the "0" (for unknown device). In my case, I have "kitchen lights" but I do not have "kitchen light" defined. A zero should have been returned.
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: October 13 2009 at 21:46 | IP Logged
|
|
|
How are you testing the ph_.... command. Are you sure you did a Save when testing the invalid combination.
__________________ Lee G
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 13 2009 at 23:12 | IP Logged
|
|
|
I guessing in the dark here but you have a space between the name. ph_getinsteonstat("kitchen lights"). Maybe ph_getinsteonstat("kitchen_lights") would work better.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: October 14 2009 at 07:12 | IP Logged
|
|
|
I see the same thing, but, I believe Unknown is the response for unknown status, not the device. I would expect a -1 return value.
Edited by TonyNo - October 14 2009 at 07:13
|
Back to Top |
|
|