pvsyst_create_grid_storage_variant
Preview or create a new variant from an AC-coupled grid storage template, validating SOC, efficiency, strategy, and grid availability settings.
Instructions
[Loads & Storage] Preview or create a NEW VC from an existing native AC-coupled Grid storage template. Supported variant declarations are 8.1.0/8.1.6 with one complete flat pvGridStorage, Grid pvSystem, declared active storage/battery bits, an existing BTR reference and positive pack counts. SOC fields are fractions 0..1; require min < max, initial and reserve inside those bounds. PMaxCharge limits the charger's AC input in kW, PMaxDisch the battery inverter's AC output; neither is a hybrid DC-port rating. Explicit max/Euro efficiencies are percent, with Euro <= max. Scalar-only edits also retain the source PeakShaving/PVToGridMin pair with MinMaxHour or AfterSunset unchanged; source and candidate both validate SOC/efficiency/window semantics. Explicit strategy still uses SelfConsumption or WeakGrid with PVAvailable/Immediate. Public getter exposes grid_storage for read/re-edit; absent storage is null. WeakGrid requires a fresh availability declaration: full-year UserData Date;Grid Available / ;ratio CSV, ISO interval-start hours, exact 0/1 values, fixed standard offset and at least one outage. Bind native pvUnavail/HourlyVal GrdUnav Factor/Aver day snapshots, match the load snapshot year and require the root self-consumption flag. reserve_soc is SOCDischSelf: WeakGrid preserves it with grid available and permits discharge toward SOCDischDecl during outages. It is unused as backup in SelfConsumption; never a standalone generator voltage threshold. Preview writes nothing. Execution creates a NEW VC, retains source PRJ/VC, battery filename/counts, PV/load/site/temperature/SOW/topology. Optional allow_grid_export toggles only native system bit27: false prevents grid injection, true allows it subject to existing limits, omitted preserves it. This is not a charge-from-grid switch and not a hybrid DC-port setting. This does not construct hybrid ports, add battery hardware, schedule grid charging, infer efficiencies or certify physical sizing. Verify native SOC and energy flows before treating saved fields as consumed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| project | Yes | ||
| updates | Yes | ||
| new_variant | Yes | ||
| availability | No | ||
| source_variant | Yes | ||
| allow_grid_export | No |