Skip to content

User Variables

rbollar edited this page Aug 10, 2024 · 3 revisions

Pricing Decisions

Determine the thresholds where you want the inverter to buy / sell to and from the grid

  • max_buy_price = 20.0 # Maximum energy purchase (Import) price in cents / kWh
  • min_sell_price = 25.0 # Minimum energy sell (Export) price in cents / kWh
  • min_day_sell_price = 15.0 # Daytime minimum energy sell (Export) price in cents / kWh
  • always_sell_price = 100.0 # The price to sell (Export) regardless of remaining storage in cents / kWh

Forecast Adjustments

Modify the script's decision processing.

Minimum house power usage to accept in the forecast (in Wh) in the event reported house_power is missing

  • min_house_power = 2000.0 # This will be divided by the number of inverters below

Compounding discount to buy and sell forecast. For each additional future period, buy price increases by x% / sell decreases by x%.

  • uncertainty_discount = 0.05 # 0.05 is 5% per hour. Larger values are more conservative.

  • future_forecast_hours = 8.0 # Future forecast hours to consider. Forecasts beyond the battery's capacity are less useful.

  • desired_daytime_battery_soc = 50.0 # noqa Desired daytime battery SOC

Facility, Inverter and Battery specifications

Local site specifics:

  • num_inverters = 2 # Number of inverters at this facility
  • solar_active_hours = 2.0 # How long after sunrise and before sunset until the solar array is active (in hours)
  • battery_capacity_kWh = battery_capacity / 1000 # noqa (not currently used)
  • max_charge_rate_kW = 10.0 # noqa (not currently used)
  • full_charge_target = 1.0 # noqa 1.0 is 100% SOC
  • full_battery = 95.0 # Define Full Battery %
  • timezone = 0.0 # noqa Local timezone +/- UTC (not currently used)
  • peak_time = 16 # When does peak start? (Typically 4:00pm)