MultiPlus-II 48/5000 + Enphase IQ7: Frequency shifting, ESS and zero feed-in to the grid

Hello everyone,

I’m looking for first-hand experience with a Victron installation using Enphase microinverters. My goal is to understand how to use Frequency Shifting and whether automatically disconnecting the AC input could be a solution to prevent export to Enedis.

My installation:

  • Inverter/charger: Victron MultiPlus-II 48/5000/70-50.

  • Solar PV installation: around 6 kWp, with 20 Enphase IQ7-60-2-FR microinverters ( rated power: 240 W) giving 4800W in total.

  • Enphase relays: 2 IQ Relays.

  • Gateway: Envoy-S Standard, non-Metered.

  • Battery: LiFePO4, 16 cells of 314 Ah in series, giving approximately 16 kWh.

  • Monitoring: Raspberry Pi running Venus OS 3.66, connected to the MultiPlus-II via MK3-USB.

Current wiring;

The connection is as follows:

Enedis → AC-IN on the MultiPlus-II → AC-OUT on the MultiPlus-II → the home’s main electrical panel.

The panels are connected as follows:

PV → Enphase microinverters → IQ Relays → solar protection → main panel.

The Enphase units are therefore connected on the AC-OUT side of the MultiPlus-II. This can power the entire house when the Enedis supply is disconnected.

I use ESS mode and have enabled the zero feed-in option in Venus OS. However, despite these settings, I still see power being exported to the grid when the battery is almost full.

I don’t have a dedicated Victron energy meter on the grid connection: I use the MultiPlus-II’s internal measurement on AC-IN. The Enphase gateway is a non-Metered version.

Automatic disconnection of the AC input:

Apparently, as long as AC-IN (Enedis) is connected, the frequency on AC-OUT is synchronised with that of the grid, which would prevent the MultiPlus-II from applying Frequency Shifting; this would therefore only be possible in island mode, when AC-IN is disconnected.

In VictronConnect, I noticed that it is possible to configure the AC input to disconnect under certain conditions, including:

  • Disconnect AC input on: battery voltage (other options available…)

  • AC input disconnected if battery voltage is above: an adjustable value.

Can this function be used to automatically disconnect Enedis when the battery reaches a certain voltage, then run the MultiPlus-II in island mode and thus use "Frequency Shifting"?

Does this method seem suitable for preventing grid export, or is there a better solution?

Hello @nicdu40,

Great to see you’ve found your way to the blue forum.

Do you have a single-phase or a three-phase electricity supply?

Let’s see if I’ve understood everything correctly despite the automatic translation:

As far as I know, you can use either ESS or conditional input control, but not both at the same time.

To control the power fed into the grid when the batteries are full, you would need to be able to control the output of the Enphase IQ7-60-2-FR.

I do this with my Hoymiles units via OpenDTU and a Node-RED script. When the batteries are full, I reduce the output to a fixed value.

In off-grid mode, the maximum power — for example, an 11 kW cooker — has to be supplied by the MultiPlus and the solar system. In ESS mode, only a small amount of power needs to be supplied; the rest can be drawn from the grid if necessary.

I advise against messing with disconnecting the AC IN. Of course, it’ll work, but it’s not ideal.

The zero-injection option is only possible if the GX can control the inverter (the microinverter gateway in this case). With Enphase, it’s possible, but the technical note on this states that only the “Metered” gateway has been tested, with at least IQ7A units. I have no idea whether it can work with the standard gateway and/or with the IQ7-60-2-FR units. Are you sure these microinverters support frequency shifting?

Source: Enphase - AC-coupling with Victron battery inverters using Modbus TCP-IP - Technical brief - Rev 04.pdf (2.7 MB)

Also, according to my understanding of the Factor 1 rule, the Multiplus-II 5kVA should be considered capable of supporting 4000W (the continuous power rating at 25°C), not 5000W (the nominal power rating). This would be another point against your installation, which exceeds that limit.

In your case, I recommend connecting your PV generation on the AC IN side, not the AC OUT side.

Your PV installation is certainly old. You’ve just modified it by adding a Multiplus-II and a battery. I recommend having this change approved by Consuel.

Thank you for your feedback and explanations.

My goal is to find a reliable solution for controlling the output of my microinverters, using my battery in island mode, and preventing any unauthorised export to the grid.

