HACS doesn't show downloaded integrations

Hi,

i just checked the HACS and under “downloaded” there is only HACS listed. All other integrations that i downloaded via HACS are not shown:

If i go to the HACS integrations, there are all downloaded integrations shown as device:

Is this normal?

Thank you very much.

No it’s not normal but I’m seeing the same thing.

I had a HACS integration error that required a restart and then a reload of the integration. And now I’m seeing the same thing as you.

Right now the only way I see to fix it is to go into the HACS interface and download all of the existing integrations again.

That won’t hurt anything as far as I know but it will get the integrations back into HACS so it can keep track of them again.

Kind of a PITA but I don’t see a way around it.

1 Like

Have you updated to the latest version?

If you are still seeing the issue there is some advice from the developer here that may help: After HA update to Version 2025.1.0 HACS is not starting: "custom integration 'hacs' sets option flow config_entry explicitly, which is deprecated at custom_components/hacs/config_flow.py" · Issue #4314 · hacs/integration · GitHub

4 Likes

Yeah I had already updated and restarted. I was on some form of V2.x prior and now I’m on v2.0.2

And I’m still on 2024.12.5 of HA.

I followed the instructions for the music-assistant related issue and I think it actually worked.

Thanks for the link.

1 Like

why did this happen to me or more users (as also reported on github) without changing anything, only after a restart? It actually broke a lot for me, and I would like to understand what happened, when there was no change or update…

1 Like

Same thing after a restart of HA.

Solved by:

  • disable (desactivate) HACS
  • replace file config/.storage/hacs.repositories by a backed up one
  • enable (activate) HACS

Everything came back immediately (without the need of restarting HA).

8 Likes

I had the exact same issue as OP, looked for music-assistant in hacs.repositories but it was not there. I re-installed all integrations in HACS again and looks okay now I think

I had a big pause (2years) to home assistant and recognized now my backup logic I had in the past did not find the way to my new house.I could not find any backups at the moment. I will rework this for sure asap, but to solvethe mentioned issue: Where do i find an old version of config/.storage/hacs.repositories?

If you don’t find it in an old backup (like those made by HA before an update, for example) you have to re-download and re-install all integrations in HACS like written in the earlier post.

Thanks for the hint. I just found a file “core_2024_12_4.tar”. Maybe somewhere “in it” there is the file. Let’s see if i find a way to open it without restoring the whole “thingh”.

Thank you! The simple procedure of “re-installing HACS” worked for me.

Here is the process to fix the issue (hopefully this saves you from having to reinstall everything!):

When you get the error: “Unable to initialize HACS” you may need to repair HACS. You will use a backup of the “hacs.repositories” file to restore the HACS component.

Download the latest working backup of Home Assistant and obtain the working “hacs.repositories” file:

  1. In Home Assistant, go to “Settings” > “System” > “Backups”.
  2. Click on the latest “Full backup” and choose the three dots in the top right > “Download backup”.
  3. Go to the downloaded backup and open the “backup_name.tar” file (just double click it if using Windows).
  4. Navigate to “homeassistant.tar” > “data” > “.storage” and find the “hacs.repositories” file.

Upload the “hacs.repositories” file to a Network Share that is attached to Home Assistant:

  1. You can add a Network Share to Home Assistant by going to “Settings” > “System” > “Storage” > “ADD NETWORK STORAGE”.
    Fill in the options to add your network attached storage (choose the “Share” option under usage).
  2. Make sure you copy the backed up “hacs.repositories” file to that network attached storage.

Disable the HACS integration:

  1. In Home Assistant, go to “Settings” > “Devices & services” > “HACS”.
  2. Click the three dots and choose “Disable”.

Replace the broken “hacs.repositories” with the working backed up one.
Note: I prefer to use SSH to do this (using the “Advanced SSH & Web Terminal” addon in Home Assistant).

  1. Using SSH in Home Assistant, go to the “config/.storage/” directory.
    Type: “cd config/.storage” and press enter.
  2. List the contents of the “.storage” directory.
    Type: “ls” and press enter.
  3. Confirm that you see the file “hacs.repositories”.
  4. Delete the bad/corrupt “hacs.repositories” file.
    Type: “rm hacs.repositories” and press enter.
  5. Confirm that “hacs.repositories” has been deleted.
    Type: “ls” and press enter, then check to make sure the file is gone.
  6. Copy the old/working “hacs.repositories” file from the attached network storage to the
    “.storage” directory.
    The command looks like this: “cp /source/of/file/hacs.repositories /destination/of/file/”
  7. After pressing enter, type “ls” to ensure that the “hacs.repositories” file copied over correctly.

Re-enable the HACs Integration to test that it worked.

  1. In Home Assistant, go to “Settings” > “Devices & services” and click the filter (three lines in the top right) to set the option for “Show disabled integrations”.
  2. Find “HACS” and choose “ENABLE”.
  3. HACS should start up fine.
  4. Reboot Home Assistant.
2 Likes

You can pull the “hacs.repositories” file out of the full backup (maybe a partial too, but I’m unsure). It would be at: “Backupname.tar/homassistant.tar/data/.storage/hacs.repositories”.

I wrote a guide in this thread with the entire process of replacing the broken hacs.repositories file if you need any help.

Any help with the syntax? I just keep getting file not found. I am a Windows guy so linux is not my strong suite.

I am able to mount the share in system settings but then I cannot get the file off of it.

Are you getting a specific error? Do you see the hacs.repositories file there?

For the syntax:

cd = “change directory”, so just moving to a directory.

ls = “list” the contents of the current directory

rm filename_here = “remove/delete” the specific file listed.

cp /source_of_file/filename.fileextension /destination_to_copy_file_to/ = “copy” the file from once place to another.

I just realized that not all my downloaded repositories were showing so I did the restore of the hacs.repositories file but it seems I am still missing some such as the NWS Alerts integration. Can I just download it again without it messing anything up?

Hello.
I followed Ryan’s instructions successfully and can now see all downloaded HACS integrations again.
However, I no longer receive any update messages for the integrations via HACS.
Does anyone know what to do?
Eckart

Sorry you had that issue. My HACs integrations still show up under updates. Were you able to resolve this?