# Mi led smart bulb support

**URL:** <https://discourse.mozilla.org/t/mi-led-smart-bulb-support/43082>\
**Category:** WebThings\
**Created:** [July 27, 2019, 8:39am UTC](https://discourse.mozilla.org/t/mi-led-smart-bulb-support/43082 "2019-07-27T08:39:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sibyaugustine93](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sibyaugustine93](https://discourse.mozilla.org/u/sibyaugustine93)\
**Post date:** [July 27, 2019, 8:39am UTC](https://discourse.mozilla.org/t/mi-led-smart-bulb-support/43082/1 "2019-07-27T08:39:42Z")

</div>

Hi Team,

Is it possible to add mi led smart bulb to my webthing gateway after connecting to wifi router?  
[https://www.mi.com/in/mi-led-smart-bulb/](https://www.mi.com/in/mi-led-smart-bulb/)

I don’t have any ZigBee network. Planning to use wifi.

---

<div class="post-metadata">

**Author:** ![mstegeman](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mstegeman](https://discourse.mozilla.org/u/mstegeman)\
**Post date:** [July 27, 2019, 4:54pm UTC](https://discourse.mozilla.org/t/mi-led-smart-bulb-support/43082/2 "2019-07-27T16:54:25Z")

</div>

We currently don’t have an add-on that supports those bulbs, but it’s certainly possible to create one.

---

<div class="post-metadata">

**Author:** ![sibyaugustine93](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sibyaugustine93](https://discourse.mozilla.org/u/sibyaugustine93)\
**Post date:** [July 28, 2019, 7:12am UTC](https://discourse.mozilla.org/t/mi-led-smart-bulb-support/43082/3 "2019-07-28T07:12:55Z")

</div>

Thank you so much @mstegeman for your response. Can please guild me how to create an add-on?  
Any tutorial URL, especially for resolving these kinds of requirements.

---

<div class="post-metadata">

**Author:** ![mstegeman](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mstegeman](https://discourse.mozilla.org/u/mstegeman)\
**Post date:** [July 29, 2019, 4:11pm UTC](https://discourse.mozilla.org/t/mi-led-smart-bulb-support/43082/4 "2019-07-29T16:11:49Z")

</div>

This is a really nice tutorial: [https://hacks.mozilla.org/2018/02/creating-an-add-on-for-the-project-things-gateway/](https://hacks.mozilla.org/2018/02/creating-an-add-on-for-the-project-things-gateway/)

Other resources:

- [https://github.com/mozilla-iot/wiki/wiki/Adapter-API](https://github.com/mozilla-iot/wiki/wiki/Adapter-API)
- [https://github.com/mozilla-iot/wiki/wiki/Add-On-System-Design#package-layout](https://github.com/mozilla-iot/wiki/wiki/Add-On-System-Design#package-layout)
- [https://github.com/mozilla-iot/addon-list](https://github.com/mozilla-iot/addon-list)

I’d recommend picking an existing add-on as a starting point and working from there. I’m actually wondering if those bulbs are the same as the Yeelight (also made by Xiaomi). The hardware looks nearly identical. If that’s the case, the existing Yeelight add-on _might_ work.

---

<div class="post-metadata">

**Author:** ![mstegeman](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mstegeman](https://discourse.mozilla.org/u/mstegeman)\
**Post date:** [July 29, 2019, 4:15pm UTC](https://discourse.mozilla.org/t/mi-led-smart-bulb-support/43082/5 "2019-07-29T16:15:25Z")

</div>

Actually, yes, the Yeelight add-on should work fine. Do the following:

- Add the bulb to the Yeelight app.
- Click on the bulb you just added.
- In the advanced features menu (looks like an up arrow in the bottom right corner), click on “LAN Control”.
- Toggle the switch on.

Now, install the Yeelight add-on and your bulb should be detected.
