hassio-addons / addon-grafana

Grafana - Home Assistant Community Add-ons
https://addons.community
MIT License
226 stars 62 forks source link

Transform - Replace All Fields & Total are no longer working #307

Closed heyhewmike closed 1 year ago

heyhewmike commented 1 year ago

Problem/Motivation

I was using the Transform "Replace All Fields" to combine 28 different sensors into a single line on the graph. It was working up until the most recent update. I am not sure if this was a Home Assistant or Grafana Addon update issue but the Transform "Total" and the "Replace All Fields" are no longer working for the Addon.

Currently Running:

Add-on version: 8.2.0 You are running the latest version of this add-on. System: Home Assistant OS 9.5 (amd64 / qemux86-64) Home Assistant Core: 2023.3.1 Home Assistant Supervisor: 2023.01.1

Expected behavior

The 28 Sensors I have listed in the Query to be hidden from view when the "Replace all fields" is enabled.

Actual behavior

Appends the "Alias" field to all sensors that should have been replaced. Transformation Calculation is not totaling all items that were selected image

Steps to reproduce

I had the graph setup pulling data from Influx DB. Start on previous release Setup several sensors in the Query and configure for a Line Graph - See below screenshot of 1 sensor Query setup for reference on all 28 of mine. Also a screenshot of the Transformation configuration Go to Transformations and setup to Combine all sensors into a single line and enable the "Replace All Fields". Confirm that only 1 line is showing on the graph as the "Replace All Fields" has removed the sensors in the Query. Upgrade to current version.

image image

Proposed changes

(If you have a proposed change, workaround or fix, describe the rationale behind it)

None.

Screenshots:

What the graph previously looked like:

image

What the graph currently looks like:

image

The Transformation item has a value of "0" instead of totalling the 28 sensors.

image

heyhewmike commented 1 year ago

With the recent updates this issue appears to have been resolved. Currently on: Home Assistant 2023.3.6 Supervisor 2023.03.3 Operating System 9.5 Grafana Current version: 8.2.1 InfluxDB Current version: 4.6.0