Custom components and home assistant cast- Solved

Hi, I’ve been using home assistant cast to show a lovelace dashboard on my nest hub. Previously i had no issues and the custom components that i used showed up fine. After updating from 110 to 111 the red boxed with “could not load …” appeared instead of the component. Using any of the built in components works fine still.
The issue have been persistent through version 111, 112 and now 113.
I have tried manually adding the required addresses to the cors configuration but that didn’t do anything. Also i have tried resetting the nest hub as i suspected the issue to be related to the nest hub.
Running on a pi4 with HassOS. Custom components are installed using HACS
Have anyone experienced anything similar and maybe have a fix?

Did you update all custom components and custom cards to the newest version?

Yes everything is updated to latest version.

Can you please show a screenshot of one of the errors?

I will once i get home.
In the meantime I found this image online showing the same error.

In case anyone stumbles across this issue with the same problem i managed to fix the problem. Apparently when installing components using hacs the resource is automatically added as
/hacsfiles/THEPLUGIN and this does not work when casting. So adding a second resource as
/local/community/THEPLUGIN fixes the issue.
As an example if using the mini-media-player the resouce
is added automatically. To use the plugin when casting the following resource
also needs to be added.

1 Like

For some reason this does not work for me anylonger, does it still work for you? I cannot get any community addons to work, but they did with this workaround before.

1 Like

Hi Corvy
I have ended up using catt instead which works way better. I would recommend switching to that.

1 Like

Will check! Thanks for the tip :slight_smile:

Hi All, i have the latest version of running in a vm and CustomCompnonents did work to my Nest HUB. But jst like that after a restart the casting cant load the components anymore… I have the CORS in the config file…

The path of the files in HA for CC’s are \\config\www\community<NAME>

Any ideas?