Add support for Ikea Tradfri socket

Recently, Ikea has released a switchable socket in their Tradfri line.

Some articles have appeared on the internet about it. Example: https://www.theverge.com/circuitbreaker/2018/8/23/17772872/ikea-smart-plug-iot-tradfri.

The price seems pretty cheap: around 10 euro for a socket and 20 euro for a socket and remote switch. Also the build quality seems to be OK. Given the price and quality, I think it will become a success.

In the Netherlands, Ikea has started selling these sockets and it would be awesome to control them from Homeassistant.

However, I think that the Tradfri component does not support the sockets yet. I have purchased two and added them to the Tradfri gateway. They show up in the Tradfri Android/iOS app and I can switch them on and off.

Although they are discovered in Homeassistant as ā€˜sensors’, they do not show up as a ā€˜switch’, so I am unable to control them. I think something needs to be done over here. If am not a developer, but if I can assist in any way, I’d love to.

Thanks in advance!
Jurgen.

Looks like support in pytradfri is there:
https://github.com/ggravlingen/pytradfri/commit/184abffd31bcc0f228e37253538a3cdc06b48f26

My guess is that this will be in the next release of HA.

Good news.
Thanks for pointing!

/Jurgen.

Just to let you know, indeed, tradfri socket support has been added to Homeassistant 0.80 and it works fine. Sockets get discovered and appear as a switch.

Turning the socket on and off works like a breeze, just as the status update when the socket gets switched on and off from another source.

1 Like

Noob question here… I’ve got the Tradfri gateway installed and configured in Hassio. Should the gateway auto detect the Tradfri sockets?? I’m not seeing my new socket in Hassio, and there’s no means to add sockets via the Ikea app either. What am I missing? Do they require a ā€œsteeringā€ device (like bulbs???).

Edit: Are there any Tradfri services available to scrape data from the gateway? I’m not seeing any available calls to try and interrogate it?? I’ve also set the allow_tradfri_groups in config as well.

Thanks in advance.

Hi Soma,

The new sockets are available in Homeassistant from version 0.80. Are you sure you are using version 0.80 or newer?

Homeassistant will only discover devices at startup. Have you restarted HASS?

Thanks for the reply @jurgeng74. I am currently running Home Assistant version 0.84.6. I have restarted a couple of times and I have discovery enabled in my configuration.yaml.

Hassio did discover the gateway without issue, and I’m also able to find the gateway with the IKEA app.

Edit: The gateway firmware is 1.4.15

Hi Soma,

Just to be sure: Have you paired the sockets with the gateway and do you see the sockets appear in the tradfri app on your phone?

Greetings @jurgeng74 - Thanks for following up and for your willingness to assist. It was in fact a noob user shortcoming as I had suspected previously.

Unlike the Tuya/Stitch sockets I’m evaluating (that I can acquire via a service call), all the Tradfri sockets require a steering device to get provisioned onto the gateway.

All operational now and so far all devices are stable. I’m assessing the long term stability of several devices vendors to determine stability for an upcoming build/automation project.

Mahalo!

Sorry for necro-posting on such an old thread, but I couldn’t find a better place to put this information. If any mods think there’s a better place then please move it, but I couldn’t find this procedure anywhere else, either here or on Google.

As of December 2021 I have been successfully adding Ikea Tradfri sockets to the Tradfi Hub without using a remote / ā€œsteeringā€ device. I have no clue how long this has been possible.

The procedure that has been working for me is as follows:

  1. Take the top cover off the Ikea Tradfri Hub - you will need access to the pairing button with it all powered up and online.
  2. Arrange a temporary power socket near to the Hub that you can plug the sockets into to pair them. I found a 50cm / 18" gap between socket and hub worked for me, but many Ikea devices are supposed to be next to each other for pairing. You may need less distance, you may not.
  3. Press and hold the pairing button on the hub for 5 seconds. The indicator lights will respond by doing absolutely nothing at all to indicate something is happening. Nice touch.
  4. Using a pin or sim removal tool, press and hold the pairing button on the Ikea socket (a tiny hole in the base of the device - folllow IKEAs instructions for your safety when sticking a metal object into a mains powered device) for 5 seconds then release when the socket’s light starts flashing.
  5. Monitor progress on your Ikea HomeSmart App, in the settings page there’s a Manage section, and the Sockets appear in the Lights and Outlets section, at the bottom in the Ungrouped Devices section.
  6. The deed is done. Hopefully.

I renamed each new socket in the HomeSmart app as soon as I’d paired them, and then repeated the above for each socket I was adding. Once I’d finished adding all the sockets I went into the Ikea Integration in HA and selected Reload, at which point all the new devices turned up in HA.

I have done this as the sockets are excellent zigbee routers / repeaters and although this is normally a good thing, my sockets tend to be moved around a lot to different rooms & tasks and then any zigbee devices like xioami door sensors etc stop working as they do not auto-re-pair to another router when their ā€œpermanentā€ router has gone out of range.
Having my mobile sockets on the different hub means they don’t mess with my Zigbee2Mqtt mesh when moved. I found the sequence above by trial and error as I was fed up with assigning and then unassigning a steering device for each socket just to add them to HA and thought there had to be a better way.

I hope that helps other people looking to do the same thing, but I don’t have the range of devices to know if the same pattern will work for all the other Ikea kit, so cannot offer advice above what I have here.

1 Like