Flexibility and grid codes

Spain: independent aggregation and demand response

What Royal Decree 88/2026 changes for independent aggregation in Spain, which implementation steps still matter, and the site data needed for demand response.

Spanish electricity users can now plan a flexibility contract separately from their supply contract. Royal Decree 88/2026 defines the rights and obligations of the independent aggregator and provides for access to electricity markets, including balancing markets for demand response.

The framework is a route to participation, not a device specification. A commercial building, battery, generator, EV charger or industrial load still needs to meet the rules of the service it enters. The project must distinguish the official market record from the faster operational data used to manage the asset safely.

The 2026 aggregation framework

The decree entered into force on 12 February 2026. It defines aggregation as combining consumption or electricity generated by multiple consumers for purchase or sale in the electricity-production market. An independent aggregator is a market participant that provides aggregation services and is not connected to the consumer's supplier.

Article 20 establishes two important rights:

  1. an aggregation provider may access electricity markets without the consent of other market participants, under the conditions that apply to those markets; and
  2. a consumer may contract with an aggregator other than its supplier without needing the supplier's consent.

This removes the supplier's approval as a contractual gate. It does not remove network, market, metering, qualification, data-protection or asset-safety requirements.

The consumer has a right to change independent aggregator within a maximum of ten working days after the new contract is signed. No fee may be charged for the change. For most consumers, the contract duration and termination terms are agreed by the parties. Special no-penalty termination protection applies to natural persons in the 2.0TD tariff segment.

Check the implementation status before promising participation

The decree does not make every provision operational in isolation. Final Provision Nine says the provisions concerning the independent aggregator take effect when the required rules for market participation and the information-exchange files approved by the National Commission on Markets and Competition are adapted.

Red Eléctrica's consultation archive records a final proposal on changes to balancing conditions and operating procedures for independent aggregation dated 27 April 2026. The BOE consolidated text should be read together with the final market rules and procedures in force on the planned start date.

For a project, record these four items rather than writing “Royal Decree 88/2026 compliant” on an architecture diagram:

  • the market or service the portfolio intends to enter;
  • the version and effective date of the relevant operating procedure;
  • the party responsible for market access, imbalance and settlement; and
  • the metering, baseline, verification and communications requirements for that service.

Spain already operates the active demand response service, SRAD. Red Eléctrica procured 1,775 MW for the second half of 2026, and reported that most providers with at least 1 MW offered through a supplier active in the market. That result shows an operating demand-response route. It does not prove that a proposed independent-aggregator arrangement is qualified or active. The SRAD participation and response verification guide sets out the final activation, telemetry, availability and settlement rules that apply to that service.

The transitional model separates three calculations

Until the ministerial order establishes the aggregation model, Transitional Provision Three specifies a centralised model with programme correction and compensation.

The system operator, and the market operator where relevant, acts as the central counterparty for programme correction and compensation. Red Eléctrica determines balance responsibility and verifies the independent aggregator's response.

The model needs three related but distinct records:

RecordPurposeOwner under the market process
Reference programmeEstimate what the demand installation or portfolio would have done without activationDefined through the approved methodology
Actual responseDetermine what changed during the activation periodVerified by the system operator under the applicable rules
Compensation energyValue energy actually mobilised by the aggregator in wholesale marketsCalculated through the approved compensation arrangement

Actual demand response outside the aggregator's activation periods does not count for the transitional compensation described by the decree. A site may reduce load for a tariff peak, a local alarm or a production stoppage, but that change is not automatically an aggregator activation.

Keep the activation identifier, start and end time, requested quantity, reference programme, measured response and settlement result linked. Do not overwrite the operational record with the final settlement value. A later correction to the baseline or meter data should remain auditable.

What the independent aggregator must establish

The decree requires an independent aggregator to submit a responsible declaration, maintain the conditions for the activity and notify changes. Until the dedicated application exists, the declaration and changes are sent electronically to the Directorate-General for Energy Policy and Mines.

The aggregator also needs the required financial guarantees and must satisfy the applicable balancing conditions and operating procedures. It is financially responsible for imbalances it causes, although it may delegate that responsibility to another market participant.

