Announcement

Collapse
No announcement yet.

Fatal Error Message - Not interactive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Fatal Error Message - Not interactive

    While I had the HS3 version of this plugin, I had problems with it when I upgraded to HS4. As such, paid for the new version. I am having the following problems when I start and try to use the plugin.

    **FATAL**: Failed to initialize plugin - see log for details: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

    In an attempt to to identify the issue, I cleared my log file, disabled and enabled the plugin. The same error message is displayed on the list of plugins and I am not able to interact with the thermostat... temp change, cool, heat, status mode.. The following is what was created in the log file when I stopped and started the plugin.


    12/23/2022 14:41:22 MeiKu Info Polling device: YP009H105686 media state close
    12/23/2022 14:41:22 MeiKu Info Polling device: YP009H105686's screensaver has become active
    12/23/2022 14:40:55 HomeSeer Plug-In Finished initializing plug-in Honeywell WiFi Thermostat
    12/23/2022 14:40:55 HomeSeer Starting Plug-In Honeywell WiFi Thermostat loaded in 1199 milliseconds
    12/23/2022 14:40:55 HomeSeer Starting Plug-In Plugin Honeywell WiFi Thermostat started successfully in 713 milliseconds
    12/23/2022 14:40:55 HomeSeer Starting Plug-In Initializing plugin Honeywell WiFi Thermostat ...
    12/23/2022 14:40:55 HomeSeer Info Plugin WiFiThermostat with instance Honeywell WiFi Thermostat has connected. IP:127.0.0.1:59452
    12/23/2022 14:40:52 MeiKu Info Polling device: YP009H105686 media state close
    12/23/2022 14:40:52 MeiKu Info Polling device: YP009H105686's screensaver has become active
    12/23/2022 14:40:45 HomeSeer Plug-In Shutting down Plug-In: Honeywell WiFi Thermostat


    Please advise, what am I doing wrong.


    #2
    Please see the sticky post "Having problems? Start here" above and provide the requested items. You may not have the data from the plugin tab, mostly what I need is to know more about your system (OS, hs version, plugin version, etc.) And the plugin log file (not a copy paste of the HS log).

    One quick thing to check based on the error message: in your INI file for the plugin, are there duplicate entries under the root devices line?

    Comment


      #3
      Thank you for getting back to me. The following is in response to the steps listed on the "Having problems? Start here" page… as best as I can figure.

      Background Data
      • HomeSeer Version - 4.2.16.0 running on a HomeTroller S6 Pro
      • Honeywell WIFI Thermostat Plugin Version – 4.2.0.7
      • Problem description – When I enable the plugin using the “manage plugins” page there is read text message in the plugin status box. The message states, “ **FATAL**: Failed to initialize plugin - see log for details: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index.” I came across the error while trying to update an HSTouch project and was noting that I could not (still cannot) interact with the thermostat using buttons defined in the project that use the devices defined by the plugin. I then went to the Homeseer devices page and tried to execute the devices directly. I am not able to get devices for Fans, Operating Mode, Cooling Setpoint, Heating Setpoint to respond. At this point, none of the Honeywell WIFI Thermostat Plugin defined devices are working.
      • HS Server OS – Windows
      • Thermostat Model - RTH9580WF1005GG

      The following address steps 1 – 6 to the best of my ability.
      1. As directed I changed the logging to TRACE… actually on both the HS and Plugin.
      2. I disabled and enabled the plugin
      3. I used the “Download” option. That data is listed below.
      4. I reset the logging to “INFO”
      5. I did not zip up the files as they below.
      6. I could not get the file to the "Honeywell WiFi Thermostat" tab provide a listing as it kept spinning.
      12/23/2022 19:22:03.822 Trace PluginSettings.Load - >>>> PluginSettings.Load()
      12/23/2022 19:22:03.830 Trace HSPI.Decrypt - >>>> HSPI.Decrypt=<encrypted text>
      12/23/2022 19:22:03.832 Trace HSPI.Decrypt - <<<< HSPI.Decrypt=<plain text>
      12/23/2022 19:22:04.080 Trace PluginSettings.DumpSettings - >>>> PluginSettings.DumpSettings()
      12/23/2022 19:22:04.080 Trace PluginSettings.DumpSettings - TermsAccepted=True
      12/23/2022 19:22:04.080 Trace PluginSettings.DumpSettings - AuthState=3
      12/23/2022 19:22:04.081 Trace PluginSettings.DumpSettings - User=David@Morris.net
      12/23/2022 19:22:04.081 Trace PluginSettings.DumpSettings - Password=****************
      12/23/2022 19:22:04.081 Trace PluginSettings.DumpSettings - PollInterval=300
      12/23/2022 19:22:04.081 Trace PluginSettings.DumpSettings - UpdateFrequency=20
      12/23/2022 19:22:04.081 Trace PluginSettings.DumpSettings - LogLevelHS=6
      12/23/2022 19:22:04.081 Trace PluginSettings.DumpSettings - LogLevelFile=6
      12/23/2022 19:22:04.082 Trace PluginSettings.DumpSettings - SimulateAuto=False
      12/23/2022 19:22:04.082 Trace PluginSettings.DumpSettings - SimulateCirculate=False
      12/23/2022 19:22:04.082 Trace PluginSettings.DumpSettings - CirculateWait=20
      12/23/2022 19:22:04.082 Trace PluginSettings.DumpSettings - CirculateRun=10
      12/23/2022 19:22:04.083 Trace PluginSettings.DumpSettings - Locations=[{"locationID":1377899,"name":"morrisdl","devices":[{"DeviceID":"1483637","Name":"MAIN HOUSE"}]}]
      12/23/2022 19:22:04.083 Trace PluginSettings.DumpSettings - LoginTimeoutMinutes=15
      12/23/2022 19:22:04.083 Trace PluginSettings.DumpSettings - Version=4.2.0.7
      12/23/2022 19:22:04.084 Trace PluginSettings.DumpSettings - ApiURL=https://mytotalconnectcomfort.com/
      12/23/2022 19:22:04.084 Trace PluginSettings.DumpSettings - MaxWebClientWait=1000
      12/23/2022 19:22:04.084 Trace PluginSettings.DumpSettings - RootDevices=976,1058,1380
      12/23/2022 19:22:04.084 Trace PluginSettings.DumpSettings - SimulateData=False
      12/23/2022 19:22:04.085 Trace PluginSettings.DumpSettings - DataFile=HoneywellJSON.txt
      12/23/2022 19:22:04.085 Trace PluginSettings.DumpSettings - LocationFile=Locaations.txt
      12/23/2022 19:22:04.085 Trace PluginSettings.DumpSettings - <<<< PluginSettings.DumpSettings
      12/23/2022 19:22:04.086 Trace PluginSettings.Save - >>>> PluginSettings.Save()
      12/23/2022 19:22:04.157 Trace HSPI.Encrypt - >>>> HSPI.Encrypt=<plain text>
      12/23/2022 19:22:04.158 Trace HSPI.Encrypt - <<<< HSPI.Encrypt=<encrypted text>
      12/23/2022 19:22:04.175 Trace PluginSettings.Save - <<<< PluginSettings.Save
      12/23/2022 19:22:04.176 Trace PluginSettings.Load - <<<< PluginSettings.Load
      12/23/2022 19:22:04.177 Trace HSPI.Upgrade - >>>> HSPI.Upgrade()
      12/23/2022 19:22:04.178 Trace Common.GetVersion - >>>> Common.GetVersion()
      12/23/2022 19:22:04.178 Trace Common.GetVersion - Full version = 4.2.0.7
      12/23/2022 19:22:04.178 Trace Common.GetVersion - <<<< Common.GetVersion=4.2.0.7
      12/23/2022 19:22:04.179 Trace HSPI.Upgrade - <<<< HSPI.Upgrade
      12/23/2022 19:22:04.182 Debug HSPI.Initialize - Registering feature pages...
      12/23/2022 19:22:04.183 Trace HSPI.RegisterPluginPages - >>>> HSPI.RegisterPluginPages()
      12/23/2022 19:22:04.188 Trace HSPI.RegisterPluginPages - <<<< HSPI.RegisterPluginPages
      12/23/2022 19:22:04.189 Info HSPI.Initialize - Homeseer Version: 4.2.16.0
      12/23/2022 19:22:04.189 Info HSPI.Initialize - Running on Windows Version 6.1.7601.65536
      12/23/2022 19:22:04.189 Trace Common.GetVersion - >>>> Common.GetVersion()
      12/23/2022 19:22:04.189 Trace Common.GetVersion - Full version = 4.2.0.7
      12/23/2022 19:22:04.190 Trace Common.GetVersion - <<<< Common.GetVersion=4.2.0.7
      12/23/2022 19:22:04.190 Info HSPI.Initialize - Honeywell WiFi Thermostat Version: 4.2.0.7
      12/23/2022 19:22:04.191 Trace Common.GetCoreVersion - >>>> Common.GetCoreVersion()
      12/23/2022 19:22:04.191 Trace Common.GetCoreVersion - Full version = 1.0.0.7
      12/23/2022 19:22:04.191 Trace Common.GetCoreVersion - <<<< Common.GetCoreVersion=1.0.0.7
      12/23/2022 19:22:04.191 Info HSPI.Initialize - Honeywell WiFi Thermostat Core Version: 1.0.0.7
      12/23/2022 19:22:04.194 Trace HWConnection..ctor - >>>> HWConnection..ctor()
      12/23/2022 19:22:04.207 Trace HWConnection..ctor - <<<< HWConnection..ctor
      12/23/2022 19:22:04.209 Trace HSPI.CheckRootDevices - >>>> HSPI.CheckRootDevices()
      12/23/2022 19:22:04.212 Trace HSPI.SetupRootObjects - >>>> HSPI.SetupRootObjects()
      12/23/2022 19:22:04.213 Trace HSPI.SetupRootObjects - Checking thermostat device ref 976
      12/23/2022 19:22:04.214 Trace HSPI.SetupRootObjects - Found thermostat device ref 976
      12/23/2022 19:22:04.214 Trace HSPI.SetupRootObjects - Checking thermostat device ref 1058
      12/23/2022 19:22:04.214 Trace HSPI.SetupRootObjects - Found thermostat device ref 1058
      12/23/2022 19:22:04.215 Trace HSPI.SetupRootObjects - Checking thermostat device ref 1380
      12/23/2022 19:22:04.215 Trace HSPI.SetupRootObjects - Found thermostat device ref 1380
      12/23/2022 19:22:04.228 Trace HSPI.DeviceToThermostat - >>>> HSPI.DeviceToThermostat(<DeviceClass>)
      12/23/2022 19:22:04.235 Error HSPI.Initialize - Failed to setup plugin: Index was out of range. Must be non-negative and less than the size of the collection.
      Parameter name: index
      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 System.Collections.Generic.List`1.get_Item(Int32 index)
      at HSPI_SKWARE_HW_WIFI_TSTAT.HSPI.DeviceToThermostat(HsDevice& objDevice)
      at HSPI_SKWARE_HW_WIFI_TSTAT.HSPI.SetupRootObjects()
      at HSPI_SKWARE_HW_WIFI_TSTAT.HSPI.CheckRootDevices()
      at HSPI_SKWARE_HW_WIFI_TSTAT.HSPI.Initialize()
      12/23/2022 19:22:04.235 Trace HSPI.Initialize - <<<< HSPI.Initialize
      12/23/2022 19:22:51.465 Trace HSPI.SetIOMulti - >>>> HSPI.SetIOMulti(<List(Of CAPIControl)>)
      12/23/2022 19:22:51.466 Trace HSPI.SetIOMulti - >>>> HSPI.SetIOMulti(<List(Of CAPIControl)>)
      12/23/2022 19:22:51.467 Debug HSPI.SetIOMulti - Processing CAPIControl value 0 for device 1062
      12/23/2022 19:23:05.673 Trace HSPI.SetIOMulti - >>>> HSPI.SetIOMulti(<List(Of CAPIControl)>)
      12/23/2022 19:23:05.674 Trace HSPI.SetIOMulti - >>>> HSPI.SetIOMulti(<List(Of CAPIControl)>)
      12/23/2022 19:23:05.674 Debug HSPI.SetIOMulti - Processing CAPIControl value 1001 for device 1060
      12/23/2022 19:23:46.082 Trace HSPI.PostBackProc - >>>> HSPI.PostBackProc(WiFi_Tstat_Configuration.html, {"action":"download"}, david@morris.net, 6)
      12/23/2022 19:23:46.082 Debug HSPI.PostBackProc - Handling postback from WiFi_Tstat_Configuration.html
      12/23/2022 19:23:46.094 Trace HSPI.OptionsPagePostback - >>>> HSPI.OptionsPagePostback({"action":"download"})


      Lastly, in your response, you mentioned an .ini file for the plugin. I could not find any files ending in ".ini" but did see some with a ".config" extension. I went looking on the HomeTroller for an .ini file for the Honeywell WIFI Thermostat Plugin. The best I could find was a file in the c:\Homeseer HS3\Config directory called HSPI_SKWARE_HW_WIFI_TSTAT. The following is a cut and paste of everything in that file.

      [Debug]
      SimulateData=False
      DataFile=HoneywellJSON.txt
      [Internal]
      TermsAccepted=True
      RootDevices=976,1058,1380
      Version=4.2.0.7
      Locations=[{"locationID":1377899,"name":"morrisdl","devices":[{"DeviceID":"1483637","Name":"MAIN HOUSE"}]}]
      [Options]
      AuthState=3
      UserName=David@Morris.net
      Password=*****************
      PollInterval=300
      UpdateFrequency=20
      LogLevelHS=4
      LogLevelFile=4
      SimulateAuto=False
      SimulateCirculate=False
      CirculateWait=20
      CirculateRun=10

      Thank you very much for any help.

      Dave

      Comment


        #4
        Thanks - that's excellent detail! Unfortunately my theory didn't hold up; there are no duplicates in the config file (it does end in . INI, but if you're not seeing that it's because by default Windows doesn't show file extensions anymore).

        I'll probably have to add some more debug logging to figure it out since I've never seen this behavior before and there's nothing obvious in the log unfortunately.

        Comment


          #5
          Thanks for looking into this. Nothing I will lose sleep over. Enjoy holidays and I will watch for your findings. Thank you again.

          Comment


            #6
            OK... I felt silly not being able to find the .ini file...

            This is the HSPI_SKWARE_WIFI_TSTAT.ini on my Hometroller S6 Pro.. Hopefully this is right one.

            [Debug]
            SimulateData=False
            DataFile=HoneywellJSON.txt
            [Internal]
            TermsAccepted=True
            RootDevices=976,1058,1380
            Version=4.2.0.7
            Locations=[{"locationID":1377899,"name":"morrisdl","devices":[{"DeviceID":"1483637","Name":"MAIN HOUSE"}]}]
            [Options]
            AuthState=3
            UserName=David@Morris.net
            Password=******
            PollInterval=300
            UpdateFrequency=20
            LogLevelHS=4
            LogLevelFile=4
            SimulateAuto=False
            SimulateCirculate=False
            CirculateWait=20
            CirculateRun=10​

            Comment


              #7
              So it looks like you have only one thermostat ("MAIN HOUSE") but your INI file lists 3 root devices. So the problem is there are bad entries in the INI file. If you can figure out which of those 3 numbers are actually your thermostat (either by turning on "Show Device Ref on Status Page" on the Setup > Custom tab or by messing with the normal device URLs:
              • /devices.html?ref=976&subpage=devprop&tab=settings
              • /devices.html?ref=1058&subpage=devprop&tab=settings
              • /devices.html?ref=1380&subpage=devprop&tab=settings
              until you find the right one, you can stop the plugin, edit the file and remove the other two, then start the plugin.

              I'll add some safety logic in the startup process, but that will get you going now.

              Comment


                #8
                So... the device ID listed MAIN HOUSE is 1380. Should I edit an ini file and if so, which one and where is it???

                Comment


                  #9
                  Edit the HSPI_SKWARE_WIFI_TSTAT.ini file in your HS\Config directory and set the root devices to just 1380.

                  Comment


                    #10
                    Thank you very much,,, seems like things are working.

                    Comment


                      #11
                      Glad to hear it. I'll figure out how to defend against that in case it happens again!

                      Comment


                        #12
                        This is fixed in 4.2.1.0 which will likely be available on the updater Monday or Tuesday, depending on Homeseer's holiday schedule.

                        Comment

                        Working...
                        X