I don’t currently have a contract to sell my surplus electricity. I’m also not eligible for free transfer of surplus electricity, which is limited to installations of up to 3 kWp. So I’m in the process of regularising my situation with Enedis. Regarding a contract to sell surplus electricity, I saw this: “With an EDF OA contract, a solar battery cannot be charged from the grid” whereas I would like to be able to charge it during off-peak hours.

Regarding your advice to connect the Enphase units on the AC-IN side, I understand the benefit. However, I would also like to be able to use the photovoltaic output in island mode and regulate the microinverters using Frequency Shifting when the battery is almost fully charged.

I bought my MultiPlus-II 48/5000 about a year ago. In the Enphase documentation concerning the 1.0 factor rule, it says:

“The peak power of all microinverters must be equal to or less than the nominal power in VA of the inverter/charger. For example, for an 8000 VA Quattro, the peak power of all microinverters must be below 8000 W.”

However, an 8000 VA Quattro delivers a continuous power of 6400 W at 25 °C. So I’m wondering whether the Victron documentation has changed since the Enphase document was published, or whether the two manufacturers interpret the 1.0 factor rule differently. What power rating should actually be used to check the compatibility of my installation?

To explain the context, my 6 kWp photovoltaic installation dates from 2019. The installer was supposed to take the necessary steps with Enedis. In fact, I had received an initial letter from EDF informing me that Enedis had notified them of an application to buy my surplus electricity.
Despite their QualiPV certifications, … this installer left me with a job riddled with defects: damaged panels, the whole system connected to a single 16 A circuit breaker (even though the enclosure already had 2 intended for this purpose), and no earthing of the panels, …
I filed a complaint and shut down the installation while awaiting the trial. The company closed down a month before the scheduled trial date, in 2022.
I then brought the installation up to standard, thinking that the administrative procedures had been completed properly. Recently, I discovered that the Enedis declaration had never actually been finalised. Enedis had requested an additional document from the installer, but they never replied… So I’m in the process of regularising the situation and have to arrange for Consuel to inspect a 2019 installation…

I also tested “Frequency Shifting” today by disconnecting the Enedis supply. The MultiPlus-II then switched to “inverter” mode, and the increase in frequency did indeed cause the output of the Enphase MIs to decrease gradually. So frequency shifting seems to work when the Enedis grid (AC IN) is disconnected.

I still need to understand the best way to manage its operation when the grid is present, so as to avoid any unwanted export.

For the Consuel inspection, do you know whether it covers the entire house electrical installation, particularly the main consumer unit and the circuits it supplies, or only the photovoltaic system and the storage system (battery and MultiPlus-II)?

I’m not familiar with the legal requirements in force in France.

You could use a second Multiplus via an MK3 interface just for charging and operate the system in island mode.

Dirk’s idea isn’t bad, but I think we can do better.

First of all, I’m sorry to hear about your troubles with this company, which fell short of expectations. Unfortunately, there have been so many cases like this.

Regarding the factor 1 rule, the online documentation has changed recently. At the moment, the rule needs to be based on constant power at 25°C. On the other hand, we need to understand what might happen in the event of a grid outage when production is at its maximum (4800W) and the battery is 100% charged. The Multiplus-II 5kVA could only feed 70A into the battery while drawing around 4000W (due to conversion losses), causing the battery to be overloaded (which is not good). But more seriously, the remaining 800W cannot be absorbed, creating an electrical overload in the installation. The Multiplus-II regulation is fast, but not instantaneous. The same goes for Enphase. There will be a few cycles (several times 20ms) of battery overload and electrical installation overload. This is the risk as I understand it (I’m not a qualified professional).

As for feeding power into the grid, there are more and more alternatives to the Obligation to Purchase contracts now that the State subsidy has fallen to 1.1c€/kWh. Personally, I refused the OA contract and am part of another operator’s balancing perimeter. I feed in and sell my energy at the wholesale market price (based on the PREP). If you can’t find an operator, I’ll put together a short list, but promoting third-party providers isn’t the purpose of this community, nor is it something I want to do.

If the problem with feeding power into the grid is resolved, that changes everything for you.

It doesn’t seem possible to control production with the standard gateway. You’d have to replace it with a “Metered” one. Unless it’s possible to convert a Standard to a Metered by adding CTs and performing a software upgrade. It’s a real shame to have this gateway and not the other one.

Edit: see @BAnders’s note below

