Closed jbrandek closed 7 months ago
svg file
Sorry its working dont know why but it didnt update the resources... needed to do in manually and now its working
I had just finished reviewing your SVG, and I couldn't find anything wrong. I was starting to list the 'other' things that could be wrong. It looks like you might have beat me to the solution! :)
I think you've stumbled over the first ambiguity in my DIY instructions. If a cache-based browser like Chrome, Edge, etc. is used to view HASS, new icons will not show up unless the user cache is cleared -- sometimes, even with a brand new icon file. I've become used to clearing the Browsing Data in Google Chrome every time that I add icons. I will add a note to the instructions to clarify this.
If you add more icons in the future, always manually clear the browser's cache.
Regards, -BW
Dont think is that, i added some icons and i cant made it show it until i change manually the version of the .js in resources and it showed the icon... i think somehow HA keeps track of changes into the js file... i changed in manage resources manually /local/baw_icons/hass-baw-icons.js?v=1.0 for /local/baw_icons/hass-baw-icons.js?v=1.1 and it worked...
That is strange! I have been editing my icon file for almost two years, and while the date code changes, I've never updated the version inside or outside the file. These are the actual lines from my configuration.yaml file. They have not changed since I started adding icons:
frontend:
extra_module_url:
- /local/hass-bha-icons.js
- /local/hass-baw-icons.js
- /local/hass-baw-logo-icons.js
What do you do after you edit the js? If you add an icon it apears to use ir right away?
The changes aren't 100% instantaneous, and you cannot edit and view results in real time. Here is what I do:
Ohh ok i will try that way, i was modifying the file in visual editor, not reuploading it, maybe thats why.
Thanks
Bear in mind that this is sort of a hack to HA: it's not an integration in the normal idea of the concept. It's a resource that gets loaded at the start of an HA session.
I would recommend that your remove the version info you had listed. I don't provide any, and if HA requires it the data is added during boot.
Thank you for this, i would like tu use a icon that i created but i cant show it in HA, i made all the steps on inkskape cuan you check the svg code to see what im doing wrong? i compare all and it looks good but cant fint the problem taht is not showing it