Giter Site home page Giter Site logo

Comments (3)

davidusb-geek avatar davidusb-geek commented on August 11, 2024

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.

davidusb-geek avatar davidusb-geek commented on August 11, 2024

Hi, did you make this work?

from emhass.

Octofinger avatar Octofinger commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.