Yeelight Color LED Bulb offline using Yeelight Binding

Hello,

yesterday I installed the Yeelight Binding 2.5.3 and was able to setup a Yeelight Color LED Bulb like described here. The bulb was online and I also created the four items.

After a short period of time the bulb thing went offline and never came back online again. I restarted openHAB, I uninstalled and installed the binding and also I restarted the bulb (which was and is pingable on the network all the time). I also do not see any errors/warnings in openhab.log so I am quite lost at the moment, I do not know where to look to get to the problem.

Any ideas?

Thanks and regards,
Martin

Have you set the binding to DEBUG or TRACE? What is the bulb model number?

You can also look at github for similar issues and open one if needed.

The bulb is called Yeelight Color LED Bulb. I bought this product about two years ago (not for this price).

I set the debug level for the Yeelight binding to TRACE just now and changed something in the bulb thing and back again. This happened:

2020-04-14 22:57:51.657 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery
2020-04-14 22:57:51.659 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery on: ens1
2020-04-14 22:57:51.661 [DEBUG] [internal.handler.YeelightHandlerBase] - Thing OFFLINE. Initiated discovery
2020-04-14 22:57:51.662 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: Already in discovery, return!
2020-04-14 22:57:51.662 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1982
MAN:"ssdp:discover"
ST:wifi_bulb

2020-04-14 22:58:01.672 [DEBUG] [.internal.lib.services.DeviceManager] - Error timeout: Receive timed out
java.net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive0(Native Method) ~[?:1.8.0_242]
        at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143) ~[?:1.8.0_242]
        at java.net.DatagramSocket.receive(DatagramSocket.java:812) ~[?:1.8.0_242]
        at org.openhab.binding.yeelight.internal.lib.services.DeviceManager.lambda$1(DeviceManager.java:128) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]

Any idea? I see a timeout, but do not know why. The bulb is pingable in the network. I also turned it off (from power) and turned it on again. No difference.

I digged a bit more into it.

First I installed the Yeelight app again on my phone and noticed that the bulb is online and has a firmware update ready. I installed it, nothing happened in Paper UI (also not after reloading the webpages and checking the logs). Then I changed the “Duration” value from 500ms to 5000ms. And wow, the device finally was there. Changed it back to 500ms (which was the default when creating it), the device was offline again. Changed it to 1000ms and it came back online. Changed the Duration value again, stayed online and then after a minute or so it was offline again.

Here’s the log, a lot of traffic was in it when playing around with the bulb:

2020-04-15 15:49:26.019 [DEBUG] [internal.handler.YeelightHandlerBase] - Initializing, Device ID: 0x00000000049c561a
2020-04-15 15:49:26.023 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: false, autoConnect: true, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@51ea131e, device id: 0x00000000049c561a
2020-04-15 15:49:26.027 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery
2020-04-15 15:49:26.031 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery on: ens1
2020-04-15 15:49:26.033 [DEBUG] [internal.handler.YeelightHandlerBase] - Thing OFFLINE. Initiated discovery
2020-04-15 15:49:26.034 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1982
MAN:"ssdp:discover"
ST:wifi_bulb

2020-04-15 15:49:26.034 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: Already in discovery, return!
2020-04-15 15:49:26.039 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: HTTP/1.1 200 OK
Cache-Control: max-age=3600
Date:
Ext:
Location: yeelight://172.27.0.132:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x00000000049c561a
model: color
fw_ver: 76
support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 16711680
hue: 359
sat: 100
name:

