Comments (3)
Ok, could you please post the commands that you are using for:
docker run
to run the docker image- and the command that you are using to trigger the optimization?
Also commenting all the items on plant_conf
might be a problem
from emhass.
Hi, did you make this work?
from emhass.
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
from emhass.
Related Issues (20)
- Upgrade to 0.4.0 - TypeError: string indices must be integers HOT 5
- logging significantly reduced with 0.4.0 HOT 3
- Solar.Forecast service gives error HOT 1
- SSL Error SSLCertVerificationError HOT 1
- How to create a deferrable load sensor HOT 2
- Feature Request: Color for PV HOT 2
- Feature Request: smooth allocation of power to continuous loads HOT 9
- Feature Request: Some questions HOT 8
- Feature Request: Build in some priority HOT 1
- UnicodeDecodeError HOT 4
- prod_cost not updated.
- prod/load_cost unit_of_measurement ā¬/kWh & $/kWh HOT 3
- Feature Request: unit_prod_price & unit_load_cost forecasts HOT 14
- Feature Request: Pass an array of hourly load_peak_hours costs instead of a constant value ( ex. prices from Tibber) HOT 2
- Solar forcast is broken HOT 3
- Feature request: Grid availability HOT 1
- 'last_window' has missing values error after HASS restart HOT 3
- Add single configuration to prefix all published sensors HOT 8
- When using the custom names there are no attributes is the sensors HOT 2
- Feature request - pass current battery SOC to dayahead-optim to improve optimization HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emhass.