InfluxDB + Grafana v HA History Plots

Hi

I have just installed Influx DB v1.8.x and Grafana in separate LXCs in Proxmox whilst Home Assistant OS is running in its own VM on the same machine.

The data gets squirted in to the InfluxDB on a state change which I think is the expected operation. When I then compare the plots from History and Grafana the History plots look more believable as they show the duration a state was held for. How can I make the Grafana plots look like this?

Is it a case of getting HA to update the Influx DB every time it gets a reading regardless of state change?


@Keyman3 I’m not sure what Grafana etc are but i think the problem is HA uses STEP charts to display the data, so if you can change Grafana to show the chart stepped, it should appear how you expect

In grafana use image
fill(previous) instead of fill(linear)

Example :

  • Linear
    image
  • Previous
    image

You probably also can play with time series options :
image

2 Likes

Superb, thanks for the help and many apologies for such a simple / noob question!

1 Like