Getting started building your own dashboard

vtmikel
Posts: 646
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

Getting started building your own dashboard

Post by vtmikel »

While the plugin reduces the technical knowhow of the installation of the two servers, it still requires you to learn a bit about Grafana and write some metric queries for Influx. Everyone's Indigo setup will be different, but there are some basics that can help someone get started.

I've started a wiki document that details some example metrics (queries) that I found useful in building my own Indigo dashboard.

Wiki page: https://github.com/mlamoure/indigo-graf ... in-Grafana

Please feel free to ask questions in this thread, post examples here, or add to the wiki document.
User avatar
Different Computers
Posts: 2584
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Getting started building your own dashboard

Post by Different Computers »

When I have an existing, working Graphana setup and I add a whole new type of device, is there some way I need to update Graphana to have it grab the various states types that did not exist when I installed Graphana?

I've recently installed solar, and I can't find the "watts" sensorValue.

Also, I notice that https://github.com/mlamoure/indigo-graf ... ph-example makes reference to "Singlestat Panels" at the top, but there's no example of Singlestat panel setup.

Thanks!

EDIT: I found the "explore device" option and I get this:

Code: Select all

 Grafana Home Dashboard             state.watts: 222.0 (NOT INCLUDED)
   Grafana Home Dashboard             state.watts.num: 222.0 (NOT INCLUDED)
   Grafana Home Dashboard             state.watts.ui: 222 (NOT INCLUDED)
   Grafana Home Dashboard             state.watts.ui.num: 222.0 (NOT INCLUDED)
So how do I make them become INCLUDED? I tried rebuilding the db and the server, and they still weren't added. Same for reloading the plugin.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP
vtmikel
Posts: 646
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

Re: Getting started building your own dashboard

Post by vtmikel »

When I have an existing, working Graphana setup and I add a whole new type of device, is there some way I need to update Graphana to have it grab the various states types that did not exist when I installed Graphana?
Sometimes, yes. There's two ways to add to the states/properties that are included: by including the state/property (across all devices), or by adding a specific device (and therefore, all states/properties are included for that single device). This is found in the Plugin -> Configure -> Inclusion / Exclusion Criteria. If you add a state/property, and add a new device with the same state/property, then it will automatically begin to log. This is why I include common Indigo states in the defaults for the configuration.
I've recently installed solar, and I can't find the "watts" sensorValue.
As you found, use the explore device as a guide. Go into Plugin -> Configure -> Inclusion / Exclusion Criteria and add "state.watts" to the included states. This will begin to log that state to Influx, which will make it available to Grafana.
Also, I notice that https://github.com/mlamoure/indigo-graf ... ph-example makes reference to "Singlestat Panels" at the top, but there's no example of Singlestat panel setup.
These visualizations are built into Grafana. The SingleStat panel has been renamed to "Stat" in the latest versions of Grafana, which shows a single statistic and a background line chart of the history. But, the plugin is behind on the grafana version. I suggest looking at the grafana documentation, it's quite good.

If you are technically inclined, I suggest using my Grafana plugin for the logging, and InfluxDB, but to install Grafana outside of my plugin (it can simply be turned off in the plugin config). This way you'll get the latest and greatest of Grafana, versus relying on my plugin updates to maintain.
User avatar
Different Computers
Posts: 2584
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Getting started building your own dashboard

Post by Different Computers »

Thanks so much for the help!

I've been using your plugin for yeeeeaaaaars and didn't realize I needed to add new device types to the DB.

But now I've got my solar panels all added and building a pretty graph. Thanks again!
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP
Post Reply

Return to “Grafana”