I have an emonPi which logs import/export from the grid and solar generation (Type 2 installation as per the documentation).
I also have an emonTx which logs EV charging consumption and diversion to the hot water tank.
I am trying to configure multiple feeds that will allow me to monitor all this in a meaningful way:
- Grid (balance) = power1
- Solar (generation) = power2
- Import = power1 if >= 0
- Export = power1 when <= 0
- Use (total consumption) = Grid + Solar
- House (consumption) = Grid + Solar - EV - Diverter
It seems to all be working fine, apart from the fact that the emonTx and emonPi obviously don’t log at the exact same time. I therefore get some noise in the data with sudden drops for
house when the EV or diverter start/stop working.
Any recommendation as to how to take the time delta into account?
Unfortunately I can’t put anything “hard-coded” in there as my emonTx stops working every few days, and therefore gets rebooted (through a node-red intervention), meaning the log time delta keeps changing…