Author |
|
aisaev Newbie
Joined: May 21 2009 Location: United States
Online Status: Offline Posts: 7
|
Posted: June 02 2010 at 15:08 | IP Logged
|
|
|
Hello again,
I'm trying to get the status out of 2466S, to see whether
lights are on or off using
ph_insteonwithret("GLIGHTS",XX,YY). The problem is that I
could not find any documentation for the values of XX and
YY. Device Status window knows how to read it - it shows
it, so I assume you guys know what those values should be.
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: June 02 2010 at 16:02 | IP Logged
|
|
|
The cmd1 value (XX) is 25 (0x19), the cmd2 value (YY) is 00. The returned value will be between 0 (device off) to 255 (device full bright).
__________________ Lee G
|
Back to Top |
|
|
sjvonstein Groupie
Joined: February 05 2010 Location: United States
Online Status: Offline Posts: 75
|
Posted: June 03 2010 at 15:11 | IP Logged
|
|
|
ph_getinsteonlevel("GLIGHTS") should return a value representing its state. 0 for off, 255 for on
Correct grif?
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: June 03 2010 at 16:35 | IP Logged
|
|
|
The ph_getinsteonlevel() returns the value that is in the PowerHome database. The device is not physically accessed by this function. The ph_insteonwithret() function issues the specified Insteon command and returns what the device returns to Powerhome in response to the command. The first is what Powerhome thinks the device status is based on command activity. The second is the actual device status at the time the command is issued. The two values can be different.
__________________ Lee G
|
Back to Top |
|
|