I am trying to start a water boiler dumpLoad, via node red, when 3 conditions are met:
- SoC >99%
- L1 - Power <= -2000W
- Today's Energy to grid > Today's Energy from grid
1 and 2 are very simple using:
With 3, aka getting the Today's Energy to grid and from, I'm having a very hard time to get without having to store yesterday's value and subtract it from today's value.
Is there any way to get this value (that the VRM shows in the "Historical data" section) without storing yesterday's kWh value?
As for the system I'm using: EasySolar-II 5000VA + ET340 + SmartShunt + PV Inverter on AC-In (connected to L2 of the ET340)
Any help is very appreciated.