Sonoff Zigbee USB Dongle not working with IKEA Tradfri buttons

Thanks for sharing!

Since I posted I changed two things and it’s now working flawlessly.:

  • swapped the batteries on the shortcut buttons. It’s weird as one of them was brand new in the box so I discarded the option of battery problems. It still didn’t play well for some reason.
  • replaced zha with zigbee2mqtt

Works fine now.

I might play some with the batteries. There’s other posts indicating a problem with batteries getting drained really fast (possibly with the Sonoff controller especially, but maybe wider than that?).

And if that doesn’t work, I guess maybe time to bite the bullet and go to zigbee2mqtt.

1 Like

Soooo, I replaced the Sonoff dongle with one of the tubesZB ones (partly to see if this would work better, and partly because it’s cool to support / benefit from an individual hardware hacker). Updated that to the latest firmware, and to my excitement two Ikea Shortcut buttons paired and just worked. But then the third (and fourth, fifth, sixth!) all did not — same symptom as before: no battery info. (Not to mention, of course, not seeming to do anything.)

New batteries did nothing. @jumpifzero, is everything still working for you with zigbee2mqtt?

I kind of wonder if something is causing problems with having too many of the same type of button? The were relatively cheap and seemed so handy that I scooped up a handful, but… maybe I shouldn’t have.

So sonoff dongle and tube’s would both exhibit similar problem? Well, come to think of it, they should. These CC2652x coordinators do share similar toolkits and flashing methods, and even firmware, after all.

Regardless of ZHA or zigbee2mqtt, results are inconsistent either, it seems.

So this looks more and more like an issue from how IKEA implemented their buttons…?
Is the solution for IKEA to release fixes? Or maybe ZHA or zigbee2mqtt would handle the issue?

====

EDIT:
Looks like there’s another thread on the same battery issue. And based on reports in this one and this one and this one (… plus the follow up from OP 9 days ago), the combination of Sonoff's 3.0 USB Dongle Plus along with zigbee2mqtt yields promising results…?

Does anyone see different results? It would be interesting to know.

I had some E1743 either not pairing, or pairing and then nothing. One took me over 10 attempts but is now fine.

I think what ended up working was delete device, restart everything, enable pairing mode and leave it next to the dongle for the whole 254 seconds.

Or try different things :wink: it’s a bit of a mess. Make sure to do OTA asap, and clicking them to wake them during the OTA check.

Perhaps the combination of these cc2652 dongles, IKEA buttons and zha causes a weird edge case where they don’t always pair correctly and then drain their battery really fast so you’re then hopeless to get them to pair again. Or perhaps it’s down to button firmware version so it’s a gamble when you buy them.

@mattdm:
Since my last post 9days ago it still all works solidly after swapping the batteries in the buttons and using zigbee2mqtt instead of zha. I had only 1 instance where the buttons stopped working but a reboot to the pi fixed it. Other that that it’s been solid. But this is a really tiny network.

1 Like

I guess zigbee2mqtt is my project for the weekend! Thanks for the updates.

1 Like

Running into exactly the same problem as others here.

I used to use the SONOFF ZBBridge Smart Zigbee Bridge (Wifi) and was able to pair all my Ikea remotes successfully, but replaced it with the Sonoff Zigbee 3.0 Dongle Plus and no matter what I do the shortcut and on/off switch won’t always pair correctly.

Most of the time it would be detected and paired, but I’d receive no zha_event. As well, it seems to always be stuck for a long time on the configuring stage before finishing. Really frustrating to say the least.

1 Like

FWIW… I thought I said this somewhere, but apparently not here. Switching to zigbee2mqtt has resolved all of my issues with the Ikea buttons. No problems in the last three weeks.

2 Likes

Yes thanks Matt, I remember seeing this suggestion somewhere, in this thread or in another one.

It maybe my last resort type of solution. Right now I have all my Ikea remotes setup on ZHA and it’s going to be a pain to transition over to Zigbee2Mqtt.

On the other hand, I was able to follow the procedure from Antonio and get some progress:

  • Pair Ikea remote, place remote next to Zigbee coordinator USB stick
  • Test to see if HA sees the events on click
  • If not, delete the device, restart Home Assistant, and try again

A further 3 remotes programmed this way and once it works, it stays working. Still one more to go but this one is really stubborn.

I was able to pair the final Ikea remote with ZHA.

By my rough estimate, it seems like it takes 5 tries (add/test/remove/restart) cycles per Ikea remote to get it to pair successfully.

In case someone could troubleshoot it better than I can, I am attaching my homeassistant.log (parts taht relate to zha or zigbee). It feels like some sort of race condition, but I don’t know enough about the hardware or the protocol to tell if that’s the case or not.

https://drive.google.com/file/d/1HY6G5G_53wqbcBVh-x0ROV3lE0aL58cD/view?usp=sharing

I flashed my Sonoff Zigbee 3.0 USB stick by following this guide:

I used firmware version: CC1352P2_CC2652P_launchpad_coordinator_20211217.zip

