I had something working some time (years possibly) ago, that no longer works.
I use a yaml lovelace UI, not a regular dashboard.
I have a bunch of panels and one is for my home energy dashboard. It looks like this:
- title: Energy
path: energy
panel: true
cards:
- type: iframe
url: http://ha:3000/api/hassio_ingress/jBqQvdcUYZjviv- TvGbTV0H5_6hmZ2VBCLygoO0dFK0/d/tUE2_BuWk/home-energy?orgId=1
This works. Inside that dashboard I have a graph with a panel link, which is intended to link to a different graphy. It looks like this:
http://ha:8123/api/hassio_ingress/jBqQvdcUYZjviv-TvGbTV0H5_6hmZ2VBCLygoO0dFK0/d/md_NyluWz/one-item?orgId=1&var-Circuit=Main
If I run that URL directly it works fine.
If I click on the panel link inside lovelace it says “401: Unauthorized”.
I’m stuck where to start looking. First – it used to work. But more to the point with that same browser it works in a separate new tab. It just won’t work in context from Lovelace.
I also get a 401 if I go to a new browser not connected to HA and enter the panel link URL. Which I think tells me that it is losing some kind of HA Context.
I have (and I think always did) anonymous enabled in grafana in the addon:
- name: GF_AUTH_ANONYMOUS_ENABLED
value: "true"
Can someone give me an idea where to start? The Grafana documentation doesn’t seem to help, it seems to be a Lovelace issue of some sort?
And yes, I suspect somewhere in the recent years I missed a release note. These panel links are not something I use much at all, so by the time I noticed (i.e. last few days) it could have been years.
Linwood