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
IKEA Trådfri Remote (and motion sensor) #23
Comments
Hi, in a few days we will release a new beta update which adds basic support for the Trådfri Remote in the REST API and realtime event notification in a new WebSocket interface. The button events can be used in rules to control lights and groups. We've made some tests with the Remote (firmware from 2016) and so far we haven't managed to find a stable way to join it into the gateway network — by pressing the setup button 4 times, sometimes it works, sometimes not. Hopefully the firmware will improve with the wider release. We haven't testet the motion sensor yet, due the lack of a device, but expect support in the next few releases. |
Awesome! My experiences with the remote is similar. Somehow it just pairs after a lot of tries. Not sure, but it seems to help if i spam the buttons shortly after the pair (or at the same time). Might just be a coincidence though. Guess thats fine if you know about the issue. I think it would be OK if it was available in the web-gui as an option, but with the disclaimer that it might take a few tries. Is there any way for me to test the beta when it comes out? |
Sure, you can download beta versions from https://www.dresden-elektronik.de/rpi/deconz/ Be aware that the next beta will only advance the REST API, not the WebApp itself. So using the IKEA switch and others is possible but a bit hacky. |
The beta is released now, with basic support for IKEA Trådfri motion sensor and remote control https://github.com/dresden-elektronik/deconz-rest-plugin/releases |
Is it technically possible to talk directly to a light, or is always a remote required? |
Yes every light can be controlled directly through |
Hi, I managed to join the remotes, but how do i join a light. After joining the remotes to raspbee they don't join the lights by long press any more. I have the Tradfri LED E27 1000 lm. |
The lights need to be brought into the network first. If they were paired to the remote before you need to reset them. In case of IKEA lights they can be resettet with 6x on/off powercycle the light. Or you can reset lights under After that bring the lights into the network as usual with |
Many thanks, worked well. I always tried to pair with 10 seconds press like Ikea mentions in their description, now i understood to In sensor.cpp i saw only two ikea sensors. DeCONZ does show it on the map, but it does not get a name and is not shown in the webinterface. |
Yes the integration into API will take some time and testing, the dimmer is more complicated to handle than for example the remote. However since it's already in the network you can pair lights, which are also in the network, to it with the physical pairing button of the dimmer. |
I couldn't resist and got myself a Trådfri light and remote. Both connect to deCONZ without any issues. The buttons on the remote cause WebSocket events, very nice! As far as I can tell, the value of I do see some inconsistencies on the use of
While the current behaviour seems to match the Trådfri remote's functionality as a standalone dimmer, I would like to get the same series of |
@jsve I don't think this is a coincidence. I find reading attributes from the Trådfri remote as well as from the Hue dimmer switches in the deCONZ GUI usually fails. Based on a remark by @manup in another thread, on battery-powered devices being mostly asleep, I started hitting a button while reading the attributes... with increased success rate (but still not 100% by far). Probably related to this: The |
I have 6 Tradfri remotes. Adding the first one to the network did work well. However, all the other remotes just get hex values as their names and never show up as remotes. Why is that? Update: It seems that the network wasn't completely open for adding new nodes. I have no idea why. However pressing "Scan for devices" and then 5 seconds later "Open Network" followed by factory resetting the remote and mashing its buttons did work. |
I put the Trådfri light in the Trådfri remote group and it reacts to On/Off, Dim Up, and Dim Down. It doesn't react to the Previous and Next buttons, thought. When paired directly, the light changes it's colour temperature on these buttons. I finally managed to create a binding of the Scenes cluster (from the remote to the light), but that doesn't seem to change anything. |
Short question. |
https://github.com/dresden-elektronik/deconz-rest-plugin/releases The remote has early support in the latest beta release version 2.04.40, it creates a group to which you can add lights. Currently only on/off and dimming works. |
One of my users has a 1000lm Trådfri bulb, which deCONZ (v2.04.35) reports as On/Off light, even though it's dimmable: {
"etag": "f8679f2533edfc067b383abbc7bf34bf",
"hascolor": false,
"manufacturer": "IKEA of Sweden",
"modelid": "TRADFRI bulb E27 opal 1000lm",
"name": "Decken-Lampe",
"pointsymbol": {},
"state": {
"alert": "none",
"bri": 0,
"effect": "none",
"on": false,
"reachable": true
},
"swversion": "1.1.1.0-5.7.2.0",
"type": "On/Off light",
"uniqueid": "00:0b:57:ff:fe:xx:xx:xx-01",
"manufacturername": "IKEA of Sweden"
} I noticed the ZigBee device ID for a ZHA On/Off light is the same as that for a ZLL Dimmable light. I suspect our Swedish friends think they use the ZLL device ID, but that gets interpreted differently on the ZHA endpoint? |
On google, I found the location of the Trådfri firmware: http://fw.ota.homesmart.ikea.net/feed/version_info.json. I downloaded the files for my bulb and remote and renamed them to end with .zigbee, but the deCONZ OTAU plugin doesn't seem to recognise them. Is it at all possible to use deCONZ to upgrade the firmware of non-dresden-elektronik devices? |
This is a HA/ZLL glitch in the ZigBee spec, I think they clarified that in the ZigBee 3.0 spec. The new commit f0f3e95 fixes the issue, IKEA bulbs now have proper type 'Dimmable light'.
Yes, the plugin just uses standard ZigBee OTA, It was already testet with OSRAM, Busch-Jaeger and JUNG/GIRA devices. However the OTA firmware files of these are not publicly available (yet). The firmware files of IKEA are raw data, not packet into an standard OTA file format. So in order to use them the .zigbee format binary header must be put before the data payload as described in the spec. Right now it's not worth the efford, because the version referenced in the JSON file is only the 'old' shipped version (1.1.1.0-5.7.2.0). I guess you're looking for the new ZLL certified version ;-) to my knowledge it's not online yet. Once it's online (and downloadable like the current version) I'll give it a go for an update test. |
Still some issues in v2.04.46:
|
Ok, I am still a bit unclear. I can bind the Tradfri remote to the deConz gateway in a way that it appears in the app but not in the webui. How can I control devices now? |
Normally it should create a new group to which you can add lights in the webapp. |
it didn't.. but I added the switch in 2.0.35 (when support was not really there for it), is there a way to force/delete it first? |
Please try the following with a recent deCONZ version:
It's a bit hacky but now a new sensor should be created in the API and the group should also be created. |
that didn't work unfortunately. I really would like to remove the device from deconz first. is there a db where I can simply delete it? |
Yes it's a SQLite database
It can be edited with tools like While modifying the database deCONZ shall not run. |
I did a complete factory reset and this looks more and more like a bug to me. the tradfri remote is visible in the GUI (it blinks blue (in the GUI)) when a battery is inserted but it is nowhere to be seen in the web gui and so no group is created and controlling devices with the remote is not possible. |
Can you please try out the new version 2.04.52, it should improve the discovery of the remote.
http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.52-qt5.deb Further if this worked so far, please press the large button again for more than 5 seconds to finish setup for the arrow buttons (control color temperature). |
Deleted the Trådfri remote resource through the API, deleted the node it from the deCONZ GUI, deleted the record (with status deleted) from the database, installed 2.04.52. Opened the network through the Webapp, pressed the On/Off button. The Trådfri remote appears as a node in deCONZ GUI. Another press or two and sensor resource is created. Read the attributes of the Basic and Power Configuration clusters in the deCONZ GUI, just to be sure. A group was created, and linked to the remote (through the group's Added the Trådfri bulb to the group. The light now changes colour temperature on the Previous and Next buttons! When changing the colour temperature, I even get two web socket notifications (as expected): one for the sensor Still some issues, though:
|
You could already use a CLIPPresence sensor for that. |
@ebaauw How what where? Please explain in more detail! :) |
Create a CLIPPresence sensor and set the duration you want on that sensor. Then create a (series of) rule(s) that sets the CLIPPresence sensor when the ZHAPresence sensor becomes true. Base your rules to update the lights or other devices on the CLIPPresence sensor. We also used this workaround to trigger a HomeKit camera from a switch, see ebaauw/homebridge-hue#179 |
@ebaauw Looks good as an interim measure, but the duration parameter was SO much more convenient. :) |
I have been trying today to make the remote work with V2_04_91, and the remote shows up alright in the network, but the only response from the buttons I get is from the big button, which yields an "ikea remote toggle button" in the log, but nothing else - nothing in the gui and nothing on the websocket. I just spent the night updating the firmware of the remote OTA, but it made no difference. Any ideas on how to continue debugging? Or on what I'm doing wrong? |
Nevermind, after a few reparings in the webapp it started working. |
Normally the events are just forwarded based on the group commands the remote sends. The webapp doesn't show the button events currently, but at least the websocket messages should be visible. @ebaauw tool https://github.com/ebaauw/dc_eventlog Also I recommend to update to 2.04.92, sadly 2.04.91 had some serious issues. |
I also ran into trouble, trying to connect my IKEA TRADFRI Remotes, TRADFRI Motion Sensors and FLOALT Panels. The Web-IU reports software version 2.04.99 (which appears to be a beta?). Anyway: After several days of trial and error I figured the following procedures to connect the devices: For the Remote:
For the Motion Sensor:
For the Panels:
Notes:
So from what I can tell, the Remote(s) and the Motion Sensor(s) can be paired and do work with 3 out of 5 buttons. Since I wanted to control one light with multiple Remotes and Motion Sensors, which is possible, by adding the light to the respective groups, I achieved what I wanted to achieve. 😄 |
Could be - haven't seen that version yet.
Probably not, but it seems prudent while pairing to have end devices connected directly to the gateways instead of through the ZigBee mesh network.
Yes, still don't know why. See my comments above and #96 (comment).
Actually all five buttons work when using gateway rules. If you hold the On/Off button for 10 seconds, deCONZ will create some default gateway rules to change the colour temperature of lights in the corresponding group (also non-IKEA lights). The remote sends the commands when pressing the Previous or Next buttons, but the IKEA lights simply doesn't seem to react to these when connected to the deCONZ gateway. |
I'm having a really hard time with my Trådfri Motion Sensor (TYPE: E1525). Can't get it to report motion. Any way to get some logs/debug info? I'm running deCONZ 2.04.99 / 12/15/2017 on Raspbian Stretch 4.9 / 2017-11-29 (Headless installation) Sensor info:
|
Indeed, looks like My best guess is that the sensor somehow dropped from the network. I'd try reading the attributes of its Basic cluster from the deCONZ GUI, but that's kinda hard in a headless installation. Best delete it from the REST API, reset it, and pair it again with deCONZ, while continuously waving in front of the sensor to keep it awake during the pairing. |
Thanks for the info @ebaauw . I have paired it many times with no luck. Some thing that I noticed is that the If I restart deCONZ the |
Yes, but it only gets updated through the command the sensor sends when it detects motion.
So deCONZ does receive the device announcement when the sensor is powered on. No clue why the command isn't received. You could try and power off all your lights, and move the sensor close to the RaspBee, so it connects directly instead of through the mesh network. |
Now I can't get the motion sensor paired with deCONZ at all. Have tried far to many hours now. It gets paired with the IKEA gateway right away with now problems. |
@xibriz I managed to pair my motion sensor by removing the battery, opening the gateway, then reinserting the battery. |
@mattiasflodin Witch version does your motion sensor report? I tried opening the gateway and reinserting the battery. The sensor was included right away :) But still does not seem to detect motion :( I have the latest deCONZ installed.
|
By chance I had to re-pair the motion sensor today. No trickeries required. Didn't remove battery. |
Is it just me or the remotes go into some kind of standby mode after a while? I notice that I have to press the button twice to make it trigger the event, but after that, everything works just fine. Is this a known limitation? |
@FezVrasta I used to have this issue before when I only had a couple of remotes in the network and no light bulbs. After adding all the light bulbs as well, it doesn't happen anymore. Perhaps it has to do with not finding neighbor devices in a close enough range, or perhaps a non battery-powered device is needed to keep the mesh active. |
Thanks for the reply @mattiasflodin, I have recently added a Osram Smart Power Plug for this very reason, the situation got better but still sometimes I have to press twice. Anyway I'm going to move most of my lights to DeCONZ this weekend so I'll see if anything gets better! |
The mesh is maintained by ZigBee routers (yellow nodes in the deCONZ GUI), which typically are mains powered. ZigBee end devices (most battery powered devices, grey nodes in the deCONZ GUI) connect to only one (typically the nearest) router in the mesh. When that connection is lost, the end device needs to find another router, which might lose the notification of the first press. |
@ebaauw the fact is that one of my remotes is exactly between my Osram plug and the DeCONZ, approx 3 meters from each side... I doubt there's lack of coverage in that particular position. |
I’m lost in the technical details, but there’s more to it than radio signal coverage. IKEA, OSRAM, Philips all use a slightly different way to build up the mesh, sometimes causing devices from one vendor not to play well with routers from another vendor. Also, a router only supports a limited number of concurrently connected end devices. And if you power-cycle a router, the connected end devices are orphaned. My network consist of 42 lights (routers), which are powered on always, and still my Hue motion sensors sometimes blink red, (presumably) indicating they’re re-connecting to the mesh network. |
I see, thanks for the info. On my DeCONZ I just have 3 remotes and the Osram plug so I thought that would be enough to have a stable network. I hope that adding more bulbs things will get better. |
Just updated to 2.05.32 (beta) and added an Ikea 5 button remote. I can see in the REST API that the buttons produces both press, hold & release events so rules are an option, but it would be nice if it worked with the gateway offline as well. |
Should work with recent versions of deCONZ, closing the issue for now. |
IKEA has launched some more products in their Trådfri line. I have gotten the lights to work, but not remotes. They also have motion sensors now, which I guess will not work either.
de_web_plugin.cpp has a comment about IKEA remote not being supported yet. Is this because of the web-plugin of the core of deCONZ? Is there some work being put in to make this compatible?
I have managed to get the remote to show up in the deCONZ GUI and it has that blue indicator-dot that blinks when I push buttons. So something seems to be working at least. The logs (using --dbg-aps=2) shows the proper cluster being activated when i push the respective button, but there is nothing indicating if it was (for instance) brightness up or down that was pushed.
The text was updated successfully, but these errors were encountered: