Announcement

Collapse
No announcement yet.

error on event trigger

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

    #16
    Shill - I found the log file and here is an excerpt from the pick list command in debug mode. Perhaps it will make some sense to you....

    10/19/2016 16:30:53.276 Debug Main.PEDGet - Retrieved unnamed PED (thanks to what appears to be a Mono defect)
    10/19/2016 16:30:53.292 Debug PluginLogic.GetThermostatDevice - Found Referenced Thermostat Device (653)
    10/19/2016 16:30:53.292 Debug PluginLogic.GetThermostatDevice - Found Thermostat Device '1151013'
    10/19/2016 16:31:25.155 Debug PluginLogic.SetIOMulti - Processing CAPIControl value 70 for device 657
    10/19/2016 16:31:25.171 Debug PluginLogic.GetThermostatDevice - Found Referenced Thermostat Device (653)
    10/19/2016 16:31:25.171 Debug PluginLogic.IsValidSetpoint - Valid Cool setpoint (70) requested.
    10/19/2016 16:31:25.187 Debug PluginLogic.GetThermostatDevice - Found Referenced Thermostat Device (653)
    10/19/2016 16:31:25.187 Debug PluginLogic.GetThermostatDevice - Found Thermostat Device '1151013'
    10/19/2016 16:31:25.187 Debug PluginLogic.IsValidSetpoint - Valid Cool setpoint (70) requested.
    10/19/2016 16:31:28.218 Debug PluginLogic.m_objTimer_Elapsed - Timer interval temporarily set to 2147483647, should not fire again for a while.
    10/19/2016 16:31:28.218 Debug CommandQueue.CheckDuplicate - Checking for duplicate command scheduled in the future...
    10/19/2016 16:31:28.234 Debug CommandQueue.Dequeue - Retrieved Setpoint command.
    10/19/2016 16:31:28.234 Debug PluginLogic.m_objTimer_Elapsed - Retrieved a command - processing...
    10/19/2016 16:31:28.249 Debug ThermostatCommand.Execute - Processing Setpoint command object
    10/19/2016 16:31:28.249 Debug HWConnection.LoginIfNeeded - Last Login: 1/1/0001 00:00:00.000
    10/19/2016 16:31:28.249 Debug HWConnection.LoginIfNeeded - More than 10 minutes have passed, perform login again.
    10/19/2016 16:31:28.265 Debug WebClientEx.GetWebRequest - Getting WebRequest for 'https://mytotalconnectcomfort.com/portal'
    10/19/2016 16:31:28.296 Debug WebClientEx.GetWebResponse - Getting response for 'https://mytotalconnectcomfort.com/portal'
    10/19/2016 16:31:28.906 Debug HWConnection.Login - Successfully logged in
    10/19/2016 16:31:28.937 Debug HWConnection.SendChange - {"DeviceID":1151013,
    "SystemSwitch":null,
    "HeatSetpoint":null,
    "CoolSetpoint":70.0,
    "HeatNextPeriod":null,
    "CoolNextPeriod":null,
    "StatusHeat":2,
    "StatusCool":2,
    "FanMode":null}
    10/19/2016 16:31:28.953 Debug WebClientEx.GetWebRequest - Getting WebRequest for 'https://mytotalconnectcomfort.com/portal/Device/SubmitControlScreenChanges'
    10/19/2016 16:31:29.062 Debug WebClientEx.GetWebResponse - Getting response for 'https://mytotalconnectcomfort.com/portal/Device/SubmitControlScreenChanges'
    10/19/2016 16:31:29.328 Error ThermostatCommand.Execute - Failed to process the Setpoint request: The remote server returned an error: (500) Internal Server Error.
    System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
    at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
    at System.Net.WebClient.UploadString(Uri address, String method, String data)
    at System.Net.WebClient.UploadString(String address, String data)
    at HSPI_SKWARE_HW_WIFI_TSTAT.HWConnection.SendChange(ChangeRequ est& objChange)
    at HSPI_SKWARE_HW_WIFI_TSTAT.ThermostatCommand.Execute()
    10/19/2016 16:31:29.359 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.
    10/19/2016 16:31:32.359 Debug PluginLogic.m_objTimer_Elapsed - Timer interval temporarily set to 2147483647, should not fire again for a while.
    10/19/2016 16:31:32.359 Debug CommandQueue.CheckDuplicate - Checking for duplicate command scheduled in the future...
    10/19/2016 16:31:32.375 Debug CommandQueue.Dequeue - Retrieved Update command.
    10/19/2016 16:31:32.391 Debug PluginLogic.m_objTimer_Elapsed - Retrieved a command - processing...
    10/19/2016 16:31:32.391 Debug ThermostatCommand.Execute - Processing Update command object
    10/19/2016 16:31:32.406 Debug HWConnection.LoginIfNeeded - Last Login: 10/19/2016 16:31:28.906
    10/19/2016 16:31:32.531 Debug WebClientEx.DownloadDataIfAvailable - WebClient is busy, waiting 100ms... (100)
    10/19/2016 16:31:32.531 Debug WebClientEx.DownloadDataIfAvailable - Downloading data from 'https://mytotalconnectcomfort.com/portal/Device/CheckDataSession/1151013?_=1476909092'
    10/19/2016 16:31:32.547 Debug WebClientEx.GetWebRequest - Getting WebRequest for 'https://mytotalconnectcomfort.com/portal/Device/CheckDataSession/1151013?_=1476909092'
    10/19/2016 16:31:32.563 Debug WebClientEx.GetWebResponse - Getting response for 'https://mytotalconnectcomfort.com/portal/Device/CheckDataSession/1151013?_=1476909092'
    10/19/2016 16:31:32.828 Debug HWConnection.GetData - Retrieved Data:
    Indoor Temp: 73
    Cool Setpoint: 72
    Heat Setpoint: 69
    Fan Mode: Auto
    System Mode: Cool
    Indoor Humidity: 128
    Outdoor Temp: 73
    Outdoor Humidity: 82
    JSON data:
    {"success":true,
    "deviceLive":true,
    "communicationLost":false,
    "latestData":{"uiData":{"DispTemperature":73.0000,
    "HeatSetpoint":69.0,
    "CoolSetpoint":72.0,
    "DisplayUnits":"F",
    "StatusHeat":2,
    "StatusCool":2,
    "HoldUntilCapable":true,
    "ScheduleCapable":true,
    "VacationHold":0,
    "DualSetpointStatus":false,
    "HeatNextPeriod":48,
    "CoolNextPeriod":48,
    "HeatLowerSetptLimit":50.0000,
    "HeatUpperSetptLimit":88.0000,
    "CoolLowerSetptLimit":61.0000,
    "CoolUpperSetptLimit":88.0000,
    "ScheduleHeatSp":62.0000,
    "ScheduleCoolSp":74.0000,
    "SwitchAutoAllowed":true,
    "SwitchCoolAllowed":true,
    "SwitchOffAllowed":true,
    "SwitchHeatAllowed":true,
    "SwitchEmergencyHeatAllowed":false,
    "SystemSwitchPosition":3,
    "Deadband":3.0000,
    "IndoorHumidity":128.0000,
    "DeviceID":1151013,
    "Commercial":false,
    "DispTemperatureAvailable":true,
    "IndoorHumiditySensorAvailable":false,
    "IndoorHumiditySensorNotFault":true,
    "VacationHoldUntilTime":0,
    "TemporaryHoldUntilTime":0,
    "IsInVacationHoldMode":false,
    "VacationHoldCancelable":false,
    "SetpointChangeAllowed":true,
    "OutdoorTemperature":73.0000,
    "OutdoorHumidity":82.0000,
    "OutdoorHumidityAvailable":true,
    "OutdoorTemperatureAvailable":true,
    "DispTemperatureStatus":0,
    "IndoorHumidStatus":128,
    "OutdoorTempStatus":0,
    "OutdoorHumidStatus":0,
    "OutdoorTemperatureSensorNotFault":true,
    "OutdoorHumiditySensorNotFault":true,
    "CurrentSetpointStatus":2,
    "EquipmentOutputStatus":null},
    "fanData":{"fanMode":null,
    "fanModeAutoAllowed":false,
    "fanModeOnAllowed":false,
    "fanModeCirculateAllowed":false,
    "fanModeFollowScheduleAllowed":false,
    "fanIsRunning":null},
    "hasFan":false,
    "canControlHumidification":false,
    "drData":{"CoolSetpLimit":0,
    "HeatSetpLimit":0,
    "Phase":-1,
    "OptOutable":false,
    "DeltaCoolSP":-0.01,
    "DeltaHeatSP":-0.01,
    "Load":127.5}},
    "alerts":"\r\n\r\n"}
    10/19/2016 16:31:32.844 Debug HWConnection.GetData - Successfully retrieved data for device 1151013
    10/19/2016 16:31:32.844 Debug ThermostatCommand.Execute - Successfully processed the Update request
    10/19/2016 16:31:32.859 Debug ThermostatCommand.ProcessUpdateResults - Successfully retrieved thermostat data
    10/19/2016 16:31:32.875 Debug ThermostatDevice.UpdateValue - Thermostat Office Office changed to 1
    10/19/2016 16:31:32.891 Debug ThermostatDevice.UpdateValue - Thermostat Office Indoor Temp changed to 73
    10/19/2016 16:31:32.891 Debug ThermostatDevice.UpdateValue - Thermostat Office Hold Type changed to 2
    10/19/2016 16:31:32.906 Debug ThermostatDevice.UpdateValue - Thermostat Office Cool Setpoint changed to 72
    10/19/2016 16:31:32.906 Debug ThermostatDevice.UpdateValue - Thermostat Office Heat Setpoint changed to 69
    10/19/2016 16:31:32.906 Debug ThermostatDevice.UpdateValue - Thermostat Office System Mode changed to 3
    10/19/2016 16:31:32.938 Debug Main.PEDAdd - 1
    10/19/2016 16:31:32.938 Debug Main.PEDAdd - 2
    10/19/2016 16:31:32.938 Debug Main.PEDAdd - 3
    10/19/2016 16:31:32.953 Debug Main.PEDAdd - Converted thermostat to JSON string
    {"m_objTimer":{"AutoReset":true,"Enabled":false,"Interval":3 00000.0,"Site":null,"SynchronizingObject":null,"Container":n ull},"Description":"Office","DeviceID":"1151013","DeviceName ":"Office","DeviceRef":653,"HasSchedule":true,"HasHoldUntil" :true,"HasModeAuto":true,"HasModeCool":true,"HasModeOff":tru e,"HasModeHeat":true,"HasModeEmergHeat":false,"HasIndoorTemp ":true,"HasIndoorHumidity":false,"HasOutdoorTemp":true,"HasO utdoorHumidity":true,"HasFan":false,"HasFanAuto":false,"HasF anCirculate":false,"HasFanSchedule":false,"ParentRef":653,"S tatusRef":654,"TempRef":655,"ModeRef":656,"FanRef":0,"SPRef" :0,"CoolSPRef":657,"HeatSPRef":658,"InHumidityRef":0,"OutTem pRef":659,"OutHumidityRef":660,"HoldRef":661,"SystemHeatMin" :50,"SystemHeatMax":88,"SystemCoolMin":61,"SystemCoolMax":88 ,"UserHeatMin":0,"UserHeatMax":0,"UserCoolMin":0,"UserCoolMa x":0,"HeatMin":50,"HeatMax":88,"CoolMin":61,"CoolMax":88}
    10/19/2016 16:31:32.953 Debug Main.PEDAdd - 4
    10/19/2016 16:31:32.969 Debug Main.PEDAdd - Added unnamed PED
    10/19/2016 16:31:32.969 Debug Main.PEDAdd - 5
    10/19/2016 16:31:32.969 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.
    10/19/2016 16:31:35.969 Debug PluginLogic.m_objTimer_Elapsed - Queue is empty - stopping processor.
    10/19/2016 16:31:35.969 Debug PluginLogic.m_objTimer_Elapsed - Timer interval reset to 3000, should fire again soon.

    Comment


      #17
      Unfortunately what that shows is that the plugin is working as intended, but their servers are error-ing out (HTTP 500) when processing the request. If that's because my request is faulty, I would expect that to happen to more than just you, but I haven't seen it or heard from anyone else with a problem, so I'm a little stumped.

      I may need to give you some instructions on capturing your HTTP traffic in the browser while you perform the same change using the web site so I can compare the request.

      It's possible they've got a phased rolled-out strategy for website changes and your account is using a new/updated/different UI...

      Comment


        #18
        I found you must have updated the plugin 1.1.0.0
        installed, tested, working

        Happy Camper here!
        that being said I just re-read your response and now I am stumped. My origional read was you had an error, (I often do that, only see what I want to see lol) but now I see I was the only one with the issue.
        Odd ... but what ever is in this new version seemed to do the trick.

        Thanks a million for your attention to this matter!

        Ken

        Comment


          #19
          Originally posted by shill View Post

          I may need to give you some instructions on capturing your HTTP traffic in the browser while you perform the same change using the web site so I can compare the request.
          Shill - I am going to have to ask how to do this as my issue has returned.

          Comment

          Working...
          X