Yeelight LED Ceiling light crashing HASSIO when switched off

Hi there,

I had several issues lately with my configuration:
HomeAssistant 0.115.2 running on RPi3+B, Supervisor 245, HassOS 4.13.
I have a USB dongle zigbee TI CC2531 attached to the Pi, linking a dozen sensors to the system via zigbee2mqtt.

Every so often, without a clear frequency, I had to go back onto the Pi, as it was “blocked”.
Let me describe what I mean by the “blocked” state.

  • Hassio was still clearly connected to the WiFi - I could see it in the router list of connected devices and could ping to it to the known static IP address.
  • I could not connect to the web I/F of HassOS (via the usual http://xx.xx.xx.xx:8123)
  • The green LED lights (ACT) of the PI, next to the micro-USB power plug were constantly ON (whereas the green light is normally flashing only at irregular times, I assume when there is activity in the processor, therefore in the system).

In my system I also have 5 Yeelight WiFi LED lights: 2x Bedside Lamps, 2x sets of StripLights and 1x LED Ceiling lamp

I have connected them all successfully via the Yeelight App and HASSOS can see them all via the Yeelight configuration.
To turn the above lights ON/OFF I have configured both Alexa and an MQTT multi-button switch from a TRADFRI IKEA lamp to turn on/off the Yeelight lamps and the IKEA lamp, as they are all in the same room - I use Node-Red for that.

As the Ceiling light gets its power from the mains switch in the room, whenever the mains switch is turned off (I am trying to educate the family they should leave the mains switch alone, but they may do it as a habit without me knowing it) I used to get a rather recurrent message in the HASSOS logs, (which it seems I don’t get any longer now I had decided to report it… GRRR).
When I noticed that I educated the family and the PI did not get “blocked” any longer.

It looks like, though, the problem has vanished now. As I am not getting the recurring message in the logs.
I will keep this post open in case the problem reoccurs. I turned the mains switch to the Ceiling light off now.
Let’s wait if the PI, which had not gone into “blocked” state for quite a few days, resurface the problem again.

I have finally got into another “blocked” Raspberry Pi, due to the Yeelight LED Ceiling light.

The messages I got in my log:

2020-09-29 07:04:29 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:04:29 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 5 seconds
2020-09-29 07:04:37 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:04:37 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 10 seconds
2020-09-29 07:04:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of camera.front is taking over 10 seconds
2020-09-29 07:04:49 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:04:49 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 20 seconds
2020-09-29 07:05:12 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:05:12 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 40 seconds
2020-09-29 07:05:54 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:05:54 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:07:16 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:07:16 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:08:38 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:08:38 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:10:00 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:10:00 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:11:22 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:11:22 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:12:44 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:12:44 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:14:06 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:14:06 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:15:28 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:15:28 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:16:50 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:16:50 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:18:12 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:18:12 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:19:34 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:19:34 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:20:56 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:20:56 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:22:18 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:22:18 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:23:40 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:23:40 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:25:02 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:25:02 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:26:24 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:26:24 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:27:46 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:27:46 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:29:08 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:29:08 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:30:30 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:30:30 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:31:52 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47
2020-09-29 07:31:52 WARNING (MainThread) [homeassistant.config_entries] Config entry for yeelight not ready yet. Retrying in 80 seconds
2020-09-29 07:33:14 ERROR (MainThread) [homeassistant.components.yeelight] Failed to get capabilities from 192.168.87.47

No more messages are polluting the log after I turned the light at the mains.

Is this supposed to happen? - i.e. is the Pi supposed to crash if I remove power to the Ceiling light?

I suspect the pi is not a powerful enough processor to handle all of these continuous error messages and, at some point, it crashes.

I am also trying to reduce the number of occurrences of some warnings for two camera I am monitoring (that will be another post, though)

I have the same problem. Have you found any solution?

The “Ceiling light turned off at the mains switch crashing the Pi” is still a problem for me.
The workaround is never touch the mains switch again.

However I am having another problem. I think the reason for the “blocked” Raspberry Pi might be the Ring camera.

Never touch the mains again, is not an option for my family. They will get ride the ceiling lamp instead. :frowning:

Can’t you remove the camera through ssh?

I have just removed the RING integration and hopefully one day it will be fixed in the next HASSOS releases.
It does not bother me, as with RING I cannot even see live view .
I hope the second camera I have YCC365 camera does not cause the Pi to crash.

What version of Hass are you using?
Do you also have a RING camera in your system.

What I am beginning to hate is the fact that HASS can crash. Never happened before.

But then again, I have around 15-20 sensors around the house.

No, I have 2 Reolink cameras which operating fine. However I have HA supervised in NUC so resources are not a problem (for the moment at least)

I started as a game, from two Sonoff switches, which then I modified to Tasmota, then decided to augment the Nest thermostat, using external temperature (which Nest was meant to do), monitoring the windows and doors in the house, so HA was a must have.
I learned and loved NodeRed, which I use now for Thermostat and Lightings

However I stil consider myself a newbie, so I have no idea how to monitor the resources of the processor (in my case the Pi).
How do I check the amount of processing power I have left?

you have to experiment with that

Thanks. I have just rememebred reading about Glances. I have just installed it. Wow… It sucks a lot of CPU itself.

Hi guys, I also have some problems with brightness of my yeelight pendant lamp and I also have the error “Config entry for yeelight not ready yet.”. Did not find any solution yet, so I would be happy to find it here. We do not use the main switches.

Thanks,
Stefan