2020-04-15 15:49:26.040 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got bulbInfo: {Ext=, Server=POSIX UPnP/1.0 YGLC/1, color_mode=2, sat=100, bright=100, rgb=16711680, Date=, ct=4000, Cache-Control=max-age=3600, name=, hue=359, model=color, id=0x00000000049c561a, power=on, fw_ver=76, support=get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name, Location=yeelight://172.27.0.132:55443}
2020-04-15 15:49:26.041 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device = yeelight://172.27.0.132:55443
2020-04-15 15:49:26.041 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: false, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@48c21883, device id: 0x00000000049c561a
2020-04-15 15:49:26.043 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device info = 172.27.0.132, port = 55443
2020-04-15 15:49:26.043 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: true, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@51ea131e, device id: 0x00000000049c561a
2020-04-15 15:49:26.045 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: set connection state to: CONNECTTING
2020-04-15 15:49:26.046 [DEBUG] [internal.handler.YeelightHandlerBase] - onConnectionStateChanged -> CONNECTTING
2020-04-15 15:49:26.048 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: connect() entering!
2020-04-15 15:49:26.051 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: HTTP/1.1 200 OK
Cache-Control: max-age=3600
Date:
Ext:
Location: yeelight://172.27.0.132:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x00000000049c561a
model: color
fw_ver: 76
support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 16711680
hue: 359
sat: 100
name:

2020-04-15 15:49:26.052 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: connect device! 172.27.0.132, 55443
2020-04-15 15:49:26.053 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got bulbInfo: {Ext=, Server=POSIX UPnP/1.0 YGLC/1, color_mode=2, sat=100, bright=100, rgb=16711680, Date=, ct=4000, Cache-Control=max-age=3600, name=, hue=359, model=color, id=0x00000000049c561a, power=on, fw_ver=76, support=get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name, Location=yeelight://172.27.0.132:55443}
2020-04-15 15:49:26.054 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device = yeelight://172.27.0.132:55443
2020-04-15 15:49:26.055 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: false, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@5f66f3b4, device id: 0x00000000049c561a
2020-04-15 15:49:26.055 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device info = 172.27.0.132, port = 55443
2020-04-15 15:49:26.056 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: true, connection state: CONNECTTING, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@51ea131e, device id: 0x00000000049c561a
2020-04-15 15:49:26.060 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: set connection state to: CONNECTED
2020-04-15 15:49:26.061 [DEBUG] [internal.handler.YeelightHandlerBase] - onConnectionStateChanged -> CONNECTED
2020-04-15 15:49:26.064 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: Write Success!
2020-04-15 15:49:26.068 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: get response: {"id":4, "result":["on","","100","4000","16711680","359","100"]}
2020-04-15 15:49:26.081 [INFO ] [light.internal.lib.device.DeviceBase] - status = DeviceStatus [isPowerOff=false, r=255, g=0, b=0, color=16711680, brightness=100, ct=4000, hue=359, sat=100, isFlowing=false, delayOff=-1, mFlowItems=null, mode=null, isMusicOn=false, name=, backgroundIsPowerOff=false, backgroundR=0, backgroundG=0, backgroundB=0, backgroundHue=0, backgroundBrightness=0, backgroundSat=0, activeMode=null]
2020-04-15 15:49:26.081 [DEBUG] [internal.handler.YeelightHandlerBase] - UpdateState->DeviceStatus [isPowerOff=false, r=255, g=0, b=0, color=16711680, brightness=100, ct=4000, hue=359, sat=100, isFlowing=false, delayOff=-1, mFlowItems=null, mode=null, isMusicOn=false, name=, backgroundIsPowerOff=false, backgroundR=0, backgroundG=0, backgroundB=0, backgroundHue=0, backgroundBrightness=0, backgroundSat=0, activeMode=null]
2020-04-15 15:49:26.082 [DEBUG] [internal.handler.YeelightHandlerBase] - Update Color->0,100,100
2020-04-15 15:49:26.084 [DEBUG] [internal.handler.YeelightHandlerBase] - Update CT->4000
2020-04-15 15:49:27.195 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: NOTIFY * HTTP/1.1
Host: 239.255.255.250:1982
Cache-Control: max-age=3600
Location: yeelight://172.27.0.132:55443
NTS: ssdp:alive
Server: POSIX, UPnP/1.0 YGLC/1
id: 0x00000000049c561a
model: color
fw_ver: 76
support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 16711680
hue: 359
sat: 100
name:

2020-04-15 15:49:27.195 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got bulbInfo: {Server=POSIX, UPnP/1.0 YGLC/1, color_mode=2, sat=100, bright=100, Host=239.255.255.250:1982, NTS=ssdp:alive, rgb=16711680, ct=4000, Cache-Control=max-age=3600, name=, hue=359, model=color, id=0x00000000049c561a, power=on, fw_ver=76, support=get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name, Location=yeelight://172.27.0.132:55443}
2020-04-15 15:49:27.196 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device = yeelight://172.27.0.132:55443
2020-04-15 15:49:27.196 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: false, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@36f52504, device id: 0x00000000049c561a
2020-04-15 15:49:27.196 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device info = 172.27.0.132, port = 55443
2020-04-15 15:49:27.196 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: true, connection state: CONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@51ea131e, device id: 0x00000000049c561a
2020-04-15 15:49:30.404 [DEBUG] [internal.handler.YeelightHandlerBase] - Initializing, Device ID: 0x00000000049c561a
2020-04-15 15:49:30.405 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: false, autoConnect: true, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@405086d6, device id: 0x00000000049c561a
2020-04-15 15:49:30.406 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: Already in discovery, return!
2020-04-15 15:49:30.407 [DEBUG] [internal.handler.YeelightHandlerBase] - Thing OFFLINE. Initiated discovery
2020-04-15 15:49:30.412 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: Already in discovery, return!
2020-04-15 15:49:37.198 [DEBUG] [.internal.lib.services.DeviceManager] - Error timeout: Receive timed out
java.net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive0(Native Method) ~[?:1.8.0_242]
        at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143) ~[?:1.8.0_242]
        at java.net.DatagramSocket.receive(DatagramSocket.java:812) ~[?:1.8.0_242]
        at org.openhab.binding.yeelight.internal.lib.services.DeviceManager.lambda$1(DeviceManager.java:128) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
2020-04-15 15:50:21.608 [DEBUG] [internal.handler.YeelightHandlerBase] - Initializing, Device ID: 0x00000000049c561a
2020-04-15 15:50:21.611 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: false, autoConnect: true, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@69e82a68, device id: 0x00000000049c561a
2020-04-15 15:50:21.613 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery
2020-04-15 15:50:21.615 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery on: ens1
2020-04-15 15:50:21.617 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1982
MAN:"ssdp:discover"
ST:wifi_bulb

2020-04-15 15:50:21.617 [DEBUG] [internal.handler.YeelightHandlerBase] - Thing OFFLINE. Initiated discovery
2020-04-15 15:50:21.618 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: Already in discovery, return!
2020-04-15 15:50:21.621 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: HTTP/1.1 200 OK
Cache-Control: max-age=3600
Date:
Ext:
Location: yeelight://172.27.0.132:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x00000000049c561a
model: color
fw_ver: 76
support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 16711680
hue: 359
sat: 100
name:

2020-04-15 15:50:21.621 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got bulbInfo: {Ext=, Server=POSIX UPnP/1.0 YGLC/1, color_mode=2, sat=100, bright=100, rgb=16711680, Date=, ct=4000, Cache-Control=max-age=3600, name=, hue=359, model=color, id=0x00000000049c561a, power=on, fw_ver=76, support=get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name, Location=yeelight://172.27.0.132:55443}
2020-04-15 15:50:21.622 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device = yeelight://172.27.0.132:55443
2020-04-15 15:50:21.622 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: false, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@27416dc2, device id: 0x00000000049c561a
2020-04-15 15:50:21.623 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device info = 172.27.0.132, port = 55443
2020-04-15 15:50:21.623 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: true, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@69e82a68, device id: 0x00000000049c561a
2020-04-15 15:50:21.623 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: set connection state to: CONNECTTING
2020-04-15 15:50:21.624 [DEBUG] [internal.handler.YeelightHandlerBase] - onConnectionStateChanged -> CONNECTTING
2020-04-15 15:50:21.625 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: connect() entering!
2020-04-15 15:50:21.628 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: HTTP/1.1 200 OK
Cache-Control: max-age=3600
Date:
Ext:
Location: yeelight://172.27.0.132:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x00000000049c561a
model: color
fw_ver: 76
support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 16711680
hue: 359
sat: 100
name:

2020-04-15 15:50:21.629 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got bulbInfo: {Ext=, Server=POSIX UPnP/1.0 YGLC/1, color_mode=2, sat=100, bright=100, rgb=16711680, Date=, ct=4000, Cache-Control=max-age=3600, name=, hue=359, model=color, id=0x00000000049c561a, power=on, fw_ver=76, support=get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name, Location=yeelight://172.27.0.132:55443}
2020-04-15 15:50:21.629 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device = yeelight://172.27.0.132:55443
2020-04-15 15:50:21.629 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: connect device! 172.27.0.132, 55443
2020-04-15 15:50:21.629 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: false, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@67171a9f, device id: 0x00000000049c561a
2020-04-15 15:50:21.630 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device info = 172.27.0.132, port = 55443
2020-04-15 15:50:21.630 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: true, connection state: CONNECTTING, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@69e82a68, device id: 0x00000000049c561a
2020-04-15 15:50:21.632 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: set connection state to: CONNECTED
2020-04-15 15:50:21.633 [DEBUG] [internal.handler.YeelightHandlerBase] - onConnectionStateChanged -> CONNECTED
2020-04-15 15:50:21.635 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: Write Success!
2020-04-15 15:50:21.638 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: get response: {"id":5, "result":["on","","100","4000","16711680","359","100"]}
2020-04-15 15:50:21.639 [INFO ] [light.internal.lib.device.DeviceBase] - status = DeviceStatus [isPowerOff=false, r=255, g=0, b=0, color=16711680, brightness=100, ct=4000, hue=359, sat=100, isFlowing=false, delayOff=-1, mFlowItems=null, mode=null, isMusicOn=false, name=, backgroundIsPowerOff=false, backgroundR=0, backgroundG=0, backgroundB=0, backgroundHue=0, backgroundBrightness=0, backgroundSat=0, activeMode=null]
2020-04-15 15:50:21.640 [DEBUG] [internal.handler.YeelightHandlerBase] - UpdateState->DeviceStatus [isPowerOff=false, r=255, g=0, b=0, color=16711680, brightness=100, ct=4000, hue=359, sat=100, isFlowing=false, delayOff=-1, mFlowItems=null, mode=null, isMusicOn=false, name=, backgroundIsPowerOff=false, backgroundR=0, backgroundG=0, backgroundB=0, backgroundHue=0, backgroundBrightness=0, backgroundSat=0, activeMode=null]
2020-04-15 15:50:21.641 [DEBUG] [internal.handler.YeelightHandlerBase] - Update Color->0,100,100
2020-04-15 15:50:21.642 [DEBUG] [internal.handler.YeelightHandlerBase] - Update CT->4000
2020-04-15 15:50:31.635 [DEBUG] [.internal.lib.services.DeviceManager] - Error timeout: Receive timed out
java.net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive0(Native Method) ~[?:1.8.0_242]
        at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143) ~[?:1.8.0_242]
        at java.net.DatagramSocket.receive(DatagramSocket.java:812) ~[?:1.8.0_242]
        at org.openhab.binding.yeelight.internal.lib.services.DeviceManager.lambda$1(DeviceManager.java:128) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
2020-04-15 15:50:42.600 [DEBUG] [internal.handler.YeelightHandlerBase] - Initializing, Device ID: 0x00000000049c561a
2020-04-15 15:50:42.601 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: false, autoConnect: true, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@31b5138f, device id: 0x00000000049c561a
2020-04-15 15:50:42.605 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery
2020-04-15 15:50:42.607 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery on: ens1
2020-04-15 15:50:42.608 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1982
MAN:"ssdp:discover"
ST:wifi_bulb

2020-04-15 15:50:42.610 [DEBUG] [internal.handler.YeelightHandlerBase] - Thing OFFLINE. Initiated discovery
2020-04-15 15:50:42.612 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: HTTP/1.1 200 OK
Cache-Control: max-age=3600
Date:
Ext:
Location: yeelight://172.27.0.132:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x00000000049c561a
model: color
fw_ver: 76
support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 16711680
hue: 359
sat: 100
name:

2020-04-15 15:50:42.612 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got bulbInfo: {Ext=, Server=POSIX UPnP/1.0 YGLC/1, color_mode=2, sat=100, bright=100, rgb=16711680, Date=, ct=4000, Cache-Control=max-age=3600, name=, hue=359, model=color, id=0x00000000049c561a, power=on, fw_ver=76, support=get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name, Location=yeelight://172.27.0.132:55443}
2020-04-15 15:50:42.613 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device = yeelight://172.27.0.132:55443
2020-04-15 15:50:42.613 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: false, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@f04be9a, device id: 0x00000000049c561a
2020-04-15 15:50:42.613 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device info = 172.27.0.132, port = 55443
2020-04-15 15:50:42.613 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: true, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@31b5138f, device id: 0x00000000049c561a
2020-04-15 15:50:42.613 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: set connection state to: CONNECTTING
2020-04-15 15:50:42.613 [DEBUG] [internal.handler.YeelightHandlerBase] - onConnectionStateChanged -> CONNECTTING
2020-04-15 15:50:42.615 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: Already in discovery, return!
2020-04-15 15:50:42.614 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: connect() entering!
2020-04-15 15:50:42.618 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: HTTP/1.1 200 OK
Cache-Control: max-age=3600
Date:
Ext:
Location: yeelight://172.27.0.132:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x00000000049c561a
model: color
fw_ver: 76
support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 16711680
hue: 359
sat: 100
name:

2020-04-15 15:50:42.618 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: connect device! 172.27.0.132, 55443
2020-04-15 15:50:42.618 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got bulbInfo: {Ext=, Server=POSIX UPnP/1.0 YGLC/1, color_mode=2, sat=100, bright=100, rgb=16711680, Date=, ct=4000, Cache-Control=max-age=3600, name=, hue=359, model=color, id=0x00000000049c561a, power=on, fw_ver=76, support=get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name, Location=yeelight://172.27.0.132:55443}
2020-04-15 15:50:42.618 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device = yeelight://172.27.0.132:55443
2020-04-15 15:50:42.619 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: false, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@1046777b, device id: 0x00000000049c561a
2020-04-15 15:50:42.619 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device info = 172.27.0.132, port = 55443
2020-04-15 15:50:42.622 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: true, connection state: CONNECTTING, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@31b5138f, device id: 0x00000000049c561a
2020-04-15 15:50:42.623 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: set connection state to: CONNECTED
2020-04-15 15:50:42.624 [DEBUG] [internal.handler.YeelightHandlerBase] - onConnectionStateChanged -> CONNECTED
2020-04-15 15:50:42.626 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: Write Success!
2020-04-15 15:50:42.631 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: get response: {"id":6, "result":["on","","100","4000","16711680","359","100"]}
2020-04-15 15:50:42.632 [INFO ] [light.internal.lib.device.DeviceBase] - status = DeviceStatus [isPowerOff=false, r=255, g=0, b=0, color=16711680, brightness=100, ct=4000, hue=359, sat=100, isFlowing=false, delayOff=-1, mFlowItems=null, mode=null, isMusicOn=false, name=, backgroundIsPowerOff=false, backgroundR=0, backgroundG=0, backgroundB=0, backgroundHue=0, backgroundBrightness=0, backgroundSat=0, activeMode=null]
2020-04-15 15:50:42.633 [DEBUG] [internal.handler.YeelightHandlerBase] - UpdateState->DeviceStatus [isPowerOff=false, r=255, g=0, b=0, color=16711680, brightness=100, ct=4000, hue=359, sat=100, isFlowing=false, delayOff=-1, mFlowItems=null, mode=null, isMusicOn=false, name=, backgroundIsPowerOff=false, backgroundR=0, backgroundG=0, backgroundB=0, backgroundHue=0, backgroundBrightness=0, backgroundSat=0, activeMode=null]
2020-04-15 15:50:42.633 [DEBUG] [internal.handler.YeelightHandlerBase] - Update Color->0,100,100
2020-04-15 15:50:42.634 [DEBUG] [internal.handler.YeelightHandlerBase] - Update CT->4000
2020-04-15 15:50:49.156 [DEBUG] [internal.handler.YeelightHandlerBase] - Initializing, Device ID: 0x00000000049c561a
2020-04-15 15:50:49.158 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: false, autoConnect: true, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@58bba811, device id: 0x00000000049c561a
2020-04-15 15:50:49.159 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery
2020-04-15 15:50:49.161 [DEBUG] [.internal.lib.services.DeviceManager] - Starting Discovery on: ens1
2020-04-15 15:50:49.163 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1982
MAN:"ssdp:discover"
ST:wifi_bulb

2020-04-15 15:50:49.164 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1982
MAN:"ssdp:discover"
ST:wifi_bulb

2020-04-15 15:50:49.172 [DEBUG] [internal.handler.YeelightHandlerBase] - Thing OFFLINE. Initiated discovery
2020-04-15 15:50:49.172 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: Already in discovery, return!
2020-04-15 15:50:49.174 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: HTTP/1.1 200 OK
Cache-Control: max-age=3600
Date:
Ext:
Location: yeelight://172.27.0.132:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x00000000049c561a
model: color
fw_ver: 76
support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 16711680
hue: 359
sat: 100
name:

2020-04-15 15:50:49.175 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got bulbInfo: {Ext=, Server=POSIX UPnP/1.0 YGLC/1, color_mode=2, sat=100, bright=100, rgb=16711680, Date=, ct=4000, Cache-Control=max-age=3600, name=, hue=359, model=color, id=0x00000000049c561a, power=on, fw_ver=76, support=get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name, Location=yeelight://172.27.0.132:55443}
2020-04-15 15:50:49.176 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device = yeelight://172.27.0.132:55443
2020-04-15 15:50:49.176 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: false, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@6199bcac, device id: 0x00000000049c561a
2020-04-15 15:50:49.178 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device info = 172.27.0.132, port = 55443
2020-04-15 15:50:49.179 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: true, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@58bba811, device id: 0x00000000049c561a
2020-04-15 15:50:49.180 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: set connection state to: CONNECTTING
2020-04-15 15:50:49.180 [DEBUG] [internal.handler.YeelightHandlerBase] - onConnectionStateChanged -> CONNECTTING
2020-04-15 15:50:49.182 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: connect() entering!
2020-04-15 15:50:49.188 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got message: HTTP/1.1 200 OK
Cache-Control: max-age=3600
Date:
Ext:
Location: yeelight://172.27.0.132:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x00000000049c561a
model: color
fw_ver: 76
support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 16711680
hue: 359
sat: 100
name:

2020-04-15 15:50:49.189 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: connect device! 172.27.0.132, 55443
2020-04-15 15:50:49.189 [DEBUG] [.internal.lib.services.DeviceManager] - DeviceManager: got bulbInfo: {Ext=, Server=POSIX UPnP/1.0 YGLC/1, color_mode=2, sat=100, bright=100, rgb=16711680, Date=, ct=4000, Cache-Control=max-age=3600, name=, hue=359, model=color, id=0x00000000049c561a, power=on, fw_ver=76, support=get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name, Location=yeelight://172.27.0.132:55443}
2020-04-15 15:50:49.189 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device = yeelight://172.27.0.132:55443
2020-04-15 15:50:49.190 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: false, connection state: DISCONNECTED, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@6f5e4eef, device id: 0x00000000049c561a
2020-04-15 15:50:49.190 [DEBUG] [ht.internal.lib.device.DeviceFactory] - DeviceFactory: DeviceFactory Device info = 172.27.0.132, port = 55443
2020-04-15 15:50:49.191 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: set connection state to: CONNECTED
2020-04-15 15:50:49.192 [DEBUG] [light.internal.lib.device.DeviceBase] - DeviceBase: CheckAutoConnect: online: true, autoConnect: true, connection state: CONNECTTING, device = org.openhab.binding.yeelight.internal.lib.device.WonderDevice@58bba811, device id: 0x00000000049c561a
2020-04-15 15:50:49.202 [DEBUG] [internal.handler.YeelightHandlerBase] - onConnectionStateChanged -> CONNECTED
2020-04-15 15:50:49.210 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: Write Success!
2020-04-15 15:50:49.213 [DEBUG] [lib.device.connection.WifiConnection] - WifiConnection: get response: {"id":7, "result":["on","","100","4000","16711680","359","100"]}
2020-04-15 15:50:49.214 [INFO ] [light.internal.lib.device.DeviceBase] - status = DeviceStatus [isPowerOff=false, r=255, g=0, b=0, color=16711680, brightness=100, ct=4000, hue=359, sat=100, isFlowing=false, delayOff=-1, mFlowItems=null, mode=null, isMusicOn=false, name=, backgroundIsPowerOff=false, backgroundR=0, backgroundG=0, backgroundB=0, backgroundHue=0, backgroundBrightness=0, backgroundSat=0, activeMode=null]
2020-04-15 15:50:49.215 [DEBUG] [internal.handler.YeelightHandlerBase] - UpdateState->DeviceStatus [isPowerOff=false, r=255, g=0, b=0, color=16711680, brightness=100, ct=4000, hue=359, sat=100, isFlowing=false, delayOff=-1, mFlowItems=null, mode=null, isMusicOn=false, name=, backgroundIsPowerOff=false, backgroundR=0, backgroundG=0, backgroundB=0, backgroundHue=0, backgroundBrightness=0, backgroundSat=0, activeMode=null]
2020-04-15 15:50:49.215 [DEBUG] [internal.handler.YeelightHandlerBase] - Update Color->0,100,100
2020-04-15 15:50:49.217 [DEBUG] [internal.handler.YeelightHandlerBase] - Update CT->4000
2020-04-15 15:50:59.174 [DEBUG] [.internal.lib.services.DeviceManager] - Error timeout: Receive timed out
java.net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive0(Native Method) ~[?:1.8.0_242]
        at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143) ~[?:1.8.0_242]
        at java.net.DatagramSocket.receive(DatagramSocket.java:812) ~[?:1.8.0_242]
        at org.openhab.binding.yeelight.internal.lib.services.DeviceManager.lambda$1(DeviceManager.java:128) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
2020-04-15 15:50:59.203 [DEBUG] [.internal.lib.services.DeviceManager] - Error timeout: Receive timed out
java.net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive0(Native Method) ~[?:1.8.0_242]
        at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143) ~[?:1.8.0_242]
        at java.net.DatagramSocket.receive(DatagramSocket.java:812) ~[?:1.8.0_242]
        at org.openhab.binding.yeelight.internal.lib.services.DeviceManager.lambda$1(DeviceManager.java:128) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]

Still have no idea what is going on. :frowning:

Do you have any update on this? My yeelight devices are also going offline and have no clue why…

Sorry, no. I did not get it managed. Everything looks ok, no idea what is happening there. :frowning:

I wish to write a solution, but I have the same problem as you. Always offline, except the first time I connected it.

If someone can help me/us, it would be great.

@Aralas

i switched to the binding “Xiaomi Mi IO Binding” and it now works very stable.

1 Like

Hi @John_Doe ,

Thank you ! I tried “Xiaomi Mi IO Binding” and it works :slight_smile:

Just a question : How did you write your code in “items” to manage warm white / cold white ?

Because I can On/Off the yeelight, chose a color and adjust the brightness. But I can’t find the right item to manage warm white / cold white (so, no color)

Thanks :slight_smile:

Thank you for the hint. I need the token to use the Yeelight with the Xiaomi Mi IO Binding, correct?

Okay, got it working with the token. :slight_smile:

Channels are not looking too bad:
image

Ok, once again a feedback:

I had to change the item for Shutdown Timer from Number:Time to Number and the item for Color Temperature from Number:Temperature also to Number.

And I cannot change the Color Mode (which can be 1 for color light and 2 for white light) through openHAB. Maybe the command is missing in the channel definition?

Exactly my question. Still working on it

Warm- and coldwhite is not a problem. I used this code in my sitemap:

Slider item=YeelightColorLEDBulb1_ColorTemperature step=100 minValue=2700 maxValue=6500

According to Google the lamp can do 2700K to 6500K. But I am not that sure about it. :wink: Also if you choose a value it only get selected approximately. Strange.

1 Like

Thanks a lot ! Worked for me !

Dear readers, here is what I entered as parameters for my Yeelight Color bulb “wonder”:

Things:

// Yeelight avec le binding Xiaomi Mi IO Binding
Thing miio:basic:light "Yeelight" [ host="192.168.3.20", token="bdcf45b249f0031dac42019923bf45a7", deviceId="0802643F", model="yeelink.light.color2", communication="direct", refreshInterval="30", timeout="15000" ]

Items:

// Yeelight

Switch YeelightOnOff { channel="miio:basic:light:power" }

Color YeelightRGBColor { channel="miio:basic:light:rgbColor" }

Dimmer YeelightDimmer { channel="miio:basic:light:brightness" }

String YeelightCommand { channel="miio:basic:light:command" }

Number:Time YeelightTime { channel="miio:basic:light:delayoff" }

Number:Temperature YeelightTemperature { channel="miio:basic:light:colorTemperature" }

Number YeelightColorMode { channel="mmiio:basic:light:colorMode" }

Sitemap:

Frame label="Yeelight" {

        Switch item=YeelightOnOff label="Yeelight On/Off" icon="switch"

        Colorpicker item=YeelightRGBColor label="Yeelight Colors" icon="colorpicker"

        Slider item=YeelightDimmer label="Brightness" icon="light"

        Slider item=YeelightTemperature label="Warm-Cold white" step=100 minValue=2700 maxValue=6500

    }

For the token, I downloaded a “Mi Home” hacked/Mod apk (check Google). After logging in my account, I can see the token of the Yeelight in the options. Warning : Once the token obtained, I advise you to uninstall the “Mi Home Mod” application to reinstall the official one

I’m a newbie in Openhab world, really thanks to all the community right here.

@All,

If you don’t want to use a “Hack Application” for the token, it also works via a MI account registration over the yeelight app.
Yeelight Specification:

Hi Aralas, i have the same bulb (wonder) and i’m trying to get it work with xiaomi mi IO binding. When i add the thing yeelight goes online, then after 1 minute goes offline. The same behaviour happen if i restart openhab service.
I used the same code as yours.

Here the things:

Thing miio:basic:light "Yeelight" [ host="192.168.0.15", token="1bfcc986327909c1572f016953479424", deviceId="130582317", model="yeelink.light.color2", communication="direct", refreshInterval="30", timeout="15000" ]

Here the log:

11:40:20.713 [INFO ] [del.core.internal.ModelRepositoryImpl] - Loading model 'yeelight.items'
11:40:21.224 [WARN ] [core.io.rest.auth.internal.AuthFilter] - Unauthorized API request: Invalid Basic authentication credentials
11:44:15.124 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'miio:basic:light' changed from OFFLINE (CONFIGURATION_ERROR) to UNINITIALIZED
11:44:17.013 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'miio:basic:light' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
11:44:19.163 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'miio:basic:light' changed from UNINITIALIZED (DISABLED) to INITIALIZING
11:44:19.190 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'miio:basic:light' changed from INITIALIZING to OFFLINE
11:44:29.237 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'miio:basic:light' changed from OFFLINE to ONLINE
11:45:29.758 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'miio:basic:light' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR)

I’m an openHAB beginner, can someone help me?

Hi,

Unfortunately, I’m a newbie too.

Are you sure about this settings in your Things file : "model=“yeelink.light.color2” ?

Absolutely sure, now i’m trying to add thing via UI.
Result: yeelight stays online all the time but only power and dimmer channel works

Your issue looks like a token error… You could try to get the token via the mi cloud (enter your iserid/passwd in the binding config)