Back to Engineering Blog
Engineering Field Notes 3 min read

A Pulled Grafana Plugin Crash-Looped the Add-on

A community-recommended Grafana data source had been withdrawn from the catalog. Adding it to the add-on's plugin list crash-looped the whole container. The fix was a different path entirely: InfluxDB, whose Grafana data source is built in.

Jason NevillBy , Houston, TX
#Grafana#HomeAssistant#InfluxDB#Troubleshooting

Key Architectural Takeaways

  • Verify that a recommended plugin still exists in the catalog before adding it to a production add-on.
  • A missing plugin can be fatal at startup, not merely a warning, so keep the plugin list short and known-good.
  • Choose the storage path whose data source is bundled so there is nothing to install.

The challenge

We wanted Grafana charts of the home sensors: temperature, humidity, batteries, Wi-Fi signal. The most commonly recommended approach for Home Assistant uses a community data source plugin, so we added it to the Grafana add-on's plugin option.

What broke

The add-on went into a crash loop. The log said 404: Plugin not found, and it was fatal rather than skipped. We checked the catalog directly: the plugin had been removed entirely, the catalog lookup returned 404, and its repository was gone. Adding a withdrawn plugin to the add-on's plugin list turns a missing download into a container that never starts.

The fix

Instead of the withdrawn data source, we used InfluxDB, which keeps Home Assistant's history in a time-series database and has a Grafana data source that ships with Grafana itself. The steps:

  1. Install the InfluxDB v1 add-on, the companion app to the Grafana one.
  2. Create the database, a dedicated user and its privileges through the add-on's web UI (the admin API had no discoverable default credential, which we confirmed by testing rather than assuming).
  3. Wire Home Assistant's own InfluxDB integration through its config flow and confirm real sensor writes landing.
  4. Create the Grafana data source and a starter dashboard through Grafana's REST API: temperature, humidity, battery and Wi-Fi panels, using InfluxQL against the measurement-per-unit schema the integration writes by default.

A sidebar workaround

Grafana has no remotely reachable "show in sidebar" toggle, because that setting sits behind the Supervisor API. We worked around it with a second dashboard that holds one iframe card pointed at the add-on's ingress URL. Its path token turned out to be stable across restarts, so it is safe to hard-code.

Verification

The add-on started cleanly, the data source tested green, and the panels showed live values written by the integration.

Takeaway

For a supported, long-lived setup, pick the data path whose pieces are bundled and maintained together. And before you add a community plugin to something that has to stay up, check that the catalog still has it.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.