www.homeseer.com    
 

Go Back   HomeSeer Message Board > Lighting & Primary Technology Plug-ins > Lighting & Primary Technology Discussion > Insteon Plug-in (Mark Sandler)

Insteon Plug-in (Mark Sandler) Discussions related to Mark Sandler's 3rd parth plug-in for controlling Insteon devices via Smarthome's PLM interfaces (the 2412 & 2413 series controllers)

Reply
 
Thread Tools Display Modes
  #141  
Old May 26th, 2017, 03:06 PM
claude claude is offline
Seer Master
 
Join Date: Mar 2002
Location: Montréal, Qc. Canada
Posts: 1,003
Quote:
Originally Posted by mnsandler View Post
normally HS. but plugins can force an a new value.

my understand is the "last updated" value is only updated by HS if the value of the device actually changes.
HS3 now has a default check on "Do not update device last change time
if device value does not change:". I've made sure that my devices are unchecked.
Quote:
Originally Posted by mnsandler View Post
the heartbeat value changes from on to off every time. this is why the date changes.
In my post here, I show that MS II heartbeat messages are coming in, but the time stamp is not updated.
____________________________________________________________ _

All this being said, I found, again today, that things were back to normal, that is, time stamps (dusk/dawn, heartbeat) are now updated. The only pattern I can see with the MS II is that after powering it up (USB), it seems to take about 24 hours before things start to happen normally.

Without detailed documentation from SH on the behavior of the MS II, I find I'm investing way to much time trying to figure out this 'thing'.
Reply With Quote
  #142  
Old September 5th, 2017, 01:19 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
Circles Problems with new motions not updating temp...

Hi Mark, I've been using my new motionII's for a while now and things were fine. But at some point something went south and I'm not sure why as I haven't changed anything.

I noticed the other day that I was not getting accurate temperature readings from any of my insteon Motion II's except for the one powered by USB. That one seems fine. All of my motions are properly reporting motion/no-motion, it's just the heartbeat check-in's that are failing.

When I dug in to it a bit more I found this is my logs:

Code:
Sep-05 9:43:20 AM	 	Insteon	Error, an error log file could not be written: System.IO.IOException: The process cannot access the file 'C:\Program Files (x86)\HomeSeer HS3\Config\Insteon.ini' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) at System.IO.StreamReader..ctor(String path) at Insteon.Support.Utilities.LogManager.ReportError(String Msg)
Sep-05 9:43:20 AM	 	Insteon	** To request help with this problem please post this log file to the forum along with a detailed description of what lead to this problem.
Sep-05 9:43:20 AM	 	Insteon	** An error occurred in this plug-in. The details have been written to the log file - C:\Program Files (x86)\HomeSeer HS3\Config\Insteon Error Report.Log
Sep-05 9:43:20 AM	 	Insteon	***:Error in SaveINISetting: The process cannot access the file 'C:\Program Files (x86)\HomeSeer HS3\config\Insteon.ini' because it is being used by another process. -- Details System.IO.IOException: The process cannot access the file 'C:\Program Files (x86)\HomeSeer HS3\config\Insteon.ini' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append) at Insteon.Support.IniFile.Save(String sFileName) at HSPI_Insteon.hspiAPI.HSAPI.SaveINISetting(String section, String key, Object& Value, String FileName)
Sep-05 9:41:08 AM	 	Insteon	Device House FrontPorch (41.5C.F1) sent a heartbeat: Battery=Full, Temp=89.9, Light=246

I seem to get one of these or a similar error every time one of them checks in.
Every once in a while a device will correctly check in as seen by the frontporch above. But more often than not, I get the error instead.
Other than the issues with heartbeats not working reliably, all other insteon traffic is working as expected.

Please let me know what I can do to assist you in figuring out what is going on.

Regards,
Tony
__________________
HomeSeer Version: HS3 Pro Edition
Operating System: Microsoft Windows 10 Pro
Processor Type and Speed: i7 - 3.26 GHz
Total Physical Memory: 16Gig

Plugins: BlBackup | EasyTrigger | FitbitSeer | HSTouchServer | Insteon | WeatherXML
Reply With Quote
  #143  
Old September 5th, 2017, 01:25 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
Here is the referenced file:
Attached Files
File Type: zip Insteon Error Report.zip (123.4 KB, 2 views)
Reply With Quote
  #144  
Old September 5th, 2017, 03:10 PM
mnsandler's Avatar
mnsandler mnsandler is offline
Insteon Overlord
 
