question

dariusdiy avatar image
dariusdiy asked

Node-RED Daily Power Import & Export for dumpload trigger

Hi,

I am trying to start a water boiler dumpLoad, via node red, when 3 conditions are met:

  1. SoC >99%
  2. L1 - Power <= -2000W
  3. Today's Energy to grid > Today's Energy from grid

1 and 2 are very simple using:

1686228878211.png1686228897947.png






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.

Node-RED
5 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

matt1309 avatar image matt1309 commented ·

I had a look in modbus tcp registers to try spot something.

I thought it would exist, but the ones I can find are forever rather today so you'd need to store yesterdays in a global node red variable (which wouldn't be that hard). ie at 00.00 update the global variable.



1 Like 1 ·
Show more comments
janieronen avatar image janieronen commented ·
There is a way get figures from VRM-portal but I have different approach.


As anywise I need to make more complex energy-calculations for other systems as well I am running small home assistant instance to collect power from various sources and calculate energy. There is ready integration between HA and NR so HA can send message to NR when some energy calculations AND solar forecast conditions are met. That way you can keep NR simple PLC logic which is a lot more robust that higher level systems like HA. Other benefit is that you will have HA graphs/database available even your internet is down.

0 Likes 0 ·
0 Answers