Enable Users to Self-Host External Assets (like brands.home-assistant.io) #429
Replies: 3 comments 8 replies
-
|
I'm paying attention to this because I'm in China, and brands.home-assistant.io uses Cloudflare, which makes access in China very slow (or even inaccessible). So this request is reasonable because it can bring a better experience to some users. |
Beta Was this translation helpful? Give feedback.
-
|
As demonstrated with todays Cloudflare outage, this should be self-hostable so that this resource cannot just vanish... Also:
While it makes sense to not be able to install things like this, the message is simply incorrect, as the internet is fine, and this service is simply down. Maybe that can get posted as a separate bug though. |
Beta Was this translation helpful? Give feedback.
-
|
I guess on-device caching could be considered as an alternative, If it doesn’t already? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe your core improvement
External resources like
brands.home-assistant.ioare currently hardcoded, forcing the client-side frontend to fetch assets directly from the internet. This proposal asks for those URLs to be configurable so users can self-host or proxy them via Home Assistant.Benefits:
Current limitations
Today the brands URL is hardcoded to
brands.home-assistant.io, but that means brand icons do not load if the user is offline.Technical benefits
Allowing the brands URL (and other external resources) to be configurable would let users self-host these assets or proxy them through Home Assistant. For example, an add-on could serve the brands repository via ingress, or a user could run a simple webserver with the brands repo.
Additional context
Icons pulling from outside local HASS domain #18549
Was closed as
intended behavior, this ticket intends to change that. Migrated to discussion: home-assistant/frontend#26274My Personal Opinion
The Home Assistant web-app should endeavor to never ever use remote resources of any kind.
In literal terms, the users browser should never ever ever EVER load a website in home assistant and get an external path for a resource!.
A
content-security-policywith adefault-srcofselfshould never be violated!Beta Was this translation helpful? Give feedback.
All reactions