The Vera Community forums have moved!

General => Insteon => Topic started by: pingmustard on November 14, 2013, 11:36:06 pm

Title: How to intercept Insteon Switch Events
Post by: pingmustard 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!
Title: Re: How to intercept Insteon Switch Events
Post by: PurdueGuy 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.
Title: Re: How to intercept Insteon Switch Events
Post by: boojew on June 17, 2014, 03:56:46 pm
Was any progress every made on this?
Title: Re: How to intercept Insteon Switch Events
Post by: PurdueGuy 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:
Title: Re: How to intercept Insteon Switch Events
Post by: boojew 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 :)
Title: Re: How to intercept Insteon Switch Events
Post by: boojew on June 17, 2014, 04:52:54 pm
Ooops. posted in the wrong thread.