Yes this is currently the only way to add it. Please consider updating deCONZ to the latest version 2.05.64 and the respective latest firmware version.
While switch search is running you need to press the small button next to the battery quickly 4 times, so that the LED flashes.
Thanks for the fast reply - but I could not really find anything useful in the component documentation.
The way this button works is that the single 1001 event should trigger something that will gradually increase the (e.g.) light until a 1003 event (or possibly a timeout) is reached.
I was interested in how that should be handled in Appdaemon (or an automation) - I guess just looping with a 1 second sleep timer until a 1003 is received would be a bad thing.
This is an issue with deCONZ and not with home assistant, so it’s better to ask the developers of the deCONZ software. I don’t know why it is not showing there, but why do you need this?
Sharing my instructions to pair Ikea devices to Deconz…
It almost brought me to tears on how much it woudn’t work. Lightbulbs were the worst but pairing the on/off buttons were also a nightmare. What I found that has been working so far:
(Using Hassio)
Click on the Hamburger menu top left - then choose what you need (ex: lights)
Add new light or whatever
At that point… Start with light ON - then turn off and on six times (video here) , If successful he light with give a very small flash (and when I say small, I noticed it for the first time after pairing several lights. It’s a little flash of intensity on the bulb)
Wait 10-15 secs to see if anything happens. If not:
Turn on and off other deconz devices on your network. I open a second tab with Home Assistant and ask it to turn on my kitchen switch for example. Just to "get the juice flowing"…
(Of course, if it’s your first one on your deconz network … you’ll have to be patient and redo the pairing for as long as you need. It took up to 20 times for me once)
It pairs…
Note: on the sensor page, you get a weird and stressfull page telling you to set device in pairing more (hold pariing button for 5 secs) with a greyed “next” button. Relax. You are on the good page. This IS the pairing page… The next is only once pairing is successful.
Hi @Ikeays
thanks for that nice little walkthrough. For bulbs it did work out for me (i was close to punch through my laptop…), but it will not recognize my Tradfri remotes. I tried it with 10 s button pressing, with 5 times pressing. Nothing.No reaction. The “Next” Button on the pairing page stays greyed out. There is no progress bar or anything similar to the bulb pairing page. Is this normal?
I paired 2 of them last week and it was exactly like you said… Greyed and nothing happened. But guess what, once I left that page (refresh or else), the switch did showed up in it - it had paired.
This being said…
In Home Assistant, it doesn’t create an “entity”. It’s weird. But it works in automation is you use “device”.
It only creates a battery entity. The rest is handled through events. Whenever you press a button there will be an event fired of the type “deconz_event”, which will contain the code for the pressed button and the id of the remote.
I use both the 2 button and 5 button switches in Deconz. They pair fine
Remember that remote controls with buttons only appear in Home Assistant as battery entities which are imported with the default name from Phoscon before you had the chance to rename it in Phoscon
And the button presses are events! Buttons are stateless. They cannot be on or off. They create events. Events for press, long press release, short release for each button. You can see the events in the event viewer.
It can happen that a device only gets half paired in Deconz. I only see it with motion sensors from Philips. They either repair them selves after some hours or you just keep on pairing them until all sensors work.
But I have never seen a problem with an Ikea Remote control (switch). They pair like a couple of rabbits.
I have exactly the same issue. I see the node in VNC, but it’s not appearing to Phoscon.
There have always been problems with pairing devices to DeConz and I’m now slowly moving away from it. At one point I had over 100 devices connected via DeConz but enough is enough… too many devices dropping out and not pairing.
When the battery of the switch ran out (after 18 months or so) it didn’t reappear in DeConz. I solved it by going to the Switches section in Phoscon and pressing “Add new switch” > “Other”. Then keep holding down the reset button until the red light in the switch starts pulsing. Within a few second DeConz then recognizes it and the switch starts working again.