Skip to content
← Back to blog

Shared self-consumption between two homes within 5 km: paperwork, batteries and Iberdrola (vs virtual battery)

How hourly kWh sharing works between two CUPS within 5 km: customers choose β coefficients (not i-DE or Iberdrola), DSO paperwork, host battery effects, economics, and why retailer virtual battery is not collective self-consumption.

Detached home — shared solar self-consumption between two nearby dwellings
See solar panels →
We watch every string of panels, every night →

Two homes under 5 km apart, one good roof, and a wish to “share the sun”. In Spain that sentence hides two different mechanisms: collective self-consumption through the grid (real hourly kWh split by the DSO) and retailer compensation / virtual battery (euro credit on a bill). Mix them up and you will think you are “sending power to the neighbour” when you are only selling cheap surplus and using a commercial wallet.

This article covers how shared PV between two dwellings works, who chooses the sharing coefficients (spoiler: the customers), i-DE / Iberdrola paperwork, how a host battery changes the deal, and when collective beats virtual battery.

The distinction you must not skip
Collective self-consumption ≤5 km Virtual battery / retail compensation
What moves Hourly kWh (β + CAU) Euros / bill credit
Who sets the split The customers (signed sharing agreement) The retailer (product T&Cs)
Who runs the books DSO (e.g. i-DE) Retailer
5 km rule Legal proximity matters Not the criterion of the virtual product

1. What shared self-consumption between two homes is

Royal Decree 244/2019 lets associated consumers split net generation with β coefficients. Two CUPS are enough. Through-the-grid collective self-consumption means the public network intermediates; the DSO allocates kWh using the percentages you filed — not a private cable and not a retailer whim.

Distribution grid that intermediates collective self-consumption allocation
kWh are accounted on the public grid according to the agreement you sign.

Vignette 1 · Two CUPS, one roof

Parents + adult child 3 km away

Good roof on parents’ house (A). Child (B) has a flat with no useful roof. They choose collective self-consumption and β 65 % / 35 %. i-DE and the retailer do not invent 65/35 — the customers do, sign it, and send the coefficient file. Next year they can move to 50/50 the same way.

SituationCollective through the grid?Multi-CUPS virtual battery?
Homes 1.2 km apart, roof on oneYes if proximity rules fitOptional for residual surplus
Homes 4.5 km (5 km case applies)Yes, with legal checkOptional
Home + second home 80 km awayNoYes if the product allows

RDL 7/2026 pushed proximity up to 5 km for eligible plants up to 5 MW (roofs, industrial land, certain artificial structures).

2. β coefficients: the customer chooses (not Iberdrola, not i-DE)

Write this down: in collective self-consumption, sharing coefficients are decided by the associated consumers — the CUPS holders / customers — in a signed sharing agreement. All β must sum to 1 (100%). The DSO applies them; the retailer bills from DSO data. Neither party imposes 70/30 or 50/50 unless you put it in the agreement.
ActorChooses β?Real job
Customers (CUPS holders)YES — decide and signSharing agreement, %, later changes
Installer / self-consumption managerNo (advises only)Simulate loads, draft papers, .txt file, push the file
i-DE (DSO)NoValidate format, apply β, activate
Iberdrola or other retailerNo (for regulated split)Contract update, surplus compensation / virtual battery
Home A (70%)Home B (30%)
Assigned generation (10 kWh hour)7 kWh3 kWh
Load that hour5 kWh4 kWh
Self-consumed from share5 kWh3 kWh
Surplus of share2 kWh (A’s)0
Grid import01 kWh

Vignette 2 · “Will Iberdrola set 50/50?”

No.

Retail Iberdrola does not allocate collective kWh. i-DE allocates using the file that came from your agreement. If you signed 80/20 because A paid 80% of the plant, bills follow 80/20 — even if a call-centre agent says “normally it is half and half”.

Vignette 3 · Three legal splits, same plant

Your criterion Example β When it fits
Who paid for the build80% / 20%A financed almost everything
Measured daytime load55% / 45%Maximise self-consumption for both
Family “fair split”50% / 50%Similar money in and similar loads

All three are legal if they sum to 100% and are signed. Legal means yours.

Calculating sharing percentages and two household bills
Simulate, choose β, sign. The DSO only executes what you send.

3. Bureaucracy checklist

#StepWho owns it?
1Private deal: money, maintenance, insurance, sale of the homeCustomers
2Choose β and sign the sharing agreementCustomers
3Design + licensed installInstaller
4CAUInstaller / manager + DSO
5Access & connection / collective fileInstaller ↔ DSO
6Regional legalisation (CIE)Installer
7CAU_YYYY.txt coefficient fileManager from what you signed
8DSO notice + each supply contract updateManager / retailers
9Optional surplus compensation / virtual batteryEach customer + retailer
PhaseTypical time
Physical installDays to a few weeks
Legalisation + collective activation (i-DE area)Often 2–6 months
Changing β laterNew agreement + file + activation window
Signing the coefficient sharing agreement
No signed agreement (with your β) + file + CIE → no collective energy on the second bill.

