We have moved at community.getvera.com

Author Topic: How to intercept Insteon Switch Events  (Read 1328 times)

Offline pingmustard

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
How to intercept Insteon Switch Events
« on: November 14, 2013, 11:36:06 pm »
I'm trying to intercept all switch activities so I can run some custom LUUP code.   I tried using scenes, but it looks like only CHANGE in state could be triggered;  I'm looking to intercept ALL activity.   All my switches are Insteon based using Altsteon.

Any suggestion or point in the right direction would be greatly appreciated.

Thanks!

Offline PurdueGuy

  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +21/-0
Re: How to intercept Insteon Switch Events
« Reply #1 on: November 14, 2013, 11:39:12 pm »
Currently Vera doesn't distinguish between:
- light being turned on manually (at the switch)
- light being turned on via a scene or direct command

Insteon does, but I am not sure how this is implemented in Altsteon or how it would be communicated to Vera and the plugins.  I will look into it.   fba would know more.

This is another advantage I have found in Insteon vs Z-Wave.
Vera3, Leviton, Intermatic, SQ Blaster, HomeWave, DSC 1832, Insteon/Altsteon

Offline boojew

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +0/-0
Re: How to intercept Insteon Switch Events
« Reply #2 on: June 17, 2014, 03:56:46 pm »
Was any progress every made on this?

Offline PurdueGuy

  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +21/-0
Re: How to intercept Insteon Switch Events
« Reply #3 on: June 17, 2014, 04:07:04 pm »
If you augment the code in I_InsteonPlm.xml, I believe all events go through the function "parse_string"
From there, you could catch anything.

If you only want to catch specific actions from certain devices, you could modify the individual calls, such as:
  • insteonProcessRemotelinc
  • insteonDimmerKplProcess
  • insteonFanlincProcess
  • insteonDimmerProcess
  • insteonRelayKplProcess
  • insteonRelayProcess
  • insteonProcessIRlinc
  • insteonEzFloraProcess
  • insteonThermostatProcess
  • insteonSynchrolincProcess
  • insteonIoLincProcess
  • insteonIMeterProcess
  • insteonLockProcess
  • insteonProcessGarageHawkGarage
  • insteonProcessGarageHawkRemote
  • insteonLeakProcess
  • insteonTriggerProcess
Vera3, Leviton, Intermatic, SQ Blaster, HomeWave, DSC 1832, Insteon/Altsteon

Offline boojew

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +0/-0
Re: How to intercept Insteon Switch Events
« Reply #4 on: June 17, 2014, 04:46:41 pm »
I really appreciate the details... but I think I found a much simpler answer :) Insteon groups. I grouped the lamplinc and the switchlinc together and now, changes to one get reflected on both - including any actions taken from the Vera :)

Offline boojew

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +0/-0
Re: How to intercept Insteon Switch Events
« Reply #5 on: June 17, 2014, 04:52:54 pm »
Ooops. posted in the wrong thread.