Embedding Grafana Panels in Lovelace

The Home Assistant frontend can definitely add support for embedding ingress panels (addon pages) in dashboard. But I see this issue is reported as a configuration and not as a feature request, so I’m not sure if it was ever taken as a feature request by the frontend team.

An iframe is a way to do it.
Example from my config:

type: iframe
url: >-
  https://grafana.mydomain.com/d-solo/1PWOjOcnz/technical-data?orgId=1&theme=dark&panelId=5
aspect_ratio: 35%

So do you just expose your Grafana entity to the internet?

si tienes grafana como contenedor usa “GF_SECURITY_ALLOW_EMBEDDING=true”, eso me funcionó enseguida.

Ejemplo:

version: '3.8'
services:
  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    user: '1000:0'
    ports:
      - 3000:3000
    volumes:
      - /docker/grafana2/var/lib/grafana:/var/lib/grafana
    # La siguiente linea permite insertar dahsboard de grafana en Home Assistant
    environment:
      - GF_SECURITY_ALLOW_EMBEDDING=true

volumes:
  grafana:```
1 Like

Thanks @charlierh
I have HA as VM and Grafana/Influxdb as an LXC container both in Proxmox.

Thanks anyway, maybe i will help other people!