Hi Luis,
I already changed all my connections and now I have grid going to ac-in and all loads/house, going into acout1.
I also removed shelly for grid and PV inverter (MP2 will now read grid, and for PV inverter I installed one ET112).
Regarding the old issue, I am almost sure, 2 things have happened. (Its hard to explain with text).
1 - With grid lost, shelly EM (script) does not clear the last known values to “unavailable”, so it showed 100 watts being draw from grid (lets assume 100watts).
2 - Even though ac-in relay was open, GX was receiving (script running) 100W in ac-in.
Since my “grid set point” is 50W, MP2 started to invert from baterry to AC-in to lower ac-in back to 50W.
Since there is no loads in ac-in (relay open) and no loads in ac-out (ports not used), and shelly EM is “locked to 100W”, MP2 started to invert more and more till its maximum rated inverted power to overcome those 100W and try to lower them to 50W (grid set point).
So where does that power goes if MP2 was like an island?
Well the only explanation is power draw by mosfets them-self’s.
I cannot replicate this, as my electrical system was changed as stated in the beginning of this message.
I assume Victron will not try to replicate this in their labs, since scripts and shellys are not supported.
Energy meters supported by Victron (USB, ETH, RS485) all need mains power (L-N), so when grid is lost, communication goes down and GX Software cannot see/read meters .
But with scripts, even with grid lost, GX still continues to read energy meters as the script keeps running (there no power lost in scripts
).
When power went down, also network was lost, so the script couldn’t update values either.
Thats why with power loss, values from grid meter stayed the same value.
To overcome this..yes buy a ET112.
Script is not very well coded…something is missing… in my opinion.
You can do the test:
Power down wifi/lan and check if script will keep running with last known value.
It will create a log with connection problems, but Remote console will still display last transmitted value.
Should Victron stop a grid meter script when grid is lost (or change value to unavailable)..probably.
Those are my thoughts in all this issue.