In any case, the installation must be compliant with the standards and certified to prevent problems. At the moment, you’re probably having problems because your installation has been feeding power into the grid without authorisation. In addition, you need to have a contract with the grid operator, Enedis, either a CACSI (no feed-in) or CAE (with feed-in). Enedis will only sign this contract if the installation has been certified. Clearly, your case is on their desk. You need to bring the installation into compliance. In the best-case scenario, they won’t ask you to pay compensation for the energy you’ve fed into the grid without a contract over the past 7 years.

There’s no problem with getting an old installation certified. However, you need to bring it into compliance with the current standard, not the 2019 one. Certification applies to what you request to have certified. It’s natural to have only the PV installation certified, including its connection points to the grid (Enedis) and the main switchboard. Have you already taken a look at the technical file required to submit the certification application (purple certificate SC 144C-5, probably case 2)?

Yes, it’s written somewhere. In practice, I don’t think this is checked, or even checkable. I’ve never heard of a Victron ESS installation being rejected for this reason, even though it includes a scheduled charging mechanism. In any case, they want to prevent people from buying cheap energy to resell it at a higher price (at the OA rate). With the current OA sale price, no one would do that. In any case, you’re no longer covered by the OA since you modified your installation yourself (bringing it into compliance and adding a storage system). Only installations built and modified by an RGE-certified professional (QualiPV) are eligible for an Obligation to Purchase contract. And since 1 June, increases in installed PV capacity are no longer accepted (source).

This was indeed recently changed by Victron. The old version used the Multiplus apparent power kVA as the deciding figure. A couple of weeks ago the Factor 1 rule page was changed, now its referencing the real power kW.

You can compare the changes here:

As to how that affects your system is unclear. Ive raised this point as soon as i noted the change, but there has been no official response as to how that change affects systems already installed. Feel free to chime in as someone whos directly affected

The standard gateway measures generation by communicating with the microinverters. This is less accurate than using a current transformer (CT), but it provides a reading with a margin of error of 5%.

The GX can control generation via the integration of the Metered gateway over Modbus TCP.

So I don’t see what would prevent it from doing the same with the Standard gateway.

According to @BAnders, that is indeed the case now.

So you could control generation by integrating your gateway with the GX (more information). From that point on, you disable energy export. The GX will instruct the gateway to reduce or stop PV generation. It isn’t very precise, but it should allow you to stay within the CACSI tolerance if you don’t want to export and sell your energy. I can understand that, as not all contracts are easy to understand and the financial gain may be small. Selling energy isn’t the reason for a residential PV installation, but it’s the icing on the cake.

Hello @nicdu40,

By way of introduction, I’m a DIY Victron Energy user in Spain.

I have a Multiplus II 48 6k5 + Cerbo GX + Bluesolar 150/35 + SmartSolar 250/100 + HMS-500W-1T microinverter.

The theoretical total DC capacity is a maximum of 8000W, via the MPPTs. AC Coupling power is 500W via the microinverter on the Multi’s AC Out side.

The battery is made up of 2 x Dyness Powerbrick Plus units, each with a capacity of 16 kWh.

I used to depend more on the grid, and it worked very well with assistants to ignore the grid and accept it when the SOC or voltage was low, then ignore it again when the SOC or voltage rose to levels I considered sufficient. For example, accept the grid only when the battery SOC is below 30%, then ignore it again when the SOC rises back above 50%.

That worked perfectly for me with frequency shifting.

I stopped using the assistants because I now have more capacity to get by without using the grid (we’ll see how it goes in winter), and I no longer rely as much on the main grid as a backup.

But in short, with assistants you can automatically ignore the grid, and stop ignoring it whenever you want. For example, ignore it when the SOC reaches 95%, and reconnect when consumption exceeds 4500W or the SOC falls to 80%. That way, frequency shifting will work for you and you’ll make sure you don’t feed power into the grid.

I don’t have ESS enabled, but I assume the parameters you mention will work just the same. If the inverter alone gives you enough power not to depend on the grid, I don’t see why you shouldn’t ignore it and enable the grid when you need it. That way, you prioritise solar and battery consumption and also avoid feeding power into the grid when the battery is at 100%.

You can also use Node Red to create a flow that does exactly what you need if the assistants or ESS parameters don’t cover what you’re looking for.

Regarding the 1:1 AC Coupling rule, not only was it recently changed in the documentation to refer to rated power in W rather than VA, but you also need to consider whether the inverter’s temperature exceeds 25°, since its rated power in W will be reduced further as the inverter gets hotter.

