Skip to content

Solar modeling

The Solar device composes a Node (power source only) with an implicit Connection to model solar generation with optional curtailment.

Model elements created

graph LR
    subgraph "Device"
        SS["Node<br/>(is_source=true, is_sink=false)"]
        Conn["Connection<br/>{name}:connection"]
    end

    Node[Connection Target]

    SS -->|linked via| Conn
    Conn -->|connects to| Node
Model Element Name Parameters From Configuration
Node {name} is_source=true, is_sink=false
Connection {name}:connection power-limit segment values

Devices created

Solar creates 1 device in Home Assistant:

Device Name Created When Purpose
Primary {name} Always Solar generation tracking and limits

Parameter mapping

The adapter transforms user configuration into connection segments:

User Configuration Segment Segment Field Notes
forecast PowerLimitSegment max_power_source_target Upper bound on generation
curtailment PowerLimitSegment fixed True when curtailment is disabled
connection Connection target Node to connect to
— Node is_source=true Solar provides power
— Node is_sink=false Solar cannot consume power

Sensors created

The sensors this element creates, with their entity IDs, are listed under Sensors created on the Solar page.

Configuration examples

Standard solar (no curtailment)

Field Value
Name Rooftop Solar
Forecast sensor.solcast_pv_forecast_power_now
Curtailment false
Connection Home Bus

With curtailment enabled

Field Value
Name Curtailable Solar
Forecast sensor.solcast_pv_forecast_power_now
Curtailment true
Connection Home Bus

Typical use cases

Standard Solar: Leave curtailment enabled (default) so the optimizer can reduce generation when beneficial. Set curtailment: false only when your inverter cannot support active power limiting.

Negative Export Pricing: Enable curtailment when export prices can be negative. Optimizer will curtail generation when it's economically beneficial to avoid paying to export.

Export-Limited Systems: Curtailment allows optimizer to stay within export limits while managing battery and load efficiently.

Physical interpretation

Solar represents a solar generation system that produces power based on weather forecasts and system capacity.

Configuration guidelines

  • Forecast Accuracy: Critical for optimization quality. Use high-quality forecast services like Solcast for best results. See Forecasts and Sensors.
  • Curtailment: Only enable if your inverter supports active power limiting.
  • Fixed Power: When curtailment is disabled, generation equals forecast exactly. When enabled, generation can be reduced below forecast.

Next steps