Author |
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: November 03 2009 at 09:49 | IP Logged
|
|
|
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 |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: November 03 2009 at 09:54 | IP Logged
|
|
|
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 |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: November 03 2009 at 14:02 | IP Logged
|
|
|
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 |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: November 03 2009 at 14:58 | IP Logged
|
|
|
That’s correct. That’s why I wonder about the DB.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: November 03 2009 at 20:27 | IP Logged
|
|
|
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 |
|
|