# \[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:** 3

<div class="post-metadata">

**Author:** ![GrassesSmegma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/grassessmegma/32/16379_2.png) [@GrassesSmegma](https://community.homey.app/u/GrassesSmegma)\
**Post date:** [December 2, 2019, 3:24pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/41 "2019-12-02T15:24:29Z")

</div>

1 of my 4 devices is also unreachable, also after reinstall

---

<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:** [December 3, 2019, 3:48pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/42 "2019-12-03T15:48:28Z")

</div>

> ## v1.0.3 - 2019-12-01
> 
> Small fixes to improve pairing process and avoid crashes when removing Yeelight devices.

---

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [December 4, 2019, 11:55pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/43 "2019-12-04T23:55:08Z")

</div>

Reporting what works for me here in case anyone experienced the same…

After removing the Yeelight led strip from the Xiaomi app, I also couldn’t add them back in via the Yeelight app. Tried ptp on homey, restarted all the respective apps and reboot didn’t work.  
What worked, was to physically power off and on the Yeelight light itself to force a reconnection to wifi before the homey Yeelight app detected it.  
All the while, the iOS Yeelight app is working with the Yeelights but somehow homey just couldn’t detect it…

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [December 6, 2019, 6:10am UTC](https://community.homey.app/t/app-yeelights-lan/21134/44 "2019-12-06T06:10:38Z")

</div>

Hi, today all my Yeelights were off - 8d3b8c2d-04a6-44ec-8261-283464f46d23 , yet again working fine in the original 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:** [December 6, 2019, 11:17am UTC](https://community.homey.app/t/app-yeelights-lan/21134/45 "2019-12-06T11:17:27Z")

</div>

Below is a big part of the log. It seems the connection is reset and the lights become unreachable. I already catch these events and don’t know what else to do. It just seems an unstable connection between Homey and the lights.

```auto
log] [ManagerDrivers] [yeelight] [2] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 02:51:34 [log] [ManagerDrivers] [yeelight] [2] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 02:51:42 [log] [ManagerDrivers] [yeelight] [5] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 02:51:42 [log] [ManagerDrivers] [yeelight] [5] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 02:52:18 [log] [ManagerDrivers] [yeelight] [0] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 02:52:18 [log] [ManagerDrivers] [yeelight] [0] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 02:52:28 [log] [ManagerDrivers] [yeelight] [6] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 02:52:28 [log] [ManagerDrivers] [yeelight] [6] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 02:52:28 [log] [ManagerDrivers] [yeelight] [4] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 02:52:28 [log] [ManagerDrivers] [yeelight] [4] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 02:52:49 [log] [ManagerDrivers] [yeelight] [7] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 02:52:49 [log] [ManagerDrivers] [yeelight] [7] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 03:00:25 [log] [ManagerDrivers] [yeelight] [6] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 03:00:25 [log] [ManagerDrivers] [yeelight] [6] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 03:00:25 [log] [ManagerDrivers] [yeelight] [4] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 03:00:25 [log] [ManagerDrivers] [yeelight] [4] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 03:00:45 [log] [ManagerDrivers] [yeelight] [7] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 03:00:45 [log] [ManagerDrivers] [yeelight] [7] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 03:00:55 [log] [ManagerDrivers] [yeelight] [5] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 03:00:55 [log] [ManagerDrivers] [yeelight] [5] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 03:00:55 [log] [ManagerDrivers] [yeelight] [3] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 03:00:55 [log] [ManagerDrivers] [yeelight] [3] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 03:01:08 [log] [ManagerDrivers] [yeelight] [8] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 03:01:08 [log] [ManagerDrivers] [yeelight] [8] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 03:01:26 [log] [ManagerDrivers] [yeelight] [1] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 03:01:26 [log] [ManagerDrivers] [yeelight] [1] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 03:01:31 [log] [ManagerDrivers] [yeelight] [0] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 03:01:31 [log] [ManagerDrivers] [yeelight] [0] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 03:02:07 [log] [ManagerDrivers] [yeelight] [2] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 03:02:07 [log] [ManagerDrivers] [yeelight] [2] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:02 [log] [ManagerDrivers] [yeelight] [8] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 04:51:02 [log] [ManagerDrivers] [yeelight] [8] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:07 [log] [ManagerDrivers] [yeelight] [1] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 04:51:07 [log] [ManagerDrivers] [yeelight] [1] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:07 [log] [ManagerDrivers] [yeelight] [5] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 04:51:07 [log] [ManagerDrivers] [yeelight] [5] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:07 [log] [ManagerDrivers] [yeelight] [3] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 04:51:07 [log] [ManagerDrivers] [yeelight] [3] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:08 [log] [ManagerDrivers] [yeelight] [7] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 04:51:08 [log] [ManagerDrivers] [yeelight] [7] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:11 [log] [ManagerDrivers] [yeelight] [6] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 04:51:11 [log] [ManagerDrivers] [yeelight] [6] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:12 [log] [ManagerDrivers] [yeelight] [4] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 04:51:12 [log] [ManagerDrivers] [yeelight] [4] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:12 [log] [ManagerDrivers] [yeelight] [0] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 04:51:12 [log] [ManagerDrivers] [yeelight] [0] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:13 [log] [ManagerDrivers] [yeelight] [2] Yeelight - error on socket: Error: read ECONNRESET
2019-12-06 04:51:13 [log] [ManagerDrivers] [yeelight] [2] Yeelight - trying to reconnect in 6 seconds.
2019-12-06 04:51:16 [log] [ManagerDrivers] [yeelight] [1] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.142:55443
2019-12-06 04:51:17 [log] [ManagerDrivers] [yeelight] [7] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.141:55443
2019-12-06 04:51:20 [log] [ManagerDrivers] [yeelight] [6] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.145:55443
2019-12-06 04:51:21 [log] [ManagerDrivers] [yeelight] [4] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.155:55443
2019-12-06 04:51:21 [log] [ManagerDrivers] [yeelight] [0] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.144:55443
2019-12-06 04:51:43 [log] [ManagerDrivers] [yeelight] [8] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.191:55443
2019-12-06 04:51:54 [log] [ManagerDrivers] [yeelight] [2] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.157:55443
2019-12-06 04:52:05 [log] [ManagerDrivers] [yeelight] [2] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.157:55443
2019-12-06 04:52:08 [log] [ManagerDrivers] [yeelight] [2] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.157:55443
2019-12-06 04:52:21 [log] [ManagerDrivers] [yeelight] [5] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.143:55443
2019-12-06 04:52:21 [log] [ManagerDrivers] [yeelight] [3] Yeelight - error on socket: Error: connect EHOSTUNREACH 10.0.0.120:55443

```

```auto
"ECONNRESET" means the other side of the TCP conversation abruptly closed its end of the connection. This is most probably due to one or more application protocol errors.

```

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [December 6, 2019, 2:14pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/46 "2019-12-06T14:14:08Z")

</div>

Thank you - around 3AM I’m rebooting my router each day - yet the connection always when tested it’s fine in the original Yeelights app. Also no other devices (non-Yeeligght yet Wifi devices) have this problem at my home yet Yeelights seems not to be able to reconnect.  
Not sure what happened at 4:51 however. It looks to me it gave up and refuse to reconnect after while anymore.

---

<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:** [December 6, 2019, 5:46pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/47 "2019-12-06T17:46:57Z")

</div>

The issue with your Yeelights being offline is not caused around 02:52 or 3AM. It just reconnects the lights around that time due to connection lost. The issue is around 04:51, the connetion is lost but upon trying to reconnect the host is unreachable (perhaps because of flaky Wifi adapter of Homey?!?). It then appearantly fails to reconnect or keep trying to reconnect.

You can not compare the Yeelight smartphone app with Homey. Homey needs to maintain a constant connecting where the Yeelight app will reconnect with the lights when started up.

Although I have a mechanism that reconnects when the connection is lost perhaps there are cases where this does not work and the light stays offline until powered down or the Yeelights app is rebooted. I’ll check it and see if I can improve it.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [December 6, 2019, 7:17pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/48 "2019-12-06T19:17:48Z")

</div>

Thank you for explanation. Actually I have another type of problematic devices - Chromecasts, those are loosing randomly connectivity even each hour (based on feedbacks on App Store, I’m not alone). But all the rest is fine (Tasmota Sonoff, Philips Wifi lights, TPLink power sockets and then yours Xiaomi supported - Roborocks, Phillips downlights) and none of them have those problems like Yeelights. I guess if there would be Wifi adapter problem, it would influence even those). BTW, would Xiaomi debug help ? If so : db3c53a8-7032-42fd-8a85-1299a29ba85a.

I can over night/day monitor my Homey connectivity, to see if Homey really loose connectivity.

---

<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:** [December 16, 2019, 6:25pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/49 "2019-12-16T18:25:54Z")

</div>

> ## v1.0.5 - 2019-12-16
> 
> Fixed a bug where certain ceiling lights (ceiling4 and ceiling10) did not get the right capabilities during pairing. Please re-pair if you are missing color settings.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [December 17, 2019, 11:15am UTC](https://community.homey.app/t/app-yeelights-lan/21134/50 "2019-12-17T11:15:28Z")

</div>

> [@Phuturist](#):
>
> (ceiling4 and ceiling10)

Apologies but where can I found I have these lights type (? I mean what is the factory name. In the [Homey Developer Tools](https://developer.athom.com/tools/devices) I don’t see any of that category, I was thinking about XML community backup search but I guess it’s little bit overkill.

---

<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:** [December 17, 2019, 11:25am UTC](https://community.homey.app/t/app-yeelights-lan/21134/51 "2019-12-17T11:25:42Z")

</div>

The ceiling4 is the Yeelight Jiaoyue and the ceiling10 is the Yeelight Meteorite.

---

<div class="post-metadata">

**Author:** ![Mariomark1541](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mariomark1541/32/178160_2.png) [@Mariomark1541](https://community.homey.app/u/Mariomark1541)\
**Post date:** [January 3, 2020, 9:35am UTC](https://community.homey.app/t/app-yeelights-lan/21134/52 "2020-01-03T09:35:20Z")

</div>

I have an problem.

One yeelight color bulb was always working but now I see a red error and device is unreachable.  
Get the message. There is something wrong, try it later again.

Did restart the app en reconnect but didn’t work

---

<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:** [January 3, 2020, 9:42am UTC](https://community.homey.app/t/app-yeelights-lan/21134/53 "2020-01-03T09:42:05Z")

</div>

Did you assign a static IP for the light in your router? Perhaps it’s IP address has changed.

And if the light working in the Yeelight smartphone app? I noticed that sometimes the light becomes completely unreachable and needs a full reset (powering on and off five times in a row)

---

<div class="post-metadata">

**Author:** ![Mariomark1541](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mariomark1541/32/178160_2.png) [@Mariomark1541](https://community.homey.app/u/Mariomark1541)\
**Post date:** [January 3, 2020, 10:45am UTC](https://community.homey.app/t/app-yeelights-lan/21134/54 "2020-01-03T10:45:21Z")

</div>

Yes has een static IP in the yeelight app the light works.  
I trying to reset

---

<div class="post-metadata">

**Author:** ![Mariomark1541](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mariomark1541/32/178160_2.png) [@Mariomark1541](https://community.homey.app/u/Mariomark1541)\
**Post date:** [January 3, 2020, 12:36pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/55 "2020-01-03T12:36:35Z")

</div>

After resetting the lamp it still not work ?

---

<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:** [January 3, 2020, 12:39pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/56 "2020-01-03T12:39:08Z")

</div>

Did you re-pair it as well and if so, was it able to discover the light?

---

<div class="post-metadata">

**Author:** ![Mariomark1541](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mariomark1541/32/178160_2.png) [@Mariomark1541](https://community.homey.app/u/Mariomark1541)\
**Post date:** [January 3, 2020, 12:53pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/57 "2020-01-03T12:53:43Z")

</div>

Yes repair it in Homey with the app and after reconnect I got the same error

 ![Screenshot_20200103-135326_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e03a8a03c1b01f81825e35ec0af8a589f69107b1.jpeg)

---

<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:** [January 3, 2020, 1:02pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/58 "2020-01-03T13:02:05Z")

</div>

Hmmm, do you know how to run the app from the command line? It would give me more information on why this is happening.

> [@\[HOW TO\] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198):
>
> Homey Pro only!!! It does not work this way with Homey (cloud), it only supports CLI run which is there only for development purposes. Installing Node.js Check Node.js version on Homey: Homey App: Settings - General - About - Node.js version Download Node.js (use Homey’s version or higher) from [https://nodejs.org/](https://nodejs.org/) and install it on your computer. Download the app you want to install from GitHub Go to the repository on [GitHub](https://github.com/) (the correct link for the app you want to install is at the bottom…

Any idea what has changed that might cause this. My app has not been updated recently so there must be some other factor that causes the issue.

---

<div class="post-metadata">

**Author:** ![Mariomark1541](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mariomark1541/32/178160_2.png) [@Mariomark1541](https://community.homey.app/u/Mariomark1541)\
**Post date:** [January 7, 2020, 9:56am UTC](https://community.homey.app/t/app-yeelights-lan/21134/59 "2020-01-07T09:56:10Z")

</div>

More lights stop working.

If I reset and will add them it don’t work  
The won’t come in the list.  
Remote management is on.  
Weird

---

<div class="post-metadata">

**Author:** ![Ruskie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruskie/32/13911_2.png) [@Ruskie](https://community.homey.app/u/Ruskie)\
**Post date:** [January 18, 2020, 2:54pm UTC](https://community.homey.app/t/app-yeelights-lan/21134/60 "2020-01-18T14:54:43Z")

</div>

Hi. I was trying to set up a toggle functionality for a key press: if all of the 6 Yeelights in the fixture are on, turn all 6 off, else turn them all on. The turn on part works always, but the turn off part fails because the lights are reported to Homey with the incorrect status. The Yeelight app consistently shows the correct status, but the lights statuses in Homey (under Devices) are seemingly random for different lights, despite being controllable from Homey.  
Does the app poll/update the lights status regularly? Moreover, ii’s still random even if the lights are only controlled by Homey.  
I mean, the on flow just turned them ON (visibly), but pressing Test in the flow editor to toggle them to off fails and shows one or several lights as still off in the And… condition.

Also, the relative dim function does not seem to work. If set to “-20%” for example, the lights turn off completely instead of dimming. Unless I misunderstood that feature’s functionality.

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

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