home_assistant_min_renovasjon icon indicating copy to clipboard operation
home_assistant_min_renovasjon copied to clipboard

404 errors related to images/icons?

Open FSund opened this issue 2 years ago • 6 comments

I'm getting errors like GET https://<my-HA-url>/local/min_renovasjon/1.png 404, and the icons for the entities seem to be missing. Are these pictures missing from the repo, or should they have been fetched when the addon was installed?

FSund avatar Feb 16 '23 07:02 FSund

These images are not included as of now. I will look into an automated process to add these images. Currently, these images must be added manually. The location of these files (/local/min_renovasjon/) maps to a folder named "www/min_renovasjon" under the Config folder.

eyesoft avatar Feb 20 '23 11:02 eyesoft

Are the images available online anywhere?

FSund avatar Feb 20 '23 13:02 FSund

A link to the image can be found in an attribute called "fraction_icon" on the Entity.

eyesoft avatar Feb 20 '23 14:02 eyesoft

Hi there, so if I understood correctly. I can download these pictures and add them to a folder that I've created under the "www" folder that is called "min_renovasjon" After adding these *.png files. Do I need to do some configuration changes? Because they wont show up in HA

sorcer83 avatar May 09 '23 23:05 sorcer83

I downloaded pictures and added them locally. Dates seem to be correct vs trash type, but the pictures are not correct. For plastic it does not even show. For example. Food waste (matavfall) is showing wrong picture (is showing paper).

Am I doing something wrong or is something not up to date?

image

Jacp101 avatar Jan 08 '24 19:01 Jacp101

I downloaded pictures and added them locally. Dates seem to be correct vs trash type, but the pictures are not correct. For plastic it does not even show. For example. Food waste (matavfall) is showing wrong picture (is showing paper).

Am I doing something wrong or is something not up to date?

image

It seems I was able to solve this by naming the pictures with the correct fraction ID. Then deactivate and reactivated the integration and cleared my cache for it to show correctly. For me the correct fractions where: Restavfall = 1, Paper=2, Matavfall=3, Plast=7

Jacp101 avatar Jan 08 '24 20:01 Jacp101