Announcement

Collapse
No announcement yet.

Plug-in errors

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

    Plug-in errors

    Spud,
    I just noticed my NEST info is not working. I put the plugin in debug mode. I attempted to change the temperature through HS3 and you can see the error. Then I get a bunch of debug messages every 5 seconds. Let me know if there is any information I can provide. Thanks

    Dec-02 10:21:29 PM Nest DEBUG Retrying in 5 seconds...
    Dec-02 10:21:29 PM Nest DEBUG System.AggregateException: One or more errors occured ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x00000] in :0 at FirebaseSharp.Request+d__2.MoveNext () [0x00000] in :0 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) [0x00000] in :0 at System.Threading.Tasks.Task.Wait () [0x00000] in :0 at System.Threading.Tasks.Task`1[FirebaseSharp.Response].get_Result () [0x00000] in :0 at FirebaseSharp.Firebase.GetStreaming (System.String path, FirebaseSharp.DataUpdatedEventHandler updated) [0x00000] in :0 at NestSharp.NestClient.StartMonitoringData () [0x00000] in :0 --> (Inner exception 0) System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x00000] in :0 at FirebaseSharp.Request+d__2.MoveNext () [0x00000] in :0
    Dec-02 10:21:29 PM Nest DEBUG response=StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { Date: Thu, 03 Dec 2015 03:21:29 GMT P3P: policyref="http://www.gap.com/w3c/p3p.xml", CP="ALL TAIa PUBa NOR" Server: Apache Connection: keep-alive Content-Length: 1 }
    Dec-02 10:21:29 PM Nest DEBUG Method: GET, RequestUri: 'https://developer-api.nest.com/.json?auth=c.saVEXrKodT1tk4NgMmhs6OBvtG5rRcuXM31sXwTX00SJIW2 Cths0JZA7YYFHYTedzezAQ755oV1FA192MooPxI0eSf3LZ8xRY9TBRdPKGnn OPR6X34zVVkJqd3WeMoPEGboT5uzsD0NGGe5q', Version: 1.1, Content: , Headers: { Accept: text/event-stream }
    Dec-02 10:21:26 PM Nest DEBUG System.AggregateException: One or more errors occured ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 405 (Method Not Allowed). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x00000] in :0 at FirebaseSharp.Request+d__16.MoveNext () [0x00000] in :0 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) [0x00000] in :0 at System.Threading.Tasks.Task.Wait () [0x00000] in :0 at System.Threading.Tasks.Task`1[System.String].get_Result () [0x00000] in :0 at FirebaseSharp.Firebase.Put (System.String path, System.String payload) [0x00000] in :0 at NestSharp.NestClient.SetTargetTemperature (System.String thermostatId, Double target, System.String scale) [0x00000] in :0 at HSPI_Nest.NestApp.ButtonPress (System.String buttonName, Double value, Int32 dvref) [0x00000] in :0 --> (Inner exception 0) System.Net.Http.HttpRequestException: Response status code does not indicate success: 405 (Method Not Allowed). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x00000] in :0 at FirebaseSharp.Request+d__16.MoveNext () [0x00000] in :0
    Dec-02 10:21:26 PM Nest ERROR One or more errors occured
    Dec-02 10:21:26 PM Nest DEBUG PUT: path=devices/thermostats/SyE7pSBxL5P9ARo6N5_olA_VumSUMP-v payload={"target_temperature_f":71}
    Dec-02 10:21:26 PM Device Control Device: First Floor Nest Target Temperature High to + (1001) by/from: CAPI Control Handler
    Dec-02 10:21:24 PM Nest DEBUG Retrying in 5 seconds...
    Current Date/Time: 12/2/2015 10:25:37 PM
    HomeSeer Version: HS3 Pro Edition 3.0.0.208
    Linux version: Linux p-vubuhs301 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux System Uptime: 10 Days 2 Hours 8 Minutes 8 Seconds
    IP Address: 192.168.1.40
    Number of Devices: 122
    Number of Events: 48

    Enabled Plug-Ins
    2.0.22.0: BLBackup
    2.0.25.0: BLLAN
    3.0.0.69: HSTouch Server
    3.0.0.14: Nest
    3.0.0.141: PHLocation
    3.0.1.44: Z-Wave

    #2
    try to do the authorization process again, for some reason your access_token is not valid anymore

    Comment


      #3
      That was an easy fix - thanks Spud.

      Comment


        #4
        Nest plugin stopped responding today. I am unable to control either thermostat using HST client or admin console via Safari.

        After it stopped responding I tried the following.

        Restart the Plugin and HS Touch
        Completed the authorization process again
        Restarted HS3 & Controller

        The Too Many Requests events are present before and after the restarts.

        The following errors are in the log when set to debug.

        Jan-13 3:56:05 PM Nest DEBUG System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 (Too Many Requests). at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__3.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at NestSharp.NestClient.SetHVACMode(String thermostatId, String mode) at HSPI_Nest.NestApp.SetControlValue(Int32 dvref, Double value) ---> (Inner Exception #0) System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 (Too Many Requests). at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__3.MoveNext()<---
        Jan-13 3:56:05 PM Nest ERROR One or more errors occurred.
        Jan-13 3:56:04 PM Nest DEBUG PUT: path=devices/thermostats/SyE7pSBxL5OUtTH2t9GW5Q_VumSUMP-v payload={"hvac_mode":"cool"}
        Jan-13 3:56:04 PM Device Control Device: Nest Master Bedroom HVAC Mode to (2) by/from: CAPI Control Handler
        Jan-13 3:55:49 PM Nest DEBUG data: null
        Jan-13 3:55:49 PM Nest DEBUG event: keep-alive

        Current Date/Time: 1/13/2016 4:18:14 PM
        HomeSeer Version: HS3 Pro Edition 3.0.0.208
        Operating System: Microsoft Windows 10 Home - Work Station
        System Uptime: 0 Days 0 Hours 11 Minutes 12 Seconds
        Number of Devices: 179
        Number of Events: 6

        Enabled Plug-Ins
        3.0.0.56: DSC Security
        3.0.0.75: HSTouch Server
        1.0.15349.151: MyQ
        3.0.0.16: Nest
        3.0.0.21: Sonos
        3.0.1.25: Z-Wave

        Comment


          #5
          the "Too many requests" error means you have exceeded the quota.
          the Nest API apply some rate limits, there is a maximum number of requests one can do for a given period of time. From what I read this maximum is one request per minute with a one hour sliding window, meaning that you can do 60 request in 1 minute but then you won't be able to do anymore request for the next hour.

          for more info read this:
          http://stackoverflow.com/questions/2...mitations-last
          https://developer.nest.com/documenta...ta-rate-limits

          so, wait a day or two, then you should be fine
          and make sure you don't have events that trigger a lot of request to the Nest API (i.e changing target temp, hvac mode, etc...)

          Comment


            #6
            Thanks for the quick response. The insight was helpful but since I don't have an event calling Nest I was a little surprised this threshold was exceeded so easily.

            I had the current temp displayed on other screens as well as displaying the HVAC status and humidity on the climate screen.

            I guess it is possible that moving between screens and having each trigger a polling event combined with updating the set point on both units could have caused the issue it was just surprising.

            Do you know if the Protect integration is similar? I am in the process of replacing ~10 smoke sectors with Nest Protects and just wondering if I am going to run into similar issues once I increase the node count against the same site.

            Comment


              #7
              there is no polling in this plugin, updates are pushed to the plugin. So if you never use any controls to change something (temperature, mode, etc...) you should never hit the quota limits

              Note that if the device battery is low the same "429 (Too Many Requests)" is sent.

              Comment

              Working...
              X