How To: Inexpensive ($10 US) WiFi RGB Bulb that works with Home Assistant

@Skilly They mention that it works with the TuyaApp. This app also works with the Ai-Thinker Light… This might mean the light has a ESP8266 (wishful thinking).

1 Like

Nice work with the jigs Sacha!!! I still need to update my firmware to the latest rev. My job has been non-stop as of late!

1 Like

Thanks! More features coming up… :slight_smile:

1 Like

I thought NOOOOO but then saw the price was for a 5 pack…

I got mine from this company. $200US for 20 bulbs, plus $30 delivery to New Zealand, this is the same company @stelgenhof mentioned in an earlier post in this thread.

https://www.alibaba.com/product-detail/Hot-Sale-Tuya-Smart-Home-Wirelessly_60587885920.html?spm=a2700.7724838.0.0.yrP1rZ

If that page disappears, search alibaba for Hangzhou Aixiangji Technology Co., Ltd. I suspect they are the manufacturers, according to my order details the contact email address was [email protected], which ties into the Tuya app compatibility mentioned a few times in this thread.

PS it says 120V at the start of the page, but the detailed specs later on the page say 85-265V and 50-60 Hz.

Yes, I ordered 10 two weeks ago and paid 110 USD including shipping. Only they had the gold aluminium body but I wasn’t to bothered with that.

According to the merchant stock is pretty limited as people mostly want the silver version.

It looks like the output is much lower for some reason than the ones I posted though. They show only 470 Lumen on 9w. The ones I linked to are 800lumen for 7w. I wonder if they are different lights or wrong spec for one of them…

I ordered the 5 pack so I’ll let you all know next week when they come if they have the ESP8266 chip and same pin layout.

1 Like

@stelgenhof the jig arrived and works well, although my eyes are so dim I have to use my jewellers magnifying specs to line everything up.

As a starter I downloaded the firmware without setting the wifi parameters relying on this [quote]Leaving the WiFi settings blank, will make the AiLight start in AP mode (Access Point). From there you can access the settings screen and enter your WiFi settings.[/quote]

That worked fine from my android phone, once I figured out the default AP password is hinotori - I had to search the source code for this - perhaps you could put it in the README? Also the default IP address of the bulb as 192.168.4.1 would have been useful, but fing found it for me. Perhaps this could also go in the README?

After that the web interface worked well to control the bulb, worked very well in fact.

But changing the default wifi and mqtt settings didn’t work for me. I set them in the web interface and clicked ‘save’ at the foot of the page. I then restarted the bulb from the web interface. However it came back up in AP mode. Same if I switched off the mains switch and turned it back on.

Anyway I will reflash with the wifi settings set in the source per the instructions and see what happens. That will be tomorrow or perhaps the weekend. In the meantime if you have any insight as to what I am doing wrong, feel free to tell me how stupid I am!

Please don’t think this post is a complaint, I am very impressed!

Thanks! Yes, I know the pogo pins and the PCB contacts are tiny :slight_smile:

Hmm, I admit that part (WiFi settings) isn’t that all clear in the documentation. I’ll add it to my TODO list.

As for the settings, I haven’t experienced that issue but then again I use the config.h for the initial build and flashing of my firmware. So perhaps I need to test this once more.

No worries, I am happy to get feedback. Just shows that one cannot see everything from the start.

Cheers! Sacha

Umm while this is great, they are (at least now) around 15$ which is what it cost a Yeelight RGB that works out of the box with HA. Just to have another option if you are not willing to do soldering and spend time!

@jcastro Certainly! There are many affordable alternative Smart Lights out there. I am not sure if still the case, but the YeeLight was/is not available in a 110V version (I live in Japan where we use 110V), so this Ai-Thinker bulb is a nice welcome.

And, we simply like to tinker and build stuff ourselves :slight_smile: To avoid soldering, I created therefore this jig…

Just to confirm for all they have the same ESP8266 for the 5 pack above.Comes to 13.80 per light shipped…

Still US$7-10 here This product is no longer available.

Hi Nick,

I believe the saving issue you experienced has been identified. Thanks to @delian7! I have fixed it on Github in the master branch. Soon I will tag a new release 0.4.0 in which this fix will be included.

As for the documentation part: I’m in the process of making a wiki on Github :slight_smile: Hopefully the wiki will be a bit more structured than the plain README.

Cheers, Sacha

First of all: Thanks for this great firmware, Sacha and for your support here on the forums. That really is amazing!

I just received my first bulb yesterday, which I ordered after reading this thread and the tinkerman blog. And I have a few others on the way.

There are a few questions I have though, hope someone with hands-on experience can share their view/experience:

  • Is it possible to setup the light’s default settings (color, brightness) when switched on from the wall switch?
  • How do others use this with wall switches? These lights need to always have power supplied to them in order to be able to control them remotely. But, (at least for ceiling lights), they always have connected switch on the wall somewhere causing others in the house to switch off the lights completely on occassion. :slight_smile: I know, very 1st world problems to have, but still :slight_smile:

Can’t wait to get going with this bulb though! I love that it is directly wifi capable without the need for an additional (cloud connected) hub!

Hi @aetjansen,

Thanks for the kind words! More stuff is coming up soon :slight_smile:

  • The firmware will remember the last used settings of the light. So if the light was on, before you switched off the main power. It will turn back on, after switching the power back on (not only ON/OFF but also colors, brightness, etc.)
  • Indeed these need to have constant power as there is no battery. So when you switch if off (wall switch), the light is off and not connected to your WiFi network any longer)

Hopefully that answers your questions.

Cheers! Sacha

Thanks, been out of the loop as have had the flu for a couple of weeks.

This is my dilemma too. Sometimes I think I will just bypass the wall switch, and leave all control to hass and an android wall panel.

But I am not sure how the plebs would cope.

Same here, my kids switch off these lights all the time. So I disabled the switch (i.e. light is always powered).

Hi all,

Just tagged a new release of the AiLight firmware: v0.4.0!

This release includes support for transitions, and when you perform an OTA upgrade or restart/reset your device, a user friendly message is shown in the Web UI.

Also, the issue that the Web UI didn’t save the settings, has now been fixed. @nickrout will like that :slight_smile:

I’m in the process of reorganizing the documentation into Wiki pages to make it easier to find information, so for sure please check these out. If there is anything missing, incorrect, etc. please let me know (or submit an issue on Github).

Hope you will enjoy this version, so please download it from Github and let me know if encounter any issues.

Cheers! Sacha

1 Like