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 not visible [Cache Issue] #287

Closed
gabrio79 opened this issue Dec 1, 2022 · 16 comments
Closed

Icons not visible [Cache Issue] #287

gabrio79 opened this issue Dec 1, 2022 · 16 comments
Assignees
Labels
bug Something isn't working

Comments

@gabrio79
Copy link

gabrio79 commented Dec 1, 2022

Describe the bug
Since latest HA update addon stopped works, I don't see icon now. Nothing changes on my configuration.
Same issue on mobile app

Home Assistant 2022.11.5
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest
custom-brand-icons 1.0.86

Sample of issue
image
Sample of used code:

  - entity: light.farmacia_stripled
    name: Stripled
    type: custom:multiple-entity-row
    toggle: true
    state_color: true
    icon: phu:light-strip
    entities:
      - entity: sensor.farmacia_stripled_assorbimento
        name: Assorbimento
  - type: divider
  - entity: light.farmacia_logo_bancone
    name: Logo Bancone
    type: custom:multiple-entity-row
    toggle: true
    state_color: true
    icon: mdi:mortar-pestle-plus
    entities:
      - entity: sensor.farmacia_logo_bancone_assorbimento
        name: Assorbimento
@gabrio79 gabrio79 added the bug Something isn't working label Dec 1, 2022
@elax46
Copy link
Owner

elax46 commented Dec 1, 2022

This problem depends on the cache

@gabrio79
Copy link
Author

gabrio79 commented Dec 1, 2022 via email

@rchiileea
Copy link
Collaborator

I just tested on 3 different browsers as well as mobile and it works fine for me, have you tried re installing the repo? are you running on a pi and SD card is near end of life?

@fulviomeomartini
Copy link

Describe the bug Since latest HA update addon stopped works, I don't see icon now. Nothing changes on my configuration. Same issue on mobile app

Home Assistant 2022.11.5 Supervisor 2022.11.2 Operating System 9.3 Frontend 20221108.0 - latest custom-brand-icons 1.0.86

Sample of issue image Sample of used code:

  - entity: light.farmacia_stripled
    name: Stripled
    type: custom:multiple-entity-row
    toggle: true
    state_color: true
    icon: phu:light-strip
    entities:
      - entity: sensor.farmacia_stripled_assorbimento
        name: Assorbimento
  - type: divider
  - entity: light.farmacia_logo_bancone
    name: Logo Bancone
    type: custom:multiple-entity-row
    toggle: true
    state_color: true
    icon: mdi:mortar-pestle-plus
    entities:
      - entity: sensor.farmacia_logo_bancone_assorbimento
        name: Assorbimento

same here

@gabrio79
Copy link
Author

gabrio79 commented Dec 3, 2022

I just tested on 3 different browsers as well as mobile and it works fine for me, have you tried re installing the repo? are you running on a pi and SD card is near end of life?

hello,
I tried to reload cache, reinstall addon, restart server, nothing changed.
I have HA on raspberry 4 running on SDD

If I use chrome developer tab, it seems that SVG section is missing
Screenshot 2022-12-03 alle 10 01 20

while in the native image there is
Screenshot 2022-12-03 alle 10 02 26

@elax46
Copy link
Owner

elax46 commented Dec 3, 2022

I just tested on 3 different browsers as well as mobile and it works fine for me, have you tried re installing the repo? are you running on a pi and SD card is near end of life?

hello, I tried to reload cache, reinstall addon, restart server, nothing changed. I have HA on raspberry 4 running on SDD

If I use chrome developer tab, it seems that SVG section is missing Screenshot 2022-12-03 alle 10 01 20

while in the native image there is Screenshot 2022-12-03 alle 10 02 26

the icon path is present in the <g>..</g> tag

@gabrio79
Copy link
Author

gabrio79 commented Dec 3, 2022

in first section (where I use your addon), the .. tag is missing

Screenshot 2022-12-03 alle 10 01 20

@elax46
Copy link
Owner

elax46 commented Dec 3, 2022

Screenshot 2022-12-03 alle 10 02 26

@gabrio79 Here I seem to see it however the html management is by HA not by the CBI

@gabrio79
Copy link
Author

gabrio79 commented Dec 3, 2022

Screenshot 2022-12-03 alle 10 02 26

@gabrio79 Here I seem to see it however the html management is by HA not by the CBI

upper was a sample related to native icon, used to compare

below is related to CBI where <g></g> is missing
Screenshot 2022-12-03 alle 10 01 20

@elax46
Copy link
Owner

elax46 commented Dec 3, 2022

the light-strip icon is present in the js file i don't know if you use components that can negatively affect it in general it's a problem that depends a lot on the cache of the devices. Also check if there is any component, such as custom dashboard, that can create problems

@gabrio79
Copy link
Author

gabrio79 commented Dec 6, 2022

Found it!
it was the custom addon "state-switch", I dasbled it, empty cache and now is working fine.
Many thanks for your time and patience

@gabrio79 gabrio79 closed this as completed Dec 6, 2022
@elax46
Copy link
Owner

elax46 commented Dec 6, 2022

Thank you so much for your very important feedback!

@elax46 elax46 pinned this issue Dec 6, 2022
@elax46 elax46 changed the title Issue related to latest update? Icons not visible [Cache Issue] Dec 6, 2022
@Marko298
Copy link

Marko298 commented Nov 9, 2023

Hello, I have same problem. I tried to clean caches in all possible ways. Same thing in incognito mode
https://share.cleanshot.com/kW2nGQwL

@oerix
Copy link

oerix commented Jul 30, 2024

Having the same problem on HA 2024.7.4 and previous versions. @elax46 Any update on this please? thanks

@ArthFink
Copy link

I have the same behavior as @Marko298

The thing is the js resource are loaded, on the website each time, but sometimes they are just not rendered.

@RPSouto
Copy link

RPSouto commented Nov 20, 2024

Same issue here. If I edit any element with the icon everything appears after that. Tried in 2 mobiles, browsers and tablets.

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

8 participants