Announcement

Collapse
No announcement yet.

Stopped working yet again

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

    Stopped working yet again

    Haven't controlled an Ikea light via HS for a few days but I noticed one light was showing as on when I knew it wasn't when I used the HS Web interface this morning. Tried switching it off and then on again. No change. I note the following in the log
    Jul-15 08:11:00 AK Ikea ERROR [501]: ValueChanged(196608): System.Collections.Generic.KeyNotFoundException: The given key '501' was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <51aae36473e7439cb14534b3d8714641>:0 at HSPI_AKTemplate.ControllerBase.ValueChanged (System.Int32 devID, System.Double value, System.Nullable`1[T] oldval, System.String cause, System.String ControlString) [0x00006] in :0
    Jul-15 08:10:57 AK Ikea ERROR [498]: ValueChanged(100): System.Collections.Generic.KeyNotFoundException: The given key '498' was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <51aae36473e7439cb14534b3d8714641>:0 at HSPI_AKTemplate.ControllerBase.ValueChanged (System.Int32 devID, System.Double value, System.Nullable`1[T] oldval, System.String cause, System.String ControlString) [0x00006] in :0
    Jul-15 08:10:50 AK Ikea ERROR [502]: ValueChanged(100): System.Collections.Generic.KeyNotFoundException: The given key '502' was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <51aae36473e7439cb14534b3d8714641>:0 at HSPI_AKTemplate.ControllerBase.ValueChanged (System.Int32 devID, System.Double value, System.Nullable`1[T] oldval, System.String cause, System.String ControlString) [0x00006] in :0
    Malcolm

    #2
    Originally posted by MalcolmS View Post
    Haven't controlled an Ikea light via HS for a few days but I noticed one light was showing as on when I knew it wasn't when I used the HS Web interface this morning. Tried switching it off and then on again. No change. I note the following in the log
    Jul-15 08:11:00 AK Ikea ERROR [501]: ValueChanged(196608): System.Collections.Generic.KeyNotFoundException: The given key '501' was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <51aae36473e7439cb14534b3d8714641>:0 at HSPI_AKTemplate.ControllerBase.ValueChanged (System.Int32 devID, System.Double value, System.Nullable`1[T] oldval, System.String cause, System.String ControlString) [0x00006] in :0
    Jul-15 08:10:57 AK Ikea ERROR [498]: ValueChanged(100): System.Collections.Generic.KeyNotFoundException: The given key '498' was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <51aae36473e7439cb14534b3d8714641>:0 at HSPI_AKTemplate.ControllerBase.ValueChanged (System.Int32 devID, System.Double value, System.Nullable`1[T] oldval, System.String cause, System.String ControlString) [0x00006] in :0
    Jul-15 08:10:50 AK Ikea ERROR [502]: ValueChanged(100): System.Collections.Generic.KeyNotFoundException: The given key '502' was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <51aae36473e7439cb14534b3d8714641>:0 at HSPI_AKTemplate.ControllerBase.ValueChanged (System.Int32 devID, System.Double value, System.Nullable`1[T] oldval, System.String cause, System.String ControlString) [0x00006] in :0
    Interesting, looks like the plugin doesn't see the HS devices with ref. 498, 501, 502? Can you please check the ref. numbers if they exist?
    And I guess if they do exist - then restarting plugin should fix the problem.

    Comment


      #3
      Eh? Those are the devices I'm controlling! Same errors after a restart (HS, Plug-in and ikea gateway)
      Jul-15 22:53:05 AK Ikea ERROR [501]: ValueChanged(196608): System.Collections.Generic.KeyNotFoundException: The given key '501' was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in &lt;51aae36473e7439cb14534b3d8714641&gt;:0 at HSPI_AKTemplate.ControllerBase.ValueChanged (System.Int32 devID, System.Double value, System.Nullable`1[T] oldval, System.String cause, System.String ControlString) [0x00006] in :0
      Malcolm

      Comment


        #4
        I checked the source code - the devices are added to the dictionary when IKEA Gateway returns the list of devices.
        So it means that they are not added to the dictionary only if (a) communication doesn't work or (b) the gateway doesn't return the devices in response to requests /15001
        Jul-17 0:51:03 AK Ikea [6113]: Response: [2.05 Content] '{"9001":"TRADFRI driver","9002":1584619779,"9020":1584619787,"5750":2,"9003": 65539,"9054":0,"9019":0,"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI Driver 10W","2":"","3":"1.2.245"},"3311":[{"5850":0,"5851":0,"9003":0}]}'
        Jul-17 0:51:03 AK Ikea [6113]: Request(GET): /15001/65539 []
        Jul-17 0:51:03 AK Ikea [6113]: Response: [2.05 Content] '[65539,65551,65538,65537,65546,65536,65552]'
        Jul-17 0:51:03 AK Ikea [6113]: Request(GET): /15001 []

        So, can you please:

        1. Provide more info, i.e. OS, Plugin Version
        2. In PLUG-INS => Manage enable "Developer Mode"
        3. Restart the plugin - it will open Console Window (are you on Windows?) - check for any errors there
        4. Go to PLUG-INS => IK IKEA => Config Page
        5. Enable Log (if you enable Log for gateway - it also enables Log for each child device)
        6. Post the screenshot of the config page
        7. Post the logs

        Comment

        Working...
        X