@gijbelsy
Have you been able to configure something successfully?
I was looking to see if I could do something in HA to calculate this new peak consumption every 15 minutes. Not really successful so far.
If I understand correctly the Fluvius website, it is not the peak or maximum reading every 1/4 hour, but the average peak power every 1/4 hour:
The monthly peak corresponds to the highest quarter-hourly power - or average power on a quarter-hourly basis - that you have used in a month; not the highest instantaneous power.
First an overview of what we need (what I think we need, correct me if I did interpret not correctly the Fluvius website…):
In my case, I have a sensor giving me each second the power consumption in W(att), so I get 900 samples each 15 minutes.
Example:
We have 4 x 15 minutes in a hour and we are starting our first month
00:00:01 - 00:15:00 : calculate the average of the 900 samples, take the value and store it as max
00:15:01 - 00:30:00 : calculate the average of the 900 samples, take the value and see if > than previous value, if not do nothing, if yes, store it as max
00:30:01 - 00:45:00 : calculate the average of the 900 samples, take the value and see if > than previous value, if not do nothing, if yes, store it as max
00:45:01 - 01:00:00 : calculate the average of the 900 samples, take the value and see if > than previous value, if not do nothing, if yes, store it as max
…
At the end of the month, I take the max value of the first month.
If it is < 2.5 kW store 2.5 kW (minimum) else store the value.
Then the cycle begins again for the second month.
And so on.
After 12 months we calculate the average of the 12 months.
if it is < 2.5 kW take 2.5 kW else take the calculated value.
That will be the capacity peak to pay.
Now we must configure that into HA
Someone an idea where to begin?
Is it even possible in HA with the existing platforms like Min/Max, Statistics, History-Stats, Utility_meter, …?