Yeah, this technique works nicely to detect import versus export.Yes.
Prior to the invention of switching power supplies, diodes and capacitors were used extensively in power supplies. The amount of ripple depends to a great extent on the load. For a high impedance comparator input the output voltage is very stable, unless the capacitor is leaky.
By using a string of series capacitors separated by inductors, you can get a very steady dc output voltage. It can be further stabilized by using a full wave bridge rectifier and a single transistor. For what I'm doing the single diode and a 1000 uF capacitor are more than adequate.
My goal is a bit more complicated for two reasons:
I have an export limit of 3.5kW so I want to detect when power is approaching that level rather than 0W (& 0A) net.
Using an adjustable resistor and a comparator I should be able to find a bias voltage to correspond to approximately the correct current level, but at that point, I’m doing nothing more that an OTS current switch is found, so it hardly seems worth the effort.
The second issue I have with either a current switch or a modified version of the technique you are using is that currrnt is an accurate way to measure power levels approaching 0W (since AC Amps = 0 @ 0W with either 120 or 240VAC) but it’s not accurate at higher power levels.
I’ve measured my grid voltage varying between 248 and 251VAC and my Microinverters are specified to operate from grid voltages of 211 to 264VAC.
So if I want to be as conservative as possible, I’ve got to convert 3500W to 264VAC x 13.26AAC to determine when I am approaching my export limit, but that means I’m actually cutting off at only 3182W for the majority of the time grid voltage is only 240VAC.
I’m still on the fence about what approach I’m going to take for that but in the meantime, I ran into these is case they can be helpful to you:
$30 to switch 80A @ 28VDC (2240W).
My entire DC-coupled array is under 2240W, so I’m starting to think about using one of these to switch between a grid-tied inverter and an SCC once the AC-coupled array under NEM exceeds ~5A / 1.25kW.
I would just use a 10A relay on the output of the grid-tied inverter to cut off AC power generation and then use one of these 2.24kW relays to connect the DC-coupled array to the SCC once AC-coupled generation exceeds the limit I’ve set.
From what you stated earlier, there should be no difference between switching 56A @ 40VDC = 2240W (PV input) and 77.8A @ 28.8V = 2240W (SCC output), correct?