Closed overas closed 8 months ago
When I run the day-head optimization rest command with emhass 0.6.2 I get in the hassos log:
Logger: homeassistant.components.rest_command
Source: components/rest_command/__init__.py:155
Integration: RESTful Command (documentation, issues)
First occurred: 18:53:16 (1 occurrences)
Last logged: 18:53:16
Error. Url: http://localhost:5000/action/dayahead-optim. Status code 500. Payload: b'{ "load_cost_forecast":[1.2218, 1.2162, 1.2132, 1.2069, 1.1557, 1.0437, 0.6484, 0.6323, 0.6183, 0.5514, 0.5802, 0.7232, 1.2777, 1.3927, 1.4696, 1.413, 1.3695, 1.3286, 1.327, 1.3418, 1.3718, 1.3977, 1.4682, 1.579], "prod_price_forecast":[0.74, 0.74, 0.73, 0.73, 0.68, 0.56, 0.17, 0.15, 0.14, 0.07, 0.1, 0.24, 0.68, 0.79, 0.87, 0.81, 0.77, 0.73, 0.73, 0.74, 0.77, 0.8, 0.87, 0.98] }'
but with emhass 0.6.1 I do not get this rest command failure.
Maybe this is a issue after updating the web server?
Solved!
Thanks for fast respons
Intel Nuc 5i Hassos 2024.1.6
With emhass 0.6.2 something changed. I get "IndexError: list index out of range" when I do a day-ahead optimization with this rest command:
The log gives:
With emhass 0.6.1 I do not have any errors:
Here is my emhass config: