-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insteon: Add support to Insteon HUB #370
Comments
Try the following branch, it is up-to-date with the master branch and contains a few additions that enable InsteonIP support based on @AndTH work: https://github.com/krkeegan/misterhouse/tree/InsteonIP To get everything working you need to add the following lines in your ini file
Then in your mht file you need to declare before any other insteon objects:
That should get you going. This is only a beta test, you might have issues if you try and control any insteon objects using the hub rather than MH. I have tried to patch the issues that I can imagine, but I am sure I missed some. If you find any bugs let me know. |
It worked! Thank you very much krkeegan! BTW, I was using an old master branch of yours (insteon_thermo_i2), but I couldn't find it anymore. I'm having trouble with my insteon thermostat now with this InsteonIP branch. Is there a way to have it working with this branch too? This is from my script file:
} if ( new_minute(5) && $Hour != 2 ) { # Skip the ALDB scanning hour This is the error I'm getting: Error found in user code file: /root/mh/data/mh_temp.user_code (error_count 1) 03/02/2014 21:50:00 : Can't locate object method "poll_simple" via package "Insteon::Thermo_i2CS" at (eval 453) line 3635. 03/02/2014 21:50:00 : Can't locate object method "poll_simple" via package "Insteon::Thermo_i2CS" at (eval 453) line 3635. |
Cool. Let me know if you see any bugs with the IP feature. As for the thermostat. Support for calling poll_simple via user_code was If your thermostat is linked properly, you shouldn't need to call this Kevin On Mon, Feb 3, 2014 at 4:55 PM, elissonm [email protected] wrote:
|
Sure. I will. But it's been working flawlessly for the last 24 hours, so I don't think I'm going to have any problems with it. Thank you once again for this branch. It could well be the official one. |
FYI, the InsteonIP code in my fork has been working on a 2412N since April 2011 till about two months ago when the 2412N device failed and the nice people at Smarthome replaced it with a Hub. The transition to the hub was flawless, I didn't even need to restart MH as the IP address stayed the same, the code just re-established the connection and kept working. |
This is great! I can't think of any other software to automate my home. I notice I'm having problem with 2-digit and 3-digit Insteon scenes though. I don't think this is a branch specific problem. When sending commands to 2-digit and 3-digit scenes I keep getting the following errors: 3-digit (100-255) error: 05/02/2014 00:40:26 [Insteon_PLM]: ERROR!! Command sent to PLM 02611011100 is of an incorrect length. Message not sent. and this one with 2-digit scene (10-99): 05/02/2014 01:03:17 [Insteon_PLM] DEBUG2: Sending obj=$varandaoff; command=on; extra=00 incurred delay of 0.01 seconds; starting hop-count: 0 1-digit scenes (1-9) are working fine though: 05/02/2014 01:03:51 [Insteon_PLM] DEBUG2: Sending obj=$varandaon; command=on; extra=00 incurred delay of 0.00 seconds; starting hop-count: 0 My mht file for these specific scenes is like this: INSTEON_ICONTROLLER, 09, varandaon, varandaon_group Should I convert scene decimal numbers to hexadecimal in the mht file? Edit: |
Added initial code to allow Insteon PLM to communicate with an ethernet connected PLM as well as serial.
@krkeegan, regarding your changes "Messages are going to come in that MH will potentially see as acknowledging commands that it never sent.", I have seen some messages in the log to that effect, I will see if I can quantify what causes them and then I can test if you change will fix them. |
Insteon HUB has an open port (9761) to act as a network attached PowerLinc Modem. This is the same port used by HouseLinc software and by iRule app to communicate with the Hub.
https://getsatisfaction.com/irule/topics/so_has_anyone_been_able_to_get_the_insteon_hub_set_up_as_a_gateway_in_irule
Also pyinsteon (https://github.com/zonyl/pyinsteon) has support for Smarthome 2412N, which is just about the same as Insteon Hub, which is being currently marketed as the main communication controller by Smarthome.
The text was updated successfully, but these errors were encountered: