Installing panels and plugins in Grafana (Hass.io)

I’m not sure if I am doing it the right way, but anyway it worked for me, so I just wanted to let you know that if you want to install new panels in Grafana, in a Hass.io environment , you have just to put the following code in the “Options” field.
This is for the clock panel

{
  "env_var": [
    {
      "name": "GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource"
    }
  ]
}

and this is the dicrete panel which could be used for booleans or binary sensors

{
  "env_var": [
    {
      "name": "GF_INSTALL_PLUGINS=grafana-discrete-panel"
    }
  ]
}

After installing them you can put back what you had in that field, for example I have:

{
  "env_var": [
    {
      "name": "GF_AUTH_ANONYMOUS_ENABLED",
      "value": "true"
    }
  ]
}

Where is the “options” panel? Is that the “config” box?

For future reference I’m documenting the way I installed a plugin for Grafana which is running as add-on in Hass.io:
To be able to use Flux query language with Grafana, I installed the following plugin:
https://grafana.com/grafana/plugins/grafana-influxdb-flux-datasource

Just add the plugin name to the add-on configuration and restart the add-on.

{
  "plugins": [
    "grafana-influxdb-flux-datasource"
  ],
  "env_vars": [],
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem"
}

The plugin will be installed on restart. In Grafana you can then create a new datasource and select the new type that becomes available with the plugin.

Hopefully this is useful to others, too.

1 Like

So I’m curious where did you install this plugin? Did you ssh and wget a file/zip and dump it somewhere?

The cfg file you ref above for plugins … which file is that?

1 Like

Go to Grafana configuration and add plugin.

Perfect, thanks!!

As a note I went to Supervisor --> clicked on Grafana under add-ons —> clicked on Configuration —> that’s where you’re screenshot comes in. Thanks again.