Home Assistant Grafana dashboard refresh rate

I am searching a way to reduce the auto refresh rate in Grafana.
The lowest possible refresh rate you could choose is 5s.
I would like to refresh the Grafana dashboard inside Home Assistant every second.
Normally there is the /etc/grafana/grafana.ini file, where you can add the 1s refresh rate.
I searched it via SSH Addon but did not find anything. Does anyone know where this grafana.ini File is located inside Home Assistant (Hassio)? Thank you very mush in advance!

You can change grafana settings in the addon configuration page environmental variables section. e.g. I have this to override the US date format:

env_vars:
  - name: GF_DATE_FORMATS_INTERVAL_HOUR
    value: DD/MM HH:mm
  - name: GF_DATE_FORMATS_INTERVAL_DAY
    value: DD/MM

You may be able to find the variables you need here:

https://grafana.com/docs/grafana/v7.5/administration/configuration/

However…Why do you need a 1s update?

That could put quite a load on your system.

1 Like

Thank you for your replay Tom!
I’ve tried it but it didn’t work.

I´ve changed it to

env_vars:
  - name: GF_MIN_REFRESH_INTERVAL
    value: 1s

as described in the documentation, but nothing changed after restart. I also tried out value: 10s, but nothing changed.

I would like to see directly the change of an temperature sensor in my system in Grafana.

Try:

env_vars:
  - name: GF_DASHBOARDS_MIN_REFRESH_INTERVAL
    value: 1s

Same thing, nothing changed.

Maybe you can only make it larger than 5s. Try 10s just to see what happens.

GF_<SectionName>_<KeyName> is the right format.

1 Like

You are right! it can’t be reduced lower than 5s (tried 1-4s). If it set to 10s it will change. what a pity.

I’m curious, what’s the use case and what kind of sensor do you use that has an update interval of 1 second?

I was able to get a 1s refresh interval with adding both settings

env_vars:
  - name: GF_MIN_REFRESH_INTERVAL
    value: 1s
  - name: GF_DASHBOARDS_MIN_REFRESH_INTERVAL
    value: 1s

And then also adding 1s to the list of intervals available in the dashboard:
image

3 Likes