Open robotnikz opened 3 months ago
Thanks for your fast response
Hi again, In my opinion, reducing the interval does not result in any improvement but I am not sure. I still have differneces in from Storage but Home Usage looks quite good.
HA:
Grafana:
I'll keep following it and look for a way to get more accurate values. After all, the Fronius integration of Home Assistant with the same API manages to get fairly accurate values. I don't yet understand the difference.
Thank you very much for your great work. Very much appreciate that.
BTW: Today was a niiice day for PV :-P
Thanks for the praise and input. I will try to improve the accuracy and investigate how HA does the calculation. Have some time in summer to investigate that further. When there is an improvement I will post an update.
@robotnikz Had some time to take a look at the queries for From Storage and To Storage there is a Group By clause which may have a negative effect on the precision if you still have the data available you may want to remove GROUP BY time(1s) fill(0)
and change select clause to integral("P_Akku", 1h)
in these queries and check if the situation improves. Thank you for your help.
Queries would look like for from storage
SELECT integral("P_Akku", 1h) FROM "autogen"."powerflow" WHERE ("P_Akku"::field >= 0) AND $timeFilter tz('${tz:raw}')
and for to storage
SELECT abs(integral("P_Akku", 1h)) FROM "autogen"."powerflow" WHERE ("P_Akku"::field <= 0) AND $timeFilter tz('${tz:raw}')
Here are some hints https://community.grafana.com/t/different-integral-results-by-changing-time-range/41007/11
@chpro Thanks! Will try that out and give feedback.
This is the situation at 4p.m. today
Grafana:
Home Assistant: (same as mentioned in Fronius SolarWeb)
From/To Grid is great. From Storage is always too high in Grafana, so from Storage.
Hey again @chpro,
I tried to figure out how to solve the gap between Home Assistant and the Grafana queries but at the end I came back to your last proposed solution since I was unable to find a more accurate way to read all the data.
Update from yesterday.
Home Assistant:
Grafana:
Think that wont help you here, just as a last update here from my side. Will report back if I found a better solution. Thanks for your work again. Enjoy the sun! :)
Hey @chpro,
sorry to bother you. I have two additional questions.
compared to my HomeAssistant what is exactly like the SolarWeb Application says.![grafik](https://github.com/chpro/fronius-grafana-dashboard/assets/85576136/8d619bfb-e3b2-4dde-9ace-31ded1e73268)
Thank you. :)