I hope I could explain my situation well and you can enlighten me where I’ve made the mistake.
What Grafana version and what operating system are you using?
I use Grafana 9.5.1 on Ubuntu 22.10 - 5.15
What are you trying to achieve?
I would expect to have with “flux” the same chart as I have with “InfluxQL” and the history from Home Assistant. See picture: Imgur: The magic of the Internet
How are you trying to achieve it?
Tried to rebuild the InfluxQL with Flux CLI and another approach was to use the “Query Explorer” under the “Data Explorer”
What happened?
“nothing” as expected
What did you expect to happen?
I would expect to have with “flux” the same chart as I have with “InfluxQL” and the history from Home Assistant. See picture from the second point
Can you copy/paste the configuration(s) that you are having problems with?
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
I dont see a difference by 5h, at maximum 1h and I dont know why. Maybe as you said because of the timezone option by flux. Not sure how home assistant store the value, but I will try to check the behavior with flux and timezone
I saw right now, that the filename is missing on the pictures.
The second picture is from Home Assistant and as far I could observ it is correct. This means that also picture3 with InfluxQL is correct. The small peak at the start is fully gone on picture1 with Flux.
It is the always the same influxDB with the same bucket configured. On the InfluxQL way there was a mapping done with a guide.
Above is the graph generated by InfluxQL (taken from your original link).
Is the Flux query data (InfluxDBv2) and the InfluxQL data (InfluxDB) collected / populated at the same time? Are you 100% sure the data is the same? Perhaps easiest is to download the CSV data from Influx and compare each point side-by-side.
The data source is from Home Assistant
As far as I can see the entity_id is on “InfluxQL” and “Flux” the same, this should be the same data source. Issnt’t it?
The query, I use on the “Flux” is the one I use on this InfluxDB query (directly from the Data Explorer)
The query from Influx data explorer looks completly different from all queries, so I assume that the Home Assistant and InfluxQL query should be correct, since the “data writer” is originally Home Assistant.
In the Flux query from Data Explorer (i.e. your screenshot), can you show the actual query / Flux code? And instead of the graph, can you change to “View Raw Data” toggle, then post everything back here?