dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 498 forks source link

[fixed] 2.05.49/50 Ikea plug/adapter, unable to pair #1032

Closed olemr closed 5 years ago

olemr commented 5 years ago

The Ikea Tradfri adapter (aka wall plug) have been out of stock for some time. Yesterday it was back in stock and I bought some.

Now, I'm not able to pair it to deconz (running headless on Ubuntu, no GUI) I have tried: (with Ikea adapter 5-10cm from ConBee) 1 - open network, power on adapter - nothing detected by PWA or old WEB app 2 - reset with pin in hole for 5s, with and without subsequent power cycle - nothing detected (no feedback on adapter LED when doing this) 3 - reset with HUE1 I/O for 10s, with and without subsequent power cycle - nothing detected (adapter LED is dimmed when doing this) 4 - reset with old WEB app Touchlink, with and without subsequent power cycle - nothing detected (no feedback on adapter LED when doing this) Touchlink Blink dims the light on the Ikea adapter but does not work the relay.

I was originally on 2.05.50, but noticed some issues to be fixed in .51, so I downgraded to .49 No luck.

Could these re-stocked Ikea adapters be different from the previous ones? Could deconz support for these 'lights' have been broken since september?

I'm at a loss. Any suggestions?

Edit: I was thinking; to see what is happening I could perhaps move the ConBee over to a PC and run the full deconz GUI SW there? On Z-wave all pairing data is stored on the stick. Is that the case for the ConBee as well?

olemr commented 5 years ago

Well, my face is red. Turned out I was not pressing the pin into the reset hole firmly enough. Lesson learned: Adapters/plugs (even without the ON/OFF switch bundle) straight out of the box has to be reset locally using a pin. Reset using a HUE1 remote or Touchlink is not working.

Observation: unlike the bulbs, the adapter/plug restores its ON/OFF state after a power outage.

manup commented 5 years ago

Reset using a HUE1 remote or Touchlink is not working.

Interesting, good to now, at least for the lights it works I've had expected it's the same for the plug.

ebaauw commented 5 years ago

Is the plug a ZLL or ZHA device? Is it on the latest IKEA firmware? Can you reset it using the IKEA remote?

olemr commented 5 years ago

Don't know about ZLL or ZHA. Sorry. REST data is:

  "36": {
    "etag": "9c51cf263f9f1db411c290c8512d084e",
    "hascolor": false,
    "manufacturername": "IKEA of Sweden",
    "modelid": "TRADFRI control outlet",
    "name": "Light 36",
    "state": {
      "alert": "none",
      "bri": 254,
      "on": true,
      "reachable": false
    },
    "swversion": "1.4.020",
    "type": "On/Off plug-in unit",
    "uniqueid": "d0:cf:5e:ff:fe:7d:3b:a0-01"
  },

Haven't tried using an Ikea remote. They are all (10 of them) paired with ConBee now.

I can now remove all of my Nexa 433Mhz wall plugs and take Tellstick NET & DUO offline :-)

manup commented 5 years ago

Does the outlet support dimming? If not we should remove the state/bri attribute.

Filialen commented 5 years ago

No, it's on/off only.

cweitkamp commented 5 years ago

Does the outlet support dimming? If not we should remove the state/bri attribute.

@manup Did you already find the time to remove the state/bri property for the TRADFRI control outlet?

ebaauw commented 5 years ago

This should be done for any On/Off plug-in unit and any On/Off light, notably for the innr SP 120 and the Busch-Jaeger RM01, currently whitelisted in homebridge-hue to ignore state.bri. Thanks.

wvuyk commented 5 years ago

That sure would make it easier to recognise a on/off plug...

manup commented 5 years ago

This should be done for any On/Off plug-in unit and any On/Off light, notably for the innr SP 120 and the Busch-Jaeger RM01, currently whitelisted in homebridge-hue to ignore state.bri. Thanks.

For now we should apply the level cluster filter to skip state.bri on a per device base, I don't trust the device ids anymore.

@manup Did you already find the time to remove the state/bri property for the TRADFRI control outlet?

This will be done for 2.05.58. However maybe brightness control is possible and state.bri comes back later.

I've received a Ikea control outlet for testing. Did some tests yesterday.

I was hoping for power consumption or brightness control after the update, but both aren't supported.

However, beside the brightness control doing nothing for real, the cluster is full functional and updates its values. A Move to Level with on/off does also turn on/off the outlet.

Maybe the brightness control can be enabled somehow. The control outlet has a manufacturer specific cluster 0xFC7C. I've issued a discovery attributes command to it and the cluster returned two attributes.

image

The meaning is still unknown, I haven't tried to write these, since I was afraid to break my only test unit :)

I've also found some new attributes in the basic cluster:

image

My next idea was to connect the outlet to the IKEA gateway and do some sniffing, but unfortunately the gateway doesn't connect to the IKEA app anymore. I'm not sure how to fix this.

ebaauw commented 5 years ago

I suspect the IKEA and innr outlets (and others) support the Level control cluster for the sole purpose of turning on or off on the Move to Level (with On/Off) command. Unlike Philips Hue, the innr and IKEA switches, dimmers, and even motion sensors communicate directly with the lights, and some are hardwired to transmit this command instead of On or Off.

manup commented 5 years ago

I suspect the IKEA and innr outlets (and others) support the Level control cluster for the sole purpose of turning on or off on the Move to Level (with On/Off) command. Unlike Philips Hue, the innr and IKEA switches, dimmers, and even motion sensors communicate directly with the lights, and some are hardwired to transmit this command instead of On or Off.

Indeed that makes sense, still wondering about the purpose of the manufacturer specific cluster.

lbschenkel commented 5 years ago

After connecting, the firmware was updated from version 1.4.020 to 2.0.019

@manup, how did you get firmware version 2.0.019? ikea-ota-download.py didn't download anything for 0x1101, and I manually checked http://fw.ota.homesmart.ikea.net/feed/version_info.json and there is nothing there either.

manup commented 5 years ago
f = urllib.urlopen("http://fw.ota.homesmart.ikea.net/feed/version_info.json")
#f = urllib.urlopen("http://fw.test.ota.homesmart.ikea.net/feed/version_info.json")

You can edit the ikea-ota-download.py file and use the test feed url.

Be aware as the name suggests this firmware might cause problems or even brick the device.

lbschenkel commented 5 years ago

Right. I don't have the IKEA gateway, in which circumstances does it update to test firmware? Is there a setting to be in a "beta channel" or something like that?

manup commented 5 years ago

I don't know, just saw that url somewhere on the internet and it happily works the same as the other url.

cweitkamp commented 5 years ago

This will be done for 2.05.58. However maybe brightness control is possible and state.bri comes back later.

Sounds good. Thank you.

manup commented 5 years ago

With 2.05.58, the IKEA control outlet and on/off switch are supported, closing the issue for now.