Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trådfri Smart Plug #779

Closed
MrPsi opened this issue Sep 10, 2018 · 60 comments
Closed

Trådfri Smart Plug #779

MrPsi opened this issue Sep 10, 2018 · 60 comments

Comments

@MrPsi
Copy link

MrPsi commented Sep 10, 2018

Hi,

Do you think the new Trådfri smart plug will work with deconz right away when it is released? Or does support have to be added?
https://www.ikea.com/se/sv/catalog/products/90356166/

Maybe hard to know before it has been released? :)

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 11, 2018

Controlling the plug through the /lights resource will probably work without any changes. Supporting the new on/off switch and any metering the plug might provide will require changes.

@maxlein
Copy link

maxlein commented Sep 16, 2018

I just bought the new Outlet and it seems that it doesn't work with the current version. Gateway shows only my motion sensor. Is it configuration that needs to be changed or code?

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 16, 2018

Could you post deCONZ GUI screenshots of:

  • The node, incl. the endpoints and clusters;
  • the Node info panel;
  • The Cluster info panel of the Basic cluster, after reading the attributes;

@maxlein
Copy link

maxlein commented Sep 16, 2018

I am new to deconz, so I don't know if this is the right information:
Cluster info of the basic cluster I don't understand. I only see basic cluster info on the Osram plug.

image
image

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 16, 2018

The Cluster info panel reflects the last selected cluster. You need to click on the Basic cluster of the IKEA plug. Same for the Node info panel, you need to click on the IKEA plug - the above screenshot is for the RaspBee/ConBee.

Looking at the node, it should be exposed as a /lights resource already. Did you open the network from the old web app, or search for new devices in the Phoscon app? Opening the network from the GUI won't result in any resources being created.

It looks like the plug does support some measurement, through the Electrical Measurement cluster (0x0B04). Could you also post a screenshot of that cluster (again, after reading the attributes). We're interested in the

@manup
Copy link
Member

manup commented Sep 16, 2018

The plug in the screenshots isn't the IKEA outlet isn't it? That's only a OSRAM plug?!

@maxlein
Copy link

maxlein commented Sep 17, 2018

No, I have a Osram plug and an Ikea. But the ikea one doesn‘t even show up. I think I tried the old and new web gui to search for devices, but nothing but the already connected devices were found.

@manup
Copy link
Member

manup commented Sep 17, 2018

Does it have a reset button or something like that?

Note: IKEA devices usually only try once to join the network.

  • If they are factory new (which should be the case here)
  • Directly after they are powered (light search must be started before that)

@maxlein
Copy link

maxlein commented Sep 17, 2018

No, I couldn't find one. The motion sensor has a button but not the plug, at least not on the surface.
Will have a look at it again whn I am home today.

@maxlein
Copy link

maxlein commented Sep 17, 2018

So the default app you have, gives me this screen:
image
Blink worked, but I can't see the plug anywhere but on this page.
UPDATE: Light 1 is the Osram plug...
The other app finds nothing:
image

@manup
Copy link
Member

manup commented Sep 17, 2018

Looks like the plug is already assigned to another network, so it needs to be reset. You may try using the red reset button in the old webapp, the plug needs to be very close to the gateway.

As alternative you can use a Hue dimmer switch to reset the plug, holding it very close to it and press buttons I and O for over 10 seconds.

@zladukas
Copy link

@maxlein,
manual says:

FACTORY RESET YOUR DEVICE For control outlet:
Push a pin into the pinhole on bottom of the control outlet for at least 5 seconds.

use it to pair device.

@maxlein
Copy link

maxlein commented Sep 17, 2018

Thanks @zladukas, I threw the manual away and I could not find anything online!
I can see the plug now in decent gui.
image

@manup
Copy link
Member

manup commented Sep 17, 2018

Cool, interesting, so it doesn't have power measurement but as a goody it seems to support ZigBee Green Power which is needed to route Hue tab and soon to be released ZGP switches.

Is it shown in the Phoscon App under lights?

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 17, 2018

