arallsopp / hass-hue-icons

Additional vector icons for home assistant to model Philips Hue bulbs and fixtures.
Other
295 stars 26 forks source link

Hue icons not always showing #206

Open jeroen84s opened 1 year ago

jeroen84s commented 1 year ago

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

gnoffer commented 1 year ago

i've the same issue ! image

m4d-maNu commented 1 year ago

Same here, not always visible.

jaredgudnason commented 1 year ago

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

RezzZ commented 1 year ago

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.

arallsopp commented 1 year ago

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?

RezzZ commented 1 year ago

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

arallsopp commented 1 year ago

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.

RezzZ commented 1 year ago

on refresh I see this in my console: image

RezzZ commented 1 year ago

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

arallsopp commented 1 year ago

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?

RezzZ commented 1 year ago

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

arallsopp commented 1 year ago

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.

RezzZ commented 1 year ago

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

jeroen84s commented 1 year ago

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:

el97 commented 1 year ago

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

den-mac commented 1 year ago

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.

arallsopp commented 1 year ago

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.

RezzZ commented 1 year ago

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)

arallsopp commented 1 year ago

Thanks René,

That's really good to know.

Colorado4Wheeler commented 1 year ago

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.