Olen / homeassistant-plant

Alternative Plant component of home assistant
348 stars 23 forks source link

Image not work #192

Closed milandzuris closed 1 month ago

milandzuris commented 2 months ago

Hi i dont see in Card Plant Image where is the problem?

image

image

image

merlin-zaraza commented 2 months ago

Same with me. I think that it expect to be url, but if you want local file - then path have to start from \local\ as I can see from sources. Seems like a bug. Please fix.

Olen commented 2 months ago

The path is NOT the path in your file system. The path is the path to the image from the HA web ui.

merlin-zaraza commented 2 months ago

Hi @Olen. So for example HA config is in /config file system. Based on that what is the path to the image? My image is in /config/www/images/plants/zamioculcas zamiifolia.jpg, but it still not displayed. Could you please make an example?

merlin-zaraza commented 2 months ago

Upd. Just realised that image url should be /local/images/plants/zamioculcas zamiifolia.jpg. And actual location in file system is /config/www/images/plants/zamioculcas zamiifolia.jpg