And, apparently, a different manufacturer, looking at the mac address. (I should have done so earlier and recognised the first screenshot it was an OSRAM plug).

There's apparently an inconsistency in general.xml: the generic (ZigBee 3.0) device 0x010a is an On/off plugin unit without a -, the 0x0010 ZHA and ZLL devices are On/off plug-in unit. Would this device ID be ZigBee 3.0 enough for the Hue bridge to support this plug?

soon to be released ZGP switches

Interesting...

I think we still need deCONZ to configure the ZGP enabled routers or the ZGP devices will only work when in direct range of the RaspBee or ConBee, see #117.

@manup
Copy link
Member

manup commented Sep 17, 2018

There's apparently an inconsistency in general.xml: the generic (ZigBee 3.0) device 0x010a is an On/off plugin unit without a -, the 0x0010 ZHA and ZLL devices are On/off plug-in unit. Would this device ID be ZigBee 3.0 enough for the Hue bridge to support this plug?

Not sure, maybe but we only know for sure after testing.

I think we still need deCONZ to configure the ZGP enabled routers or the ZGP devices will only work when in direct range of the RaspBee or ConBee, see #117.

Absolutely, I sadly hadn't time yet to dig deeper in the ZGP spec, hopefully it's not too complicated to configure the ZGP proxies.

@maxlein
Copy link

maxlein commented Sep 18, 2018

Yes, it shows in the Phsoscon app. Its also working in openhab through hue binding and in homekit. (y)

@Filialen
Copy link

Filialen commented Sep 21, 2018

IKEA now has released the package including both the plug and the new on/off switch.
Here are the details of the switch…

skarmklipp

skarmklipp2

20180921_195119438_ios

@sweebee
Copy link

sweebee commented Sep 23, 2018

Is the smart plug and remote already working? I cant get them paired. If it should work, how should i pair them?

@manup
Copy link
Member

manup commented Sep 23, 2018

manual says:

FACTORY RESET YOUR DEVICE For control outlet:
Push a pin into the pinhole on bottom of the control outlet for at least 5 seconds.

use it to pair device.

From a previous comment.

The remote isn't supported yet. See also Supported Devices

@sweebee
Copy link

sweebee commented Sep 23, 2018

Hm, i resetted it with the 5s method. Activated search for lights mode in deconz, but nothing shows up.

@RudolfRendier
Copy link

Make sure the relay clicks (twice?) and the light on the device starts blinking.
For me it does show up when searching for lights.

@manup
Copy link
Member

manup commented Sep 24, 2018

Often, at least in case of the IKEA bulbs, the device needs to be power cycled once after the reset in order to start joining.

@maxlein
Copy link

maxlein commented Sep 24, 2018

Well, I got the remote working. I just press the connect button a few times close to the antenna.
And with the plug, I just hold reset near the antenna, like described above from @zladukas

@jurriaan
Copy link
Contributor

The remote isn't supported yet. See also Supported Devices

@manup What's the issue with these switches, can I help with something to get them supported?

@robinjoh90
Copy link

Well, I got the remote working. I just press the connect button a few times close to the antenna.
And with the plug, I just hold reset near the antenna, like described above from @zladukas

@maxlein how did you add the remote? What type of switch did you choose when adding it?

@maxlein
Copy link

maxlein commented Sep 26, 2018

Are you talking about the remote, or the switch for the plug?
I am talking about the remote with the 5 diefferent buttons. And as I said, just pressing the rear connect button a few times near the antenna with an open gateway did the trick.

@Filialen
Copy link

I am talking about the remote with the 5 diefferent buttons. And as I said, just pressing the rear connect button a few times near the antenna with an open gateway did the trick.

We are talking about the small switch sold with the plug…
#779 (comment)
Of course, the remote control works. It has done that for a long time!

@Cavemanz
Copy link

