# \[APP\] Yeelights LAN

**URL:** <https://community.homey.app/t/app-yeelights-lan/21134>\
**Category:** Apps\
**Tags:** app, lights, yeelights\
**Created:** [November 22, 2019, 10:13pm UTC](https://community.homey.app/t/app-yeelights-lan/21134 "2019-11-22T22:13:16Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 4, 2020, 6:46am UTC](https://community.homey.app/t/app-yeelights-lan/21134/83 "2020-02-04T06:46:12Z")

</div>

It says it supports Miya. This is the closed protocol from Xiaomi. So it might be supported by the Xiaomi Mi Home app. I don’t see anything about support for the open protocol used by Yeelights lights. So no, it probably won’t be supported by this app.

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [February 4, 2020, 6:55am UTC](https://community.homey.app/t/app-yeelights-lan/21134/84 "2020-02-04T06:55:17Z")

</div>

Yes, the behavior is exactly as you describe. Thanks for looking into this.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 6, 2020, 9:00am UTC](https://community.homey.app/t/app-yeelights-lan/21134/85 "2020-02-06T09:00:52Z")

</div>

Do you know how to run the app from the command line so I can gather extra debug loggin using `homey app run`? How to do this is described here: [[HOW TO] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198)

And you can use this debug branch: [https://github.com/jghaanstra/com.yeelight/tree/debug](https://github.com/jghaanstra/com.yeelight/tree/debug)

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [February 6, 2020, 7:34pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/86 "2020-02-06T19:34:42Z")

</div>

I’m a complete noob in that, but I’ll try. I should install v.1.1.0 from github, right?

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [February 6, 2020, 8:21pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/87 "2020-02-06T20:21:39Z")

</div>

NVM I think I got what I need to do. So I downloaded the ZIP file from the debug branch on github, logged in via node.js command line, navigated to the folder where I unzipped the contents of the ZIP file and ran a “homey app run” command. “com.yeelight” app was successfully installed. It also reported:

─────────────── Logging stdout & stderr ───────────────  
2020-02-06 23:13:39 [log] [YeelightApp] Initializing Yeelight app …

What should I do next?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 6, 2020, 8:41pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/88 "2020-02-06T20:41:18Z")

</div>

First change the color from a flow tag. And after change the color from the device card.

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [February 6, 2020, 9:38pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/89 "2020-02-06T21:38:43Z")

</div>

Done. Should I get a log or something else somehow?

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [February 6, 2020, 10:08pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/90 "2020-02-06T22:08:34Z")

</div>

OK, have read the above posts on using the debug…

I don’t have any additional lines in the debug log after launching the flow which changes the ambilight color (the flow works OK though, changes the color etc.) or trying to change the ambilight color manually via long-press on the device card (still does not work). I’m only able to get a new line in the log when I restart the app.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 6, 2020, 10:27pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/91 "2020-02-06T22:27:36Z")

</div>

Are you sure you have downloaded the debug branch from Github?

> **[jghaanstra/com.yeelight](https://github.com/jghaanstra/com.yeelight/tree/debug)**
>
> Homey app for controlling Yeelights. Contribute to jghaanstra/com.yeelight development by creating an account on GitHub.

It should spit out extra lines similar like this:

````auto
2020-02-06 23:25:49 [log] [ManagerDrivers] [yeelight] [0] changing color with values: HUE: 0.98, SAT: 0.99
2020-02-06 23:25:49 [log] [ManagerDrivers] [yeelight] [0] Command to light send: {"id":1,"method":"bg_set_hsv","params":[351.82,99, "smooth", 500]}
2020-02-06 23:26:17 [log] [ManagerDrivers] [yeelight] [0] changing color with values: HUE: 0.36, SAT: 0.88
2020-02-06 23:26:17 [log] [ManagerDrivers] [yeelight] [0] Command to light send: {"id":1,"method":"bg_set_hsv","params":[129.24,88, "smooth", 500]}```
````

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [February 6, 2020, 10:45pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/92 "2020-02-06T22:45:12Z")

</div>

Just tried to download an run again.

After “homey app run” I get the following lines:  
C:\Users\Alex\Desktop\com.yeelight-debug2\>homey app run  
✓ Pre-processing app…  
✓ Validating app…  
✓ Homey App validated successfully against level `debug`  
✓ Packing Homey App…  
✓ Pruning dev dependencies…  
— App size: 856.5 KB  
✓ Installing Homey App on `Malyshi Homey Pro` ([https://192-168-1-14.homey.homeylocal.com](https://192-168-1-14.homey.homeylocal.com))…  
✓ Homey App `com.yeelight` successfully installed  
✓ Running `com.yeelight`, press CTRL+C to quit  
— Profile your app’s performance at [https://go.athom.com/app-profiling?homey=5](https://go.athom.com/app-profiling?homey=5)…a&app=com.yeelight  
─────────────── Logging stdout & stderr ───────────────  
2020-02-07 01:42:02 [log] [YeelightApp] Initializing Yeelight app …

Looks like the debug version is running, right? I really don’t know what I’m doing 🙂

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [February 6, 2020, 10:46pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/93 "2020-02-06T22:46:27Z")

</div>

I still can’t get any lines in the log appearing when I change the ambilight color (even though if I do it in flow it works). I’m only able to get a new line written in the log when I restart the app.

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [February 6, 2020, 11:11pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/94 "2020-02-06T23:11:32Z")

</div>

OK, so I deleted and repaired my ceiling light and all of a sudden it works as it should. I also get the log lines now when changing the color / main light temperature. No changes except re-pairing the light, the app version is still from debug branch.

Now on to reinstalling the app version from the store and recreating the device cards in the flows. Long night ahead 🙂

Thanks for looking into the issue, Jelger!

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 7, 2020, 7:00am UTC](https://community.homey.app/t/app-yeelights-lan/21134/95 "2020-02-07T07:00:12Z")

</div>

Could it be you still had your Yeelights paired with the Xiaomi Mi Home app. Soms time back the Yeelights got their own app. Glad it’s sorted though.

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [February 7, 2020, 9:29pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/96 "2020-02-07T21:29:36Z")

</div>

I definitely had the ceiling lamp migrated to Yeelights app already a while ago. I would suspect it paired initially with a wrong device type or something akin the issue resolved in v.1.0.5. Not sure why the debug driver did not log until I re-paired the light though…

Whatever it was it’s fixed now, so one happy bunny here 🙂

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 13, 2020, 9:07pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/97 "2020-02-13T21:07:35Z")

</div>

> ## v1.1.0 - 2020-02-13
> 
> Fixed issue with dim duration. Added action cards for onoff, dim and temperature for ambilight (ceiling 650 and meteorite).

---

<div class="post-metadata">

**Author:** ![Ruud\_van\_Beek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruud_van_beek/32/969_2.png) [@Ruud\_van\_Beek](https://community.homey.app/u/Ruud_van_Beek)\
**Post date:** [February 22, 2020, 10:49am UTC](https://community.homey.app/t/app-yeelights-lan/21134/98 "2020-02-22T10:49:13Z")

</div>

Since there is now a backup feature, coming from V1.5.3 I recently upgraded to the lasted version of homey and connected apps.

Besides some minor issues all works quite well now and backups are running nightly.

Yesterday I decided to change the previous Xiaomi Wifi app for the dedicated Yeelight app. At first it looked like all was working well but then several Yeelights were dropping out with a famous triangle.

After that I thought 2 apps for the Yeelights probably was too much so I deleted the old Xiaomi app. The devices were then automatically gone too… Tried to do a re-pair with the Yeelight app, but unfortunately no lights are found anymore. I even tried to reset 1 light (5x power off) but still nothing is found.

What am I missing here? Any suggestions?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 22, 2020, 11:01am UTC](https://community.homey.app/t/app-yeelights-lan/21134/99 "2020-02-22T11:01:12Z")

</div>

> [@Ruud\_van\_Beek](#):
>
> What am I missing here? Any suggestions?

Make sure you remove the lights using the Xiaomi app. Removing the app won’t remove the devices. This will prevent them to be discovered as Homey sees the devices as already paired.

---

<div class="post-metadata">

**Author:** ![Ruud\_van\_Beek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruud_van_beek/32/969_2.png) [@Ruud\_van\_Beek](https://community.homey.app/u/Ruud_van_Beek)\
**Post date:** [February 22, 2020, 11:05am UTC](https://community.homey.app/t/app-yeelights-lan/21134/100 "2020-02-22T11:05:00Z")

</div>

Aha, sounds logical.

How do I do that? Reinstall the Xiaomi app? Fist uninstall the Yeelight app too?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 22, 2020, 11:26am UTC](https://community.homey.app/t/app-yeelights-lan/21134/101 "2020-02-22T11:26:18Z")

</div>

Yes, reinstall through app store. No need to first remove the Yeelights app. Under Xiaomi app settings you can see which devices are still paired.

---

<div class="post-metadata">

**Author:** ![Ruud\_van\_Beek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruud_van_beek/32/969_2.png) [@Ruud\_van\_Beek](https://community.homey.app/u/Ruud_van_Beek)\
**Post date:** [February 22, 2020, 11:42am UTC](https://community.homey.app/t/app-yeelights-lan/21134/102 "2020-02-22T11:42:29Z")

</div>

Installed, but I do not see any connected devices…  
Maybe I’m not looking properly? Is there another way to find still paired devices?

[Previous page](https://community.homey.app/t/app-yeelights-lan/21134.md?page=4)

[Next page](https://community.homey.app/t/app-yeelights-lan/21134.md?page=6)
