Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: How read ON/OFF State of 2457D2 LampLinc Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
kkomara
Newbie
Newbie
Avatar

Joined: June 02 2017
Location: United States
Online Status: Offline
Posts: 31
Posted: December 17 2020 at 10:07 | IP Logged Quote kkomara

This is probably a dumb question....

I am trying to read the actual Insteon device state (i.e. ON/OFF) of the 2457D2. I have a device installed and linked call "OFFICE"DESK_LAMP". I think should use ph_insteonwithret("OFFICE_DESK_LAMP",CMD1,CMD2) - but I do not know the values of CMD1 and CMD2. Where do I get more info on this ??

__________________
Kevin Komara
Back to Top View kkomara's Profile Search for other posts by kkomara
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: December 20 2020 at 18:12 | IP Logged Quote dhoward

Kevin,

You are correct. If you want to read the status of a device (in real time), you would use the ph_insteonwithret function. It would look like this:

ph_insteonwithret("OFFICE_DESK_LAMP",istatus,0)

The "istatus" variable equates to 25 so you could also substitute the value 25 for istatus.

Be sure and read through the Insteon section of the PowerHome Help file (menu Help->About). 2.1b didnt really have much of a Help file but 2.2beta3-3
actually has quite a bit of information.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
kkomara
Newbie
Newbie
Avatar

Joined: June 02 2017
Location: United States
Online Status: Offline
Posts: 31
Posted: December 29 2020 at 06:56 | IP Logged Quote kkomara

Hey Dave,
Yea - I kinda feel dumb. I got it working right after i put the post up.
Thanks,
Kev

__________________
Kevin Komara
Back to Top View kkomara's Profile Search for other posts by kkomara
 

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