Yeelight lights disappeared from HASS (but are present in Yeelight app)

No error in log. WHat to do?

hassbian 0.43.1 (they were not peresnt also in 0.43)

How were they entered in to HASS? Discovery or did you manually enter by IP?

  • platform: yeelight
    devices:
    #WHITE Yeelight
    192.168.1.203:
    name: Hallway left
    #RGB Yeelight
    192.168.1.204:
    name: Living table lamp

Are they showing as unavailable or just gone completely from the front end and the states tab?

gone completely

Interesting, I assume there is nothing in the logs?

Thanks for the heads up on this, Ill avoid upgrading until I see how this pans out.

it happened from 0.43 for sure, but I did not follow up, since I do not use those two lamps much. I just noticed, not sure how to troubleshoot.

Maybe put some commands in configuratuion for expanding the log??

I am on version 0.43.0 and haven’t encountered any problems as about all my lights are Yeelight :slight_smile:

Did you maybe recently update the firmware of the bulbs? I have had sometimes after a firmware update that the bulb was out of developer mode. So you could check in the app if the bulb is in developer mode.

You could add this to your configuration.yaml which should give more output in the log. But i thought if home-assistant isn’t able to setup the platform you would see an error anyway.

logger:
  logs:
    yeelight: debug

it was still in developer mode. Anyway I turned off and on again. Change the logger as you suggested.

Rebooted, and still lights are not there and nothing in log.

EDIT

It was the damned extender at which they are connected. Netgear EX7000, I hope I can get rid of these and do a proper WiFI mesh in the house.

A reboot of it and it solved the issue

I have all of my wifi devices included under a device tracker (I use nmap, the new ping should work too) but it allows you to see things like this. If you add the EX7000 and the bulbs you would have seen them all drop connection and it might have clued you in as to the issue.

thanks will add that. Although I think my next project is setup a dhcp server on the pi

Does your router not already take care of that?

can you share the code?

it has always issues

Sorry to re-awake this topic. I have the same issue since the update to 0.48. The Yeelight is present in the Yeelight-app, I can see the IP in the logs with no hint whatsoever why it stopped being recognized in HA…
Unfortunately I don’t own any repeater to which the bulbs could be connected.

Any ideas?

Solved by resetting the device app-wise…

Yeelight YLDP01YL not working in HA and show unavailable after remove device from Android Yeelight App.

Hi - old thread -… I am noticing the same thing now… previously everything worked in HA. No changes to my config but IPs changed recently (and HA is updated as well). Everything shows up in the YA app. help?!?