You can solve the 1:1 ratio by connecting some of the microinverters to AC In, but you’ll get into the complications of metering to prevent feeding power into the grid. This is especially true if the inverter disconnects AC In, since it won’t accept AC input from the microinverter via AC In, but the microinverter will keep producing because it’s synchronised with the main grid, and all the power will go to the grid. You’ll also lose all control over frequency shifting.

I don’t know whether Enphase microinverters integrate natively with Venus OS, but another option is to control the microinverters using Shelly meters and relays, which do integrate with Venus OS, at least from version 3.70 onwards, and that integration has continued to improve. You could automate disconnecting some of the microinverters when total production exceeds the Multiplus’s capacity.

You can also look for solutions involving coupling another inverter on the DC side to share the absorption capacity in the event of a power cut, without disconnecting the microinverters and while continuing to charge the batteries. Or another inverter in AC Coupling with its own additional batteries. Or sharing the load between inverters connected in a chain via AC In. You could also use two inverters in parallel. Though in my opinion, these solutions are more complex and costly than using Shelly devices to ensure the microinverters disconnect.

In my opinion, I think that by looking into solutions involving ESS parameters, assistants, Shelly relays and Node Red, you could fully control your feed-in issue and add safety to the 1:1 ratio in AC Out coupling.

Best regards,

It would also be possible to use a power supply from the telecommunications sector (TelCo PSU) to recharge an off-grid system from the mains.

Used units can be found on eBay for around EUR 100, and they have an efficiency of 95% or better.

There are models from Huawei and Eltek FlatPack 2. The Eltek units can be integrated via ESP32/MQTT/NodeRed.

Victron MP2/MK3 offers native integration, but it is expensive and may be harder to register, since it is a charger/inverter. A TelCo PSU certainly does not need to be registered.

If you live in an area with major grid fluctuations, these solutions (an off-grid system with recharging) would solve all grid problems related to overvoltage.

Good luck, whichever route you take.

There are some interesting proposals worth exploring, but his main concern is bringing the installation into compliance and getting it approved so that he can obtain a Convention for Self-Consumption Without Injection (CACSI) or a Contract for Access and Operation (CAE) with his network operator.

His network operator accuses him of injecting electricity without authorisation and is asking him to regularise the situation.

His preference for an installation that does not inject electricity is mainly because the CACSI seems easier to obtain than the CAE, which requires him to have a contract with a Balance Responsible Party (RE) that buys (or takes back) the energy injected into the grid. With the CAE and its RE, he can notably sell his energy through a Collective Self-Consumption (ACC) scheme.

At present, he does not want to switch to 100% autonomous operation and disconnect from the grid.

In conclusion, he needs to bring his installation into compliance and choose between the CACSI and the CAE. If he chooses the CACSI, a mechanism is needed to prevent injection. Several solutions have been suggested. If he chooses the CAE, he needs to choose an RE.

Beyond the technical aspects, there are also regulatory and legislative considerations. It is important to understand the whole picture in order to make the right technical choice.

Thank you very much for your feedback and for all the information you have shared.

On my side, I’m exploring integration of the Enphase gateway via Modbus TCP in order to retrieve more information directly from the Envoy.

For the moment, the gateway still doesn’t appear on my GX. Modbus communication does work via Python, however, and I’ve managed to identify the various SunSpec models.

However, I’m having difficulty reading the registers for model 701 correctly: I’m getting SlaveBusy responses, which makes it difficult to use the data. I’m also in contact with Enphase about this to try to resolve the problem.

I’ve also found an interesting lead regarding Enphase power limitation. I found references to two Modbus registers:

  • 40310: Limit Max Power Pct Enable

  • 40311: Limit Max Power Pct Setpoint

I found these registers in my own Modbus readings. Register 40310 initially showed 0 and 40311 showed 100.

I managed to change these values to 1 and 80 respectively, which would correspond to enabling an 80% power limit.

Here is the Python command I used to change the setpoint:

result = client.write_register(
    address=40311,
    value=80,
    device_id=126
)

The Envoy does accept the write. However, I still need to check that this limit actually affects the AC power output of the microinverters.

This could be an interesting lead in my case. If it works as expected, it might possibly address the issue of feeding power into the grid, or even the 1:1 ratio.

I’ll continue testing to check how these two registers actually work.

