Announcement

Collapse
No announcement yet.

Plugin works a few hours and then fails

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

    Plugin works a few hours and then fails

    Hi,

    Lately I've had problems with the plugin.

    The log shows this error:

    Code:
    GetGroup: Tradfri.BadRequestException: Got 400 (BadRequest)
    at ''. Msg: {"r":"02"} Req: ved Tradfri.TradfriController.CheckResponse(Response resp, Request request, Int32 statusCodeExpected, Int32 anotherCode)
    ved Tradfri.TradfriController.d__48.MoveNext()
    --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt ---
    ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    ved Tradfri.TradfriController.d__46.MoveNext()
    --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt ---
    ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    ved Tradfri.Controllers.BaseController.d__14.MoveNext()
    --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt ---
    ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    ved Tradfri.Controllers.BaseController.d__13`1.MoveNext()
    --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt ---
    ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    ved Tradfri.Controllers.GroupController.d__2.MoveNext()
    --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt ---
    ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    ved HSPI_AKIkea.DeviceIkeaGroup.d__20.MoveNext()
    The IP and key has not changed, but I think the IKEA hub maybe has updated firmware lately, but I'm not sure. The IKEA hub/gateway is on 1.12.31. If I restart the plugin it works a few hours before the error appears aging and I'm not able to control the lights.

    regards,

    Dag-Inge

    #2
    I'll check

    [EDIT]

    dag-inge Can you check if it's always the same error?

    Comment


      #3
      Yes it is the same error. But it has now been stable for 16 hours. I'll monitor the log and will keep you posted.

      Comment


        #4
        IKEA changed from "groups" to "scenes" - I need to check if/how firmware is affected

        Comment


          #5
          Originally posted by alexbk66 View Post
          I'll check

          [EDIT]

          dag-inge Can you check if it's always the same error?
          After a closer inspection, I also found this error from yesterdays log:
          Code:
          [379]: ValueChanged(196617): System.Collections.Generic.KeyNotFoundException: Den angitte nøkkelen finnes ikke i ordlisten. ved System.Collections.Generic.Dictionary`2.get_Item(TKey key) ved HSPI_AKTemplate.ControllerBase.ValueChanged(Int32 devID, Double value, Nullable`1 oldval, String cause, String ControlString)

          Comment


            #6
            What HS device is ref. 379?

            Comment


              #7
              Originally posted by alexbk66 View Post
              What HS device is ref. 379?
              It's a "mood" feature in a IKEA group device with two light bulbs.

              Comment


                #8
                Originally posted by dag-inge View Post

                It's a "mood" feature in a IKEA group device with two light bulbs.
                Yeah, they actually changed "Moods" (not Groups) to "Scenes"

                Comment


                  #9
                  I still have errors, but I think these are different errors:

                  [260]: ERROR MakeRequest(/15005): Tradfri.InternalServerErrorException: Got 500 (InternalServerError) at ''. Msg: {"r":"01"} Req: ved Tradfri.TradfriController.CheckResponse(Response resp, Request request, Int32 statusCodeExpected, Int32 anotherCode) ved Tradfri.TradfriController.d__48.MoveNext() --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt --- ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task) ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task) ved Tradfri.TradfriController.d__46.MoveNext() --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt --- ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task) ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task) ved Tradfri.TradfriController.d__44`1.MoveNext()

                  It will only work for a few hours before I can't control IKEA lights.

                  Plugin version: 3.0.0.45

                  Comment


                    #10
                    Does the error happen when you try to control the devices, or even if you leave the plugin alone?

                    Comment


                      #11
                      Originally posted by alexbk66 View Post
                      Does the error happen when you try to control the devices, or even if you leave the plugin alone?
                      It happens randomly as far as I can see. My log is spammed with errors from the plugin: 7817 entries in 12 hours! It alternates between the one in previous post and this one:

                      [260]: GetTradfriDevice: System.ArgumentNullException: Verdien kan ikke være null. Parameternavn: value ved Newtonsoft.Json.Linq.JToken.EnsureValue(JToken value) ved Newtonsoft.Json.Linq.JToken.op_Explicit(JToken value) ved Tradfri.Controllers.DeviceController.d__1.MoveNext()

                      (luckily, it's been stable now for 10 hours. Fingers crossed ;-) )

                      Comment


                        #12
                        Hmm, weird

                        Comment


                          #13
                          What device ref. is 260?

                          Comment


                            #14
                            Originally posted by alexbk66 View Post
                            What device ref. is 260?
                            It's the IKEA hub/gateway (Bridge):
                            Tradfri.Models.GatewayInfo Tradfri.Models.GatewayInfo
                            NTP 1.tradfri.pool.ntp.org String
                            Firmware 1.12.31 String
                            OtaUpdateState 0 Int64
                            GatewayUpdateProgress 0 Int64
                            CurrentTimeUnix 1608331688 Int64
                            CurrentTimeISO8601 2020-12-18T22:48:08.060784Z String
                            CommissioningMode 0 Int64
                            The9062 0 Int64
                            OtaType 5 Int64
                            FirstSetup 24.11.2020 17:57:50 DateTime
                            GatewayTimeSource 1 Int64
                            DST_StartMonth 3 Int64
                            DST_StartDay 28 Int64
                            DST_StartHour 1 Int64
                            DST_StartMinute 0 Int64
                            DST_EndMonth 10 Int64
                            DST_EndDay 31 Int64
                            DST_EndHour 1 Int64
                            DST_EndMinute 0 Int64
                            DST_TimeOffset 60 Int64
                            GatewayID 7e18115204400041 String
                            The9082 True Boolean
                            HomekitID 783-04-190 String
                            CertificateProv 1 Int64
                            AlexaPairStatus 0 Int64
                            The9106 0 Int64

                            Comment


                              #15
                              Thank you

                              Comment

                              Working...
                              X