emhass 0.11.4__py3-none-any.whl → 0.15.5__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/command_line.py +1481 -811
- emhass/connection_manager.py +108 -0
- emhass/data/associations.csv +37 -2
- emhass/data/cec_inverters.pbz2 +0 -0
- emhass/data/cec_modules.pbz2 +0 -0
- emhass/data/config_defaults.json +53 -49
- emhass/forecast.py +1264 -731
- emhass/img/emhass_icon.png +0 -0
- emhass/machine_learning_forecaster.py +534 -281
- emhass/machine_learning_regressor.py +141 -125
- emhass/optimization.py +1173 -585
- emhass/retrieve_hass.py +958 -263
- emhass/static/advanced.html +7 -0
- emhass/static/configuration_list.html +5 -1
- emhass/static/configuration_script.js +146 -62
- emhass/static/data/param_definitions.json +215 -48
- emhass/static/script.js +58 -26
- emhass/static/style.css +6 -8
- emhass/templates/configuration.html +5 -3
- emhass/templates/index.html +8 -6
- emhass/templates/template.html +4 -5
- emhass/utils.py +1152 -403
- emhass/web_server.py +565 -379
- emhass/websocket_client.py +224 -0
- emhass-0.15.5.dist-info/METADATA +164 -0
- emhass-0.15.5.dist-info/RECORD +34 -0
- {emhass-0.11.4.dist-info → emhass-0.15.5.dist-info}/WHEEL +1 -2
- emhass-0.15.5.dist-info/entry_points.txt +2 -0
- emhass-0.11.4.dist-info/METADATA +0 -666
- emhass-0.11.4.dist-info/RECORD +0 -32
- emhass-0.11.4.dist-info/entry_points.txt +0 -2
- emhass-0.11.4.dist-info/top_level.txt +0 -1
- {emhass-0.11.4.dist-info → emhass-0.15.5.dist-info/licenses}/LICENSE +0 -0
emhass/static/style.css
CHANGED
|
@@ -162,7 +162,6 @@ a:active {
|
|
|
162
162
|
|
|
163
163
|
a:active,
|
|
164
164
|
a:hover {
|
|
165
|
-
outline-width: 0;
|
|
166
165
|
outline: 0;
|
|
167
166
|
}
|
|
168
167
|
|
|
@@ -217,7 +216,7 @@ blockquote> :last-child {
|
|
|
217
216
|
margin-bottom: 0;
|
|
218
217
|
}
|
|
219
218
|
|
|
220
|
-
|
|
219
|
+
b,
|
|
221
220
|
strong {
|
|
222
221
|
font-weight: inherit;
|
|
223
222
|
font-weight: 600;
|
|
@@ -338,7 +337,6 @@ hr::after {
|
|
|
338
337
|
}
|
|
339
338
|
|
|
340
339
|
img {
|
|
341
|
-
border-style: none;
|
|
342
340
|
border: 0;
|
|
343
341
|
max-width: 50%;
|
|
344
342
|
}
|
|
@@ -451,6 +449,7 @@ html [type="button"],
|
|
|
451
449
|
[type="reset"],
|
|
452
450
|
[type="submit"] {
|
|
453
451
|
-webkit-appearance: button;
|
|
452
|
+
appearance: button;
|
|
454
453
|
}
|
|
455
454
|
|
|
456
455
|
button::-moz-focus-inner,
|
|
@@ -503,6 +502,7 @@ textarea {
|
|
|
503
502
|
|
|
504
503
|
[type="search"] {
|
|
505
504
|
-webkit-appearance: textfield;
|
|
505
|
+
appearance: textfield;
|
|
506
506
|
outline-offset: -2px;
|
|
507
507
|
}
|
|
508
508
|
|
|
@@ -679,7 +679,7 @@ button {
|
|
|
679
679
|
.mystyle,
|
|
680
680
|
.main-svg {
|
|
681
681
|
font-size: 11pt;
|
|
682
|
-
font-family: Arial;
|
|
682
|
+
font-family: Arial, sans-serif;
|
|
683
683
|
border-collapse: collapse;
|
|
684
684
|
border-style: hidden;
|
|
685
685
|
}
|
|
@@ -919,7 +919,7 @@ select,
|
|
|
919
919
|
.input-buttons {
|
|
920
920
|
max-width: 50%;
|
|
921
921
|
display: flex;
|
|
922
|
-
align-items:
|
|
922
|
+
align-items: center;
|
|
923
923
|
align-self: center;
|
|
924
924
|
align-items: center;
|
|
925
925
|
box-sizing: inherit;
|
|
@@ -1158,9 +1158,7 @@ input:checked+.slider:before {
|
|
|
1158
1158
|
|
|
1159
1159
|
.param h5,
|
|
1160
1160
|
p {
|
|
1161
|
-
margin: 5px;
|
|
1162
|
-
margin-left: 0px;
|
|
1163
|
-
margin-bottom: 0px;
|
|
1161
|
+
margin: 5px 5px 0 0;
|
|
1164
1162
|
}
|
|
1165
1163
|
|
|
1166
1164
|
.param button {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Configuration page html -->
|
|
2
2
|
<!DOCTYPE html>
|
|
3
|
-
<html class="adaptive">
|
|
3
|
+
<html lang="en" class="adaptive">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
6
|
<title>EMHASS: Energy Management Optimization for Home Assistant</title>
|
|
@@ -61,12 +61,14 @@
|
|
|
61
61
|
<!-- alert box -->
|
|
62
62
|
<div style="display: none;" id="alert" class="alert">
|
|
63
63
|
<div>
|
|
64
|
-
<
|
|
64
|
+
<button type="button" class="close-btn" onclick="this.parentElement.parentElement.style.display='none';" aria-label="Close">
|
|
65
|
+
×
|
|
66
|
+
</button>
|
|
65
67
|
<p id="alert-text"></p>
|
|
66
68
|
</div>
|
|
67
69
|
</div>
|
|
68
70
|
<footer class="footer">
|
|
69
|
-
<p style="margin-top:10px; text-align:center;">© MIT License | Copyright (c) 2021-
|
|
71
|
+
<p style="margin-top:10px; text-align:center;">© MIT License | Copyright (c) 2021-2025 David
|
|
70
72
|
HERNANDEZ</p>
|
|
71
73
|
</footer>
|
|
72
74
|
</div>
|
emhass/templates/index.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<!-- Index page html -->
|
|
2
2
|
<!DOCTYPE html>
|
|
3
|
-
<html class="adaptive">
|
|
3
|
+
<html lang="en" class="adaptive">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>EMHASS: Energy Management Optimization for Home Assistant</title>
|
|
6
|
+
<meta charset="UTF-8"> <title>EMHASS: Energy Management Optimization for Home Assistant</title>
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
8
|
<link rel="stylesheet" type="text/css" href="static/style.css?version=1">
|
|
9
9
|
<link rel="icon" type="image/x-icon" href="static/img/emhass_logo_short.svg">
|
|
@@ -52,7 +52,9 @@
|
|
|
52
52
|
<!-- alert box element -->
|
|
53
53
|
<div style="display: none;" id="alert" class="alert">
|
|
54
54
|
<div>
|
|
55
|
-
<
|
|
55
|
+
<button type="button" class="close-btn" onclick="this.parentElement.parentElement.style.display='none';" aria-label="Close">
|
|
56
|
+
×
|
|
57
|
+
</button>
|
|
56
58
|
<p id="alert-text"></p>
|
|
57
59
|
</div>
|
|
58
60
|
</div>
|
|
@@ -63,15 +65,15 @@
|
|
|
63
65
|
<div id="template"> <!-- table/diagram container element -->
|
|
64
66
|
{% for plot in injection_dict %} <!-- diagrams/tables elements will be added here -->
|
|
65
67
|
<div class="table_div">
|
|
66
|
-
{{injection_dict[plot]}}
|
|
68
|
+
{{injection_dict[plot] | mark_safe}}
|
|
67
69
|
</div>
|
|
68
70
|
{% endfor %}
|
|
69
71
|
<div>
|
|
70
72
|
|
|
71
73
|
<footer class="footer">
|
|
72
|
-
<p style="margin-top:10px; text-align:center;">© MIT License | Copyright (c) 2021-
|
|
74
|
+
<p style="margin-top:10px; text-align:center;">© MIT License | Copyright (c) 2021-2025 David
|
|
73
75
|
HERNANDEZ</p>
|
|
74
76
|
</footer>
|
|
75
77
|
</body>
|
|
76
78
|
|
|
77
|
-
</html>
|
|
79
|
+
</html>
|
emhass/templates/template.html
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
{% for plot in injection_dict %}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
{% endfor %}
|
|
1
|
+
{% for plot in injection_dict %}
|
|
2
|
+
<!-- diagrams/tables elements will be added here -->
|
|
3
|
+
<div class="table_div">{{injection_dict[plot] | mark_safe}}</div>
|
|
4
|
+
{% endfor %}
|