Hi, I just started to use Grafana. It is running in docker. I have InfluxDb database populated with data from Home Assistant. I created simple query using query builder in InfluxDB:
from(bucket: “homeassistant”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“entity_id”] == “dom_temperatura” or r[“entity_id”] == “dom_wilgotnosc” or r[“entity_id”] == “dom_pm2_5”)
|> filter(fn: (r) => r[“_field”] == “value”)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: “mean”)
The chart looks OK, but the Legend text is strange:
"% value {domain=“sensor”,entity_id=“dom_wilgotnosc”,friendly_name=“Dom Wilgotnosc”,source=“HA”}
It should be “Dom Wilgotnosc” and “%” only.
I cannot find any way to change that. What should be the cause of that?
Best regards
Mariusz