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_getinsteonstatus - Revisited 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: November 03 2009 at 09:49 | IP Logged Quote smarty

I have seen this a couple of times now, but I can NOT reproduce it at will.

Here is what I see....
Sometimes after I reboot my PH machine and start PH, the ph_getinsteonstatus() or ph_getinsteonlevel() commands do not return the proper values until I cycle (turn off/on) the given set of lights that I am trying to get the status of.

The device manager sees the lights as "off", but the lights are on. I thought that the "ph_getinsteon" type commands actually sent out a status request to the switch. Do they really only check the PH database?

If they only check the database, I need to come up with a better way to do the initial synchronization of the insteaon device status at PH start up. Comments?



__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 03 2009 at 09:54 | IP Logged Quote BeachBum

In all the times I have restarted PH I have never experienced that problem. I use the getinsteonlevelrt very heavily. I wonder about the DB.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: November 03 2009 at 14:02 | IP Logged Quote grif091

The ph_getinsteonstat returns the DB status, not the current device status. From the Help facility…

“Returns the status associated with the specified Insteon Device ID that PowerHome currently has stored.”

As Pete posted, if you want the actual device status use the ph_getinsteonlevelrt.   From the Help facility…

“Use this function to query the Insteon device and retrieve the actual current status. This function may have a slight delay while the device is queried.”



__________________
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: November 03 2009 at 14:58 | IP Logged Quote BeachBum

That’s correct. That’s why I wonder about the DB.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: November 03 2009 at 20:27 | IP Logged Quote smarty

grif091 wrote:
The ph_getinsteonstat returns the DB status, not the current device status. From the Help facility…


Thanks Grif...that one got by me....

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 

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