Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Bug Reports
 PowerHome Messageboard : PowerHome Bug Reports
Subject Topic: ph_getinsteonstat Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: October 13 2009 at 20:04 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 13 2009 at 21:46 | IP Logged Quote grif091

How are you testing the ph_.... command. Are you sure you did a Save when testing the invalid combination.

__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: October 13 2009 at 23:12 | IP Logged Quote BeachBum

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 View BeachBum's Profile Search for other posts by BeachBum
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: October 14 2009 at 07:12 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum