HA doesn't start: Hacs not found / timed out fetching hue data

Hi,
I’ve updated the Hacs integration through the UI, but after the reboot, the UI wasn’t reloaded.
Then I looked at the log file via samba and tried to minimize the errors and warnings by commenting more and more out of the configuration.yaml. Now there is almost nothing in the yaml, but I still have the following entries in the log:

2020-04-23 08:47:50 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=195 from 2020-04-23 06:30:14.875560)
2020-04-23 08:48:03 ERROR (MainThread) [homeassistant.setup] Setup failed for hacs: Integration not found.
2020-04-23 08:48:12 ERROR (MainThread) [homeassistant.components.hue.light] Timeout fetching light data
2020-04-23 08:48:12 ERROR (MainThread) [homeassistant.components.hue.sensor_base] Timeout fetching sensor data
2020-04-23 08:48:12 WARNING (MainThread) [homeassistant.components.light] Platform hue not ready yet. Retrying in 30 seconds.

Because of the second entry, I manually downloaded Hacs and packed it into the appropriate directory, but after that the log entry changed to

2020-04-23 16:59:02 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.

But the UI is still not loading.

The other entries are related to Hue. At first I thought that maybe there was an IP change, but the Hue Bridge still has the old IP.

Now I don’t know what to do. Anybody got any ideas?

I ran into something very similar to this a few weeks ago.

the way I solved it was the following:

  1. stop HA

  2. rename your existing configuration.yaml to something else. try configuration.yaml.old.

  3. start HA. It will create a blank default configuration.yaml

  4. start adding back bits and pieces of your old configuration.yaml and restarting each time until it stops working again. That is the culprit.

It took me a few tries (and a few hours) to get everything back up and running when it happened to me. That also included going into the (uneditable…) .storage files and deleting all references to HACS in there too.

But TBH, I’m not sure if it was ultimately a HACS problem or something else.

Thanks for the tip. In the meantime I did something similar and completely reinstall the Home Assistant and reload an old backup. Meanwhile everything is running again.