After a few days of trying and searching for possible solutions on the forum here, I would like to post the problem I’m having with getting Grafana charts in a lovelace card through the suggested ‘generic camera’ approach.
configuration.yaml:
camera:
- platform: generic
name: grafana_current_power
still_image_url: 'http://192.168.1.250:8123/api/hassio_ingress/lGmlp2j2qtV08FUqcZm2E9EbjwB_huTnTnyGHS9ISDc/render/d-solo/Wz8Wde8mz/energy-usage?orgId=1&panelId=4'
username: !secret grafana_user
password: !secret grafana_password
- platform: generic
name: weather_oslo
still_image_url: https://www.yr.no/place/Norway/Oslo/Oslo/Oslo/meteogram.svg
content_type: 'image/svg+xml'
ui-lovelace.yaml:
- title: Stroom & Gas
cards:
- type: picture-entity
entity: camera.grafana_current_power
- type: picture-entity
entity: camera.weather_oslo
- type: iframe
id: grafana_iframe
url: http://192.168.1.250:8123/api/hassio_ingress/lGmlp2j2qtV08FUqcZm2E9EbjwB_huTnTnyGHS9ISDc/d-solo/Wz8Wde8mz/energy-usage?orgId=1&theme=light&panelId=4
aspect_ratio: 65%
This results in 2 out of 3 cards working:
- The generic camera with the Grafana still image is not working (camera.grafana_current_power)
- The weather image is working (camera.weather_oslo)
- The iframe card with Grafana chart is working. However, this is not my preferred solution because it sometimes gives me a 401: Unauthorized error.
Clicking the picture-entity card opens a pop-up with an empty image:

Opening the still_image_url in the browser works fine.
The only related log entries I see (debug level):
2020-01-03 14:13:21 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 192.168.1.210 for /api/camera_proxy/camera.grafana_current_power using signed request
2020-01-03 14:13:21 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/camera_proxy/camera.grafana_current_power to 192.168.1.210 (auth: True)
2020-01-03 14:13:21 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/hassio_ingress/lGmlp2j2qtV08FUqcZm2E9EbjwB_huTnTnyGHS9ISDc/render/d-solo/Wz8Wde8mz/energy-usage to 192.168.1.250 (auth: False)
Hopefully someone can help me out.
