emhass 0.11.0__py3-none-any.whl → 0.11.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- emhass/data/associations.csv +2 -0
- emhass/static/configuration_script.js +2 -1
- emhass/utils.py +12 -5
- emhass/web_server.py +0 -1
- {emhass-0.11.0.dist-info → emhass-0.11.1.dist-info}/METADATA +3 -3
- {emhass-0.11.0.dist-info → emhass-0.11.1.dist-info}/RECORD +10 -10
- {emhass-0.11.0.dist-info → emhass-0.11.1.dist-info}/LICENSE +0 -0
- {emhass-0.11.0.dist-info → emhass-0.11.1.dist-info}/WHEEL +0 -0
- {emhass-0.11.0.dist-info → emhass-0.11.1.dist-info}/entry_points.txt +0 -0
- {emhass-0.11.0.dist-info → emhass-0.11.1.dist-info}/top_level.txt +0 -0
emhass/data/associations.csv
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
config_categorie,legacy_parameter_name,parameter,list_name
|
2
|
+
retrieve_hass_conf,logging_level,logging_level
|
2
3
|
retrieve_hass_conf,freq,optimization_time_step
|
3
4
|
retrieve_hass_conf,days_to_retrieve,historic_days_to_retrieve
|
4
5
|
retrieve_hass_conf,var_PV,sensor_power_photovoltaics
|
@@ -13,6 +14,7 @@ params_secrets,time_zone,time_zone
|
|
13
14
|
params_secrets,lat,Latitude
|
14
15
|
params_secrets,lon,Longitude
|
15
16
|
params_secrets,alt,Altitude
|
17
|
+
optim_conf,costfun,costfun
|
16
18
|
optim_conf,set_use_battery,set_use_battery
|
17
19
|
optim_conf,num_def_loads,number_of_deferrable_loads
|
18
20
|
optim_conf,P_deferrable_nom,nominal_power_of_deferrable_loads,list_nominal_power_of_deferrable_loads
|
@@ -249,7 +249,7 @@ function buildParamContainers(
|
|
249
249
|
`;
|
250
250
|
}
|
251
251
|
|
252
|
-
//
|
252
|
+
//after looping though, build and appending the parameters in the corresponding section:
|
253
253
|
//create add button (array plus) event listeners
|
254
254
|
let plus = SectionContainer.querySelectorAll(".input-plus");
|
255
255
|
plus.forEach(function (answer) {
|
@@ -549,6 +549,7 @@ function headerElement(element, param_definitions, config) {
|
|
549
549
|
//if set_use_battery, add or remove battery section (inc. params)
|
550
550
|
case "set_use_battery":
|
551
551
|
if (element.checked) {
|
552
|
+
param_container.innerHTML = "";
|
552
553
|
buildParamContainers("Battery", param_definitions["Battery"], config, [
|
553
554
|
"set_use_battery",
|
554
555
|
]);
|
emhass/utils.py
CHANGED
@@ -314,9 +314,16 @@ def treat_runtimeparams(runtimeparams: str, params: str, retrieve_hass_conf: dic
|
|
314
314
|
else:
|
315
315
|
def_end_timestep = runtimeparams.get(
|
316
316
|
'def_end_timestep', optim_conf['end_timesteps_of_each_deferrable_load'])
|
317
|
-
params["passed_data"][
|
318
|
-
forecast_dates = copy.deepcopy(forecast_dates)[
|
319
|
-
|
317
|
+
params["passed_data"]["end_timesteps_of_each_deferrable_load"] = def_end_timestep
|
318
|
+
forecast_dates = copy.deepcopy(forecast_dates)[0:prediction_horizon]
|
319
|
+
# Load the default config
|
320
|
+
if "def_load_config" in optim_conf:
|
321
|
+
for k in range(len(optim_conf["def_load_config"])):
|
322
|
+
if "thermal_config" in optim_conf["def_load_config"][k]:
|
323
|
+
if ("heater_desired_temperatures" in runtimeparams and len(runtimeparams["heater_desired_temperatures"]) > k):
|
324
|
+
optim_conf["def_load_config"][k]["thermal_config"]["desired_temperatures"] = runtimeparams["heater_desired_temperatures"][k]
|
325
|
+
if ("heater_start_temperatures" in runtimeparams and len(runtimeparams["heater_start_temperatures"]) > k):
|
326
|
+
optim_conf["def_load_config"][k]["thermal_config"]["start_temperature"] = runtimeparams["heater_start_temperatures"][k]
|
320
327
|
else:
|
321
328
|
params["passed_data"]["prediction_horizon"] = None
|
322
329
|
params["passed_data"]["soc_init"] = None
|
@@ -843,7 +850,7 @@ def build_config(emhass_conf: dict, logger: logging.Logger, defaults_path: str,
|
|
843
850
|
logger.info("Obtaining parameters from config.json:")
|
844
851
|
config.update(json.load(data))
|
845
852
|
else:
|
846
|
-
logger.info("config.json does not exist, or has not been passed")
|
853
|
+
logger.info("config.json does not exist, or has not been passed. config parameters may default to config_defaults.json")
|
847
854
|
logger.info("you may like to generate the config.json file on the configuration page")
|
848
855
|
|
849
856
|
# Check to see if legacy config_emhass.yaml was provided (default /app/config_emhass.yaml)
|
@@ -853,7 +860,7 @@ def build_config(emhass_conf: dict, logger: logging.Logger, defaults_path: str,
|
|
853
860
|
legacy_config = yaml.load(data, Loader=yaml.FullLoader)
|
854
861
|
legacy_config_parameters = build_legacy_config_params(emhass_conf,legacy_config,logger)
|
855
862
|
if type(legacy_config_parameters) is not bool:
|
856
|
-
logger.info("Obtaining parameters from config_emhass.yaml:")
|
863
|
+
logger.info("Obtaining parameters from config_emhass.yaml: (will overwrite config parameters)")
|
857
864
|
config.update(legacy_config_parameters)
|
858
865
|
|
859
866
|
return config
|
emhass/web_server.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: emhass
|
3
|
-
Version: 0.11.
|
3
|
+
Version: 0.11.1
|
4
4
|
Summary: An Energy Management System for Home Assistant
|
5
5
|
Home-page: https://github.com/davidusb-geek/emhass
|
6
6
|
Author: David HERNANDEZ
|
@@ -164,7 +164,7 @@ _Note: Both EMHASS via Docker and EMHASS-Add-on contain the same Docker image. T
|
|
164
164
|
You can also install EMHASS using Docker as a container. This can be in the same machine as Home Assistant (if your running Home Assistant as a Docker container) or in a different distant machine. To install first pull the latest image:
|
165
165
|
```bash
|
166
166
|
# pull Docker image
|
167
|
-
docker
|
167
|
+
docker pull ghcr.io/davidusb-geek/emhass:latest
|
168
168
|
# run Docker image, mounting config.json and secrets_emhass.yaml from host
|
169
169
|
docker run --rm -it --restart always -p 5000:5000 --name emhass-container -v ./config.json:/share/config.json -v ./secrets_emhass.yaml:/app/secrets_emhass.yaml ghcr.io/davidusb-geek/emhass:latest
|
170
170
|
```
|
@@ -173,7 +173,7 @@ docker run --rm -it --restart always -p 5000:5000 --name emhass-container -v ./
|
|
173
173
|
You can also build your image locally. For this clone this repository, and build the image from the Dockerfile:
|
174
174
|
```bash
|
175
175
|
# git clone EMHASS repo
|
176
|
-
git clone
|
176
|
+
git clone https://github.com/davidusb-geek/emhass.git
|
177
177
|
# move to EMHASS directory
|
178
178
|
cd emhass
|
179
179
|
# build Docker image
|
@@ -5,16 +5,16 @@ emhass/machine_learning_forecaster.py,sha256=UP9YR3NSt-b_5i2b8wMAfXRWeMnJjSkBXnX
|
|
5
5
|
emhass/machine_learning_regressor.py,sha256=QMAokLgEjvQ8Xy5gYZBQGQTzh2zgg6d6iydoPmy0QeI,10546
|
6
6
|
emhass/optimization.py,sha256=IagqVYN2k8KFtQ0ZUZWab6egmDvpkYSQG8qyBmoWvyM,50877
|
7
7
|
emhass/retrieve_hass.py,sha256=jLh8nSpsdeZJCaI7qKxAcZYpH8OKouMHz1OiezqLuqc,23430
|
8
|
-
emhass/utils.py,sha256=
|
9
|
-
emhass/web_server.py,sha256=
|
10
|
-
emhass/data/associations.csv,sha256=
|
8
|
+
emhass/utils.py,sha256=_wCO_88Ycn0Gd5EcGHMBcyI9NQ-saWunGzvZVqufn-o,65336
|
9
|
+
emhass/web_server.py,sha256=QALTX0We82qToxiCnX2SocgkjlUsHLubqJ5WrCWO3P0,27229
|
10
|
+
emhass/data/associations.csv,sha256=GFE_4ptHT6qno0lJt_rEeOXBqkLd759GNqXEVp4x2Po,3654
|
11
11
|
emhass/data/cec_inverters.pbz2,sha256=tK8FvAUDW0uYez8EPttdCJwHhpPofclYV6GhhNZL0Pk,168272
|
12
12
|
emhass/data/cec_modules.pbz2,sha256=8vEaysgYffXg3KUl8XSF36Mdywzi3LpEtUN_qenjO9s,1655747
|
13
13
|
emhass/data/config_defaults.json,sha256=GKw2p3jObwMY1wAR_D_x8T8eNzQgu3awNQnIBuBwhJE,2791
|
14
14
|
emhass/static/advanced.html,sha256=gAhsd14elDwh1Ts4lf9wn_ZkczzzObq5qOimi_la3Ic,2067
|
15
15
|
emhass/static/basic.html,sha256=ro2WwWgJyoUhqx_nJFzKCEG8FA8863vSHLmrjGYcEgs,677
|
16
16
|
emhass/static/configuration_list.html,sha256=4ZAL-4YXdofnx17np-v39Yt3qW2TWbSzNBkj86bpvIg,1578
|
17
|
-
emhass/static/configuration_script.js,sha256=
|
17
|
+
emhass/static/configuration_script.js,sha256=PQYZHWMb0dohrw3hI7HeIXNEae6PamIvvs84IePLThw,31097
|
18
18
|
emhass/static/script.js,sha256=q3qTqc_pTLTK-0NPKurxFXcJ2vZLz4TctPfUgz09ygo,16291
|
19
19
|
emhass/static/style.css,sha256=a_8YlGubn1zoF5RTLJ_Qkrb8tAjUY9p7oAKxhCvJY2s,19288
|
20
20
|
emhass/static/data/param_definitions.json,sha256=Nq4dnSmug0mWU8JooqVayKa67NQ2b6k30Z-ac2BJcys,19158
|
@@ -24,9 +24,9 @@ emhass/static/img/feather-sprite.svg,sha256=VHjMJQg88wXa9CaeYrKGhNtyK0xdd47zCqwS
|
|
24
24
|
emhass/templates/configuration.html,sha256=yS9p730GHf99ZYK0NiZjkuaxPjH1ZFo8R6xL5c1ZZ9s,2885
|
25
25
|
emhass/templates/index.html,sha256=Ehn-hUdraIwX_5Usb5Liz1ip24NfztmCxsi0J4Tf3-A,3076
|
26
26
|
emhass/templates/template.html,sha256=TkGgMecQEbFUZA4ymPwMUzNjKHsENvCgroUWbPt7G4Y,158
|
27
|
-
emhass-0.11.
|
28
|
-
emhass-0.11.
|
29
|
-
emhass-0.11.
|
30
|
-
emhass-0.11.
|
31
|
-
emhass-0.11.
|
32
|
-
emhass-0.11.
|
27
|
+
emhass-0.11.1.dist-info/LICENSE,sha256=1X3-S1yvOCBDBeox1aK3dq00m7dA8NDtcPrpKPISzbE,1077
|
28
|
+
emhass-0.11.1.dist-info/METADATA,sha256=x9mxnfO20GSc2HsZn375WlEKWMOreP9cNvOWpOQz3WI,48843
|
29
|
+
emhass-0.11.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
30
|
+
emhass-0.11.1.dist-info/entry_points.txt,sha256=6Bp1NFOGNv_fSTxYl1ke3K3h3aqAcBxI-bgq5yq-i1M,52
|
31
|
+
emhass-0.11.1.dist-info/top_level.txt,sha256=L7fIX4awfmxQbAePtSdVg2e6x_HhghfReHfsKSpKr9I,7
|
32
|
+
emhass-0.11.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|