Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons Dissapear from Sidebar for custom dashboards #861

Open
jplabcpt opened this issue Dec 17, 2024 · 16 comments
Open

Icons Dissapear from Sidebar for custom dashboards #861

jplabcpt opened this issue Dec 17, 2024 · 16 comments
Assignees
Labels
bug Something isn't working

Comments

@jplabcpt
Copy link

jplabcpt commented Dec 17, 2024

Custom icons set for custom dashboards in Home Assistant sidebar shows for a while, and then dissapears.

I have checked the dashboard resources, redownloaded the repo from HACS, removed and reinstalled the repo from HACS -nothing fixes it. This is the setup but it dissapears on the sidebar.

image image
@jplabcpt jplabcpt added the bug Something isn't working label Dec 17, 2024
@elax46
Copy link
Owner

elax46 commented Dec 18, 2024

first go to settings, dashboard and 3 dots click resorces, add resource

/hacsfiles/custom-brand-icons/custom-brand-icons.js?hacstag=366862031202420

and

/local/community/custom-brand-icons/custom-brand-icons.js

and let me know if this work around fixes the issue

@jplabcpt
Copy link
Author

jplabcpt commented Dec 18, 2024

just tried it, also cleared my cache again as well as hard-refresh browser - but still not showing (and dissapearing after setting once page is refreshed).

@rchiileea
Copy link
Collaborator

try added this in to config

  extra_module_url:
  - /local/community/custom-brand-icons/custom-brand-icons.js
  - /hacsfiles/custom-brand-icons/custom-brand-icons.js

@jplabcpt
Copy link
Author

Thank, just tried this as well. Again cleared my cache, as well as hard-refresh browser - but still not showing (and dissapearing after setting once page is refreshed).

@tmason818
Copy link

Thank, just tried this as well. Again cleared my cache, as well as hard-refresh browser - but still not showing (and dissapearing after setting once page is refreshed).

Same issue for me. I'll hard-refresh and they will appear....but if I hard-refresh again they will be gone. (Chrome Win 11)

Other times they'll just be gone on a new load in the browser or the companion app.

I did notice that there is another resource besides the one ending in 2420:

image

I have tried replacing that resource with the one ending in 2420 or additionally adding the one ending in 2420 and the behavior is the same.

@DreadN
Copy link

DreadN commented Dec 29, 2024

try added this in to config

  extra_module_url:
  - /local/community/custom-brand-icons/custom-brand-icons.js
  - /hacsfiles/custom-brand-icons/custom-brand-icons.js

and it worked?

@DreadN
Copy link

DreadN commented Dec 29, 2024

Thank, just tried this as well. Again cleared my cache, as well as hard-refresh browser - but still not showing (and dissapearing after setting once page is refreshed).

Same issue for me. I'll hard-refresh and they will appear....but if I hard-refresh again they will be gone. (Chrome Win 11)

Other times they'll just be gone on a new load in the browser or the companion app.

I did notice that there is another resource besides the one ending in 2420:

image

I have tried replacing that resource with the one ending in 2420 or additionally adding the one ending in 2420 and the behavior is the same.

The resource ending with 2420 is from the github instructions.
The 24111 is maybe injected from hacs installation?

@iamronr
Copy link

iamronr commented Dec 31, 2024

I can confirm, having the same issues. Not just on sidebar, but on different pages throughout my dashboard. I tried the above recommendations, and the issue persists.

I'm running Home Assistant Core via python -- 2024.12.5

@iamronr
Copy link

iamronr commented Jan 2, 2025

Hate to be that guy... but my issues seemed to have resolved. Icons are consistently populating. I did make one MAJOR change, which is switching from Home Assistant Core in python to Home Assistant OS & Supervised in VM (VMWare). I also did leave the extra_module_url code.

frontend:
  themes: !include_dir_merge_named themes
  extra_module_url:
    - /local/community/custom-brand-icons/custom-brand-icons.js

@tmason818
Copy link

switching from Home Assistant Core in python to Home Assistant OS & Supervised in VM (VMWare).

I am running Home Assistant OS & Supervised in VM on a Synology NAS and experience the missing icons throughout.

I use Home Assist in the Chrome Browser in Windows and the HASS App on Android. Hope this helps!

@iamronr
Copy link

iamronr commented Jan 3, 2025

switching from Home Assistant Core in python to Home Assistant OS & Supervised in VM (VMWare).

I am running Home Assistant OS & Supervised in VM on a Synology NAS and experience the missing icons throughout.

I use Home Assist in the Chrome Browser in Windows and the HASS App on Android. Hope this helps!

Have you tried adding the extra module url to frontend?

@tmason818
Copy link

Have you tried adding the extra module url to frontend?

Yes I believe so...although your comment has me doubting myself.

My Dashboard->Resources section looks this:

image

@DreadN
Copy link

DreadN commented Jan 3, 2025

I have these four...

image

@DreadN
Copy link

DreadN commented Jan 3, 2025

I found out that i had two entries of "Frontend:" in configuration.yaml.
I've grouped the lines into that section and now after a HA restart it seems to mantain the icons where they need to be.

image

@tmason818
Copy link

tmason818 commented Jan 3, 2025

I found out that i had two entries of "Frontend:" in configuration.yaml. I've grouped the lines into that section and now after a HA restart it seems to mantain the icons where they need to be.

image

Thank you for this.

I didn't even have that line in my configuation.yaml

I think I installed Custom Brand Icons from HACS without ever scrolling down to see that there were steps after the HACS install:

image

image

After adding that line to my config the issue seems to be resolved for me as well. But damage done to my pride because of poor reading comprehension regarding the multiple posts in this very thread saying to add the URL in the right spot may never be resolved LOL

@jplabcpt
Copy link
Author

jplabcpt commented Jan 6, 2025

None of the above fixed it for me, I am running in a container thought. Wondering if it might be the reason...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants