How to refresh Grafana in Homeassistant?

Home Assistant 2021.2.3

I’m trying to get a wall mounted tablet to show temperatures from Arduino sensors. I’m importing Grafana graphs to Homeassistant with Web page cards. But it’s problematic because those cards wont refresh. I have googled for several days but still not sure if it’s beyond my skills to get it refreshed automatically.

Is it possible in some easy way with Homeassistant?

1 Like

Please share the link of the grafana page that you have used with these cards.

Sorry for my late reply on this. It’s in this way:
http://192.168.1.23:3000/api/hassio_ingress/rGE2NIlqApI50qVoSeodxHhZiHoTzBL350JWhZf8iPk/d-solo/Uns3HmWRz/new-dashboard-copy?orgId=1&from=now-7d&to=now&panelId=8

1 Like

Please try this url.

http://192.168.1.23:3000/api/hassio_ingress/rGE2NIlqApI50qVoSeodxHhZiHoTzBL350JWhZf8iPk/d-solo/Uns3HmWRz/new-dashboard-copy?orgId=1&refresh=10s&from=now-7d&to=now&panelId=8
2 Likes

Seheminasalam, thank you! It works! :star_struck: :hugs:

1 Like

@ sheminasalam I checked the link and found the things you changed. That also worked for my link.
Where can I configure such a link in grafana? So that I dont always have to do it manually?

I dont think that the url will be changing.

You changed the URL that PMJ99 posted to make it an updating card.

The link that he posted was the link to share dashboard in grafana. You just have to find it in grafana. Check this out.

As far as I know this is configured by grafana itself and it constant.

The additional parameters that you added “refresh=10s&from=now-7d” worked like a charm, I had to use https since I am using a self signed certificate. But there is one weird problem:

When I start the browser fresh and go to the Lovelace UI dashboard that is suppose to show these charts, I get a " 401: Unauthorized" message instead of chart(s). If I click on Grafan icon on the left side menu and then come back to the dashboard then charts loads seamlessly.

If you or anyone else can think of a reason why it is broken in the first instance then please let me know.