2020-08-27 15:17:20 ERROR (SyncWorker_18) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-27 15:27:55 ERROR (SyncWorker_51) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-27 15:33:20 ERROR (SyncWorker_3) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-27 15:48:25 ERROR (SyncWorker_25) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-27 16:15:21 ERROR (SyncWorker_25) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-27 16:36:21 ERROR (SyncWorker_12) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-27 16:39:56 ERROR (SyncWorker_29) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-27 17:35:49 ERROR (SyncWorker_45) [homeassistant.components.yeelight] Unable to update device 192.168.86.109, livingroom1: A socket error occurred when sending the command.
2020-08-27 17:35:52 ERROR (SyncWorker_45) [homeassistant.components.yeelight] Unable to update device 192.168.86.113, livingroom3: A socket error occurred when sending the command.
2020-08-27 17:45:22 ERROR (SyncWorker_27) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-27 18:23:27 ERROR (SyncWorker_45) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-27 18:32:22 ERROR (SyncWorker_37) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-27 18:56:22 ERROR (SyncWorker_6) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-27 18:58:27 ERROR (SyncWorker_34) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-27 19:21:22 ERROR (SyncWorker_3) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-27 19:39:58 ERROR (SyncWorker_15) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-27 19:48:28 ERROR (SyncWorker_25) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-28 05:09:28 ERROR (SyncWorker_36) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: Bulb closed the connection.
2020-08-28 05:09:31 ERROR (SyncWorker_36) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-28 05:11:23 ERROR (SyncWorker_41) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 05:11:23 ERROR (SyncWorker_41) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-28 05:13:23 ERROR (SyncWorker_34) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 05:13:23 ERROR (SyncWorker_34) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-28 05:20:23 ERROR (SyncWorker_46) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 05:20:23 ERROR (SyncWorker_46) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-28 05:22:23 ERROR (SyncWorker_33) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 05:22:23 ERROR (SyncWorker_33) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-28 05:23:58 ERROR (SyncWorker_49) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-28 05:26:23 ERROR (SyncWorker_40) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 05:26:23 ERROR (SyncWorker_40) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-28 07:15:29 ERROR (SyncWorker_49) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: Bulb closed the connection.
2020-08-28 07:15:31 ERROR (SyncWorker_49) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-28 07:20:25 ERROR (SyncWorker_0) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 07:20:25 ERROR (SyncWorker_0) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-28 07:22:55 ERROR (SyncWorker_35) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 07:22:55 ERROR (SyncWorker_35) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-28 07:23:54 ERROR (SyncWorker_17) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 07:25:54 ERROR (SyncWorker_43) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 07:33:29 ERROR (SyncWorker_6) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: Bulb closed the connection.
2020-08-28 07:33:31 ERROR (SyncWorker_6) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-28 07:35:24 ERROR (SyncWorker_18) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: A socket error occurred when sending the command.
2020-08-28 07:35:24 ERROR (SyncWorker_18) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: A socket error occurred when sending the command.
2020-08-28 13:04:01 ERROR (SyncWorker_20) [homeassistant.components.yeelight] Unable to update device 192.168.86.109, livingroom1: Bulb closed the connection.
2020-08-28 13:04:06 ERROR (SyncWorker_20) [homeassistant.components.yeelight] Unable to update device 192.168.86.110, livingroom2: Bulb closed the connection.
2020-08-28 13:04:11 ERROR (SyncWorker_20) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: Bulb closed the connection.
2020-08-28 13:04:16 ERROR (SyncWorker_20) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-28 13:04:16 ERROR (SyncWorker_20) [homeassistant.components.yeelight] Unable to update device 192.168.86.113, livingroom3: Bulb closed the connection.
2020-08-28 13:16:32 ERROR (SyncWorker_1) [homeassistant.components.yeelight] Unable to update device 192.168.86.109, livingroom1: Bulb closed the connection.
2020-08-28 13:16:37 ERROR (SyncWorker_1) [homeassistant.components.yeelight] Unable to update device 192.168.86.110, livingroom2: Bulb closed the connection.
2020-08-28 13:16:42 ERROR (SyncWorker_1) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: Bulb closed the connection.
2020-08-28 13:16:47 ERROR (SyncWorker_1) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-28 13:16:52 ERROR (SyncWorker_1) [homeassistant.components.yeelight] Unable to update device 192.168.86.113, livingroom3: Bulb closed the connection.
2020-08-28 19:53:44 ERROR (SyncWorker_0) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-28 20:48:14 ERROR (SyncWorker_5) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-29 14:37:26 ERROR (SyncWorker_16) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-29 16:12:31 ERROR (SyncWorker_17) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-29 19:37:02 ERROR (SyncWorker_17) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-29 19:37:58 ERROR (SyncWorker_32) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-29 23:17:31 ERROR (SyncWorker_45) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-30 23:15:17 ERROR (SyncWorker_10) [homeassistant.components.yeelight] Unable to update device 192.168.86.107, bedroom_k: Bulb closed the connection.
2020-08-31 13:14:15 ERROR (SyncWorker_22) [homeassistant.components.yeelight] Unable to update device 192.168.86.101, bedroom_j: Bulb closed the connection.
2020-08-31 18:52:18 ERROR (SyncWorker_16) [homeassistant.components.yeelight.light] Error when calling <function YeelightGenericLight.set_colortemp at 0x64a51778>: Bulb closed the connection.
2020-08-31 22:13:56 ERROR (SyncWorker_56) [homeassistant.components.yeelight.light] Error when calling <function YeelightGenericLight.set_colortemp at 0x64a51778>: Bulb closed the connection.
2020-08-31 22:30:24 ERROR (SyncWorker_31) [homeassistant.components.yeelight.light] Error when calling <function YeelightGenericLight.set_brightness at 0x64a51658>: Bulb closed the connection.

Are you entering your config in your configuration file or relying on discovery?

Set your bulbs up with a static IP from your DHCP server and hard code the config in configuration.yaml.

This has been my config for quite some time and rarely have issues.

Hi @silvrr - thanks for your advice.
yes, I am using static IPs and am not using discovery in my config:

discovery:
  ignore:
    - yeelight

yeelight:
    devices:
    192.168.86.100:
      name: bedroom_k
  #     model: white
    192.168.86.101:
      name: livingroom3
  #     model: color
    192.168.86.102:
      name: livingroom1
  #     model: color
    192.168.86.104:
      name: livingroom2
  #     model: color
    192.168.86.105:
      name: bedroom_j 
  #     model: color

Annotation 2020-09-02 100830