Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
overas opened this issue Nov 3, 2024 · 8 comments
Open

Comments

@overas
Copy link

overas commented Nov 3, 2024

``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
Copy link

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

@overas
Copy link
Author

overas commented Nov 10, 2024

Maybe this is going to be fixed with this pull reguest: #370

@davidusb-geek
Copy link
Owner

We will take a look into this

@davidusb-geek davidusb-geek transferred this issue from davidusb-geek/emhass-add-on Dec 25, 2024
@davidusb-geek
Copy link
Owner

davidusb-geek commented Dec 25, 2024

@GeoDerp I tried to look at this but got a bit lost in those JS cripts ;-)
Could you please look at this?
I need to add an additional load forecasting method that I'm working right now, is this guide is up-to-date?: https://github.com/davidusb-geek/emhass/blob/master/docs/develop.md#adding-a-parameter

@GeoDerp
Copy link
Contributor

GeoDerp commented Dec 25, 2024

@GeoDerp I tried to look at this but got a bit lost in those JS cripts ;-)
Could you please look at this?
I need to add an additional load forecasting method that I'm working right now, is this guide is up-to-date?: https://github.com/davidusb-geek/emhass/blob/master/docs/develop.md#adding-a-parameter

I believe this was fixed in 11.3 (one of the small things I fixed)

Edit: Yep still up to date,
and @overas was correct, it was fixed here: https://github.com/davidusb-geek/emhass/pull/370/files

If you are only adding another option for a existing parameter, editing param_definitions.json file should be all you need. (allowing the user to select the option from the configuration page)

    "load_forecast_method": {
      "friendly_name": "Load forecast method",
      "Description": "The load forecast method that will be used. The options are ‘csv’ to load a CSV file or ‘naive’ for a simple 1-day persistence model.",
      "input": "select",
      "select_options": [
        "naive",
        "mlforecaster",
        "csv",
        "CALL NEW OPTION"
      ],
      "default_value": "naive"
    },

@davidusb-geek
Copy link
Owner

Thanks.
I actually transferred the issue because I tested on my fresh update of v0.11.4 and the mlforecaster option was not there. Maybe I needed to refresh the browser

@GeoDerp
Copy link
Contributor

GeoDerp commented Dec 25, 2024

Thanks. I actually transferred the issue because I tested on my fresh update of v0.11.4 and the mlforecaster option was not there. Maybe I needed to refresh the browser

Just checked on my EMHASS v0.11.4, seems like its there, so im not sure. Maybe it is some sort of caching thing?

@overas
Copy link
Author

overas commented Dec 26, 2024

Home Assistent EMHASS v0.11.4 addon. I can now choose 'mlforecast' in Load forecast method with the web GUI and I can confirm it works. For me you can close this issue.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants