Unfortunately, it wasn’t that simple
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun emhass (no readiness notification)
s6-rc: info: service legacy-services successfully started
2023-10-23 08:04:40,873 - web_server - INFO - Launching the emhass webserver at: http://0.0.0.0:5000
2023-10-23 08:04:40,873 - web_server - INFO - Home Assistant data fetch will be performed using url: http://supervisor/core/api
2023-10-23 08:04:40,873 - web_server - INFO - The data path is: /share
2023-10-23 08:04:40,874 - web_server - INFO - Using core emhass version: 0.5.1
waitress INFO Serving on http://0.0.0.0:5000
2023-10-23 08:05:30,617 - web_server - INFO - Setting up needed data
2023-10-23 08:05:30,655 - web_server - INFO - Retrieve hass get data method initiated...
2023-10-23 08:05:30,662 - web_server - ERROR - Exception on /action/perfect-optim [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1455, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 869, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 867, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 852, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.9/dist-packages/emhass/web_server.py", line 179, in action_call
input_data_dict = set_input_data_dict(config_path, str(data_path), costfun,
File "/usr/local/lib/python3.9/dist-packages/emhass/command_line.py", line 78, in set_input_data_dict
rh.get_data(days_list, var_list,
File "/usr/local/lib/python3.9/dist-packages/emhass/retrieve_hass.py", line 124, in get_data
data = response.json()[0]
KeyError: 0
2023-10-23 08:05:40,298 - web_server - INFO - Setting up needed data
2023-10-23 08:05:40,302 - web_server - INFO - Retrieving weather forecast data using method = scrapper
2023-10-23 08:05:41,159 - web_server - INFO - Retrieving data from hass for load forecast using method = naive
2023-10-23 08:05:41,160 - web_server - INFO - Retrieve hass get data method initiated...
2023-10-23 08:05:41,166 - web_server - ERROR - Exception on /action/dayahead-optim [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1455, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 869, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 867, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 852, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.9/dist-packages/emhass/web_server.py", line 179, in action_call
input_data_dict = set_input_data_dict(config_path, str(data_path), costfun,
File "/usr/local/lib/python3.9/dist-packages/emhass/command_line.py", line 91, in set_input_data_dict
P_load_forecast = fcst.get_load_forecast(method=optim_conf['load_forecast_method'])
File "/usr/local/lib/python3.9/dist-packages/emhass/forecast.py", line 585, in get_load_forecast
rh.get_data(days_list, var_list)
File "/usr/local/lib/python3.9/dist-packages/emhass/retrieve_hass.py", line 124, in get_data
data = response.json()[0]
KeyError: 0
2023-10-23 08:05:45,514 - web_server - INFO - Setting up needed data
2023-10-23 08:05:45,518 - web_server - INFO - >> Publishing data...
2023-10-23 08:05:45,518 - web_server - INFO - Publishing data to HASS instance
2023-10-23 08:05:45,519 - web_server - ERROR - File not found error, run an optimization task first
.