davidusb-geek / emhass-add-on

The Home Assistant Add-on for EMHASS: Energy Management Optimization for Home Assistant
MIT License
96 stars 29 forks source link

Can not choose 'mlforecast' in Load forecast method with the web GUI #105

Open overas opened 3 weeks ago

overas commented 3 weeks ago

``Emhass addon v0.11.2 Hassos 2024.10.4

When I try to select mlforecast in the web GUI there is no option for it. The choices I have are naive and csv. Is this correct? image

If I manually edit the config.json file to use mlforecast and run a daily optimization everything works. image


2024-11-03 15:41:28,133 - web_server - INFO -  >> Setting input data dict
2024-11-03 15:41:28,133 - web_server - INFO - Setting up needed data
2024-11-03 15:41:28,135 - web_server - INFO - Retrieving weather forecast data using method = scrapper
2024-11-03 15:41:29,485 - web_server - INFO - Retrieving data from hass for load forecast using method = mlforecaster
2024-11-03 15:41:29,486 - web_server - INFO - Retrieve hass get data method initiated...
2024-11-03 15:41:31,416 - web_server - DEBUG - Number of ML predict forcast data generated (lags_opt): 60
2024-11-03 15:41:31,416 - web_server - DEBUG - Number of forcast dates obtained: 24
2024-11-03 15:41:31,418 - web_server - INFO -  >> Performing dayahead optimization...
2024-11-03 15:41:31,419 - web_server - INFO - Performing day-ahead forecast optimization
2024-11-03 15:41:31,430 - web_server - INFO - Perform optimization for the day-ahead
2024-11-03 15:41:31,576 - web_server - DEBUG - Deferrable load 0: Proposed optimization window: 0 --> 0
2024-11-03 15:41:31,577 - web_server - DEBUG - Deferrable load 0: Validated optimization window: 0 --> 0
2024-11-03 15:41:31,578 - web_server - WARNING - Solver default unknown, using default
Welcome to the CBC MILP Solver ```
bert1111 commented 2 weeks ago

Just updated and saw this too. Haven't looked into it further.

overas commented 2 weeks ago

Maybe this is going to be fixed with this pull reguest: https://github.com/davidusb-geek/emhass/pull/370