Picture path accessible from internet and intranet

Hi all,

I’ve setup a picture element using an image stored locally in the config/www folder.
By using the intranet URL address of the home assistant it works nicely, however when I want to access it from the internet, of course it doesn’t work.

If I use the router ip address on the URL and redirect the port 8123 to my raspberry pi, the picture element shows correctly when accessed from the internet, but not when I try to access it from my home intranet.

Is there a way to configure the picture-element to use two different IP address depending on the client network, something like what the android home assistant app does?

1 Like

Just to inform that I found the solution. When specifying the path I should only put the relative
like: image: /local/house.png
and not the absolute https://pi.home:8123/local/house.png

1 Like