Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Poll the status of the IOLInc Sensor? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: September 30 2021 at 14:32 | IP Logged Quote jeffw_00

Hi - I'm thinking the IOLinc must know if its sensor is currently Open
or Closed. Is there a way I can use PH to ask it?

I have this issue where the IOLinc on my Garage Door opener isn't
completely reliable. When the door closes (and the signal comes
near the end of the travel, rather than at the beginning when it
opens). I don't always get a message (and there is no guaranteed
handshake for sensors) from the IOLinc that the door sensor
changed state. So sometimes PH thinks the door is still open even
though it's closed. (I have a FilterLinc on the opener, but...).   So
after an interval, PH will send a message reminding me to close the
door - but before PH sends that message, if it could check the
current status of the sensor, it could discover the door is closed and
cancel the erroneous message.

Is there some function (some form of ph_insteonwithret maybe) I
can use to poll the SENSOR side of the IOLinc?   Thanks!

Edited by jeffw_00 - September 30 2021 at 14:34
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: October 03 2021 at 10:02 | IP Logged Quote jeffw_00

.

Edited by jeffw_00 - October 03 2021 at 10:08
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: October 03 2021 at 10:24 | IP Logged Quote jeffw_00

I found this thread

https://community.openhab.org/t/insteon-iolinc-polling-retur ns-
wrong-
status/19811

apparently upon being polled, the IOLINC responds with
OPEN: cmd1 0x03 cmd2 0x01
CLOSED: OPEN: cmd1 0x03 cmd2 0x00

So in PH, a Set System command with ID [LOCAL9] and Formula
ph_insteonwithret("<IOLINCNAME>",25,1)

Returns a 1 into LOCAL9 when closed, and a 0 when open.

So yes, you can poll!

Powerhome rules!

Edited by jeffw_00 - October 03 2021 at 12:59
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: October 03 2021 at 15:18 | IP Logged Quote dhoward

Jeff,

Sorry I missed the original post. Yes, as you've discovered, you can poll the status of the input.

ph_insteonwithret("IOLINCID",25,1)

Will return 1 if the input is closed and 0 if the input is open.

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

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