HomeGenie Forum

Automation Program Plugins and Wizard Scripting => APP Contributions => Topic started by: hefferveisen on November 27, 2014, 12:37:11 AM

Title: Insteon Hub Plug-in Support for Testing
Post by: hefferveisen on November 27, 2014, 12:37:11 AM
Overview:
I have created c# user program that extends HomeGenie with support for the  Insteon Hub  (http://www.smarthome.com/insteon-2245-222-hub.html). I already had the hub, and didn't want to buy a PLM.  I investigated leverging the FluentDwelling library that HG used for Insteon PLM support but found that library it too heavily targeted towards the serial/USB PLM protocol to make it usable for the Network HUB.  The HG Hub plug-in has been tested (minimally) on both Windows PC and RasberryPi.  Feedback, contributions, or requests are encouraged.

Instructions:
Code: [Select]
INSTEON Hub Details
Alert 2.6 YF
PLM:9C
Firmware:4.8A Build Feb 08 2013
ID:AA.BB.CC
Known Issues:
[/list]
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: Norm258 on January 15, 2015, 03:40:48 PM
Just wanted to comment on this that I have downloaded this code and have it working.  A small hiccup is that after I imported I had to compile it to get it to work.  I'm new with HG so this wasn't obvious.

Norm
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: hefferveisen on January 16, 2015, 04:13:52 AM
Hi Norm258,

Thanks for sharing.  Glad to hear the plug-in is working for you.  I have X10 support implemented; let me know if that is of interest or if you encounter any issues with the Insteon Hub plug-in.
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: rommer on April 12, 2015, 05:43:11 PM
Your code works great for me as well. I have issues with HG's built-in support for the 2413U. After I get modules setup, after a time each one says undefined module. Sometimes restart fixes it other times not.

No such problems with your code. I'd like to check out the version with the X10 support.

Thanks again.

John
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: hefferveisen on April 16, 2015, 02:42:02 AM
Posting an update to the Insteon Hub Plugin.  The update adds support for sending X10 commands from the Insteon Hub.  Only the X10 "on", "off", and "toggle" commands are supported.  No support for dimming commands.   

Similar to the Insteon fdevice support, it supports *sending* commands to X10 modules from HG, but it doesn't query the status of 10 Modules.
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: rommer on April 18, 2015, 07:09:36 PM
Thanks! Works perfectly. I see you have some of the stuff to get dimming working in the code. I may try and mess around with your code if you don't mind. (In many many spare seconds left each day! :)
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: hefferveisen on April 19, 2015, 03:33:12 AM
  If you have interest to add the dimming support, go for it.  Any contributions to the code are welcome.
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: kevin1 on April 22, 2015, 05:08:16 PM

BestBuy in US has an Insteon Assurance kit on sale today for half price: normally $200, now $100

http://www.bestbuy.com/site/insteon-assurance-kit-white/5570313.p?id=1219139429149 (http://www.bestbuy.com/site/insteon-assurance-kit-white/5570313.p?id=1219139429149)

This kit includes:
Hub
2 dimmer modules, leak sensor, motion sensor, open/close sensor
Cables, Ethernet cable
Mounting hardware/brackets, batteries, labels
Owner's manual


Does this HG Insteon Hub plugin support leak, motion, door sensors?
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: hefferveisen on April 23, 2015, 04:56:20 AM
No, currently the HG plugin only supports *sending* commands to Insteon (and now X10) devices.  There is no support in the plugin to *receive* events or query the status of an Insteon Module.  This "query" capability is what you would need in order to Integrate the Motion, Leak, or Door sensors into HG.

Of course, you can still make use of those sensors to trigger automation using the hub, but you would unfortunately lack integration of those sensor events into HG automation.  In my home, i use a mix of Hub automation and HG automation and have not had the need for tighter integration via the plugin. 

In many ways i have found the Insteon Android app provides a nicer GUI than the HG Android app.  So for $100, it's not a bad deal for a complementary HA system, even if the Insteon and HG are not as well integrated as you might want.
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: hefferveisen on April 24, 2015, 02:22:38 AM
I noticed the latest Insteon Hub is a different model (2245-222) compared to the original model (2242-222).   The  product page (http://www.smarthome.com/insteon-2245-222-hub.html) has a table that compares the features of the new and original models.  Notably the latest Insteon Hub model removes X10 capability :(.   

I only have the original 2242-222 hub, so that's all i can test with.  It would be great is someone could report whether HG Plugin works with the 2245-222 Hub. 
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: rommer on April 10, 2016, 02:13:36 AM
FWIW I got the dimming working for insteon devices.
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: revjohn on February 18, 2017, 05:50:34 PM
How did you do It?  Can you share the code?
Title: Re: Insteon Hub Plug-in Support for Testing
Post by: rommer on March 04, 2017, 09:20:40 PM
case "Control.Level":
          // convert status.Level (0.0 to 1.0) to 2-digit hexadecimal Insteon level (00 to FF).
          string level = ((int)(double.Parse(parameter) / 100D * 255)).ToString("X"); // "X2"
          SendDirectCommand(hexID, CMD_OP_ON, level);
          Program.RaiseEvent(module, "Status.Level", (double.Parse(parameter) / 100D).ToString(), "Insteon Light Dim");
               
              break;