Vignette 4 · Classic stall

Roof produces; B’s bill does not care

Usually a bad .txt, missing signature, or regional notice not yet at the DSO. Calling the retail light call centre does not move an i-DE collective file.

4. “Iberdrola” bureaucracy: retailer vs distributor

i-DE (DSO)Iberdrola or other retailer
RoleMetering, CAU, file, apply your β, activation dateContract update, billing, compensation / virtual battery
Chooses coefficients?NoNo
Typical stallsBad .txt, incomplete signatures, missing regional noticeActivation not received yet; confuses collective with surplus product
Agreement between two parties to share a PV installation
Before the smart meter: an agreement between people (who pays, which β, what if someone leaves).

5. Collective ≤5 km vs virtual battery

Regulated collectiveVirtual battery / retail compensation
ObjectHourly kWh per CUPS€ balance from surplus value
Who sets the splitCustomers (β)Retailer T&Cs
Key papersSharing agreement + CAU + .txtCommercial product enrolment
DistanceLegal proximityWhatever the product allows
Replaces the other?No — may only top up residual surplus
Rule of thumb: if sales talk about “sharing with your son 5 km away” without a customer-signed coefficient agreement, CAU and DSO, it is almost certainly a virtual product, not collective self-consumption.

Vignette 5 · Same family, two products

Collective for the nearby flat; virtual for the coast house

A and B at 2 km → collective with customer-chosen 60/40. A’s house 200 km away is outside the CAU; at most, residual surplus of A feeds a retailer virtual battery. Two mechanisms, two logics.

6. Physical battery at the host home

Residential battery storage on a self-consumption installation
A host battery often eats midday kWh before net generation exists to share.
SetupMidday flowWho benefits more
Battery at APV → A load → A battery → remainder becomes shareable net generationA
Battery at BB charges from its β share + grid onlyB only if β and load allow
Storage in collective perimeterDischarge shared by β if metering is correctPer agreement — serious engineering

Vignette 6 · The “selfish” battery

50/50 on paper, crumbs for B

You signed 50/50, but A’s large battery charged all morning. Shareable net generation collapsed. The paper split did not break — the bottle was emptied before pouring. Simulate β with the battery; adjust capacity or β. Again: customer decision.

Physical battery ≠ virtual battery. kWh stored physically no longer create virtual-wallet surplus. Do not add both savings at 100% in a slide deck.

7. Is it profitable?

kWh typeIndicative value (2026)
Self-consumed (avoided import)Often about €0.15–0.30/kWh
Surplus to compensation / virtualOften only a few cents
ScenarioCollective usually worth it?
Great roof on A, none on B, <5 km, daytime loads bothYes
Same owner, two CUPS, deliberate βYes
B empty all dayDoubtful
Huge battery on A, token β for BNo for B
Virtual sold as “5 km collective”Read the contract

Vignette 7 · Brochure vs reality

“Zero bill on both homes”

With good β and no selfish battery you can cut both bills a lot. Guaranteed dual zero without hourly curves is sales fiction, not engineering.

Residential rooftop solar panels for shared self-consumption
The real asset is a well-used roof plus coefficients you chose with open eyes.

8. Recommended sequence

StepActionDecision owner
1Hourly load curves A and BCustomers + installer
2Check distance / proximity caseInstaller
3Choose β with and without host batteryCustomers
4Private cost / exit contractCustomers
5Build + legaliseInstaller
6Agreement + file until both bills show self-consumptionManager (your signature)
7Only then: residual compensation / virtualEach customer + retailer

9. FAQ

QuestionShort answer
Who chooses coefficients?Customers / CUPS holders in the sharing agreement.
Can Iberdrola or i-DE impose them?No. They apply them; they do not decide them.
Same owner, two homes?Yes — cleanest case.
Same retailer mandatory?Not for the regulated split; practical yes.
Does virtual battery replace 5 km collective?No.
Is 50/50 the legal default?Legal is whatever you sign summing to 100%.

Conclusion

Sharing PV between two homes within 5 km is real. The core is hourly kWh allocation by the DSO using coefficients you choose and sign — not a retail “solar community” slogan. A host battery prioritises the host unless engineered otherwise. Virtual battery is a surplus wallet: useful, secondary, easy to confuse with collective self-consumption. At A Todo Sol we simulate curves, propose β options — you decide — and push the DSO file until both bills tell the truth.

Reference: RD 244/2019, Order TED/1247/2021, IDAE collective guides, i-DE procedures, proximity expansion under RDL 7/2026. Rules change — verify at activation date. Informational only; not a substitute for a technical project or legal advice.

Related articles

Why saving €800 on solar can cost you the next 30 years — history, bankrupt installers and real monitoring The call that changed everything: what Social Energy's collapse teaches us about choosing a solar installer Deye EVSE charger: what is still green (Peak Shaving, contracted power and Solar-only)

Ready to take the leap to self-consumption?

Get a free, no-strings personalised quote in 24–48 hours.

Talk to an expert →