Monthly self-consumption percentage for solar energy.
Posted: Sunday 24 September 2023 12:53
Hi all,
I'm currently using the custom graph function to display information regarding my solar energy equipment.
It works pretty well. Please see the picture.
In yellow : solar production
In red : solar injection in the grid (negative value). It corresponds to the "surplus"
In blue : consumption from the grid (EDF as I reside in France).
What I want is to automatically calculate and display my self-consumption percentage (see the black line).
self-consumtion = (solar_prod + solar_injection) / solar_prod (solar_injection is negative so that's OK).
Graph display works well for Daily report since Dashticz makes the calculation based on the CounterToday information I believe.
However, I'm struggling to have a good monthly report.
What I want is just to display the self-consumption line based on accumulated energy : (Sum_SolarProd + Sum_SolarInjection)/Sum_SolarProd
So simply it corresponds to (YellowBox + RedBox)/YellowBox
But Dashticz is calculating the self-conso percentage for each day, and make the average for the entire month.
In other words, Dashticz calculates this value: avg((SolarProd/SolarInjection)/SolarProd)). avg stands for "average of".
But I would like this calculation : (Sum_SolarProd + Sum_SolarInjection)/Sum_SolarProd
If someone could help me. Thanks in advance.
I'm currently using the custom graph function to display information regarding my solar energy equipment.
It works pretty well. Please see the picture.
In yellow : solar production
In red : solar injection in the grid (negative value). It corresponds to the "surplus"
In blue : consumption from the grid (EDF as I reside in France).
What I want is to automatically calculate and display my self-consumption percentage (see the black line).
self-consumtion = (solar_prod + solar_injection) / solar_prod (solar_injection is negative so that's OK).
Graph display works well for Daily report since Dashticz makes the calculation based on the CounterToday information I believe.
However, I'm struggling to have a good monthly report.
What I want is just to display the self-consumption line based on accumulated energy : (Sum_SolarProd + Sum_SolarInjection)/Sum_SolarProd
So simply it corresponds to (YellowBox + RedBox)/YellowBox
But Dashticz is calculating the self-conso percentage for each day, and make the average for the entire month.
In other words, Dashticz calculates this value: avg((SolarProd/SolarInjection)/SolarProd)). avg stands for "average of".
But I would like this calculation : (Sum_SolarProd + Sum_SolarInjection)/Sum_SolarProd
If someone could help me. Thanks in advance.