Announcement

Collapse
No announcement yet.

IKEA Tradfri and HomeSeer -> TrådfriSeer!

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

  • Moskus
    replied
    I just handled that such a message. It turns out the key (from the back of the unit) was wrong.

    Apparently, the new version isn't as forgiving as the previous firmware.

    Leave a comment:


  • IanIreland
    replied
    I have been having a few 'drop outs' which resolved if I de-initialised and then re-initialised the plugin.
    I saw the updated version and installed it. Now I get;
    Initializing plug-in(2): TradfriSeer Instance::Value cannot be null. Parameter name: sSTACK: Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessag e(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Mess ageData& msgData, Int32 type) at HomeSeerAPI.IPlugInAPI.InitIO(String port) at Scheduler.clsHSPI.CheckInterfaces()

    Leave a comment:


  • Moskus
    replied
    Originally posted by mrhappy View Post
    Thanks for the fix, all working OK here
    Great!

    I have to admit I was a little nervous. I've only tested the solution for 10 minutes after it was fully implemented, and only on one system!
    However, it wasn't that much of a change, so I figured if it worked once, I had found the solution.

    Leave a comment:


  • mrhappy
    replied
    Originally posted by Moskus View Post
    Yeah, that is understandable. They completely took us (the developer nerds) by surprise. A little heads up would be nice!


    Anywhooo, it's fixed now (or so I hope). See version 0.0.1.5 in the first post!
    Thanks for the fix, all working OK here

    Leave a comment:


  • Moskus
    replied
    Originally posted by mrhappy View Post
    Many thanks, I was reading twitter earlier before I was aware of the update and there is some considerable anger directed towards Ikea for this little change!
    Yeah, that is understandable. They completely took us (the developer nerds) by surprise. A little heads up would be nice!


    Anywhooo, it's fixed now (or so I hope). See version 0.0.1.5 in the first post!

    Leave a comment:


  • mrhappy
    replied
    Originally posted by Moskus View Post
    Known issue:
    Many thanks, I was reading twitter earlier before I was aware of the update and there is some considerable anger directed towards Ikea for this little change!

    Leave a comment:


  • Moskus
    replied
    Known issue:

    Leave a comment:


  • mrhappy
    replied
    Originally posted by Moskus View Post
    Yeah, it IS very weird. Here's the command part of the JSON-string
    Code:
    "3311":[{"5850":0,"5851":254,"9003":0}]
    As you can see there IS no color part of that (we're using 5706 in the plugin). I can't tell you why that is,

    I would remove it and re-add it to the hub. I'm not sure, but I believe it will get the same ID as it had before, but do a bulb rescan anyways.
    This worked (thought I had tried this apologies!), kept the original devices also which is good as they are referenced in my events. Guess might be more of a firmware issue in the hub if it's not sending the right data back? Very strange but I won't worry unless it happens again, thanks.

    Leave a comment:


  • Moskus
    replied
    Yeah, it IS very weird. Here's the command part of the JSON-string
    Code:
    "3311":[{"5850":0,"5851":254,"9003":0}]
    As you can see there IS no color part of that (we're using 5706 in the plugin). I can't tell you why that is,

    I would remove it and re-add it to the hub. I'm not sure, but I believe it will get the same ID as it had before, but do a bulb rescan anyways.

    Leave a comment:


  • mrhappy
    replied
    Originally posted by Moskus View Post
    Yes, the groups are re-created every time the plugin i started. I would suggest you just hide them if you don't use them, I'll see if I can add a "don't re-create groups" option.

    The IP address is not stored in the hub device, only in the ini file. So far I'm not using the hub device for anything (except showing online or offline status) but I'm keeping the options open to support more than one hub.

    It IS this bulb we are talking about?
    Code:
    {"9001":"RGB Bulb","9002":1506113303,"9003":65546,"9020":1507282865,"5750 ":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":254,"9003":0,"5708":0,"5707":0,"5709":38011 ,"5710":24904,"5711":0,"5706":"e78834"}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E27 CWS opal 600lm","2":"","3":"1.3.002"}}
    Code:
    {"9001":"TRADFRI bulb E27 CWS opal 600lm","9002":1505920319,"9020":1507288330,"3311":[{"5850":0,"5851":254,"5707":0,"9003":0,"5708":0,"5709":42926,"5710":21299,"5711":0,"5706":"dc4b31"}],"9003":65543,"9054":0,"5750":2,"9019":1,"3":{"0":"IKEA of Sweden","1":"TRADFRI bulb E27 CWS opal 600lm","2":"","6":1,"3":"1.3.002"}}

    This is weird!
    Thanks for looking into this, point taken on the groups and that is what I have done now. I have pretty much settled on my groups now so I shouldn't need to change them.

    This is the suspect device (the RGB bulb works just fine);

    Code:
    Oct-06 12:07:42	TradfriSeer Debug	GetDeviceByID, got json-string: {"9001":"Dining Table","9002":1504900111,"9003":65536,"9020":1507283492,"575 0":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":254,"9003":0}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E27 WS opal 980lm","2":"","3":"1.2.217"}}
    Which produces an error every two seconds in the HS log of;

    Code:
    GetColor() ERROR: Object reference not set to an instance of an object. --- {"9001":"Dining Table","9002":1504900111,"9003":65536,"9020":1507290693,"5750":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":254,"9003":0}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E27 WS opal 980lm","2":"","3":"1.2.217"}}
    Which from what I can see the only thing different is that the 3311 array is far shorter than in the other similar devices?

    Leave a comment:


  • Moskus
    replied
    Yes, the groups are re-created every time the plugin i started. I would suggest you just hide them if you don't use them, I'll see if I can add a "don't re-create groups" option.

    The IP address is not stored in the hub device, only in the ini file. So far I'm not using the hub device for anything (except showing online or offline status) but I'm keeping the options open to support more than one hub.

    It IS this bulb we are talking about?
    Code:
    {"9001":"RGB Bulb","9002":1506113303,"9003":65546,"9020":1507282865,"5750 ":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":254,"9003":0,"5708":0,"5707":0,"5709":38011 ,"5710":24904,"5711":0,"5706":"e78834"}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E27 CWS opal 600lm","2":"","3":"1.3.002"}}
    Code:
    {"9001":"TRADFRI bulb E27 CWS opal 600lm","9002":1505920319,"9020":1507288330,"3311":[{"5850":0,"5851":254,"5707":0,"9003":0,"5708":0,"5709":42926,"5710":21299,"5711":0,"5706":"dc4b31"}],"9003":65543,"9054":0,"5750":2,"9019":1,"3":{"0":"IKEA of Sweden","1":"TRADFRI bulb E27 CWS opal 600lm","2":"","6":1,"3":"1.3.002"}}

    This is weird!

    Leave a comment:


  • mrhappy
    replied
    Originally posted by Moskus View Post
    This seems really weird to me. If you enable debug logging and press the "Rescan bulbs" button it should display the config it receives for each bulb in JSON format. Can you post it?



    No, you can change location and rename it to anything you want, it shouldn't matter to the plugin. As long as the key on the back of the hub is the same, it shouldn't matter. I'm using the key as an identifier.

    Can you post screenshots of from the "Advanced" tab for both devices?

    Again, not that it would matter, but the IP stays the same, right?
    I think I am my own worst enemy here because I have been changing a few things and know how difficult that might make debugging.

    Earlier when I restarted the plugin it appears that it scanned and got some groups from the hub that I had deleted from inside HS (I didn't need them, I'm guessing I should be keeping the HS devices regardless?) so it created the group devices. I've kept those devices but in addition it created this new Tradfri hub device.

    I deleted the old hub device as I thought the new one replaced it but now I am wondering - is the IP and key stored in this device? Reason being I have restarted the plugin again and the IP/key have now gone. They are missing from the config page, ini file however the 'new' hub device does have the key stored in it (see attached).

    On the first issue I have re-scanned the bulbs and this is the debug entries as per the HS log.

    Oct-06 12:07:47 TradfriSeer Debug Gettin bulbs done!
    Oct-06 12:07:47 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65548
    Oct-06 12:07:47 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65537
    Oct-06 12:07:46 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65541
    Oct-06 12:07:46 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65542
    Oct-06 12:07:45 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65536
    Oct-06 12:07:45 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65544
    Oct-06 12:07:44 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65539
    Oct-06 12:07:44 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65540
    Oct-06 12:07:43 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65546
    Oct-06 12:07:43 TradfriSeer Debug Device found for bulb with key: 7O84ZSH7MkAqICbi, ID=65543
    Oct-06 12:07:42 TradfriSeer Debug CheckAndCreateBulbDevices() starting...
    Oct-06 12:07:42 TradfriSeer Debug GetBulbListWhenHubIsOnline() done!
    Oct-06 12:07:42 TradfriSeer Debug GetBulbListWhenHubIsOnline(): Total bulbs found: 10
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"TRADFRI wireless dimmer","9002":1506956738,"9003":65547,"9020":1507218283,"15 009":[{"9003":0}],"5750":0,"9054":0,"9019":0,"3":{"6":3,"0":"IKEA of Sweden","1":"TRADFRI wireless dimmer","2":"","3":"1.2.248","9":87}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Upstairs Hall Lamp","9002":1506706649,"9003":65548,"9020":1507286994,"5750 ":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":109,"9003":0}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E27 opal 1000lm","2":"","3":"1.2.214"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Desk Lamp","9002":1504898088,"9003":65537,"9020":1507281406,"5750 ":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":254,"9003":0,"5708":0,"5707":0,"5709":30140 ,"5710":26909,"5711":0,"5706":"f1e0b5"}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E14 WS opal 400lm","2":"","3":"1.2.217"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Bulb 2","9002":1505038592,"9003":65541,"9020":1507286555,"5750":2 ,"9054":0,"9019":1,"3311":[{"5850":0,"5851":254,"9003":0}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb GU10 W 400lm","2":"","3":"1.2.214"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Bulb 1","9002":1505038667,"9003":65542,"9020":1507287369,"5750":2 ,"9054":0,"9019":1,"3311":[{"5850":0,"5851":254,"9003":0}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb GU10 W 400lm","2":"","3":"1.2.214"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Dining Table","9002":1504900111,"9003":65536,"9020":1507283492,"575 0":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":254,"9003":0}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E27 WS opal 980lm","2":"","3":"1.2.217"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Downstairs Hall Light","9002":1505145852,"9003":65544,"9020":1507283024,"575 0":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":51,"9003":0}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E27 opal 1000lm","2":"","3":"1.2.214"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Left Side","9002":1505147126,"9003":65539,"9020":1507282201,"5750 ":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":1,"9003":0}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E14 W op/ch 400lm","2":"","3":"1.2.214"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Right Side","9002":1505147152,"9003":65540,"9020":1507282163,"5750 ":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":1,"9003":0}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E14 W op/ch 400lm","2":"","3":"1.2.214"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"RGB Bulb","9002":1506113303,"9003":65546,"9020":1507282865,"5750 ":2,"9054":0,"9019":1,"3311":[{"5850":0,"5851":254,"9003":0,"5708":0,"5707":0,"5709":38011 ,"5710":24904,"5711":0,"5706":"e78834"}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E27 CWS opal 600lm","2":"","3":"1.3.002"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Lounge Lamp","9002":1505145822,"9003":65543,"9020":1507288038,"5750 ":2,"9054":0,"9019":1,"3311":[{"5850":1,"5851":127,"9003":0,"5708":0,"5707":0,"5709":30140 ,"5710":26909,"5711":0,"5706":"f1e0b5"}],"3":{"6":1,"0":"IKEA of Sweden","1":"TRADFRI bulb E27 WS opal 980lm","2":"","3":"1.2.217"}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"Remote control","9002":1506113234,"9003":65545,"9020":1506894190,"1 5009":[{"9003":0}],"5750":0,"9054":0,"9019":1,"3":{"6":3,"0":"IKEA of Sweden","1":"TRADFRI remote control","2":"","3":"1.2.214","9":87}}
    Oct-06 12:07:42 TradfriSeer Debug GetDeviceByID, got json-string: {"9001":"TRADFRI remote control","9002":1505147060,"9003":65538,"9020":1506873124,"1 5009":[{"9003":0}],"5750":0,"9054":0,"9019":1,"3":{"6":3,"0":"IKEA of Sweden","1":"TRADFRI remote control","2":"","3":"1.2.214","9":74}}
    Oct-06 12:07:42 TradfriSeer Debug GetBulbListWhenHubIsOnline(): GetBulbs() queued...
    Oct-06 12:07:42 TradfriSeer Debug GetBulbListWhenHubIsOnline(): Hub is online, getting bulbs...
    Oct-06 12:07:42 TradfriSeer Debug GetBulbListWhenHubIsOnline() starting...
    Oct-06 12:07:42 TradfriSeer Debug GettingBulbsAsync() starting...
    The devices Lounge Lamp and also Dining Table Lamp are the same type of bulb (same firmware version also) however very strangely the 3311 array is much shorter and has a load of parameters missing?
    Last edited by mrhappy; November 6, 2017, 12:26 PM.

    Leave a comment:


  • Moskus
    replied
    Originally posted by mrhappy View Post
    Yeah controlling from the app works just fine in terms of warm/normal/cool, I am extremely confused with it (it is still giving me the error) and to me I just wonder is it confused that it thinks it is a RGB bulb but it isn't?
    This seems really weird to me. If you enable debug logging and press the "Rescan bulbs" button it should display the config it receives for each bulb in JSON format. Can you post it?


    Originally posted by mrhappy View Post
    Also one other minor bug appears that if I restart the plugin and have moved the Tradfri hub device (to another room possibly?) it creates a new device and uses this device for updates. Not a massive problem but thought I would mention it.
    No, you can change location and rename it to anything you want, it shouldn't matter to the plugin. As long as the key on the back of the hub is the same, it shouldn't matter. I'm using the key as an identifier.

    Can you post screenshots of from the "Advanced" tab for both devices?

    Again, not that it would matter, but the IP stays the same, right?

    Leave a comment:


  • mrhappy
    replied
    Also one other minor bug appears that if I restart the plugin and have moved the Tradfri hub device (to another room possibly?) it creates a new device and uses this device for updates. Not a massive problem but thought I would mention it.

    Leave a comment:


  • mrhappy
    replied
    Yeah controlling from the app works just fine in terms of warm/normal/cool, I am extremely confused with it (it is still giving me the error) and to me I just wonder is it confused that it thinks it is a RGB bulb but it isn't?

    Leave a comment:

Working...
X