I’d also like to apologise for not being able to reply very quickly to all the messages. I have a huge amount of information to take in at the moment, particularly regarding the standards, the Consuel requirements and the changes I’ll need to make to my installation to bring it into compliance.

I’m also wondering whether my battery complies with the Consuel requirements.

For the time being, I’ve decided to disconnect my installation from the grid so as not to add any more complications…

To be honest, the situation is becoming financially very difficult. I’ve already spent around €7,000 unnecessarily on legal fees and expert assessments following the initial installation. On top of that, there’s the Multiplus, the battery and now any modifications that may be needed to bring the whole installation into compliance. I’ve even found myself wondering whether to abandon everything or completely rethink my project and switch to total self-consumption if that would simplify the administrative procedures.

I still need to take some time to think about the best solution.

In any case, thanks again, everyone, for your help.
Even if I don’t always reply to your messages, I take the time to look into all the options you suggest.

Indeed, when the gateway is integrated into the GX, these are the registers used to regulate production. It’s actually mentioned in the technical note I added.

I understand how disheartened you are by this situation. The loss is substantial and may never be offset by the savings on your energy bill. But doing nothing seems even more frustrating to me.

Did you build your battery yourself by assembling the cells? If so, that’s not ideal for getting it approved, but I think it may be possible to get it through. The problem is that the person making the declaration (you) has to confirm that the battery complies with the safety standard. But you haven’t carried out any compliance tests. If I remember correctly, Consuel doesn’t check compliance, but in the event of a fire, the insurer could refuse to compensate you on the grounds that you made a false declaration.

The compliance of the room is also a significant consideration. Since you have more than 15 kWh, you need a room that meets certain fire-safety standards. Once again, Consuel doesn’t approve the room; it’s simply declared compliant by the project manager. And then, in the event of a fire, the insurer will refuse to compensate you because the room doesn’t comply.

The cost of the administrative procedures isn’t astronomical (around €250 for approval, provided you get it on the first try). However, there’s a real paperwork burden that’s prohibitive in terms of the time and effort needed to obtain all the documents.

People often focus on the price of the inverter and battery and forget the cost of the accessories needed for them to work properly and meet compliance requirements. So they rush into projects that weren’t properly assessed in the first place. That’s why you need to take the time to understand everything before setting off on your own. Alternatively, you need to hire a professional and pay the price. In your case, I understand that you were taken for a ride by a professional who wasn’t up to the job and left you in the s…

Are you in the Landes (40)? There may be someone in your area who could help you.

Yes, I saw the requirements regarding the room, and that’s planned for the battery. I have a space right next to the electrical panel that I can close off to make it a dedicated room. I’d also left enough cable between the battery and the MultiPlus to be able to move it there.

Regarding the Enphase power limitation, I did look at your documentation, but unfortunately my tests haven’t been conclusive. The limitation command is sent to the Enphase, but it doesn’t change the output. I’m waiting for a response from Enphase to try to understand what’s blocking it. Probably because I’m using a standard Envoy S.

Regarding Consuel, I’m reassured to see that there may be a way to get an installation with a DIY battery approved. However, I’ve read several accounts from people whose application or installation was not accepted. So I’d rather not assume that it will definitely be possible. I’ve also contacted the website where I bought the battery to obtain, at the very least, the cells’ test certificates. The casing is CE certified, but that obviously doesn’t guarantee that the complete unit complies once the cells have been assembled, nor that the BMS installation and configuration are compliant.

And it’s true that DIY kits deserve to be checked thoroughly: I had to redo all the connections, because some of them had loose contacts due to poorly cut heat-shrink tubing…

And otherwise, I’m in the 64 now. Finding someone willing to take over an existing installation that’s been done so badly could be difficult, as they’d also be taking on the liability. I’m afraid that in the end, the only solution will be to redo everything from scratch. There were 17 defects recorded by a bailiff … That’s probably what I’ll end up doing, but I’d really have liked to get as much value as possible out of everything I’ve already lost in this whole mess in the meantime.

Did you request activation of the feature?
Did you provide the IP address of your GX (Venus OS on Raspberry Pi)?

We all struggled in May and June following the change to the Modbus TCP server on the Enphase gateway (more info). This may be related. I myself had a “Slave Device Busy” response, which was resolved by restarting the gateway.

Yes, I’ve communicated everything.

On my end, I’m considering another solution to measure and switch off each of my two photovoltaic circuits individually and remotely.

I’m planning to install 2 Shelly Pro 1PMs, one on each circuit.

