Hello, me again.
Any idea why even if I define SOC init (91%) and final (50%) through the command, it takes the value(s) from config yaml (30%)? (dayahead optim with 30 min steps)
curl -i -H "Content-Type: application/json" -X POST -d '{"delta_forecast": 1, "soc_init": 0.91, "soc_final": 0.5, "load_cost_forecast":[ 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.125598, 0.150977, 0.150977, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.136777, 0.150977, 0.150977, 0.150977, 0.150977, 0.150977, 0.150977, 0.150977, 0.150977, 0.125598, 0.125598], "prod_price_forecast":[ 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.091991, 0.106021, 0.106021, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.110135, 0.106021, 0.106021, 0.106021, 0.106021, 0.106021, 0.106021, 0.106021, 0.106021, 0.091991, 0.091991]}' http://localhost:5000/action/dayahead-optim
2023-09-15 00:37:50,365 - web_server - INFO - EMHASS server online, serving index.html...
2023-09-15 00:38:58,817 - web_server - INFO - Setting up needed data
2023-09-15 00:38:58,892 - web_server - INFO - Retrieving weather forecast data using method = scrapper
2023-09-15 00:39:16,571 - web_server - INFO - Retrieving data from hass for load forecast using method = naive
2023-09-15 00:39:16,628 - web_server - INFO - Retrieve hass get data method initiated...
2023-09-15 00:42:17,760 - web_server - INFO - >> Performing dayahead optimization...
2023-09-15 00:42:17,779 - web_server - INFO - Performing day-ahead forecast optimization
2023-09-15 00:42:18,022 - web_server - INFO - Perform optimization for the day-ahead
2023-09-15 00:42:22,514 - web_server - INFO - Status: Optimal
2023-09-15 00:42:22,519 - web_server - INFO - Total value of the Cost function = 1.6
2023-09-15 00:42:41,788 - web_server - INFO - EMHASS server online, serving index.html...
hass_url: empty
long_lived_token: empty
costfun: self-consumption
logging_level: DEBUG
optimization_time_step: 30
historic_days_to_retrieve: 2
method_ts_round: nearest
set_total_pv_sell: false
lp_solver: COIN_CMD
lp_solver_path: /usr/bin/cbc
set_nocharge_from_grid: false
set_nodischarge_to_grid: false
set_battery_dynamic: false
battery_dynamic_max: 0.9
battery_dynamic_min: -0.9
load_forecast_method: naive
sensor_power_photovoltaics: sensor.production_pv_w
sensor_power_load_no_var_loads: sensor.consumption_w
number_of_deferrable_loads: 1
list_nominal_power_of_deferrable_loads:
- nominal_power_of_deferrable_loads: 0
list_operating_hours_of_each_deferrable_load:
- operating_hours_of_each_deferrable_load: 0
list_peak_hours_periods_start_hours:
- peak_hours_periods_start_hours: "07:00"
list_peak_hours_periods_end_hours:
- peak_hours_periods_end_hours: "23:00"
list_treat_deferrable_load_as_semi_cont:
- treat_deferrable_load_as_semi_cont: true
load_peak_hours_cost: 0.1907
load_offpeak_hours_cost: 0.1419
photovoltaic_production_sell_price: 0.065
maximum_power_from_grid: 6000
list_pv_module_model:
- pv_module_model: SunPower_SPR_E20_327
- pv_module_model: SunPower_SPR_P19_395_COM
list_pv_inverter_model:
- pv_inverter_model: SMA_America__SB3000TL_US_22__240V_
- pv_inverter_model: SMA_America__STP50_US_40__480V_
list_surface_tilt:
- surface_tilt: 17
- surface_tilt: 17
list_surface_azimuth:
- surface_azimuth: 225
- surface_azimuth: 225
list_modules_per_string:
- modules_per_string: 9
- modules_per_string: 14
list_strings_per_inverter:
- strings_per_inverter: 1
- strings_per_inverter: 1
set_use_battery: true
battery_discharge_power_max: 7100
battery_charge_power_max: 7100
battery_discharge_efficiency: 0.95
battery_charge_efficiency: 0.95
battery_nominal_energy_capacity: 27000
battery_minimum_state_of_charge: 0.1
battery_maximum_state_of_charge: 1
battery_target_state_of_charge: 0.3