Join Date: Apr 2005
Location: Virginia
Posts: 10,542
rollback to the prev plugin version you had. I need to pull down the latest beta.
__________________
Mark

HS3 Pro 3.0.0.368
Hardware: Insteon Serial PLM | Vista Alarm 20P with AD2USB | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
Plugins: Insteon 3.0.6.23 (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire | RFXCOM | NetCAM | MyQ | BLRadar | Jon00 Charting
Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory
Reply With Quote
  #145  
Old September 5th, 2017, 03:41 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
Just a heads up, I was having that issue with version 3.0.6.16 as well. I just updated to .17 today as a troubleshooting step. What's weird is that everything was fine. But at some point in the last month this error started happening.

Regards,
Tony
Reply With Quote
  #146  
Old September 5th, 2017, 03:45 PM
mnsandler's Avatar
mnsandler mnsandler is offline
Insteon Overlord
 
Join Date: Apr 2005
Location: Virginia
Posts: 10,542
Tony,
I just posted .17 the other day so I don't think its related to your MS issue if that MS issue hs been going on for a while

look back for an older error report log file that relates to the motion sensor heartbeat issue you originally posted.

I restores .16 in the beta section updater
Reply With Quote
  #147  
Old September 5th, 2017, 03:58 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
Sorry Mark, I'm not sure I'm following you.

I realize that .17 isn't the issue. It was my attempt at a fix and it's only been installed for an hour or two. .16 is the problem child. The files you were shown should have plenty of .16 logging.

Rolling back to .16 isn't going to solve the issue as that is the build that is acting up.
If you think you know what the issue is, I'll just hold off until you put up a fixed build.

Again the anomaly here is that the issue manifested long after .16 was installed.
Somehow it went from fine to issues all by it self. No upgrades, no changes...

I included an error log that I know is only .16.
One added note. The Insteon plugin is currently creating a new 2 meg error log every 30 minutes. So I've had to clear them out every day to keep the system running.

Tony
Attached Files
File Type: zip Insteon Error Report 2017-09-05-09-43.zip (166.6 KB, 0 views)
Reply With Quote
  #148  
Old September 5th, 2017, 04:09 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
Sorry Mark for all of the chatter. I think I see what side tracked you. This is the original issue I was having:

Code:
Sep-05 1:05:07 PM	 	Insteon	** An error occurred in this plug-in. The details have been written to the log file - C:\Program Files (x86)\HomeSeer HS3\Config\Insteon Error Report.Log
Sep-05 1:05:07 PM	 	Insteon	***:Error in ProcessRawReceive: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index -- Details System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at Insteon.Support.Devices.MotionSensorIIClass.ProcessGroupBroadcast(TransmitMsgType Msg, Boolean RemoteMsg) at Insteon.Support.Core.InsteonModule.ProcessRawReceive(Object iCmdStr)
Reply With Quote
  #149  
Old September 5th, 2017, 04:25 PM
mnsandler's Avatar
mnsandler mnsandler is offline
Insteon Overlord
 
Join Date: Apr 2005
Location: Virginia
Posts: 10,542
Quote:
Originally Posted by codemonkey View Post
Sorry Mark for all of the chatter. I think I see what side tracked you. This is the original issue I was having:

Code:
Sep-05 1:05:07 PM	 	Insteon	** An error occurred in this plug-in. The details have been written to the log file - C:\Program Files (x86)\HomeSeer HS3\Config\Insteon Error Report.Log
Sep-05 1:05:07 PM	 	Insteon	***:Error in ProcessRawReceive: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index -- Details System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at Insteon.Support.Devices.MotionSensorIIClass.ProcessGroupBroadcast(TransmitMsgType Msg, Boolean RemoteMsg) at Insteon.Support.Core.InsteonModule.ProcessRawReceive(Object iCmdStr)
Perfect. I ran into this myself. I think I have resolved this issue and will be fixed in the next version I post. I'm trying to resolve the ini issue right now.
Reply With Quote
  #150  
Old September 6th, 2017, 01:28 PM
mnsandler's Avatar
mnsandler mnsandler is offline
Insteon Overlord
 
Join Date: Apr 2005
Location: Virginia
Posts: 10,542
Quote:
Originally Posted by codemonkey View Post
Sorry Mark for all of the chatter. I think I see what side tracked you. This is the original issue I was having:

Code:
Sep-05 1:05:07 PM	 	Insteon	** An error occurred in this plug-in. The details have been written to the log file - C:\Program Files (x86)\HomeSeer HS3\Config\Insteon Error Report.Log
Sep-05 1:05:07 PM	 	Insteon	***:Error in ProcessRawReceive: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index -- Details System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at Insteon.Support.Devices.MotionSensorIIClass.ProcessGroupBroadcast(TransmitMsgType Msg, Boolean RemoteMsg) at Insteon.Support.Core.InsteonModule.ProcessRawReceive(Object iCmdStr)
I posted 3.0.6.18 in the Beta section of the Updater that should resolve the MS issue. This version also includes my own ini file management.

Please make a backup of your insteon.ini for good measure.
Reply With Quote
  #151  
Old September 6th, 2017, 01:33 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
Thank you!

It's installed. I will let you know if the issue with the motions is resolved.
Reply With Quote
  #152  
Old September 6th, 2017, 01:43 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
Circles

Looks like there may be some additional issues. I was noticing this before but wanted to make sure before I posted.


When the heartbeats are coming in, they always show the battery as FULL when they are on battery. Oddly enough, the one on USB power always reports as GOOD.

See images: You will note that despite the battery report showing FULL, the actual battery level device shows that it was last updated in June. And it also shows, good. That is probably a more accurate battery level. Might even be low at this point as it's heartbeat is set to 1 hour or there abouts.
Attached Images
  
Reply With Quote
  #153  
Old September 6th, 2017, 01:48 PM
mnsandler's Avatar
mnsandler mnsandler is offline
Insteon Overlord
 
Join Date: Apr 2005
Location: Virginia
Posts: 10,542
Quote:
Originally Posted by codemonkey View Post
Looks like there may be some additional issues. I was noticing this before but wanted to make sure before I posted.


When the heartbeats are coming in, they always show the battery as FULL when they are on battery. Oddly enough, the one on USB power always reports as GOOD.

See images: You will note that despite the battery report showing FULL, the actual battery level device shows that it was last updated in June. And it also shows, good. That is probably a more accurate battery level. Might even be low at this point as it's heartbeat is set to 1 hour or there abouts.
HS only updates the date if the status actually changes. I think there is a device option to get the date to change regardless of the updated status.

I think the plugin is reporting the status as best it can based on the heartbeat msg.
Reply With Quote
  #154  
Old September 6th, 2017, 02:00 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
But if the last heartbeat is reporting full, shouldn't the device have updated back from Good to FULL? That's the part I'm concerned about.

If it is just that the battery level function in these new motions is flawed to the point of uselessness then I'll just ignore and remove rules based on battery level for these devices.
Reply With Quote
  #155  
Old September 6th, 2017, 02:04 PM
mnsandler's Avatar
mnsandler mnsandler is offline
Insteon Overlord
 
Join Date: Apr 2005
Location: Virginia
Posts: 10,542
Quote:
Originally Posted by codemonkey View Post
But if the last heartbeat is reporting full, shouldn't the device have updated back from Good to FULL? That's the part I'm concerned about.

If it is just that the battery level function in these new motions is flawed to the point of uselessness then I'll just ignore and remove rules based on battery level for these devices.
can you post a few detailed log entries of the heartbeat msgs.

I also need to know the fw ver of the MS in question
Reply With Quote
  #156  
Old September 6th, 2017, 02:15 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
Yep, I'll get that info to you.

Sorry to say that my Motion issue still exists.

Quote:
Sep-06 10:58:54 AM Insteon Device Living Room Motion II (41.5D.24) sent a heartbeat: Battery=Full, Temp=83.9, Light=87
Sep-06 10:55:56 AM Insteon Device House FrontPorch (41.5C.F1) sent a heartbeat: Battery=Full, Temp=86.3, Light=248
Sep-06 10:49:04 AM Insteon ** To request help with this problem please post this log file to the forum along with a detailed description of what lead to this problem.
Sep-06 10:49:04 AM Insteon ** An error occurred in this plug-in. The details have been written to the log file - C:\Program Files (x86)\HomeSeer HS3\config\Insteon Error Report.Log
Sep-06 10:49:04 AM Insteon ***:Error in ProcessRawReceive: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index -- Details System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(Exceptio nArgument argument, ExceptionResource resource) at Insteon.Support.Devices.MotionSensorIIClass.ProcessGroupBroa dcast(TransmitMsgType Msg, Boolean RemoteMsg) at Insteon.Support.Core.InsteonModule.ProcessRawReceive(Object iCmdStr)
Sep-06 10:48:03 AM Insteon ** To request help with this problem please post this log file to the forum along with a detailed description of what lead to this problem.
Sep-06 10:48:03 AM Insteon ** An error occurred in this plug-in. The details have been written to the log file - C:\Program Files (x86)\HomeSeer HS3\config\Insteon Error Report.Log
Sep-06 10:48:03 AM Insteon ***:Error in ProcessRawReceive: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index -- Details System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(Exceptio nArgument argument, ExceptionResource resource) at Insteon.Support.Devices.MotionSensorIIClass.ProcessGroupBroa dcast(TransmitMsgType Msg, Boolean RemoteMsg) at Insteon.Support.Core.InsteonModule.ProcessRawReceive(Object iCmdStr)
Sep-06 10:45:00 AM FitbitSeer Timer elapsed. Updating Fitbit-data.
2 of my 6 Motion II's are reporting in. One is USB powered an has always reported in. The other is the one on my front porch. The 4 others I have (Kitchen and Master Bedroom, Master Closet and Storage Rm.) I believe are the source of the issue. They all report motion just fine.

I've turned on detailed logging. As soon as I get some good log data I will post an update.

Tony
Reply With Quote
  #157  
Old September 6th, 2017, 02:17 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
wanted to add this:
Attached Images
 
Reply With Quote
  #158  
Old September 6th, 2017, 02:27 PM
codemonkey's Avatar
codemonkey codemonkey is offline
Seer Master
 
Join Date: Feb 2005
Location: Northern California
Posts: 558
OK so here is the error with detailed logging turned on:

Quote:
Sep-06 11:23:03 AM Insteon Received STX 0x50 (Raw Insteon Rec):41 5F 03 E6 0D 0B CF 0C 98 Debouncing repeat.
Sep-06 11:23:03 AM Insteon ** To request help with this problem please post this log file to the forum along with a detailed description of what lead to this problem.
Sep-06 11:23:03 AM Insteon ** An error occurred in this plug-in. The details have been written to the log file - C:\Program Files (x86)\HomeSeer HS3\config\Insteon Error Report.Log
Sep-06 11:23:03 AM Insteon ***:Error in ProcessRawReceive: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index -- Details System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(Exceptio nArgument argument, ExceptionResource resource) at Insteon.Support.Devices.MotionSensorIIClass.ProcessGroupBroa dcast(TransmitMsgType Msg, Boolean RemoteMsg) at Insteon.Support.Core.InsteonModule.ProcessRawReceive(Object iCmdStr)
Sep-06 11:23:03 AM Insteon Received STX 0x50 (Raw Insteon Rec):41 5F 03 E6 0D 0B CF 0C 98
Sep-06 11:22:47 AM Insteon Saved ini file
Also attached the error log.

Hope that helps,

Tony
Attached Files
File Type: zip Insteon Error Report.zip (59.9 KB, 2 views)
Reply With Quote
  #159  
Old September 6th, 2017, 02:30 PM
mnsandler's Avatar
mnsandler mnsandler is offline
Insteon Overlord
 
Join Date: Apr 2005
Location: Virginia
Posts: 10,542
ah, this is a different error than what I saw previously. I'll research it.
Reply With Quote
  #160  
Old September 6th, 2017, 04:37 PM
mnsandler's Avatar
mnsandler mnsandler is offline
Insteon Overlord
 
Join Date: Apr 2005
Location: Virginia
Posts: 10,542
please give this a try
stop the plugin, and copy only the .exe and insteon.dll to your hs root folder, then restart plugin.

hs won't notice the new version, but it should be displayed on the plugin config page
Attached Files
File Type: zip HSPI_Insteon_3.0.6.19.zip (276.6 KB, 7 views)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Insteon Motion Sensor JimSpy Insteon Plug-in (Mark Sandler) 1 September 19th, 2016 09:20 PM
Insteon Motion Sensor BIGMACK48 RFXCOM Plug-In (3P) 1 April 23rd, 2010 07:11 AM
Insteon motion sensor compatibility? jdls HomeSeer General Discussion Area 2 November 2nd, 2009 12:08 PM
INSTEON Motion Sensor support? vansluis Insteon Plug-in (Mark Sandler) 56 July 20th, 2009 06:07 PM
Insteon Motion Sensor jamesx0 ISY Plug-in Beta (3P) 5 November 12th, 2008 04:10 PM


All times are GMT -4. The time now is 03:22 AM.


Copyright HomeSeer Technologies, LLC