So… the bad news with ZHA is I had some of mine paired just fine but then two days latter they dropped off, and some of the ones which had worked right away initially became “stubborn”. With zigbee2mqtt no such problem.

I’ve got the same dongle and interested in getting frytur blinds. I have also read various forums with same issues and that’s unstable with sonoff zigbee 3.0 plus.
Has anyone had any experience with conbee 2? apparently it’s better?

How exacally do you remove them? Do you mean the red REMOVE DEVICE button or should I be doing something else? everytime I re-add a button it seems to already know the automation I added to it before I removed it.
I was thinking surely it should delete all old info about the button that it has?

Also being new to this and as you are using the same zigbee dongle as me. Is it supposed to sometimes toggle things on/off instantly and other times take a few secconds? I don’t get it.
sometimes its instant and sometimes it struggles but I’m not sending any other requests. The pi/dongle shouldn’t be struggling or is it just how zigbee is?
my wifi bulbs that i trigger with my working ikea shortcut button always work instantly.

It should be instantly every time.

This setup is working very reliably for me:

  • Sonoff dongle
  • Pi4 4 GB installed on a external SSD with a sata2usb adapter
  • Homeassistant os for the pi
  • Zigbee2mqtt (zha did not work well with this dongle)
  • IKEA trädfri shortcut buttons
  • tplink WiFi power plugs kp105

The buttons work instantly every time and never had to reboot the pi due to a malfunction.

1 Like

Thank you.
My setup is the same as yours apart from I’m using ZHA and the device I’m triggering is the sonoff ZBMINI-L no neutral switch.
I have some WiFi bulbs LIFX that always work instantly.

I’ll switch from ZHA and see what happens but maybe it’s the device I’m trying to trigger just being asleep?? I live in the uk and can’t seem to find an alternative to the ZBMINI-L for my lights

I will try to answer a couple of your questions:

everytime I re-add a button it seems to already know the automation I added to it before I removed it.
I was thinking surely it should delete all old info about the button that it has?

The “info” (device, entities) - yes. The automations - no, they do not get deleted. And if you re-add the device with the same entity names, the automations will continue working after re-adding.

maybe it’s the device I’m trying to trigger just being asleep??

A mains-powered zigbee device should not normally sleep. It should always be awake, so it should respond instantly (or, at least, very quickly).
[ Edit, thanks to @robertklep - this is not an absolute rule, and there are exceptions to it. And yes, the ZBMINI-L is one of the exceptions ]

I am using the same setup as jumpifzero, with the exception of the OS (I am running raspbian with zigbee2mqtt inside a Docker container - everything else, including HAss and MQTT server, are on other machines). I have tested Ikea shortcut buttons, dimmers, Styrbar remotes, and they all work properly (even though sometimes it does take a few tries to pair them or to get an OTA firmware update to start).

A lot of no-neutral mains powered devices are end devices because they are limited in the amount of power they can consume when “off”.

A lot of no-neutral mains powered devices are end devices because they are limited in the amount of power they can consume when “off”.

Not disagreeing with you - that is why I said “should” :slight_smile: . I am not making any general statements. I will edit my post above to make this clearer.

Digging a little bit deeper, it does appear that the specific type of devices that @junkhole is using (the ZBMINI-L) are indeed end devices. So it is possible that they do go to sleep.
Whether that can explain the delays he is seeing or not, I do not know - while I have been planning to test the ZBMINI-L for a while, I have yet to get my hands on one of those :slight_smile:

Hi folks. I’ve been living every version of pain/solution/avenue in thread so far, and have final made some progress (getting a tradfri 1766 to control stuff in HA, and getting a fyrtyr blind to move via HA also.

Rpi 4 w/ POE, SSD on USB plugged to rpi, Sonoff Usb 3.0 plugged direct to rPI, 2x tradfri 1766.

As with many others, no joy even when really close to dongle’s antenna. I tried:

  • fresh batteries
  • flashing Sonoff to latest firmware (I’ve bought myself another PITA with that: need to generate a new key)
  • lots of multiply-clicking the pairing/factory reset button on remotes
  • lots and lots of attempts
  • moving to z2m from zha (and back once or twice)

and still not a single pairing.

So I am completely stumped when I realise there is one thing I hadn’t tried yet: put the dongle on a USB extension lead away from rpi and other 2.4Ghz interference.

Extension allowed me to put dongle on a flat surface and the remote being paired, with fresh battery, literally sitting on the antenna.

Bingo. paired first try. second remote and one of 2 blinds also ‘just worked’ in pairing (in both ZHA and Z2M, fwiw).

Then got blueprint for 1766 devices and got controlling some lights in a few minutes.
This is all in last day, so idea how well it will all ‘stick’…

So there you have it:

if you’re seeing this IKEA/Sonoff pairing issues, get the dongle away from the rpi!!

Lastly, re: battery drain: I don’t have much experience here, but there appears to be wierdess in how the battery level is reported/computed. Starting with fresh batteries in my remotes, I had 100% at very first pairing, but this fell very soon (a few minutes) to 60 and 74% on the devices. Will track this…

Good luck to any who follow…

2 Likes