Andreas Spiess absolutely not, as a Belgian I don't speak Swedish or Danish, I was just joking, thought it funny you said it was Danish. I suppose one can use the word in Swedish too, I guess fri=free and lös=less or without.
Gert Dewit is right, IKEA being Swedish, the word Trådfri should be thought of as a Swedish construction. But it works in Danish too, as the two languages are quite similar. I'm Danish by the way :-) And thanks for the interesting and useful videos, Andreas, I enjoy them a lot!
Love your videos Andreas! By fate, luck or pure coincidence you seem to be passionate about the same things I am obsessed with, and at the same time too. Except you are the master and I am the student. It feels as though your lessons were customized specially for me! Keep them coming! Love your work! Can't wait for the next video!!
Andreas, surely if you can observe the variable step count ie from darkest to lightest setting, from warmest to coolest colour setting. If these settings are non-volatile, you simply create a copy set of registers to hold the current setting. If the settings are volatile, add a "reset registers" function to equal the starting values within a hacked IoT device. A "Master Reset" becomes significant to cover a possible building-wide power outage. This I think offers the simplest 'hack' to include an instant response to a reset light fixture ie if there has been a local power outage? Here there is no conceptual problem of 'losing control' as it is just another event command under the control of the end-user. Without a "Reset" command, yes, then it is time consuming to synchronise the components correctly with many opportunities for confusing outcomes! Again Andreas, many thanks to you for your excellent trailblazing style and sense of direction. Thought provoking like Swiss mountain air I think!
it should be cheaper to get the bridge and control the lights via coap than getting a custom zigbee tranciever. There is some information out there about that and it even integrates with home assistant for example. I really like the tradfri stuff and would enjoy more video about that. Maybe a teardown of those small dimmer switches, i would like to know how they work :) Thanks for your videos!
Thanks for the video. I can see that I have a steep learning curve ahead of me catching up from my rudimentary semiconductor theory learnt all those decades ago... So much wasted time ha ha ..you make it oh so good to be here. Cheers. (YOU have new fan from Australia)
Tråd=thread or another word for cord (kabel, sladd in swedish). Fri is free or less . Trådfri is ikea-swenglish for cordless. You can translate from swedish to english in two words. tråd fri = thread free. Thanks Andreas for all your good work. And btw. To be a little bit swedish you have to pronounce IKEA in swedish. [ee-kay-ya as one word eekaya]
Great hack Andreas! I hope that we'll get two way communication working in the future... that would make the system really great for that price. Thumbs up for your work!
One tip if you haven't looked into it is to use Trådfri with the Home Assistant platform (free, open source) which will allow you to do everything much more easily and which is able to monitor the lamps :)
I really hope IKEA will bring some competition into this market. Currently you simply can't get around Phillips Hue since they already have a really good ecosystem. Since IKEA is known for a pretty good quality at a really attractive pricing I hope they'll continue to develop their Smart lighting line. If they continue to add products to their IoT portfolio like RGB bulps, mountable switches and dimmers they'll grow to a serious competitor. If they don't, maybe at least the pricing of Hue bulps will drop :)
Thank you for another great video, especially the description of the code!I think this is not an Ikea IOT product since there is no internet involved."Trådfri" is not a Danish word, here it is called "trådløs"
1. There is also a gateway available. I will hack it in a future video. 2. There are many comments below about this word. I had to relay on Google translate, because I du not speak your language...
Hey, nice video! Just a tip for your title, It's "lighting" not "lightning". I actually thought the video had something to do with der Blitz before I watched it!
Is it possible to take the device apart without using a Dremel/Proxon? It looks like one could press at the battery hold from the back side and then pop it out. Or maybe rotate it a bit and then press.
Ikea always uses Swedish words, with a few exceptions (mostly Norwegian place names). I don't think trådfri is a word in common usage in Swedish, but both words of the compounded word are Swedish. Both tråd and fri.
Doesn't prove a thing, I'm afraid, as the Scandinavian languages have quite a few words in common. It's possible that compound word is used more in Denmark. I wouldn't know. In Norway we use trådløs. Means the same thing. In Sweden they use the same compound word, but the language is slightly different. So it's trådlös. But trådfri means the same thing in all languages, it's just not something we regularly use, which might be the point.
You are right. But me asking Google was before I made the video. And I did not care enough. I am now very well educated about the Nordic languages by the tons of comments; -)
Could one take a compatible module that can transmit to your system, add a photo sensor and assign values based on light intensity / resistance and place it next to the light to transmit a general idea as to what it senses? At least it would be something that could be polled by an automation system to provide status but as to sensing wether the light is actually on or off one might have to add a small cut tent sensor to the live phase of the socket and calibrate a micro voltage value to show if light is on or off taking into account that the lamp will always draw some micro amps on standby/off. This could also be used for showing intensity level of the lamp based on how much current is drawn for each step of the lamps brightness. You would be basically creating a smart socket that provides info to your system.
This was interesting! Too bad the switch had to be cut open just to get in. I am very interested to see your exploration of the zig bee protocol. I was wondered if SDR (software defined radio) might have be helpful. However since (I presume) the zig bee protocol is well documented that would not be necessary. Thanks and as always I look forward to learning more.
Vielen Dank für den Link. Ich wusste das noch nicht, als ich mit meinem "Projekt" begonnen habe. Vielen Dank für den Link. Werde mir nächste Woche ein Gateway besorgen...
The manual is mostly pictures so they don't have to print one for every country/language, not for people who can't read (like 45). I love your videos. Is there anyway to link the lights to a hub (I have a wink hub, but IKEA's hub would be fine) without buying a remote just for pairing?
Is it correct to call the delay() function 'blocking'? Obviously, the execution of the user code is stopped, but the background operations (the wifi stuff) are not blocked , but given all the processor time instead. I would argue that this is more than just a semantic issue, as delayMicroseconds() actually _is_ blocking, i.e., the user code will not yield and give any execution time to other tasks.
It is blocking for my code. This is, why I call it blocking. No code is blocking in your sense because the processor always executes code, even if the code is "NOP" (no operation).
Trådfri is Swedish and basically means Wireless, "IKEA SWEDISH COMPANY." Though it is not written in the standard way Trådlös which is used as a more common phrase. ;)
IKEA's product names come from all of Scandinavia, some are in Danish or Norwegian. The words "tråd" and "fri" are in the Danish, Norwegian and Swedish dictionaries.
All of these IoT items can be controlled via Alexa (Amazon) or something similar? I just want to walk into a room and say "computer, lights" and the lights will change its state so if off will go on and vice versa.
Official support from ikea will come later this year, but you can use something like home assistant if you want to use it now. It is based on zigbee and the bridge can be controlled via coap. Here you find some information home-assistant.io/blog/2017/04/17/ikea-tradfri-internet-of-things-done-right/
a remote for a remote... i thought you will find out how they communicate (zigbee, bt, wlan,...) and hijack it. do you think this will be possible? i'ld buy many such lamps if this works.
The idea for a relatively word-free manual came from Ingvar himself who was born dyslexic. His dyslexia is also the reason why each product is given a unique name.
IKEA iot devices? I didn't get the "i" for internet...only after your hack the light became part of internet. it appear to be just a cheap radio module... have I missed something? nonetheless nice hack
Yes, you have missed that the device uses the IoT protocol CoAP, which are as advanced and IoT:ish as MQTT. So that it is not just a cheap radio module. You are welcome to read the links I have put up in other places.
This is great video. I am part of a makers space in Chicago and your themes from Lora to MQTT are feeding our creativity. Is the code on github yet? I followed the links but could not find the code. Again, thank you for speaking about such timely subjects!
Im trying to do a own lamp with the IKEA chip, i have tried to read the signal from the chip inside the lamp, its the same as the controller in your video and i used the pinout from the german Make site.. Do you think its possible to make such a projekt?
Andreas Spiess do you have any tips on how I should begin? The original bulb supplys about 100vdc pulsed at 100hz. I do think I need to use the output from the chip itself..
+Oscar Eriksson I would divide the project into two parts: The Led part and the signal receiving part. The IKEA receiver would be a good receiving part. So, you only have to build the LED part. The only interface between is on-off, which seems not too complicated.
Andreas Spiess i already have the led part, I'm using a 12v rail across the ceiling but the only pins connected on the receiver was vcc, gnd, TX and dim+.. It's a dimmable light but the on/off toggle wasn't connected..
E27 is not "European", in it E stands for Edison, and 27 is a diameter in mm. There were many lamps and inventors at that time (circa 1900), but Edison was one of the first who had commercial success, and so the base and the socket used eventually became a standard. It appeared in U.S.A. first, with E26 being most used, although it's in fact 1 inch, which is very close to 26 mm. It and sprawled to Europe, where E27 is used to distinguish from USA's E26 (and different voltage of course), but they are so similar as the difference in diameter is only 1 mm.
Andreas Spiess thank you for all your videos and the work behind it! I really like how methodical (should I say scrupulous?), logical, and easy to understand they are.
So add a text in the video at that point owning your mistake, and be done with the umpteen new comments on Trådfri. Which by the way is a word that consists of Tråd, which in all of the nordic languages means thread or wire, and fri, which means free as in unhindered or at no cost :) Just in the case no one else mentioned. Can't be bothered to read 350 replies just to find out. Q.E.D on the need of a text tag in the video :D .
With my Samsung smartthings i could send you some raw data of the commands used in zigbeen when turning on and off. and also the handshake most of the lamps use when pairing. Samsung smartthings is a great device as you are able to program your own Device handlers and as such include any zigbee device into it by yourself :)
Thanks for your offer. Maybe I have to come back if I am not successful. Viewers gave me some links which should help me getting the connections. But you never know...
Yeah, zigbee is a pretty well dokumented standard so you should not have much issue hackin them. It will be cool to see if you can build a gateway with mqtt for the lamps that is cheaper than the one from ikea :) Good luck!
I will not try that. First, I will try to do it with the gateway. I think also, that the Zigbee modules are very expensive. So, beating the 35 $ price of a gateway will be difficult... Or do you have a better idea?
Minor error in line starting with `snprintf(msg, 75, ` -- as the msg is 50 characters long, this could theoretically lead to overwrite. It's better to write it as `snprintf(msg, sizeof(msg), ` as in this case you don't have to remember the size of your array.
I am confused why you hacked a push button for MQTT integration, does this not have a API on the gateway like Phillips Hue so you can just hook up the MQTT on some Raspberry Pi to the API with some custom script?
Ok, thanks Andreas this makes sense, after all I guess this is cheaper without the gateway, what I would be mega impressed with is if you could mod one of those bulbs to be LoRa enabled :-P. Having a LoRa gateway on my roof means pretty much all rooms in my house are LoRaWAN capable. I hate that everything has it's own gateway these days, I'd much prefer one open source gateway that all IoT hooks into. I know these lights and Phillips Hue are Zigbee, but what annoys me is even the Hue bridge is not 100% Zigbee compatible implementation.
Now you are converting very nice, mobile remote control in to switches glued to wall. When you will hack bulb, you can connect ESP8266 and make bridge to your automation system.
There are always many possible ways to achieve goal:) But original gateway is expensive one, also it is creating possible single point of failure, which I'm trying to avoid (I also resigned from mqtt broker in my home automation, and esp8266 are talking to each other directly). Sorry for cut in. I love your videos and ideas.
+Pawel Tylinski You are right. And every solution has advantages and disadvantages... I started exactly the other way round: With ESPs talking to each other. Now, I use a Pi zero as a MQTT broker and node red. This works fine for me and is stable.
I am still baffled that there is no wall mounted lightswitch-replacement for these smart bulbs. How are you expected to use the system? Tape over the old on/off powerswitch on the wall and stick the ikea remote to the wall? That can't be a solution. So I plan to open up the ikea remote and hook it up to a Feller light switch (which is disconnected from the mains power), so when I press the regular light switch it closes the circuit of the ikea remote and switches the lights. The ikea remote can then be mounted inside the wall, behind the old switch. A 230v-to-3V step down regulator should replace the coin cell battery of the remove, making this system maintenance free.
Maybe they omit these switches because, in most countries, it is not allowed to mount them as a Maker. And there are many country-specific different standards around.
Andreas Spiess ok I did the hack and it works beautifully. Its very easy. Just solder two wires, one to the center button (remove carbon layer first) and to ground. Plug these wires into a standard wall switch. Tape the TRÅDFRI remote pcb behind the switch and into the wall socket. Now you have a Feller-TRÅDFRI-switch which looks and works perfectly.
From their own IKEA website: -Can I develop the TRÅDFRI system by getting access to the systems API? Not in the first release. But IKEA is working towards an open system. -What protocol do the IKEA smart lighting products use? IKEA smart lighting products use the ZigBee Light Link, which is an open standards protocol aimed at remote control. The lights create a mesh network with each other, enabling each light to pass on messages to the next. IKEA Smart Lighting products are compatible with other products according to the ZigBee Alliance. You can find more information at: zigbee.org
Hallo Andreas, wollte mal fragen ob dein Account bei Aliexpress auch schon mal bockiert wurde? Mir ist das leider kürzlich passiert und ich kann nicht ganz nachvollziehen, wieso Sie das gemacht haben. Muss wohl mit einem Dispute zu tun haben... Gruss Stefan
Yeelight is a smart APP controlled RGB led light produced by xiamo which can be baught at gearbest.com I personally use them with Homeassistant on a Raspberry pi with an Mqtt Broker.
@Andreas Spiess, you can look here for more information. ruclips.net/video/bNS_fINyaQE/видео.html So based on coap-client, you can make a MQTT gateway. (Trådfri is Swedish, and å is not "a", it is pronounced more like "o" in english low and fri pronounces like english "free".) :-)
The name is Swedish and not Danish. Trådfri is the name and is a play on the word wireless and that would translate directly into Trådlös but since that's a common name they've translated it incorrectly to Trådfri that would be the translation of wire less.
IKEA's product names come from all of Scandinavia, some are in Danish or Norwegian. The words "tråd" and "fri" are in the Danish, Norwegian and Swedish dictionaries.
if you want to excercise on your swedish accent, Å is better replaced with an O, not A. Ä can be replaced with E, and it sounds like the A in the english word "bad". Ö is harder to have a reference to... someone else might have an example.
I am not sure. AFAIK enums are translated into consecutive numbers starting with zero. My array not necessarily contains consecutive numbers and for sure does not start at zero. Do I miss something?
I expected the system to be called trådlös in stead of trådfri, IKEA being Swedish ;-)
Here you definitively are the expert. I struggle already with my German, English and French ;-)
Andreas Spiess absolutely not, as a Belgian I don't speak Swedish or Danish, I was just joking, thought it funny you said it was Danish.
I suppose one can use the word in Swedish too, I guess fri=free and lös=less or without.
I just used google translate and it said, it is Danish... If I select Swedish, it does not translate...
Gert Dewit is right, IKEA being Swedish, the word Trådfri should be thought of as a Swedish construction. But it works in Danish too, as the two languages are quite similar. I'm Danish by the way :-) And thanks for the interesting and useful videos, Andreas, I enjoy them a lot!
So, we have now the definitive truth! Interestingly, Google translate does not translate it from Swedish...
Love your videos Andreas! By fate, luck or pure coincidence you seem to be passionate about the same things I am obsessed with, and at the same time too. Except you are the master and I am the student. It feels as though your lessons were customized specially for me! Keep them coming! Love your work! Can't wait for the next video!!
Thank you for your nice words! I am really glad to read that. And I will continue the next time creating some videos...
Trådfri is swedish for wire free and I also like how you can feel that the LEDs have a ''warm'' white with your hand.
lol about the "warm feeling"
Andreas, surely if you can observe the variable step count ie from darkest to lightest setting, from warmest to coolest colour setting. If these settings are non-volatile, you simply create a copy set of registers to hold the current setting. If the settings are volatile, add a "reset registers" function to equal the starting values within a hacked IoT device. A "Master Reset" becomes significant to cover a possible building-wide power outage.
This I think offers the simplest 'hack' to include an instant response to a reset light fixture ie if there has been a local power outage? Here there is no conceptual problem of 'losing control' as it is just another event command under the control of the end-user. Without a "Reset" command, yes, then it is time consuming to synchronise the components correctly with many opportunities for confusing outcomes!
Again Andreas, many thanks to you for your excellent trailblazing style and sense of direction. Thought provoking like Swiss mountain air I think!
You wrote it better than I explained it: This remote has no master reset. It keeps its last settings... (at least, I did not fin one)
these videos are great to watch before bed very fascinating but not too much activity (in a good way)
Thanks. I hope, they create also nice dreams...
Great project / video!
I always like projects that extend or change the original intended functionality of "common" devices
:-)
it should be cheaper to get the bridge and control the lights via coap than getting a custom zigbee tranciever. There is some information out there about that and it even integrates with home assistant for example.
I really like the tradfri stuff and would enjoy more video about that. Maybe a teardown of those small dimmer switches, i would like to know how they work :)
Thanks for your videos!
Next week, I will buy a gateway and will play around with it...
Thanks for the video. I can see that I have a steep learning curve ahead of me catching up from my rudimentary semiconductor theory learnt all those decades ago... So much wasted time ha ha ..you make it oh so good to be here. Cheers. (YOU have new fan from Australia)
Welcome aboard the channel. And enjoy your learning curve. It will provide you with a lot of success moments!
Tråd=thread or another word for cord (kabel, sladd in swedish). Fri is free or less . Trådfri is ikea-swenglish for cordless.
You can translate from swedish to english in two words. tråd fri = thread free.
Thanks Andreas for all your good work.
And btw. To be a little bit swedish you have to pronounce IKEA in swedish. [ee-kay-ya as one word eekaya]
This topic was discussed in many comments below ;-)
Great hack Andreas! I hope that we'll get two way communication working in the future... that would make the system really great for that price. Thumbs up for your work!
Thanks and stay tuned...
Your videos are always very well made, informative beyond the basic hack concept. Thank you!
You are welcome!
One tip if you haven't looked into it is to use Trådfri with the Home Assistant platform (free, open source) which will allow you to do everything much more easily and which is able to monitor the lamps :)
Thanks for the tip! First I had to have a Gateway...
Thanks for sharing this. Nice to see that a magazine is the inspiration for an episode 👍😀
I am sometimes still "old School"...
fantastic. looking forward to part 2 and decoding zigbee.
Will take a while...
Andreas, that is not a problem. Your excellent tutorials are well worth waiting for. Again thank you for sharing your adventures.
I really hope IKEA will bring some competition into this market. Currently you simply can't get around Phillips Hue since they already have a really good ecosystem. Since IKEA is known for a pretty good quality at a really attractive pricing I hope they'll continue to develop their Smart lighting line. If they continue to add products to their IoT portfolio like RGB bulps, mountable switches and dimmers they'll grow to a serious competitor. If they don't, maybe at least the pricing of Hue bulps will drop :)
I hope, too. And maybe others will adapt to their standard...
I really hope so! Smart room lighting is really awesome, but the first investion is simply too high.
Thank you for another great video, especially the description of the code!I think this is not an Ikea IOT product since there is no internet involved."Trådfri" is not a Danish word, here it is called "trådløs"
1. There is also a gateway available. I will hack it in a future video.
2. There are many comments below about this word. I had to relay on Google translate, because I du not speak your language...
Hey, nice video! Just a tip for your title, It's "lighting" not "lightning". I actually thought the video had something to do with der Blitz before I watched it!
Changed it. Thanks!
Just to be clear, wire-less in Danish is Trådløs. Trådfri is just Ikea drinking too much apple juice
There are many comments about this word below in the comment...
Sorry, I scrolled around a bit without seeing it. Nice video though
+Henrik Ginnerup Thanks!
+Andreas Spiess Also, that character, å, is pronounced like o auf Deutsch, if I remember correctly.
Very good job done. I hope you will make custon design Zigbee like this. I wonder to learn more about Zigbee device.
I do not see a lot of makers using Zigbee. So I have no plans to cover it.
Interesting hack! Since the light controller is powered by a coin cell battery, what's the current draw on the added wireless module?
I did not measure it, but it must be quite small (at least when no communication takes place)
Is it possible to take the device apart without using a Dremel/Proxon? It looks like one could press at the battery hold from the back side and then pop it out. Or maybe rotate it a bit and then press.
I do not know. Maybe you need some special tools. Because I wanted to include a Wemos, I anyway had to print a new case. So, I took the "shortcut"
It is possible to take the device apart non-destructively:
ruclips.net/video/NMupi1FeAB8/видео.html
Thanks Andreas for this great video! bis das nächstes Video
You are welcome!
Lightning, great, so does it mean they can only flash, or can you also use them for illumination?
I meat lighting ;-)
Haha, I know, great video anyway!
Ikea always uses Swedish words, with a few exceptions (mostly Norwegian place names). I don't think trådfri is a word in common usage in Swedish, but both words of the compounded word are Swedish. Both tråd and fri.
This topic lead to huge discussions (below). Then I asked Google translate and it said it is Danish.
Doesn't prove a thing, I'm afraid, as the Scandinavian languages have quite a few words in common. It's possible that compound word is used more in Denmark. I wouldn't know. In Norway we use trådløs. Means the same thing. In Sweden they use the same compound word, but the language is slightly different. So it's trådlös. But trådfri means the same thing in all languages, it's just not something we regularly use, which might be the point.
You are right. But me asking Google was before I made the video. And I did not care enough. I am now very well educated about the Nordic languages by the tons of comments; -)
Could one take a compatible module that can transmit to your system, add a photo sensor and assign values based on light intensity / resistance and place it next to the light to transmit a general idea as to what it senses? At least it would be something that could be polled by an automation system to provide status but as to sensing wether the light is actually on or off one might have to add a small cut tent sensor to the live phase of the socket and calibrate a micro voltage value to show if light is on or off taking into account that the lamp will always draw some micro amps on standby/off. This could also be used for showing intensity level of the lamp based on how much current is drawn for each step of the lamps brightness. You would be basically creating a smart socket that provides info to your system.
+Subgunman This is possible, but quite complicated. I will buy a gateway and try to hack this one...
But doesn't Tradfri also have a hub which works on a more common standard and can even be used with Hue?
This is an old video. Maybe thing changed. I never checked again
Yes, it uses Zigbee and others have done mqtt-zigbee bridges
Nice hack!
Why don't you use a current sensing coil/transformer to check if the lamp is on or off?
This would be too much. I will try another way...
nice Video, ty for the Upload!
I generally enjoy them. have a nice day and see you soon :D greatings from austria
Thanks for your feedback!
I am impressed, very interesting video as usual. I agree, IKEA har attractive pricing so why not... Now i have to visit IKEA in Haparanda :-)
I thought, you have a IKEA home delivery in Sweden ;-)
hehe - IKEA still makes the best manuals in the business. :)
:-)
This was interesting! Too bad the switch had to be cut open just to get in. I am very interested to see your exploration of the zig bee protocol. I was wondered if SDR (software defined radio) might have be helpful. However since (I presume) the zig bee protocol is well documented that would not be necessary. Thanks and as always I look forward to learning more.
I never worked with the Zigbee protocol, but I agree, it should be open. We will see...
Vielen Dank für den Link. Ich wusste das noch nicht, als ich mit meinem "Projekt" begonnen habe. Vielen Dank für den Link. Werde mir nächste Woche ein Gateway besorgen...
Thank you for the video. How long does the battery last with adding wemos to the circuit?
As I said in the video: I do not use the battery anymore.
oh ok I missed that
What is the communication system between that controller and the bulbs? Wifi? Bluetooth?
They use Zigbee. You find much simpler ways of controlling them in later videos on this channel.
That manual number could be quality testers signature.
True. But still interesting for a high series product...
I love Toto Wolff explaining IOT
He is Austrian ;-)
Good point about the issue of status!
Thank you!
Another classic!
Thanks!
Would you simply add an LDR to the Wemos to detect the lamp brightness?
You could do that, I think.
You're the best! Thank you for all your videos.
You are welcome!
I don't think I want lightning inside my house. 🌩🌩🌩 I think you meant lighting.
Thanks! I have to pay more attention on that. This is a small, but important difference ;-)
+Jonah: I should know it. But sometimes, I just translate it from German where it is called "laden"
I made a presentation of a science paper that I published. Did that small but important mistake. :-)
Andreas I love to listen to you :) great video as usually
Thanks!
The manual is mostly pictures so they don't have to print one for every country/language, not for people who can't read (like 45). I love your videos.
Is there anyway to link the lights to a hub (I have a wink hub, but IKEA's hub would be fine) without buying a remote just for pairing?
I do not know of a method to avoid the remote.
".. it is a Tradfri LED lamp and a controller.. so.. LETS HACK IT!" -- hahaha.. I love that attitude :P
:-)
it also works without anytthing extra or hacking using the SmartThings hub :-)
Thanks for the info. Good to know that standardization and interoperability between different brands grows in the area of home automation
Is it correct to call the delay() function 'blocking'? Obviously, the execution of the user code is stopped, but the background operations (the wifi stuff) are not blocked , but given all the processor time instead. I would argue that this is more than just a semantic issue, as delayMicroseconds() actually _is_ blocking, i.e., the user code will not yield and give any execution time to other tasks.
It is blocking for my code. This is, why I call it blocking. No code is blocking in your sense because the processor always executes code, even if the code is "NOP" (no operation).
Dear Andreas, Greetings from London. In the status mater, a light sensor at the room where the lamp will be installed, may be a good idea? Cheers.
I do not understand the need for a "light sensor". If it would be a sensor which detects people, that would be a good idea.
Trådfri is Swedish and basically means Wireless, "IKEA SWEDISH COMPANY." Though it is not written in the standard way Trådlös which is used as a more common phrase. ;)
+David Stenström There is already a big discussion about this topic in the comment below
Andreas Spiess saw that after i pressed enter haha ;)
+David Stenström :-)
IKEA's product names come from all of Scandinavia, some are in Danish or Norwegian. The words "tråd" and "fri" are in the Danish, Norwegian and Swedish dictionaries.
Gut gemachtes Video....
Danke!
All of these IoT items can be controlled via Alexa (Amazon) or something similar? I just want to walk into a room and say "computer, lights" and the lights will change its state so if off will go on and vice versa.
Official support from ikea will come later this year, but you can use something like home assistant if you want to use it now. It is based on zigbee and the bridge can be controlled via coap. Here you find some information home-assistant.io/blog/2017/04/17/ikea-tradfri-internet-of-things-done-right/
I plan to buy a gateway. So, stay tuned!
+cirf eu: Thanks for the link!
I wish he said if they are wifi or zigbee or maybe even z wave. Hue is zigbee and these are a rival to Phillips Hue right, so they have a bridge?
Ikea uses Zigbee.
a remote for a remote... i thought you will find out how they communicate (zigbee, bt, wlan,...) and hijack it. do you think this will be possible? i'ld buy many such lamps if this works.
damnit... i just learned to watch till end before commenting it. really would love to see how to find out whats going on in communication.
I will buy a gateway later this week...
The idea for a relatively word-free manual came from Ingvar himself who was born dyslexic. His dyslexia is also the reason why each product is given a unique name.
Interesting background. Thanks for sharing!
Hi, could you please post the ESP_IKEA_GATEWAY_MAKE_ASP final code as reported in your video? Thank great job!
This is an old video and I do not have these files anymore.
Definitely interesting and, I hope someday, useful for me.
Thanks!
IKEA iot devices? I didn't get the "i" for internet...only after your hack the light became part of internet. it appear to be just a cheap radio module... have I missed something?
nonetheless nice hack
Yes, you have missed that the device uses the IoT protocol CoAP, which are as advanced and IoT:ish as MQTT. So that it is not just a cheap radio module. You are welcome to read the links I have put up in other places.
Anders Jackson thanks you, this is interesting, I will check it out!
I plan to hack the gateway, too
@Andreas Spiess, I bought one yesterday. :-)
Mee too...
This is great video. I am part of a makers space in Chicago and your themes from Lora to MQTT are feeding our creativity. Is the code on github yet? I followed the links but could not find the code. Again, thank you for speaking about such timely subjects!
Thank you for your nice words. The code is not there, but it is very simple. I will publish it today or tomorrow and update the comment.
brilliant idea! & good job as well, thanks for sharing
:-)
Would I kill it by just putting 5V on there, instead of 3.3?
Most probably.
Great hack and video. Thanks.
You are welcome!
Im trying to do a own lamp with the IKEA chip, i have tried to read the signal from the chip inside the lamp, its the same as the controller in your video and i used the pinout from the german Make site..
Do you think its possible to make such a projekt?
I do not see why it should not be possible
Andreas Spiess do you have any tips on how I should begin? The original bulb supplys about 100vdc pulsed at 100hz. I do think I need to use the output from the chip itself..
+Oscar Eriksson I would divide the project into two parts: The Led part and the signal receiving part. The IKEA receiver would be a good receiving part. So, you only have to build the LED part. The only interface between is on-off, which seems not too complicated.
Andreas Spiess i already have the led part, I'm using a 12v rail across the ceiling but the only pins connected on the receiver was vcc, gnd, TX and dim+.. It's a dimmable light but the on/off toggle wasn't connected..
Hi, can I pair 2 bulbs or more to 2 switches ?
I do not know.
Good hack!
Thank you!
Speeding up the video makes the dremel sound like a bad experience at the dentist!
I had exactly the same impression! And I had to do it many times during editing. But I was glad it did not hurt ;-)
E27 is not "European", in it E stands for Edison, and 27 is a diameter in mm. There were many lamps and inventors at that time (circa 1900), but Edison was one of the first who had commercial success, and so the base and the socket used eventually became a standard. It appeared in U.S.A. first, with E26 being most used, although it's in fact 1 inch, which is very close to 26 mm. It and sprawled to Europe, where E27 is used to distinguish from USA's E26 (and different voltage of course), but they are so similar as the difference in diameter is only 1 mm.
Thanks for the info. I learn everyday something more!
Andreas Spiess thank you for all your videos and the work behind it! I really like how methodical (should I say scrupulous?), logical, and easy to understand they are.
Very cool!!
Thanks!
Trådfri ist Swedish
There is already a big discussion about this word in the comments below...
So add a text in the video at that point owning your mistake, and be done with the umpteen new comments on Trådfri.
Which by the way is a word that consists of Tråd, which in all of the nordic languages means thread or wire, and fri, which means free as in unhindered or at no cost :)
Just in the case no one else mentioned.
Can't be bothered to read 350 replies just to find out.
Q.E.D on the need of a text tag in the video :D
.
With my Samsung smartthings i could send you some raw data of the commands used in zigbeen when turning on and off. and also the handshake most of the lamps use when pairing.
Samsung smartthings is a great device as you are able to program your own Device handlers and as such include any zigbee device into it by yourself :)
Thanks for your offer. Maybe I have to come back if I am not successful. Viewers gave me some links which should help me getting the connections. But you never know...
Yeah, zigbee is a pretty well dokumented standard so you should not have much issue hackin them. It will be cool to see if you can build a gateway with mqtt for the lamps that is cheaper than the one from ikea :)
Good luck!
I will not try that. First, I will try to do it with the gateway. I think also, that the Zigbee modules are very expensive. So, beating the 35 $ price of a gateway will be difficult... Or do you have a better idea?
Cool video dude!
Thank you!
Nice project!!
:-)
Minor error in line starting with `snprintf(msg, 75, ` -- as the msg is 50 characters long, this could theoretically lead to overwrite. It's better to write it as `snprintf(msg, sizeof(msg), ` as in this case you don't have to remember the size of your array.
Thanks!
I am confused why you hacked a push button for MQTT integration, does this not have a API on the gateway like Phillips Hue so you can just hook up the MQTT on some Raspberry Pi to the API with some custom script?
+Robert Putt I do not know yet because I have to buy a gateway first.
Ok, thanks Andreas this makes sense, after all I guess this is cheaper without the gateway, what I would be mega impressed with is if you could mod one of those bulbs to be LoRa enabled :-P. Having a LoRa gateway on my roof means pretty much all rooms in my house are LoRaWAN capable. I hate that everything has it's own gateway these days, I'd much prefer one open source gateway that all IoT hooks into. I know these lights and Phillips Hue are Zigbee, but what annoys me is even the Hue bridge is not 100% Zigbee compatible implementation.
Nice project, seems fun.
:-)
use a light resistor to sense back based on the same idea. Use a second pair for feedback
Good idea!
nice, but mybe it will be better to hack retriever (bulb)?
Why?
Now you are converting very nice, mobile remote control in to switches glued to wall. When you will hack bulb, you can connect ESP8266 and make bridge to your automation system.
There is another possibility: Hack the gateway...
There are always many possible ways to achieve goal:) But original gateway is expensive one, also it is creating possible single point of failure, which I'm trying to avoid (I also resigned from mqtt broker in my home automation, and esp8266 are talking to each other directly). Sorry for cut in. I love your videos and ideas.
+Pawel Tylinski You are right. And every solution has advantages and disadvantages...
I started exactly the other way round: With ESPs talking to each other. Now, I use a Pi zero as a MQTT broker and node red. This works fine for me and is stable.
Is E27 only in EUROPE ?
Thank you.
Marc.
I do not know
Why the white gloves?
Private reasons.
I am still baffled that there is no wall mounted lightswitch-replacement for these smart bulbs. How are you expected to use the system? Tape over the old on/off powerswitch on the wall and stick the ikea remote to the wall? That can't be a solution.
So I plan to open up the ikea remote and hook it up to a Feller light switch (which is disconnected from the mains power), so when I press the regular light switch it closes the circuit of the ikea remote and switches the lights. The ikea remote can then be mounted inside the wall, behind the old switch. A 230v-to-3V step down regulator should replace the coin cell battery of the remove, making this system maintenance free.
Maybe they omit these switches because, in most countries, it is not allowed to mount them as a Maker. And there are many country-specific different standards around.
Andreas Spiess ok I did the hack and it works beautifully. Its very easy. Just solder two wires, one to the center button (remove carbon layer first) and to ground. Plug these wires into a standard wall switch. Tape the TRÅDFRI remote pcb behind the switch and into the wall socket. Now you have a Feller-TRÅDFRI-switch which looks and works perfectly.
From their own IKEA website:
-Can I develop the TRÅDFRI system by getting access to the systems API?
Not in the first release. But IKEA is working towards an open system.
-What protocol do the IKEA smart lighting products use?
IKEA smart lighting products use the ZigBee Light Link, which is an open standards protocol aimed at remote control. The lights create a mesh network with each other, enabling each light to pass on messages to the next. IKEA Smart Lighting products are compatible with other products according to the ZigBee Alliance. You can find more information at: zigbee.org
This is quite an old video and maybe they changed a lot. I did not work on this since then.
Hallo Andreas,
wollte mal fragen ob dein Account bei Aliexpress auch schon mal bockiert wurde?
Mir ist das leider kürzlich passiert und ich kann nicht ganz nachvollziehen, wieso Sie das gemacht haben. Muss wohl mit einem Dispute zu tun haben...
Gruss
Stefan
Meiner wurde noch nie blockiert (bei weit mehr als 1000 Aufträgen) und ich hatte auch schon disputes.
What are those blue camps called at 6:43?
video #77
thanks
Frühaufsteher ...
Vermutlich wir beide...
Why don't just use yeelight and homeassistant or tasker instead?
Because I have never heard of yeelight?
Yeelight is a smart APP controlled RGB led light produced by xiamo which can be baught at gearbest.com I personally use them with Homeassistant on a Raspberry pi with an Mqtt Broker.
Andreas, What is your mqtt server ??
Mosquitto. I made a video about that
Trådfri is Swedish and means wireless. (IKEA is a swedish company, wish explain all the strange product names)
Can't get these in Australia yet
I am pretty sure they will arrive some day. And then, you are already prepared ;-)
@Andreas Spiess, you can look here for more information.
ruclips.net/video/bNS_fINyaQE/видео.html
So based on coap-client, you can make a MQTT gateway.
(Trådfri is Swedish, and å is not "a", it is pronounced more like "o" in
english low and fri pronounces like english "free".) :-)
Thanks for your link. I have now a few of them to choose from. But first, I have to get a gateway...
The manual is not for "people who cannot read" but rather "multilingual" :-)
:-)
The name is Swedish and not Danish.
Trådfri is the name and is a play on the word wireless and that would translate directly into Trådlös but since that's a common name they've translated it incorrectly to Trådfri that would be the translation of wire less.
There are already many comments about this topic below...
IKEA's product names come from all of Scandinavia, some are in Danish or Norwegian. The words "tråd" and "fri" are in the Danish, Norwegian and Swedish dictionaries.
if you want to excercise on your swedish accent, Å is better replaced with an O, not A.
Ä can be replaced with E, and it sounds like the A in the english word "bad".
Ö is harder to have a reference to... someone else might have an example.
Thanks for the tip!
Why kill the Remote ?
Easy to open if you do it right.
But thanks for the video after that I could open it safe.
And put it together again.
Now I also know how to do it ;-)
brilliant
Thanks!
Great !
:-)
hahahaha... next time you are in Copenhagen I teach you to say trÅdfri if you give a beer :-D trÅd ... not trad :-D :-D Thanks for at super video!!!
Is you hear in my videos, I am not very skilled in foreign languages...
Disappointed they aren't available in RGBW, or I would consider them. Hue and Lifx provide this and they are missing a trick in not.
I think, IKEA just started and the others are a few years ahead...
Ooh, that will void the warranty! LOL !!
+Joe Maldonado Shit! I did not think about that and now, it is too late :-(
ROTFLAMO !!!
Why don't you just use an enum for the commands?
Would have been a better solution. I just did a quick hack to show how it works...
ah yeah ok. Makes sense. It just looked to weird to me when you basically made an enum with an array. :P
I am not sure. AFAIK enums are translated into consecutive numbers starting with zero. My array not necessarily contains consecutive numbers and for sure does not start at zero. Do I miss something?
enum pins {D1 = 3, D2 = 0, D4 = 4, D5 = 2, D6 = 1, D7 = 5};
E -> Edison-Screw 27
Thanks!
awsomw video LIKE
Thanks!
Actually tradfri , trådfri , means wireless in Swedish.
Thanks!
Radical hacking, i thing using gateway will be easier.
You probably are right. We will see...
Anyway i think you do grate job.
:-)