MiLight Smart Lamps, or how to find adventures on your gluteus maximus
Spring was in the yard. Birds sang in the clouds, and on sinful earth they were echoed by cats and a drunken neighbor Uncle Misha. The second month of unrestrained repair in the new apartment was ending. The painful choice of wallpaper and accelerated Tajik language courses by the method of “Of course, we know how to make an Ethernet socket!” Are over. Everything is over. All left with the same number of fingers, which came two months ago.
Meanwhile, the obsessive thought about the lamp did not go away. This time I decided to go the other way. “Why do I need a separate device when there are lights now that can be controlled via Wi-Fi?” I thought and got into Google. It turned out that Philips really made the Hue smart lamp, which can be controlled via Wi-Fi. And it even has a REST API. I want you to reread this sentence a couple of times and think about its meaning: the light bulb has a REST API . Let it sink in. Yep. Overjoyed at this turn of events, I again went to Amazon with the firm intention to order the creation of Dutch engineers. However, the price is 9500 r. for a set of a hub and three lamps, my ardor quickly cooled. Perhaps the insanity would still have prevailed, but it turned out that the Hue comes only with a “large” E26 base, and in all my lamps there are “small” E14 cartridges. In addition, a 220 V power supply and an Ethernet cable must be connected to the Philips hub. In the light bulbs Wi-Fi, of course, no. Instead, each light bulb has a cheap radio module that communicates with the hub; the hub can already receive commands via Wi-Fi. ')
One could have stopped here, but, unfortunately, I remembered the wonderful site aliexpress.com, which sells everything possible, some impossible, as well as a couple of incredible goods. And of course, the Chinese had smart lamps with an E14 socket. For the test, I took a set of a hub and one light bulb. All this happiness cost me 1500 rubles (free delivery).
A month has passed. Russian Post, finally, took my package and did not even lose anything. With a sinking heart, I pulled out the light bulb itself, the hub and the USB power cable:
A nice feature of the Chinese device was this particular USB cable. Hub does not need either 220 V or Ethernet. Not very pleasant, but tolerable feature was the size of the light bulb. On the left, the usual LED light bulb, on the right - MiLight:
In my lamp a big light bulb doesn’t look that bad. But for someone the size may be important:
After I screwed the light bulb into the lamp, I immediately lit it. Oddly enough, the bulb lit up:
But further went unobvious manipulations. I downloaded the MiLight application in appstore and connected the hub to USB. Merry LEDs lit up, and a new item appeared in the list of Wi-Fi points called “milight- [something there]”. In the default mode, the hub raises its access point, and in order to control the bulbs, you need to connect to it in the standard way. After connecting to the access point, I opened the application and immediately saw my hub. While everything is clear, and the instruction is not required. But after selecting a hub, it was not clear. The application offered me a choice from as many as six control panels:
As a finished engineer, I did not read the instructions, and just poked at all the buttons in all control panels. Strangely enough, it had absolutely no effect, and the smart lamp continued to burn with indifferent white light. Not believing in the failure of this reliable method, I poked all the buttons again, with the same zero effect. I had to google manual on the manufacturer's website. From the manual, I learned a lot of interesting things. For example, the fact that the control panel must be selected depending on the type of light bulb. I bought an RGBW light bulb, so I should use this panel:
But to make the panel connect with the smart lamp turned out to be not so easy. It was necessary to turn off the light, then turn it on again and FAST click on one of the four “I / O” keys at the bottom of the panel. The key word here is “fast.” I managed to make friends with the light bulb only from the fourth time, as I was informed by a triple blink of the test subject.
And from that moment everything went fine. The light bulb can shine with any color from the RGB-spectrum, as well as the usual white light. The central button switches special modes. There is a smooth color changing mode; the epileptic friend mode, when the vigorous colors change at a very high speed; and also my favorite zombie apocalypse mode. I liked him so much that I even recorded it on video:
Running around the apartment with a crowbar in my hands and a gas mask on my head, I decided to bring the setting to the end. As you remember, in order to control the lamp, we need to connect to a separate access point. But the MiLight hub can work in another mode. It is enough to go to the settings, select an existing Wi-Fi network and enter a password from it, after which the hub will cease to create its own access point and integrates into your network. After that, you can close the application, connect to your normal network, start the application again, and make sure that everything works. I checked the performance on the router Asus RT-AC68U. At the same time, the Mi Light hub connected to the 2.4 GHz network, and the smartphone to the 5 GHz network. Moreover, the Chinese claim that after such a setup, their application can control the bulbs using MAGIC ™ even if you are on any other network (Wi-Fi at work or 3G-LTE). I tried, and I did not succeed. Perhaps there is also some nuance.
So, the first acquaintance with the MiLight light bulb left a very pleasant impression. First, the Chinese kit costs 8000 p. Cheaper than Philips counterpart And secondly, the hub from MiLight does not need power supply of 220 V (which means you can not be afraid that the crappy Chinese electronics burn your apartment) and Ethernet. As a minus, you can note the absence of any API. However, this will not stop us: in the next article we will take the device on the android and sniff the traffic between the phone and the hub. No API? Well, let's make one! >:]
UPD: Good people gave a link to the API from the manufacturer: www.limitlessled.com/dev . I myself have not tested it yet.