Closed sschimmel closed 1 year ago
Ok, could you please post the commands that you are using for:
docker run
to run the docker imageAlso commenting all the items on plant_conf
might be a problem
Hi, did you make this work?
I run into the same issue with emhass docker stand-alone. I get the exact same error as above, even if I set CSV as method and send in cost estimate directly. Or maybe just because...
Struggling with the config file and the data to emhass just to get it started. PVLib is extremely outdated and I see no near match to my panel/inverter setup. (JA Solar JAM66S30 500W panels and Sungrow SH10RT hybrid inverter). Gonna try Solcast or make my own data generator to predict my PV powers.
Config file: (Probably not optimal. )
retrieve_hass_conf:
- freq: 30
- days_to_retrieve: 2
- var_PV: sensor.pv_power
- var_load: sensor.template_emhass_no_var_load_2
- load_negative: False
- set_zero_min: True
- var_replace_zero: []
- var_interp: []
- method_ts_round: nearest
optim_conf:
- set_use_battery: False
- delta_forecast: 1
- num_def_loads: 0
- P_deferrable_nom: []
- def_total_hours: []
- treat_def_as_semi_cont: []
- set_def_constant: []
- weather_forecast_method: scrapper
- load_forecast_method: naive
- load_cost_forecast_method: csv
- prod_price_forecast_method: csv
- set_total_pv_sell: False
- lp_solver: COIN_CMD
- lp_solver_path: /usr/bin/cbc
- set_nocharge_from_grid: True
plant_conf:
- P_grid_max: 15000
- Pd_max: 4400
- Pc_max: 5200
- Enom: 9600
- SOCmin: 0
- SOCmax: 1
Docker run command: (in bash script)
docker run -it --name emhass \
--restart always \
-p 5000:5000 \
-e "LOCAL_COSTFUN=profit" \
-v /srv/docker/emhass/config_emhass.yaml:/app/config_emhass.yaml \
-v /srv/docker/emhass/secrets_emhass.yaml:/app/secrets_emhass.yaml \
davidusb/emhass-docker-standalone
curl query: (Hard coded nordpool values as I got some weird bad request issues if I added jinja templates for the sensor.)
curl -i -H 'Content-Type:application/json' -X POST -d '{"load_cost_forecast":[96.0, 98.0, 28.0, 4.0, 3.0, 2.0, 2.0, 2.0, 2.0, 2.0, 97.0, 109.0, 123.0, 108.0, 98.0, 6.0, -3.0, -4.0, -4.0, -4.0, -3.0, -1.0, -0.0, -0.0], "prod_price_forecast":[96.0, 98.0, 28.0, 4.0, 3.0, 2.0, 2.0, 2.0, 2.0, 2.0, 97.0, 109.0, 123.0, 108.0, 98.0, 6.0, -3.0, -4.0, -4.0, -4.0, -3.0, -1.0, -0.0, -0.0]}' http://localhost:5000/action/dayahead-optim
When I trigger a optimization I’m getting the following error logged in the docker container's output:
I'm running Emhass in a standalone docker container. I’m loading the solar forecast from Solcast manually using a script and storing that forecast in a csv file in the
/data
folder. I have two sites setup that need to be combined and I could only add one Solcast site id. I have confirmed that there is a CSV file in the /data folder with the forecast data.There is also a scipt running that downloads the electricity prices from my electricity provider and stores that in two CSV files in the same
/data
folder. One for the production and one for the load costs.In the /data folder I have these CSV files:
Some content from data_pv_power_forecast.csv
Some content from data_prod_price_forecast.csv
Based on the comment # list of different tariff periods (only needed if load_cost_forecast_method='hp_hc_periods') after list_hp_periods this config option should not be needed. I’ve tried commenting that line and still I get the KeyError about list_hp_periods.
I haven’t changed what’s in list_hp_periods, it’s still the same from the default config that came with the download of Emhass.
My full config_emhass.yaml file: