Grafana Authentication in Home Assistant

Hi All,

I have a question about Grafana authentication when using Grafana rendered images in Home Assistant.

On my Synology Nas I have a nr of docker containers: HomeAssistant, Grafana and Grafana renderer.
The last two containers were created using docker-compose with the following compose file

version: '3.8'

services:
  grafana:
    image: grafana/grafana:latest
    ports:
      - '3000:3000'

    volumes:
      - type: bind
        source: ./Grafana/Config
        target: /etc/grafana
      - type: bind
        source: ./Grafana/Data
        target: /var/lib/grafana
      - type: bind
        source: ./Grafana/Logs
        target: /var/log/grafana


    environment:
      - TZ=Europe/Amsterdam
      - GF_SECURITY_ALLOW_EMBEDDING=true
      - GF_AUTH_ANONYMOUS_ENABLED=true
      - GF_AUTH_ANONYMOUS_ORG_NAME=Viewer
      - GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
      # - GF_AUTH_DISABLE_LOGIN_FORM=true
      - GF_AUTH_OAUTH_AUTO_LOGIN=true
      - GF_RENDERING_SERVER_URL=http://renderer:8081/render
      - GF_RENDERING_CALLBACK_URL=http://grafana:3000/
      - GF_LOG_FILTERS=rendering:debug
  renderer:
    image: grafana/grafana-image-renderer:latest
    ports:
      - 8081

volumes:
  Config:
  Data:
  Logs:

This setup works well, except for the authentication part.
When I try view the card below in HomeAssistant, the login screen appears

type: iframe
name: Grafana
url: >-
  https://xxx.xxx.xxx.xxx:3000/d/IEzq1g5nk/daily-usage?orgId=1&kiosk=1&from=1650541309024&to=1651405309025&viewPanel=2
aspect_ratio: 50%

When I authenticate in another window on the PC, It shows the graph correctly.

I tried numerous solutions and combinations of environment variables to get this solved without suc6. For instance “disable login form” just gets me stuck on a welcome screen.

Any help with the environment variables would be greatly appreciated!
PPee