davidusb-geek / emhass

emhass: Energy Management for Home Assistant, is a Python module designed to optimize your home energy interfacing with Home Assistant.
MIT License
315 stars 63 forks source link

400 error on call #317

Open smitterer opened 5 months ago

smitterer commented 5 months ago

Describe the bug I get a 400 error when doing a call using:

{"pv_power_forecast":[3374.8,3245.1,3005.7999999999997,2680.8999999999996,2331.2,1985.1000000000001,1598.6,1236.5,875.1999999999999,562.9,343.5,195.1,85.5,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "prod_price_forecast":[0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04], "load_cost_forecast":[0.186586,0.186586,2.238408,2.238408,0.944180,0.944180,0.231886,0.231886,0.182804,0.182804,0.041332,0.041332,0.041468,0.041468,0.040380,0.040380,0.040911,0.040911,0.039008,0.039008,0.214656,0.214656,0.203334,0.203334,0.192692,0.192692,0.195807,0.195807,0.190653,0.190653], "prediction_horizon":30, "def_total_hours":[5.00], "soc_init":0.97, "soc_final":0.9}

My conf: retrieve_hass_conf:

optim_conf:

plant_conf:

To Reproduce Trigger mpc-optim using the above config

Expected behavior No 400

Screenshots If applicable, add screenshots to help explain your problem.

Home Assistant installation type

Your hardware

Additional context

davidusb-geek commented 4 months ago

Could you please share the same command that you are using to launch that MPC? Is it a RESTful command? Share your template payload to debug

davidusb-geek commented 4 weeks ago

Hi, still blocked on this 400 error?