The aggregator and distributor use the approved exchange-file formats. The incoming aggregator must tell the distributor about a change within 24 hours on a working day after the consumer contract is signed. Personal and consumption data remain subject to the applicable confidentiality and data-protection rules.

These duties belong to the market participant. A site gateway is not the independent aggregator, the balance-responsible party or the official exchange system.

Build the site record around an activation

Start with the connection point and the flexible asset boundary.

LayerRecordWhy it matters
Market boundaryCUPS, connection point, settlement meter, tariff, supplier and aggregatorIdentifies the consumer and official market record
Site totalImport, export, timestamp, interval and meter qualityShows the site's net response
Flexible assetActual power, available power, energy state, operating mode and alarm stateShows whether the nominated asset could respond
DispatchRequested power or limit, issue time, receipt, acknowledgement, start and endLinks the market activation to local action
ConstraintProcess minimum, comfort limit, battery state of charge, charger need or generator availabilityExplains a reduced or rejected response
OutcomeBaseline, actual response, deviation, accepted quantity and settlement statusPreserves both operational and market results

Use one time standard and record the source time as well as the arrival time. A one-minute controller value and a settlement interval cannot be compared safely if time zones, interval ends or daylight-saving changes are implicit.

Missing data must remain missing. Replacing a communications gap with zero can manufacture a false reduction. Record whether each value is measured, estimated, substituted, stale or invalid, and retain the raw source alongside any corrected series.

Separate monitoring from control

Monitoring can start before control. Read the site incomer, relevant feeders and the asset controller through its documented interface. Compare the operational total with the settlement record over complete intervals. Confirm sign convention, scaling, timestamps, quality flags and what happens during loss of communications.

Control needs additional evidence:

  1. the aggregator's dispatch contract defines the requested quantity and acknowledgement;
  2. the equipment manufacturer documents the writable command and its units;
  3. local protection and the equipment controller retain safety authority;
  4. the site defines priority between market dispatch, production, comfort and emergency operation;
  5. every command has an expiry or release condition; and
  6. commissioning tests normal response, rejection, timeout, partial delivery and restoration.

A battery setpoint, generator start or production curtailment can have electrical and operational consequences. Do not infer a safe control path from a readable Modbus register. Use a read-only deployment until the command contract and safe state are approved.

Where EpiSensor fits

EpiSensor can measure the site and asset boundary, collect documented equipment states and retain time-aligned interval data on site. Edge can receive an approved dispatch over a documented interface and pass data onward over MQTT, HTTPS or Modbus TCP when the complete control design permits it.

That supports availability checks, dispatch acknowledgement, actual-response evidence and investigation of a failed event. It does not replace the settlement meter, create the official reference programme, qualify a portfolio, register an independent aggregator or calculate the market settlement.

Use the demand response baseline guide to define the counterfactual and event interval. Use System Builder to map the measurement points and interfaces, then confirm the market and equipment-control contracts before enabling a write path.

Common questions

Can a Spanish consumer choose an independent aggregator without its supplier's consent?

Yes. Royal Decree 88/2026 says a consumer may enter an aggregation contract with a party other than its supplier without the supplier's consent. The market procedures, information exchanges and qualification rules that apply to the chosen service still have to be met.

Does Royal Decree 88/2026 mean every flexible site can trade immediately?

No. The decree creates the framework, while the independent-aggregator provisions take effect with the corresponding market-rule and information-file adaptations. Each service also has technical, metering, aggregation and qualification requirements. Confirm the rules effective on the participation date.

What does the transitional aggregation model require?

Until the ministerial order establishes the model, the decree specifies a centralised model with programme correction and compensation. The system operator determines balance responsibility and verifies the response. Further resolutions define the reference programme, compensation price and compensation arrangement.

Is site telemetry the same as settlement metering?

No. Settlement follows the market's approved metering, baseline and verification rules. Site telemetry adds operational evidence such as controller state, command receipt, actual power, asset limits and alarms. Keep both records time-aligned and retain their identities separately.

Can EpiSensor control a flexible asset under these rules?

EpiSensor can monitor site power, equipment state and documented controller interfaces. Any control design needs the asset manufacturer's supported command path, the aggregator's approved dispatch contract, local protection and a defined safe state. Monitoring alone does not qualify an asset or authorise control.