hass-hue-icons icon indicating copy to clipboard operation
hass-hue-icons copied to clipboard

Hue icons not always showing

Open jeroen84s opened this issue 2 years ago • 20 comments

Hue icons is not always showing when I open the Home Assistant app, or when I open HA in the chrome / edge browser. Sometimes refreshing solves the problem, but not always. Original HA icons works always correctly. Re-installation is not working image

jeroen84s avatar Oct 31 '22 10:10 jeroen84s

i've the same issue ! image

gnoffer avatar Nov 04 '22 13:11 gnoffer

Same here, not always visible.

m4d-maNu avatar Nov 20 '22 16:11 m4d-maNu

also having this issue currently. Hue icons suddenly not showing / not listed in dropdown. uninstalling and re-installing component via HACS not fixing issue.

jaredgudnason avatar Jan 16 '23 16:01 jaredgudnason

same, need to refresh the page or ios app one or more times for the icons to reappear. bug in HA? Can't imagine this is actually related to a file thats just available in HA.

RezzZ avatar Jan 23 '23 07:01 RezzZ

Will keep an eye on this. Could be a memory / browser thing where the library (which always grows in size as icons are added) starts to crash some part of memory management, but suspect this is more likely HA than hass-hue-icons related.

I've not seen it at all. Anyone have console output from a browser or client where they don't appear?

arallsopp avatar Jan 23 '23 07:01 arallsopp

sorry for the n00b question but how do I create a console output out of chrome? image edit again: pressing F12 I see this in my console: image

RezzZ avatar Jan 24 '23 19:01 RezzZ

No worries.

To open the developer console in Google Chrome, open the Chrome Menu in the upper-right-hand corner of the browser window and select More Tools > Developer Tools.

You can also use Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux).

You want the JavaScript console which should tell you (on refresh) what libraries loaded and any errors it encounters.

arallsopp avatar Jan 24 '23 19:01 arallsopp

on refresh I see this in my console: image

RezzZ avatar Jan 24 '23 19:01 RezzZ

the mentioned chrome extension is a popup blocker so i whitelisted my ha url now. This however is not possible on iOS and the missing images happens in the companion app as well

RezzZ avatar Jan 24 '23 20:01 RezzZ

Ok. Did you follow this bit of the installation instructions?

Add the following to your configuration.yaml, save and restart HA.

frontend:
  extra_module_url:
    - /hacsfiles/hass-hue-icons/hass-hue-icons.js

Pointing it at whatever install location is used?

arallsopp avatar Jan 24 '23 20:01 arallsopp

Hmm no I didn’t. Thought hacs would do all the magic for me 😳😅. I’ll get back to you and I will add the mentioned lines to my ha configuration yaml

RezzZ avatar Jan 24 '23 20:01 RezzZ

Cheers. To be fair, HACS does a splendid job on the magic, but it can only load scripts after HA is done. That can lead to resources being unregistered on the first call to them.

arallsopp avatar Jan 24 '23 20:01 arallsopp

Strange though that a page refresh solves it for a while..

RezzZ avatar Jan 24 '23 21:01 RezzZ

For me it's not solved with the installation instructions. I add this rule few months ago in my configuration.yaml

frontend: themes: !include_dir_merge_named themes extra_module_url: - /hacsfiles/hass-hue-icons/hass-hue-icons.js

jeroen84s avatar Jan 25 '23 07:01 jeroen84s

This happens mostly on the app for me. After a few restarts the icons shows up again.

el97 avatar Feb 10 '23 18:02 el97

Yeah I was a happy user of these too for months but lately they just don't load for me. Tried everything mentioned here and it's not working for me anymore. I'll start replacing them with the usual mdi icons instead and not worry about it.

den-mac avatar Feb 23 '23 05:02 den-mac

This seems to be an intermittent issue for a small subsection of users, and to do with the way HA handles front end libraries.

I can't see an obvious fix for it from this side, other than to rework the entire library as an integration.

That would let us install it with great privilege and control, but means reworking pretty much all of it.

I'll think on this, as I don't want anyone to be without the icons they need.

arallsopp avatar Feb 23 '23 08:02 arallsopp

I haven't had any issues since I installed it properly in the configuration.yaml (just providing info, don't mean to step on anyone's toes)

RezzZ avatar Feb 23 '23 09:02 RezzZ

Thanks René,

That's really good to know.

arallsopp avatar Feb 23 '23 13:02 arallsopp

I've noticed this same behavior. I have several HACS icon sets installed and love the Hue icons, they really fit my need, but while they work fine on my desktop Chrome and Safari they don't work on my wall mounted tablets. I have a Fire 10HD and they just won't draw at all, but all my other HACS plugins work.

Colorado4Wheeler avatar Aug 25 '23 21:08 Colorado4Wheeler