Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Smarthome 2466S status Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
aisaev
Newbie
Newbie


Joined: May 21 2009
Location: United States
Online Status: Offline
Posts: 7
Posted: June 02 2010 at 15:08 | IP Logged Quote aisaev

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


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: June 02 2010 at 16:02 | IP Logged Quote grif091

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 View grif091's Profile Search for other posts by grif091
 
sjvonstein
Groupie
Groupie


Joined: February 05 2010
Location: United States
Online Status: Offline
Posts: 75
Posted: June 03 2010 at 15:11 | IP Logged Quote sjvonstein

ph_getinsteonlevel("GLIGHTS") should return a value representing its state. 0 for off, 255 for on

Correct grif?
Back to Top View sjvonstein's Profile Search for other posts by sjvonstein
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: June 03 2010 at 16:35 | IP Logged Quote grif091

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

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