I cannot see any Picture in Picture Card

Hi all

I have a strange issue whit the picture …
I read the documentation and some topic and all say that I have to create the folders /config/www/ and put inside the image file.
Restart HA.
Next, I can use it in the picture card with /local/filename.jpeg …

I did all the steps … but in any case I cannot see my picture :frowning:

I tryied also using the syntax with the full path https://ip:8123/local/filename.jpeg but I receive only β€œ404: Not Found”

Any idea?

Note: I have home assistant core on ubuntu with https enable.

If you restarted home assistant after creating the config/www folder that should work.

Try this (no leading /):

local/filename.jpeg

Be aware that both the path and filename are case sensitive. So Filename.jpeg is not the same as filename.jpeg.

1 Like

Thanks a lot but still not working.

The path and file are created at 25 june

$ ls -ltr /config/www/fab.jpeg
-rwxrwxrwx 1 homeassistant homeassistant 4690 giu 25 10:31 /config/www/fab.jpeg

I restarted home assistant also now … below my picture card, maybe I totally wrong the picture-card:

Conf:

  - title: TestImage
    path: c
    badges: []
    cards:
      - type: picture
        image: config/www/fab.jpeg
        tap_action: &ref_0
          action: navigate
          navigation_path: /lovelace/home
        alt_text: my_alternative_txt
      - type: picture
        image: /local/fab.jpeg
        tap_action: *ref_0
        alt_text: my_alternative_txt_2
      - type: picture
        image: local/fab.jpeg
        tap_action: *ref_0
        alt_text: my_alternative_txt_3

The result:

image

still no working

aaahhhhh :smiley: I found the solution!!!

The path to use is not /config/www but the path under the home of homeassistant … maybe because I have to CORE installation.

The correct path to put the image files is:
/home/homeassistant/.homeassistant/www/

and now the picture card is working fine with:
/local/fab.jpeg

Thanks for your help @tom_l
:slight_smile:

1 Like

What would the path be if I have a folder in partion; media/wallmount_images/

How can I place the images there? I have tried everything to get an image entity to work, but my images are now in config/www/ so looking at your experience that won’t work.

I have the Home Assistant OS installed, so core and supervisor and all!
Thanks a lot in advance!

Do you have File editor installed in your Add-Ons?

Yes I do! But all the folders I see there are in the config folder.
Also through samba share I cannot access that folder

EDIT: I see there is an option that limits it to config. I have disabled that and see home now, but it is completely empty. Do I have to create that path or how should I proceed?

This is via File Editor from your Add On

You should see homessistant folder to start

image

look for www and click on that folder

create a folder called pics or images in the /homeassistant/www folder using the + folder at the top.

image

upload you photos using the upload option underlined in red

reference those pics using /local/pics/your_image.png