sorry, if a similar question was asked before, i was not able to find anything alike.
I don’t own an emonPi yet, but I plan to get one, if what I want to to is possible without too many troubles.
What I want to implement is an early alert system, that warns me, before my power turns off due to overconsumption.
Short explanation of how it works with my power provider.
My contract includes a power of 3 kW.
If the average usage over the last 2 minutes exceeds 4,2 kW, it turns off.
At any times, an average of the power consumption over the last 182 minutes is calculated. If this exceeds 3,3 kW, the power goes out.
How I’d like to solve it:
For the first case i would like to calculate the average over the last ~30sek and create an alert when this exceeds 4,2 kW. This should give me some time to react an turn off some devices.
Same for the second rule. Here I would need to calculate the average of the last ~90 minutes, and create a warning if it exceeds 3,3 kW.
Is this possible without too much effort? Maybe those features are already existing.
I will look later at how to implement the alert system. I have another general purpose PI running and some arduino nano and RGB Leds waiting to be used. First I have to think about what exactly I want.
Thanks in advance and best regards.