Smart lighting is all the rage right now. Sure, Phillips Hue is the giant player in the market, but there are plenty of ZigBee, Bluetooth, and WiFi light bulbs out there. Ikea–known for cheap furniture, meatballs, and waffles–is a recent addition to the field with their Tradfri system. Like most things from Ikea, they are effective and inexpensive. [Andreas] takes a Dremel to the controller and shows how to hack the system to use MQTT. You can check out the video below.
Once he had the device opened, the used the German Make magazine article we talked about earlier, to help understand what he had. Armed with the pinout, he was able to solder a wiring harness to the controller. He then connected a WeMos board. A little Arduino code later, and he was controlling the light with MQTT.
From MQTT, it was simple to connect the lights to a variety of systems without having to use a separate hub as they do for the default. [Andreas] notes, though, that the system doesn’t offer any feedback which can make things difficult. However, he has plans to further hack the devices in the future.
If you want to know more about MQTT, by the way, [Elliot Williams] did a good series that will help you get started.
Though if you have the Ikea gateway you can do all sorts of things without having to do hardware hacking. My Ikea lights are happily controlled by my Alexa Dots, and via the Home Assistant web UI now the Gateway protocol has been reverse engineered.
https://home-assistant.io/components/tradfri/
I have no problem with home automation, I just think it’s dumb to make any of it wireless because that makes it totally unreliable.
On the other hand, wireless communication cannot be destroyed by a hungry hamster chasing for cables to eat.
Workaround: use cat cables, to scare the hamsters.
That might work for small installations, but the price of routers and wiring would be prohibitively high for a reasonably-sized home. Plus, routing those wires would be quite a job. I’m not sure how I’d get an ethernet cable to the lightbulb in my ceiling fan, but I don’t think I’d like it.
The only alternative I can think of is communication by modulating the 60Hz signal in the wall power. That might be an interesting route, but that would seem even more unreliable than wireless. With wireless, you can at least predict that the signal won’t reach from the house to the garage. With the wall power modulation, two rooms that are right next to each other might effectively be quite distant for the signal, depending on how the wiring was laid out.
PS: The thing I was thinking of in the second paragraph is apparently called Power-Line Communication: https://en.wikipedia.org/wiki/Power-line_communication
X10 is a very old but widely used standard for control over the mains wiring.
X10 is limited to 120 bits per second — basically one bit per zero crossing of the AC — and so it takes a noticeable fraction of a second even for a simple signal like “turn node on,” where node has to be addressed in a fairly limited house/device space. As for relaying real information, forget it.
And, for whatever reason, it was never terribly reliable.
Would be the smartest way to do all this, and signal doesn’t have to deal with a socket, or antenna.
I have (Trendnet) IP over powerline for one leg of my network – it’s so reliable I forget I have it. Seems like a no-brainer to use this on all IOT devices.
Seems like a bus style network configuration would be fine for this stuff if you don’t mind running extra cable everywhere. It wouldn’t be reliant on oddball electrical systems that need gadgets to bridge between different runs either. You don’t need a traditional star layout for low speed IoT kinds of devices. A 10mbit bus throughout the house would be more than enough for a lot of things short of networked security cameras.
It is quite power hungry and things get quite complicated when you have multi phase power or live in a building with many apartments around and need a filter.
My wireless zWave system has been working flawlessly (with the exception of 1 hardware controller replacement) for over 3 years. Once the system was set up properly, I can’t recall ANY time I’ve sent a command that was not processed correctly. And there is feedback, so if a command is not processed successfully, it can be detected and automatically re-sent.
You can make things reliable enough with wireless.
Super low power and mesh is good, but impractical because people don’t start with hundreds of devices at once. Just use a radio strong enough to reach any corner of you house in the sub GHz band. Adjust TX power automatically to reduce interference. Decent security with AES + nonce, no OTA. Reusult >99% of packets delivered first try.
How I know: tried home automation with low power 2.4GHz (like NRF24L01) and gave up. Moved to RFM69 and all works flawlessly. http://www.electrobob.com/1000-1000-hardware/
Tradfri (or Trådfri) translates to wireless.
why the gloves ?