Announcement

Collapse
No announcement yet.

Honeywell WiFi Thermostat Plugin Beta Testing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Here are the outputs. As a note, traceroute looks the same on another pc running Linux which also connects to the portal and the thermostat.

    And I confirm that I can connect with the browser on the Pi and control the thermostat.




    pi@raspberrypi ~ $ traceroute mytotalconnectcomfort.com
    traceroute to mytotalconnectcomfort.com (199.61.12.100), 30 hops max, 60 byte packets
    1 DD-WRT (192.168.1.1) 0.888 ms 1.867 ms 1.988 ms
    2 cpe-69-207-160-1.rochester.res.rr.com (69.207.160.1) 10.062 ms 10.234 ms 10.396 ms
    3 24.93.10.189 (24.93.10.189) 36.541 ms 36.768 ms 36.834 ms
    4 be47.hnrtnyaf02r.northeast.rr.com (24.58.49.72) 17.739 ms 17.946 ms 18.032 ms
    5 be28.albynyyf01r.northeast.rr.com (24.58.32.70) 25.840 ms 25.895 ms 27.365 ms
    6 bu-ether26.nycmny837aw-bcr00.tbone.rr.com (107.14.19.26) 32.406 ms bu-ether46.nycmny837aw-bcr00.tbone.rr.com (107.14.19.102) 30.223 ms bu-ether36.nycmny837aw-bcr00.tbone.rr.com (107.14.19.100) 27.514 ms
    7 66.109.1.59 (66.109.1.59) 26.999 ms 28.492 ms 0.ae0.pr1.nyc20.tbone.rr.com (107.14.17.216) 28.764 ms
    8 66.109.9.134 (66.109.9.134) 30.217 ms 31.904 ms 32.510 ms
    9 * * *
    10 hunt183-14.optonline.net (167.206.183.14) 27.799 ms 27.245 ms 28.595 ms
    11 adfb5702.cst.lightpath.net (173.251.87.2) 30.605 ms 30.701 ms 30.763 ms
    12 41336eea.cst.lightpath.net (65.51.110.234) 27.803 ms 28.905 ms 29.325 ms
    13 * * *
    14 * * *
    15 * * *
    16 * * *
    17 * * *
    18 * * *
    19 * * *
    20 * * *
    21 * * *
    22 * * *
    23 * * *
    24 * * *
    25 * * *
    26 * * *
    27 * * *
    28 * * *
    29 * * *
    30 * * *
    pi@raspberrypi ~ $



    pi@raspberrypi ~ $ wget https://mytotalconnectcomfort.com/portal
    converted 'https://mytotalconnectcomfort.com/portal' (ISO-8859-1) -> 'https://mytotalconnectcomfort.com/portal' (UTF-8)
    --2016-01-07 12:53:49-- https://mytotalconnectcomfort.com/portal
    Resolving mytotalconnectcomfort.com (mytotalconnectcomfort.com)... 199.61.12.100
    Connecting to mytotalconnectcomfort.com (mytotalconnectcomfort.com)|199.61.12.100|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 15911 (16K) [text/html]
    Saving to: 'portal'

    portal 100%[=====================>] 15.54K --.-KB/s in 0.002s

    2016-01-07 12:53:49 (9.84 MB/s) - 'portal' saved [15911/15911]

    Comment


      Originally posted by sesykes71 View Post
      Here are the outputs. As a note, traceroute looks the same on another pc running Linux which also connects to the portal and the thermostat.

      And I confirm that I can connect with the browser on the Pi and control the thermostat.

      <snip>
      Ok, that seems to confirm the problem is not networking or connectivity. I have found an issue with the log file on Linux that I've fixed, and in the process have run into a couple of other places that are behaving badly on Linux that I didn't see in my smoke tests that I'm working on now.

      Comment


        Very good, if you need access to my system, you are more than welcome.

        Steve

        Comment


          Originally posted by shill View Post
          Ok, that seems to confirm the problem is not networking or connectivity. I have found an issue with the log file on Linux that I've fixed, and in the process have run into a couple of other places that are behaving badly on Linux that I didn't see in my smoke tests that I'm working on now.
          So I have some bad news... there's some kind of significant problem with the timer object in Mono (the .NET emulator that allows HS3 to run in Linux), and the net result is that on Linux, all of the controls I painstakingly put in to prevent duplicate or too-frequent commands don't work because the timer is broken.

          I'm going to keep looking at it tonight, but it's looking like I have to pull Linux support for now.

          Comment


            Originally posted by shill View Post
            So I have some bad news... there's some kind of significant problem with the timer object in Mono (the .NET emulator that allows HS3 to run in Linux), and the net result is that on Linux, all of the controls I painstakingly put in to prevent duplicate or too-frequent commands don't work because the timer is broken.

            I'm going to keep looking at it tonight, but it's looking like I have to pull Linux support for now.
            Woohoo!!! Found the problem.

            << In case anyone else ends up here by searching for mono timer problems, the resolution of the clock in windows & Linux may be different, so be VERY careful when using teeny tiny intervals in order to make your timer start processing right away >>

            Can you please stop the plugin, download this file & copy it to your Pi, then start it up again and let me know if things are working properly for you now? (you won't see a version # change since I didn't want to trip the upgrade logic and have you sitting on a newer version since this is just an on-the-side build)
            Last edited by shill; January 16, 2017, 07:16 PM.

            Comment


              I followed your instructions. It makes a log file now and also lets me set the thermostat info and setpoints. Here is some of the log. Notice how it has different id's sometimes adding a 0 sometimes removing one. It maybe just the log file display.
              Let me know what else you need. And Thanks for your continued efforts.
              Steve


              1/8/2016 10:31:40.823 Error ThermostatCommand.ProcessUpdateResults - Failed to retrieve thermostat data - error occurred, will retry
              1/8/2016 10:31:40.837 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.
              1/8/2016 10:31:43.837 Debug PluginLogic.m_objTimer_Elapsed - Timer interval temporarily set to 2147483647, should not fire again for a while.
              1/8/2016 10:31:43.842 Debug CommandQueue.CheckDuplicate - Checking for duplicate command scheduled in the future...
              1/8/2016 10:31:43.848 Debug CommandQueue.Dequeue - Retrieved Update command.
              1/8/2016 10:31:43.853 Debug PluginLogic.m_objTimer_Elapsed - Retrieved a command - processing...
              1/8/2016 10:31:43.858 Debug ThermostatCommand.Execute - Processing Update command object
              1/8/2016 10:31:43.865 Debug HWConnection.LoginIfNeeded - Last Login: 1/1/0001 00:00:00.000
              1/8/2016 10:31:43.870 Debug HWConnection.LoginIfNeeded - More than 10 minutes have passed, perform login again.
              1/8/2016 10:32:14.336 Debug ThermostatDevice.RequestUpdate - Scheduling update of thermostat 'Upstairs' (2284700)
              1/8/2016 10:32:57.295 Debug ThermostatDevice.RequestUpdate - Scheduling update of thermostat 'Upstairs' (2284700)
              1/8/2016 10:33:12.099 Debug ThermostatDevice.RequestUpdate - Scheduling update of thermostat 'Upstairs' (22847000)
              1/8/2016 10:33:25.113 Error HWConnection.GetData - Error retrieving data for device 228470: The request timed out
              System.Net.WebException: The request timed out
              at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
              at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0
              at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
              at HSPI_SKWARE_HW_WIFI_TSTAT.WebClientEx.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
              at System.Net.WebClient.ReadAll (System.Net.WebRequest request, System.Object userToken) [0x00000] in <filename unknown>:0
              at System.Net.WebClient.UploadDataCore (System.Uri address, System.String method, System.Byte[] data, System.Object userToken) [0x00000] in <filename unknown>:0
              at System.Net.WebClient.UploadData (System.Uri address, System.String method, System.Byte[] data) [0x00000] in <filename unknown>:0
              1/8/2016 10:33:25.139 Error ThermostatCommand.ProcessUpdateResults - Failed to retrieve thermostat data - error occurred, will retry
              1/8/2016 10:33:25.151 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.
              1/8/2016 10:33:28.152 Debug PluginLogic.m_objTimer_Elapsed - Timer interval temporarily set to 2147483647, should not fire again for a while.
              1/8/2016 10:33:28.158 Debug CommandQueue.CheckDuplicate - Checking for duplicate command scheduled in the future...
              1/8/2016 10:33:28.162 Debug CommandQueue.CheckDuplicate - Found a duplicate command scheduled in the future, moving to next command.
              1/8/2016 10:33:28.167 Debug CommandQueue.CheckDuplicate - Checking for duplicate command scheduled in the future...
              1/8/2016 10:33:28.171 Debug CommandQueue.CheckDuplicate - Found a duplicate command scheduled in the future, moving to next command.
              1/8/2016 10:33:28.176 Debug CommandQueue.CheckDuplicate - Checking for duplicate command scheduled in the future...
              1/8/2016 10:33:28.180 Debug CommandQueue.CheckDuplicate - Found a duplicate command scheduled in the future, moving to next command.
              1/8/2016 10:33:28.185 Debug CommandQueue.CheckDuplicate - Checking for duplicate command scheduled in the future...
              1/8/2016 10:33:28.191 Debug CommandQueue.Dequeue - Retrieved Update command.
              1/8/2016 10:33:28.195 Debug PluginLogic.m_objTimer_Elapsed - Retrieved a command - processing...
              1/8/2016 10:33:28.200 Debug ThermostatCommand.Execute - Processing Update command object
              1/8/2016 10:33:28.207 Debug HWConnection.LoginIfNeeded - Last Login: 1/1/0001 00:00:00.000
              1/8/2016 10:33:28.211 Debug HWConnection.LoginIfNeeded - More than 10 minutes have passed, perform login again.
              1/8/2016 10:33:39.325 Debug ThermostatDevice.RequestUpdate - Scheduling update of thermostat 'Upstairs' (2284700)
              1/8/2016 10:34:02.680 Debug ThermostatDevice.RequestUpdate - Scheduling update of thermostat 'Upstairs' (2284700)

              Here is the HS log.
              Jan-08 10:40:22 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:40:22 Honeywell WiFi Thermostat Error retrieving data for device 228470: The request timed out Jan-08 10:38:38 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:38:38 Honeywell WiFi Thermostat Error retrieving data for device 2284700: The request timed out Jan-08 10:36:53 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:36:53 Honeywell WiFi Thermostat Error retrieving data for device 22847000: The request timed out Jan-08 10:35:09 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:35:09 Honeywell WiFi Thermostat Error retrieving data for device 2284700: The request timed out Jan-08 10:33:25 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:33:25 Honeywell WiFi Thermostat Error retrieving data for device 228470: The request timed out Jan-08 10:31:40 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:31:40 Honeywell WiFi Thermostat Error retrieving data for device 2284700: The request timed out Jan-08 10:29:56 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:29:56 Honeywell WiFi Thermostat Error retrieving data for device 2284700: The request timed out Jan-08 10:28:49 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (2284700) Jan-08 10:28:39 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:28:39 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:28:39 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:28:39 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:28:39 Honeywell WiFi Thermostat Retrieved unnamed PED (thanks to what appears to be a Mono defect) Jan-08 10:28:15 Honeywell WiFi Thermostat More than 10 minutes have passed, perform login again. Jan-08 10:28:15 Honeywell WiFi Thermostat Last Login: 1/1/0001 00:00:00.000 Jan-08 10:28:15 Honeywell WiFi Thermostat Processing Update command object Jan-08 10:28:15 Honeywell WiFi Thermostat Retrieved a command - processing... Jan-08 10:28:15 Honeywell WiFi Thermostat Retrieved Update command. Jan-08 10:28:15 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:28:15 Honeywell WiFi Thermostat Found a duplicate command scheduled in the future, moving to next command. Jan-08 10:28:15 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:28:15 Honeywell WiFi Thermostat Found a duplicate command scheduled in the future, moving to next command. Jan-08 10:28:15 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:28:15 Honeywell WiFi Thermostat Found a duplicate command scheduled in the future, moving to next command. Jan-08 10:28:15 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:28:15 Honeywell WiFi Thermostat Timer interval temporarily set to 2147483647, should not fire again for a while. Jan-08 10:28:12 Honeywell WiFi Thermostat Timer interval reset to 3000, should fire again soon. Jan-08 10:28:12 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:28:12 Honeywell WiFi Thermostat Error retrieving data for device 22847000: The request timed out Jan-08 10:27:58 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (2284700) Jan-08 10:27:57 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (2284700) Jan-08 10:27:14 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (2284700) Jan-08 10:26:30 Honeywell WiFi Thermostat More than 10 minutes have passed, perform login again. Jan-08 10:26:30 Honeywell WiFi Thermostat Last Login: 1/1/0001 00:00:00.000 Jan-08 10:26:30 Honeywell WiFi Thermostat Processing Update command object Jan-08 10:26:30 Honeywell WiFi Thermostat Retrieved a command - processing... Jan-08 10:26:30 Honeywell WiFi Thermostat Retrieved Update command. Jan-08 10:26:30 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:26:30 Honeywell WiFi Thermostat Timer interval temporarily set to 2147483647, should not fire again for a while. Jan-08 10:26:27 Honeywell WiFi Thermostat Timer interval reset to 3000, should fire again soon. Jan-08 10:26:27 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:26:27 Honeywell WiFi Thermostat Error retrieving data for device 2284700: The request timed out Jan-08 10:26:14 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (2284700) Jan-08 10:26:06 Error Calling SetIOMulti in plugin Honeywell WiFi Thermostat:Object reference not set to an instance of an object Jan-08 10:26:06 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:26:06 Honeywell WiFi Thermostat Processing CAPIControl value 68 for device 367 Jan-08 10:26:06 Device Control Jan-08 10:24:46 Honeywell WiFi Thermostat More than 10 minutes have passed, perform login again. Jan-08 10:24:46 Honeywell WiFi Thermostat Last Login: 1/1/0001 00:00:00.000 Jan-08 10:24:46 Honeywell WiFi Thermostat Processing Update command object Jan-08 10:24:46 Honeywell WiFi Thermostat Retrieved a command - processing... Jan-08 10:24:46 Honeywell WiFi Thermostat Retrieved Update command. Jan-08 10:24:46 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:24:46 Honeywell WiFi Thermostat Found a duplicate command scheduled in the future, moving to next command. Jan-08 10:24:46 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:24:46 Honeywell WiFi Thermostat Timer interval temporarily set to 2147483647, should not fire again for a while. Jan-08 10:24:43 Honeywell WiFi Thermostat Timer interval reset to 3000, should fire again soon. Jan-08 10:24:43 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:24:43 Honeywell WiFi Thermostat Error retrieving data for device 228470: The request timed out Jan-08 10:24:29 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (22847000) Jan-08 10:24:23 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (2284700) Jan-08 10:23:49 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:23:49 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:23:49 Honeywell WiFi Thermostat Retrieved unnamed PED (thanks to what appears to be a Mono defect) Jan-08 10:23:44 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:23:44 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:23:44 Honeywell WiFi Thermostat Added unnamed PED Jan-08 10:23:19 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:23:19 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:23:19 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:23:19 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:23:12 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:23:12 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:23:12 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:23:12 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:23:12 Honeywell WiFi Thermostat Retrieved unnamed PED (thanks to what appears to be a Mono defect) Jan-08 10:23:01 Honeywell WiFi Thermostat More than 10 minutes have passed, perform login again. Jan-08 10:23:01 Honeywell WiFi Thermostat Last Login: 1/1/0001 00:00:00.000 Jan-08 10:23:01 Honeywell WiFi Thermostat Processing Update command object Jan-08 10:23:01 Honeywell WiFi Thermostat Retrieved a command - processing... Jan-08 10:23:01 Honeywell WiFi Thermostat Retrieved Update command. Jan-08 10:23:01 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:23:01 Honeywell WiFi Thermostat Found a duplicate command scheduled in the future, moving to next command. Jan-08 10:23:01 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:23:01 Honeywell WiFi Thermostat Timer interval temporarily set to 2147483647, should not fire again for a while. Jan-08 10:22:58 Honeywell WiFi Thermostat Timer interval reset to 3000, should fire again soon. Jan-08 10:22:58 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:22:58 Honeywell WiFi Thermostat Error retrieving data for device 2284700: The request timed out Jan-08 10:22:57 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (2284700) Jan-08 10:22:20 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (228470) Jan-08 10:22:14 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (2284700) Jan-08 10:21:25 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:21:25 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:21:25 Honeywell WiFi Thermostat Retrieved unnamed PED (thanks to what appears to be a Mono defect) Jan-08 10:21:17 Honeywell WiFi Thermostat More than 10 minutes have passed, perform login again. Jan-08 10:21:17 Honeywell WiFi Thermostat Last Login: 1/1/0001 00:00:00.000 Jan-08 10:21:17 Honeywell WiFi Thermostat Processing Update command object Jan-08 10:21:17 Honeywell WiFi Thermostat Retrieved a command - processing... Jan-08 10:21:17 Honeywell WiFi Thermostat Retrieved Update command. Jan-08 10:21:17 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:21:17 Honeywell WiFi Thermostat Timer interval temporarily set to 2147483647, should not fire again for a while. Jan-08 10:21:14 Honeywell WiFi Thermostat Timer interval reset to 3000, should fire again soon. Jan-08 10:21:14 Honeywell WiFi Thermostat Failed to retrieve thermostat data - error occurred, will retry Jan-08 10:21:14 Honeywell WiFi Thermostat Error retrieving data for device 2284700: The request timed out Jan-08 10:20:59 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:20:59 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:20:59 Honeywell WiFi Thermostat Found Thermostat Device '2284700' Jan-08 10:20:59 Honeywell WiFi Thermostat Found Referenced Thermostat Device (364) Jan-08 10:20:59 Honeywell WiFi Thermostat Retrieved unnamed PED (thanks to what appears to be a Mono defect) Jan-08 10:20:24 Error Posting back to plugin web page HW_Wifi_Tstat_Config: Exception has been thrown by the target of an invocation.-> at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x00000] in :0 Jan-08 10:20:02 Honeywell WiFi Thermostat Scheduling update of thermostat 'Upstairs' (2284700) Jan-08 10:19:32 Honeywell WiFi Thermostat More than 10 minutes have passed, perform login again. Jan-08 10:19:32 Honeywell WiFi Thermostat Last Login: 1/1/0001 00:00:00.000 Jan-08 10:19:32 Honeywell WiFi Thermostat Processing Update command object Jan-08 10:19:32 Honeywell WiFi Thermostat Retrieved a command - processing... Jan-08 10:19:32 Honeywell WiFi Thermostat Retrieved Update command. Jan-08 10:19:32 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:19:32 Honeywell WiFi Thermostat Found a duplicate command scheduled in the future, moving to next command. Jan-08 10:19:32 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:19:32 Honeywell WiFi Thermostat Found a duplicate command scheduled in the future, moving to next command. Jan-08 10:19:32 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:19:32 Honeywell WiFi Thermostat Found a duplicate command scheduled in the future, moving to next command. Jan-08 10:19:32 Honeywell WiFi Thermostat Checking for duplicate command scheduled in the future... Jan-08 10:19:32 Honeywell WiFi Thermostat Found a duplicate command scheduled in the future, moving to next command.

              Comment


                Originally posted by sesykes71 View Post
                I followed your instructions. It makes a log file now and also lets me set the thermostat info and setpoints. Here is some of the log. Notice how it has different id's sometimes adding a 0 sometimes removing one. It maybe just the log file display.
                Let me know what else you need. And Thanks for your continued efforts.
                Steve
                The adding/removing 0 is quite troubling. There's no reason for that to be happening in the log, since it's just being passed a string, which was simply created with the ID directly from the variable. It could indicate a memory handling problem in mono on jesse on the Pi2 (or any other combination of those components). It could even be your specific board.

                You're also still getting "request timed out", so I added some logging to the webclient object to print out the URL it's calling. Will be interested to see if the value in there is also mysteriously being changed.

                Download the file again (same link, updated file) and let me know...

                Comment


                  Here is the latest.

                  1/8/2016 13:15:39.084 Debug ThermostatDevice.RequestUpdate - Scheduling update of thermostat 'Upstairs' (2284700)
                  1/8/2016 13:15:42.133 Debug PluginLogic.m_objTimer_Elapsed - Timer interval temporarily set to 2147483647, should not fire again for a while.
                  1/8/2016 13:15:42.146 Debug CommandQueue.CheckDuplicate - Checking for duplicate command scheduled in the future...
                  1/8/2016 13:15:42.152 Debug CommandQueue.Dequeue - Retrieved Update command.
                  1/8/2016 13:15:42.157 Debug PluginLogic.m_objTimer_Elapsed - Retrieved a command - processing...
                  1/8/2016 13:15:42.165 Debug ThermostatCommand.Execute - Processing Update command object
                  1/8/2016 13:15:42.194 Debug HWConnection.LoginIfNeeded - Last Login: 1/1/0001 00:00:00.000
                  1/8/2016 13:15:42.199 Debug HWConnection.LoginIfNeeded - More than 10 minutes have passed, perform login again.
                  1/8/2016 13:15:42.319 Debug WebClientEx.GetWebRequest - Getting WebRequest for 'https://mytotalconnectcomfort.com/portal'
                  1/8/2016 13:15:45.540 Debug WebClientEx.GetWebResponse - Getting response for 'https://mytotalconnectcomfort.com/portal'
                  1/8/2016 13:17:25.597 Error HWConnection.GetData - Error retrieving data for device 2284700: The request timed out
                  System.Net.WebException: The request timed out
                  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
                  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0
                  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
                  at HSPI_SKWARE_HW_WIFI_TSTAT.WebClientEx.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
                  at System.Net.WebClient.ReadAll (System.Net.WebRequest request, System.Object userToken) [0x00000] in <filename unknown>:0
                  at System.Net.WebClient.UploadDataCore (System.Uri address, System.String method, System.Byte[] data, System.Object userToken) [0x00000] in <filename unknown>:0
                  at System.Net.WebClient.UploadData (System.Uri address, System.String method, System.Byte[] data) [0x00000] in <filename unknown>:0
                  1/8/2016 13:17:25.660 Error ThermostatCommand.ProcessUpdateResults - Failed to retrieve thermostat data - error occurred, will retry
                  1/8/2016 13:17:25.672 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.
                  1/8/2016 13:17:28.673 Debug PluginLogic.m_objTimer_Elapsed - Queue is empty - stopping processor.
                  1/8/2016 13:17:28.678 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.

                  Comment


                    Originally posted by sesykes71 View Post
                    Here is the latest.

                    1/8/2016 13:15:39.084 Debug ThermostatDevice.RequestUpdate - Scheduling update of thermostat 'Upstairs' (2284700)
                    1/8/2016 13:15:42.133 Debug PluginLogic.m_objTimer_Elapsed - Timer interval temporarily set to 2147483647, should not fire again for a while.
                    1/8/2016 13:15:42.146 Debug CommandQueue.CheckDuplicate - Checking for duplicate command scheduled in the future...
                    1/8/2016 13:15:42.152 Debug CommandQueue.Dequeue - Retrieved Update command.
                    1/8/2016 13:15:42.157 Debug PluginLogic.m_objTimer_Elapsed - Retrieved a command - processing...
                    1/8/2016 13:15:42.165 Debug ThermostatCommand.Execute - Processing Update command object
                    1/8/2016 13:15:42.194 Debug HWConnection.LoginIfNeeded - Last Login: 1/1/0001 00:00:00.000
                    1/8/2016 13:15:42.199 Debug HWConnection.LoginIfNeeded - More than 10 minutes have passed, perform login again.
                    1/8/2016 13:15:42.319 Debug WebClientEx.GetWebRequest - Getting WebRequest for 'https://mytotalconnectcomfort.com/portal'
                    1/8/2016 13:15:45.540 Debug WebClientEx.GetWebResponse - Getting response for 'https://mytotalconnectcomfort.com/portal'
                    1/8/2016 13:17:25.597 Error HWConnection.GetData - Error retrieving data for device 2284700: The request timed out
                    System.Net.WebException: The request timed out
                    at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
                    at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0
                    at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
                    at HSPI_SKWARE_HW_WIFI_TSTAT.WebClientEx.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
                    at System.Net.WebClient.ReadAll (System.Net.WebRequest request, System.Object userToken) [0x00000] in <filename unknown>:0
                    at System.Net.WebClient.UploadDataCore (System.Uri address, System.String method, System.Byte[] data, System.Object userToken) [0x00000] in <filename unknown>:0
                    at System.Net.WebClient.UploadData (System.Uri address, System.String method, System.Byte[] data) [0x00000] in <filename unknown>:0
                    1/8/2016 13:17:25.660 Error ThermostatCommand.ProcessUpdateResults - Failed to retrieve thermostat data - error occurred, will retry
                    1/8/2016 13:17:25.672 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.
                    1/8/2016 13:17:28.673 Debug PluginLogic.m_objTimer_Elapsed - Queue is empty - stopping processor.
                    1/8/2016 13:17:28.678 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.
                    Aside from the weird extra character on your id, the URL looks right. I've done some googling, and found many other people who've had problems with the .NET web client on mono. It works perfectly on my linux system; can you check what version you have on the pi? "mono --version".

                    My output, for reference:

                    Code:
                    root@hs3linux:/usr/local/src# mono --version
                    Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-8)
                    Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
                            TLS:           __thread
                            SIGSEGV:       altstack
                            Notifications: epoll
                            Architecture:  amd64
                            Disabled:      none
                            Misc:          softdebug
                            LLVM:          supported, not enabled.
                            GC:            Included Boehm (with typed GC and Parallel Mark)

                    Comment


                      pi@raspberrypi ~/HomeSeer $ mono --version
                      Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-10)
                      Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
                      TLS: __thread
                      SIGSEGV: normal
                      Notifications: epoll
                      Architecture: armel,vfp+hard
                      Disabled: none
                      Misc: softdebug
                      LLVM: supported, not enabled.
                      GC: sgen
                      pi@raspberrypi ~/HomeSeer $

                      Comment


                        I installed HS3 and your plug-in on my Ubuntu laptop. It has the same version of mono that the Pi does.

                        Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1)
                        Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
                        TLS: __thread
                        SIGSEGV: altstack
                        Notifications: epoll
                        Architecture: amd64
                        Disabled: none
                        Misc: softdebug
                        LLVM: supported, not enabled.
                        GC: sgen


                        I get the same errors as the Pi as well:

                        1/9/2016 09:46:54.824 Debug CommandQueue.Dequeue - Retrieved Update command.
                        1/9/2016 09:46:54.825 Debug PluginLogic.m_objTimer_Elapsed - Retrieved a command - processing...
                        1/9/2016 09:46:54.826 Debug ThermostatCommand.Execute - Processing Update command object
                        1/9/2016 09:46:54.828 Debug HWConnection.LoginIfNeeded - Last Login: 1/1/0001 00:00:00.000
                        1/9/2016 09:46:54.829 Debug HWConnection.LoginIfNeeded - More than 10 minutes have passed, perform login again.
                        1/9/2016 09:46:54.830 Debug WebClientEx.GetWebRequest - Getting WebRequest for 'https://mytotalconnectcomfort.com/portal'
                        1/9/2016 09:46:55.504 Debug WebClientEx.GetWebResponse - Getting response for 'https://mytotalconnectcomfort.com/portal'
                        1/9/2016 09:48:35.506 Error HWConnection.GetData - Error retrieving data for device 2284700: The request timed out
                        System.Net.WebException: The request timed out
                        at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
                        at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0
                        at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
                        at HSPI_SKWARE_HW_WIFI_TSTAT.WebClientEx.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
                        at System.Net.WebClient.ReadAll (System.Net.WebRequest request, System.Object userToken) [0x00000] in <filename unknown>:0
                        at System.Net.WebClient.UploadDataCore (System.Uri address, System.String method, System.Byte[] data, System.Object userToken) [0x00000] in <filename unknown>:0
                        at System.Net.WebClient.UploadData (System.Uri address, System.String method, System.Byte[] data) [0x00000] in <filename unknown>:0
                        1/9/2016 09:48:35.511 Error ThermostatCommand.ProcessUpdateResults - Failed to retrieve thermostat data - error occurred, will retry
                        1/9/2016 09:48:35.512 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.
                        1/9/2016 09:48:38.512 Debug PluginLogic.m_objTimer_Elapsed - Queue is empty - stopping processor.
                        1/9/2016 09:48:38.514 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.
                        (END)

                        Comment


                          Originally posted by sesykes71 View Post
                          I installed HS3 and your plug-in on my Ubuntu laptop. It has the same version of mono that the Pi does.

                          Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1)
                          Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
                          TLS: __thread
                          SIGSEGV: altstack
                          Notifications: epoll
                          Architecture: amd64
                          Disabled: none
                          Misc: softdebug
                          LLVM: supported, not enabled.
                          GC: sgen


                          I get the same errors as the Pi as well:
                          I'm setting up a jessie-based Linux server now so I can test with 3.2.8 - one of the posts I read was about how 3.X broke the WebClient.

                          Comment


                            Originally posted by shill View Post
                            I'm setting up a jessie-based Linux server now so I can test with 3.2.8 - one of the posts I read was about how 3.X broke the WebClient.
                            So... after a LOT of wrestling with it, I setup a new server and discovered a few things.

                            a) There are some additional libraries necessary for the JSON parser, which I apparently added at some point to my system without documenting it (this was the source of your earlier errors trying to save the thermostat).

                            b) I recreated the "request timed out" error. Unfortunately, this proves that there's a bug in mono 3.x with this basic, out-of-the-box system component (WebClient).

                            c) I then removed mono 3.x and installed mono 2.x and it now works. If you're willing to run mono 2.x (which is fine for HomeSeer, too), I bet this will get you up and running.


                            First, disable the plugin, delete any devices my plugin created, then stop HomeSeer.

                            To remove mono 3.x (http://unix.stackexchange.com/questi...ibs-apps-etc):
                            • apt-get purge libmono* cli-common mono-runtime mono-devel
                            • apt-get autoremove


                            To install mono 2.x & the additional assemblies required by both HS3 & this plugin:
                            • echo "deb http://ftp.us.debian.org/debian wheezy main" >> /etc/apt/sources.list
                            • apt-get update
                            • apt-get install -t wheezy mono-runtime
                            • apt-get install -t wheezy mono-vbnc
                            • apt-get install -t wheezy libmono-system-web4.0.cil
                            • apt-get install -t wheezy libmono-system-design4.0.cil
                            • apt-get install -t wheezy libmono-system-web-extensions4.0-cil
                            • apt-get install -t wheezy libmono-system-runtime-caching4.0-cil
                            • apt-get install -t wheezy libmono-system-numerics4.0-cil
                            • apt-get install -t wheezy libmono-system-xml-linq4.0-cil
                            • apt-get install -t wheezy mono-devel


                            Confirm you're running mono 2:
                            • mono --version


                            To configure mono 2.x to work with HTTPS:
                            • mozroots --import --ask-remove


                            Now you're ready to start HomeSeer, start the plugin and re-configure your thermostats, just to be safe.
                            Last edited by shill; January 10, 2016, 02:52 PM. Reason: Forgot "apt-get update" instruction

                            Comment


                              I tried following your instructions but the line

                              didn't do what it was supposed to do on raspbian. All the rest worked after I added the source list for wheezy. However it installed version 4.2.1. The good news is that they must have fixed the webclient because the thermostat now works.
                              Thanks for keeping at this.

                              Steve

                              Comment


                                Originally posted by sesykes71 View Post
                                I tried following your instructions but the line

                                didn't do what it was supposed to do on raspbian. All the rest worked after I added the source list for wheezy. However it installed version 4.2.1. The good news is that they must have fixed the webclient because the thermostat now works.
                                Thanks for keeping at this.

                                Steve
                                Ah - I forgot you have to do an "apt-get update" after modifying the sources. But a newer version is better than downgrading, so glad that worked for you anyway!

                                Comment

                                Working...
                                X