Location of downloaded HACs cards

Hello.

So I downloaded this card:

using HACS.

It downloaded it to www/community or at least that is where I can see it when I go to file editor to find it.

the documentation says add the following:

resources:

  • url: /local/vacuum-card.js
    type: module

but this did not work, while adding

  • url: /hacsfiles/vacuum-card/vacuum-card.js
    type: module

did work. I got this code from a previous card I had downloaded that was in the same folder.

Am I downloading them wrong? Do not think I can be as I use HACs to download.

If not should local work or is that just how the documentation for card works and I need to put the right file path?

Also, how does “hacsfiles” even work as a file path?

Thank you!

I believe the HACS integration maps www/community to /hacsfiles/ for you, but only the developer can confirm that as I’ve not looked at the source personally.