My installation is currently arranged as follows:

10 IQ7 → Q-Relay → disjo 20 A ┐
                               → Différentiel 40 A                                             
10 IQ7 → Q-Relay → disjo 20 A ┘

The idea would be to install a Shelly Pro 1PM between each Q-Relay and its 20 A circuit breaker.

However, I have a few questions about compliance and sizing:

  • The Shelly Pro 1PM is rated for 16 A per relay. Is that sufficient? Each circuit can reach a maximum of about 10.7 A (10 IQ7).

  • Is the existing 20 A circuit breaker too highly rated to protect a Shelly relay limited to 16 A?

  • Is the Shelly Pro 1PM suitable for switching off a line of photovoltaic microinverters, particularly with regard to standards?

The aim is to keep the Q-Relays and existing protection devices, while adding production monitoring and the ability to switch off each circuit independently.

What do you think? Does the Shelly Pro 1PM seem suitable for this use, or would it be better to use a modular contactor controlled by the Shelly?

I have got (in principal) a similar set-up like yours. Six old 250W Enphase and six 2x350W Hoymiles microinverters. PV panels from 200Wp (2013 install) to 455Wp adding up to 4650Wp. In order to prevent feed-in I have divided them in 4 groups of unequal capacity and switch them on and off in accordance to the SoC of the battery. The first group that is switched off (courtailed) is about 2500Wp at 96% battery SoC. The last one at 99% SoC comprises the oldest PV panels summing up to 800Wp in an East-West orientation, barely providing 400W which is about my baseload, so it is rarely switched off. Control is via Homeassistant automations and Shelly WiFi PM switches. As a last resort there is a watchdog type of automation that will disconnect the AC IN from the grid if 100W reverse flow will be detected for 15 seconds. In such a case there is no automatic re-connection I will know that the installation is off-grid by the flickering of my desk light. and will have to find out the reason.

Enough about my setup some tips for you now:

  1. You have 6000Wp of PV and your MP2 can charge your battery at nominally 70x54=3800W peak. On a cold and sunny day when there are clouds comming in and out in the sky, while the base load is low and the battery is almost full, the spike in PV production when the sun sudenly comes back can not be 100% diverted to the battery. A portion of it will be find its way to the grid.

  2. Intermitent loads, like the kitchen oven will do some back feeding. You can’t do something about it.

  3. The inverter’s control loop when the grid sepoint is set up to 0 in ESS will spike up and down adding some back feed. People set it up to 50 or 100W so there is a constant bleed shaving most of the negative spikes. I employ an automation that sets it to 70W 2 hours after sunrise and resets it to 30W 2 hours prior to sunset. It does its job.

All in all, Zero feed-in is not possible when connected to the grid in its absolute sense (0Wh). My best performance is ~10Wh (read Watthours not kWh) per day and worst ~50Wh/day. To give you an idea, for the month of October my feed-in has been 0,52 kWh. Normally your power provider will accept such low figures.

If you want to protect the Shelly, you should replace the circuit breaker with a 16 A one, provided you also know that the current will never reach that level.

However, according to its specifications, the Shelly Pro 1PM has protection against overheating, overvoltage, overcurrent and excessive power.

In my opinion, I’d be cautious if using it to periodically switch the microinverters on and off. I’d install Shellys only on individual microinverters or small groups, to cut off a few watts.

If you want to switch off large numbers of microinverters connected to the same AC wiring all at once, I’d be concerned about how much wear the Shelly would suffer from periodic switching at, for example, 8, 10 or 13 A. So I’d be cautious and use the Shelly Pro 1PM to switch off small loads of 500 W to 1,000 W, no more than 5 or 6 A.

Alternatively, I would use a contactor, as you suggested, sized specifically to comfortably handle the highest possible switching load. I’d also look into whether an RC circuit is needed to balance voltage fluctuations when the microinverters reconnect.

As others have said, the most important thing is to bring your setup into compliance. But in addition, regarding your original question about avoiding export and the subsequent issue relating to the 1:1 ratio, I think what you propose is suitable for improving control of your installation. I understand that there should be no regulatory issue with adding extra control using switches that do not interfere with the protections required by regulations. Make sure to install the Shelly, contactor and/or RC circuit (as needed) close to the microinverters, as part of the microinverter system, with no protection in between that would be rendered inoperative when the Shelly-controlled wiring is opened.

Regards,