I am developing a AddOn for Home Assistant which uses Ingress and can succesfully display some images to the user.
Now I want to integrate the provided picture into my lovelace dashboard. I want to use a camera-entity with still_image pointing to my webserver:
- platform: generic
still_image_url: http://x.x.x.x:8123/api/hassio_ingress/JjDDBaneVUE4dLAliYpU74PaRSs2o5e3_-0Y194dRgE/images/latest.jpg
name: entry
I can reach this URL manually just fine but as soon as I configure my camera entity I get the following logfile entry:
error getting new camera image from entry: 401 Client Error: Unauthorized for url: http://x.x.x.x:8123/api/hassio_ingress/JjDDBaneVUE4dLAliYpU74PaRSs2o5e3_-0Y194dRgE/images/latest.jpg
What would be the right way to integrate this picture provided by my addon? Should I launch a second webserver listening to a different port which serves that image without Ingress?