[APP][Pro] Insights Graphs

Thank you, it’s on the way :wink: Hopefully today…

I have prepared an update for Insights Graphs and proposed it for inclusion in the original app.

The main addition is support for combining up to four Insights in one graph. For example, you can display L1, L2 and L3 voltage readings together and use the resulting image in an Advanced Flow.

The update also adds:

  • A new advanced - create graph image action.
  • Individual colors for the additional Insights.
  • Optional left and right Y-axes, with an axis selection for each Insight and separate limits for each side.
  • Stepped line, area, points and straight-line graph styles, alongside the existing line and bar styles.
  • Automatic, hourly or two-hourly time labels.
  • Maximum, minimum or average reduction for large single-Insight datasets.
  • A custom graph title and image dimensions.
  • A None option to remove an optional Insight selection.
  • A message in the graph when a selected Insight has no data or cannot be retrieved, while another series is available.

The update also addresses the QuickChart HTTP 400 that could occur with a six-hour graph containing too many points, and includes fixes for filenames, time-zone handling and chart formatting.

Existing graph actions keep their current defaults. The additional settings are optional, and the generated graph remains an image token that can be used by other Flow actions.

Please note that graphs are still rendered through QuickChart, so chart data is sent to that service.

The update has been prepared in my fork and is not yet an official app release. Once a test version is available, feedback on existing Flows, multi-Insight graphs and the two-axis options would be appreciated.

…while implementing it, I did naturally some tests but the next days shows the reality :wink:

Thank you for your contribution! I believe the update is now live.
Got a small issue report that graphs now not always include the zero line that was on by default in the past i believe.

But an amazing contribution thanks for your effort.

Well, is it really an issue ? :wink: The Y-axis now scales automatically to the recorded values. This makes smaller changes easier to see—for example, voltage readings between 228 V and 232 V would otherwise appear almost flat on a scale starting at zero.

Automatic scaling also works with negative values: the axis adjusts to include the readings. Forcing zero into every graph could make variations harder to see, so I’d suggest keeping the automatic behavior as the default.

If we prefer to include zero, the advanced graph action lets you set the Y-axis limit manually as workaround.