Closed tomasbedrich closed 4 months ago
You are right. It was always 2 and that's what is reflected in the documentation and it is what is logic for some forecast methods. But at some point we changed it for testing and it wrongly stayed at 8. Fixed: https://github.com/davidusb-geek/emhass/commit/f7e98416ae84e1e7989e0bd2f6b364b579a75da5
Thanks for the fix.
Perhaps there is some way to synchronize the values so that it doesn't happen again in future?
I can't come up with an easy way to synchronize these values, these are two separate config file, one from the add-on and the other with the default values. Any suggestions are welcome. Closing for now.
Describe the bug Default value of
days_to_retrieve
in HASS addon is described to be 2, while in reality it is 8.To Reproduce Install EMHASS addon and configure it (leave
days_to_retrieve
default), create a newsensor.house_consumption_no_var_loads
, let it collecting values for 3 days, attempt to run Perfect optim.Expected behavior Perfect optim should pass.
Screenshots
Home Assistant installation type
Your hardware
EMHASS installation type
Additional context
additional log output manually added to https://github.com/davidusb-geek/emhass/blob/master/src/emhass/retrieve_hass.py#L116 - note the datetime which it attempts to load data for: