Something hapened or I did something to break my day ahead optimizer but I canāt figure it out. Iām sure I am missing something obvious but in the below log you see that if I put load_forecast_method to typical (the new default from what I understand) I get the No such file or directory: ā/app/data/data_train_load_clustering.pklā error message. If I put it back to naive emhass crashes. The rest command with the runtime parameters you see in the log are the same I used before and worked fineā¦
2025-01-18 22:17:34,870 - web_server - INFO - Saved parameters from webserver
2025-01-18 22:17:40,352 - web_server - INFO - EMHASS server online, serving index.html...
2025-01-18 22:17:40,363 - web_server - INFO - The data container dictionary is empty... Please launch an optimization task
2025-01-18 22:17:57,108 - web_server - INFO - >> Obtaining params:
2025-01-18 22:17:57,111 - web_server - INFO - Passed runtime parameters: {'load_cost_forecast': [0.2445, 0.2445, 0.2369, 0.2369, 0.2293, 0.2293, 0.2297, 0.2297, 0.2238, 0.2238, 0.2226, 0.2226, 0.2205, 0.2205, 0.2194, 0.2194, 0.2192, 0.2192, 0.2209, 0.2209, 0.2229, 0.2229, 0.2231, 0.2231, 0.2249, 0.2249, 0.2249, 0.2249, 0.2214, 0.2214, 0.2108, 0.2108, 0.2057, 0.2057, 0.2157, 0.2157, 0.2223, 0.2223, 0.2356, 0.2356, 0.2496, 0.2496, 0.2617, 0.2617, 0.2592, 0.2592, 0.2512, 0.2512], 'prod_price_forecast': [0.1256, 0.1256, 0.1187, 0.1187, 0.1118, 0.1118, 0.1122, 0.1122, 0.1068, 0.1068, 0.1057, 0.1057, 0.1038, 0.1038, 0.1028, 0.1028, 0.1026, 0.1026, 0.1042, 0.1042, 0.1059, 0.1059, 0.1061, 0.1061, 0.1078, 0.1078, 0.1078, 0.1078, 0.1046, 0.1046, 0.095, 0.095, 0.0904, 0.0904, 0.0995, 0.0995, 0.1055, 0.1055, 0.1175, 0.1175, 0.1302, 0.1302, 0.1412, 0.1412, 0.1388, 0.1388, 0.1316, 0.1316], 'pv_power_forecast': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 128, 326, 480, 685, 954, 1240, 1502, 1618, 1582, 1495, 1353, 1164, 934, 673, 403, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}
2025-01-18 22:17:57,112 - web_server - INFO - >> Setting input data dict
2025-01-18 22:17:57,112 - web_server - INFO - Setting up needed data
2025-01-18 22:17:57,243 - web_server - INFO - Retrieving weather forecast data using method = list
2025-01-18 22:17:57,260 - web_server - ERROR - Exception on /action/dayahead-optim [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 1511, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/emhass/web_server.py", line 388, in action_call
input_data_dict = set_input_data_dict(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/emhass/command_line.py", line 188, in set_input_data_dict
P_load_forecast = fcst.get_load_forecast(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/emhass/forecast.py", line 1048, in get_load_forecast
with open(data_path, "rb") as fid:
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/app/data/data_train_load_clustering.pkl'
FileNotFoundError: [Errno 2] No such file or directory: '/app/data/data_train_load_clustering.pkl'
2025-01-18 22:18:19,161 - web_server - INFO - serving configuration.html...
2025-01-18 22:18:19,340 - web_server - INFO - Obtaining parameters from config.json:
2025-01-18 22:18:32,903 - web_server - INFO - Saved parameters from webserver
2025-01-18 22:18:41,746 - web_server - INFO - >> Obtaining params:
2025-01-18 22:18:41,752 - web_server - INFO - Passed runtime parameters: {'load_cost_forecast': [0.2445, 0.2445, 0.2369, 0.2369, 0.2293, 0.2293, 0.2297, 0.2297, 0.2238, 0.2238, 0.2226, 0.2226, 0.2205, 0.2205, 0.2194, 0.2194, 0.2192, 0.2192, 0.2209, 0.2209, 0.2229, 0.2229, 0.2231, 0.2231, 0.2249, 0.2249, 0.2249, 0.2249, 0.2214, 0.2214, 0.2108, 0.2108, 0.2057, 0.2057, 0.2157, 0.2157, 0.2223, 0.2223, 0.2356, 0.2356, 0.2496, 0.2496, 0.2617, 0.2617, 0.2592, 0.2592, 0.2512, 0.2512], 'prod_price_forecast': [0.1256, 0.1256, 0.1187, 0.1187, 0.1118, 0.1118, 0.1122, 0.1122, 0.1068, 0.1068, 0.1057, 0.1057, 0.1038, 0.1038, 0.1028, 0.1028, 0.1026, 0.1026, 0.1042, 0.1042, 0.1059, 0.1059, 0.1061, 0.1061, 0.1078, 0.1078, 0.1078, 0.1078, 0.1046, 0.1046, 0.095, 0.095, 0.0904, 0.0904, 0.0995, 0.0995, 0.1055, 0.1055, 0.1175, 0.1175, 0.1302, 0.1302, 0.1412, 0.1412, 0.1388, 0.1388, 0.1316, 0.1316], 'pv_power_forecast': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 128, 326, 480, 685, 954, 1240, 1502, 1618, 1582, 1495, 1353, 1164, 934, 673, 403, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}
2025-01-18 22:18:41,752 - web_server - INFO - >> Setting input data dict
2025-01-18 22:18:41,752 - web_server - INFO - Setting up needed data
2025-01-18 22:18:41,904 - web_server - INFO - Retrieving weather forecast data using method = list
2025-01-18 22:18:41,917 - web_server - INFO - Retrieving data from hass for load forecast using method = naive
2025-01-18 22:18:41,921 - web_server - INFO - Retrieve hass get data method initiated...
2025-01-18 22:18:41,921 - web_server - INFO - Retrieve hass get data method initiated...
[2025-01-18 22:19:15,901] DEBUG in utils: Obtaining secrets from Home Assistant Supervisor API
2025-01-18 22:19:15,945 - web_server - INFO - Launching the emhass webserver at: http://0.0.0.0:5000