Added support to retrieve configuration data directly from HA #399
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR two main new features are introduced:
This will avoid the need to define some of this parameters in the secrets file.
For now implemented automatic currency and temperature units.
But in the future we could also use the imported altitude, latitude, longitude, etc.
This new method will be useful to new installations as it is based on just a typical household consumption and some basic statistic methods. So a new user installing EMHASS don't need to provide data from a sensor to use the current default method which is the naive persistance.
To completely make it very easy to install we need to do something similar with the PV. A first option could be to add a on/off switch to consider a PV installation or not (as we are doing for the battery), then make the no PV installation option as the default.
With these two changes a new install needs minimal configuration and we can obtain optimization results quickly.