I bought 2 of these today hoping to pair them with Conbee/Deconz. No matter what order I try to reset the plugs, nothing happens in the logs of the Deconz Docker. Ive tried more or less everything in this thread, and others. What am I missing?:(

Ive updated to the latest release of deconz and the latest firmware for Conbee.

@manup
Copy link
Member

manup commented Apr 17, 2019

I've paired one yesterday, here is what I did:

  1. Start light search in Phoscon App
  2. Press the button with a needle for approx. 10 seconds
  3. Pull out the plug from power, reinsert after 5 seconds

It was then discovered quickly.

@Cavemanz
Copy link

Cavemanz commented Apr 17, 2019

I've paired one yesterday, here is what I did:

  1. Start light search in Phoscon App
  2. Press the button with a needle for approx. 10 seconds
  3. Pull out the plug from power, reinsert after 5 seconds

It was then discovered quickly.

How fast do you pull the plug on step 2? Straight after the "click"?
I tried several variants, but its just not happening..
No matter what I do, the plug always glows solid white after removing and reinserting it from the needle trick.
My install is stable and working nicely, so I dont see what the issue might be..

@manup
Copy link
Member

manup commented Apr 18, 2019

How fast do you pull the plug on step 2? Straight after the "click"?

After a few seconds.

Do you have the ConBee connected directly to PC/RPi? If yes please try with an USB-extension cable.

@Cavemanz
Copy link

Its connected through an USB extension already. Tried doing the include further away from the server, but no success. The plug only blinks for 3-4 seconds before going solid white. No matter when I reinsert the plug, it always is solid white afterwards.

@masonevans
Copy link

@Cavemanz I had trouble resetting a couple of these. It turns out I just wasn't pressing hard enough. But if you're getting to the flashing then that doesn't seem like your issue. Have you tried holding a pin in for longer? The reset sequence is something like "click... flash a couple times... turn solid... fade out... flash again". You need to hold until you get to that second flashing phase, then deCONZ should find it.

@Cavemanz
Copy link

I do get the second flashing phase, but Deconz doesnt pick it up. I assume these logs from the docker aint related?

19:25:10:405 Search sensors done,
19:24:22:385 Beacon src: 0xD5F3 ch: 11 updateId: 1,
19:24:21:873 Beacon src: 0xEBC2 ch: 11 updateId: 1,
19:24:21:857 Beacon src: 0x2A08 ch: 11 updateId: 1,
19:24:21:873 Beacon src: 0xD5F3 ch: 11 updateId: 1,
19:24:38:152 Beacon src: 0xD5F3 ch: 11 updateId: 1,
19:24:38:664 Beacon src: 0xEBC2 ch: 11 updateId: 1,
19:24:44:972 ZCL attribute report 0x8418260000DA2415 for cluster 0x0300, ep 0x03,
19:24:44:003 ZCL attribute report 0x8418260000DA2415 for cluster 0x0300, ep 0x03,
19:24:56:672 Beacon src: 0xEBC2 ch: 11 updateId: 1,
19:24:56:672 Beacon src: 0xD5F3 ch: 11 updateId: 1,
19:24:57:184 Beacon src: 0xEBC2 ch: 11 updateId: 1,
19:24:57:184 Beacon src: 0xD5F3 ch: 11 updateId: 1

@manup
Copy link
Member

manup commented Apr 24, 2019

The Beacons are a good sign that some device (the outlet?) tries to join.

One thing you can check: do you have by any chance multiple Phoscon App tabs open, perhaps on multiple devices? If so please close all tabs but the one in which the light search is running.

@Cavemanz
Copy link

Sadly, I only had 1 window open on my main computer. Any other suggestions I could try? Getting a bit desperate. Id return the 2 I bought to IKEA but its a 1h drive so Id rather not if possible :)

@manup
Copy link
Member

manup commented Apr 24, 2019

Hmm strange, by the way which deCONZ and ConBee firmware are you running? Latest is deCONZ 2.05.64 and firmware version 0x26330500.

@Cavemanz
Copy link

Version 2.05.63 / 3.4.2019
Firmware 26320500.
Updated to the newest firmware at the time, is there a fresh release now?
Ill grab 2.05.64 Docker image and try again.

@manup
Copy link
Member

manup commented Apr 24, 2019

Yes release is online, might be worth a try.

@Cavemanz
Copy link

Anything in these logs that makes sense? Upgraded to newest version of Deconz and the firmware for Conbee.

https://pastebin.com/2FTYW84q

@manup
Copy link
Member

manup commented Apr 24, 2019

Log looks kinda ok, running out of ideas here.

Maybe try to power-off the the other mains powered devices while joining the plug? This should force it to join directly via ConBee.

@Cavemanz
Copy link

Tried that now, no luck either. I dont get any Beacon log entries now either with my 4 lights switched off. I increased the search time to 3 min. It should show up as an actionable entry in the Lights section, right?

@manup
Copy link
Member

manup commented Apr 24, 2019

Yes should look like this:

image

Do you have access to the deCONZ GUI via VNC?

Only remaining thing to check are the Zigbee network parameters in the GUI.

@Cavemanz
Copy link

Into the Docker container you mean? I havent tried that before.
image

@manup
Copy link
Member

manup commented Apr 24, 2019

That's the Phoscon App, showing only a limited set of the parameters.

The full Zigbee configuration is only visible in deCONZ GUI, with marthocs docker container it can be accessed via VNC (unfortunately I haven't done this myself yet) .

Configuration looks like

image

@Cavemanz
Copy link

Managed to enable it in my docker compose file:
image

@manup
Copy link
Member

manup commented Apr 24, 2019

Hmm, these look fine too, all parameters are valid.
Very strange

@Cavemanz
Copy link

I powered on my 4 lights again. Tried pairing both of my plugs. The Beacon src messages are back now, but nothing happens :/

https://pastebin.com/mMtZ01Ti

@manup
Copy link
Member

manup commented Apr 24, 2019

The beacons come from the lights, they are responses to the plug which requests them in order to find suitable routers to join.

@Cavemanz
Copy link

Ok, Im close to giving up on these. Annoying that they wont pair seeing how Philips/Osram/Xiaomi pairs without issue :/

@r41d
Copy link

r41d commented Jun 18, 2019

A lot of times in this thread a hole in the bottom of the plug is mentioned. Mine doesn't have one. How can I add it in deconz?

@masonevans
Copy link

@r41d if yours really doesn't have a hole in the bottom then you should return it because it's defective. But make sure you're looking in the right place. I would describe it as the "outside" more than the bottom, it's on the curved part of the plastic, on the side between the male part of the plug and the female part of the plug. It's pretty small, about the size of a pin, but it's possible the plastic didn't get punched/molded properly and the hole is filled in.

@r41d
Copy link

r41d commented Jun 19, 2019

After taking pictures to show that I see no hole and uploading them I took another look and finally spotted the tiny hole at the bottom ^^. It's funny that you don't need it to for regular pairing with the official Gateway but that it's necessary for pairing with ConBee.
The pairing then worked flawlessly :)
What confused me was that the category was just called Light, it wasn't obvious to me that pairing of power plugs has to be done through this; and I didn't notice the tiny hole, plus the normal pairing doesn't use it.

@thowi
Copy link

thowi commented Dec 15, 2019

It was really hard to pair mine. I tried multiple times to pair the socket, but failed many times.
At some point, I got saw "Range extender" by IKEA in Phoscon, but it was marked gray. I removed it, paired again, and eventually I saw it properly listed as "On/Off plug-in unit 13". Not sure why it's "13", maybe because I had to try 13 (?) times.
Glad it worked finally, but quite frustrating to the point that I thought I'd have to trash the device.

Does anybody own the IKEA gateway an know if pairing is also such a PITA there?
I.e., are the devices the problem, or can this be improved in Conbee/deCONZ?

@ebaauw
Copy link
Collaborator

ebaauw commented Dec 15, 2019

The IKEA hub works very differently: it only supports touchlink pairing. You need to touchlink-pair a controller to the hub, and then touchlink-pair the controller to the light, plug, repeater, or window blind. Note that the Trådfri motion sensors act as controllers.

@austwhite
Copy link

I know this is closed, but curious if it got resolved? Could it be the Zigbee channel being 11?
I use channel 15, was considering buying a couple of these plugs, but I don't want to waste money if they are temperamental to install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests