I’m at my wits end with this.
I cannot get my images to show and I’m sure it’s just a path problem but I can’t figure it out.
Here’s what I have:
And the card is configured thus:
Any ideas where I’m going wrong?
If I copy the path within VSCode I get:
/Volumes/config/www/images/pond_control/pond_control_background.png
Does that help point to the problem?
The issue doesn’t seem to be the .png as if I use the default image that omes with the card https://demo.home-assistant.io/stub_config/floorplan.png I get the same result.
If I use file:///Volumes/config/www/images/pond_control/main_pump_off.png
in Chrome, I can view the image.
Are there issues with the picture-elements card itself?
More clues:
If I use the file editor to browse to the images, clicking on them opens Chrome with the URL:
http://192.168.8.113:8123/api/hassio_ingress/YwJ0lFJRAHS5jNWRGD0MHEF6w5rtv4nwjGC03XNYF_c/api/file?filename=/config/www/images/pond_control/main_pump_off.png
and the image is shown in the browser.
Configuring the picture-elements card as:
type: picture-elements
image: >-
http://192.168.8.113:8123/api/hassio_ingress/YwJ0lFJRAHS5jNWRGD0MHEF6w5rtv4nwjGC03XNYF_c/api/file?filename=/config/www/pond_control_background.png
elements:
- type: image
entity: input_boolean.main_pump
style:
left: 50%
top: 50%
width: 100%
state_image:
'on': >-
http://192.168.8.113:8123/api/hassio_ingress/YwJ0lFJRAHS5jNWRGD0MHEF6w5rtv4nwjGC03XNYF_c/api/file?filename=/config/www/images/pond_control/main_pump_on.png
'off': >-
http://192.168.8.113:8123/api/hassio_ingress/YwJ0lFJRAHS5jNWRGD0MHEF6w5rtv4nwjGC03XNYF_c/api/file?filename=/config/www/images/pond_control/main_pump_off.png
has the images show, though not on iOS devices, just Mac.
I’d really appreciate a pointer as to what is going on here.