emhass 0.13.0__py3-none-any.whl → 0.13.2__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/__init__.py +0 -0
- emhass/command_line.py +1891 -0
- emhass/data/associations.csv +71 -0
- emhass/data/cec_inverters.pbz2 +0 -0
- emhass/data/cec_modules.pbz2 +0 -0
- emhass/data/config_defaults.json +128 -0
- emhass/forecast.py +1768 -0
- emhass/img/emhass_icon.png +0 -0
- emhass/machine_learning_forecaster.py +386 -0
- emhass/machine_learning_regressor.py +245 -0
- emhass/optimization.py +1548 -0
- emhass/retrieve_hass.py +712 -0
- emhass/static/advanced.html +36 -0
- emhass/static/basic.html +14 -0
- emhass/static/configuration_list.html +48 -0
- emhass/static/configuration_script.js +888 -0
- emhass/static/data/param_definitions.json +482 -0
- emhass/static/img/emhass_icon.png +0 -0
- emhass/static/img/emhass_logo_short.svg +544 -0
- emhass/static/img/feather-sprite.svg +1 -0
- emhass/static/script.js +443 -0
- emhass/static/style.css +1373 -0
- emhass/templates/configuration.html +75 -0
- emhass/templates/index.html +77 -0
- emhass/templates/template.html +5 -0
- emhass/utils.py +1764 -0
- emhass/web_server.py +753 -0
- {emhass-0.13.0.dist-info → emhass-0.13.2.dist-info}/METADATA +13 -4
- emhass-0.13.2.dist-info/RECORD +32 -0
- emhass-0.13.0.dist-info/RECORD +0 -5
- {emhass-0.13.0.dist-info → emhass-0.13.2.dist-info}/WHEEL +0 -0
- {emhass-0.13.0.dist-info → emhass-0.13.2.dist-info}/entry_points.txt +0 -0
- {emhass-0.13.0.dist-info → emhass-0.13.2.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
<!-- Configuration page html -->
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html class="adaptive">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>EMHASS: Energy Management Optimization for Home Assistant</title>
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8
|
+
<link rel="stylesheet" type="text/css" href="static/style.css?version=1">
|
9
|
+
<link rel="icon" type="image/x-icon" href="static/img/emhass_logo_short.svg">
|
10
|
+
<script src="static/configuration_script.js"></script>
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body style="margin: auto; align-items:center; text-align:center;">
|
14
|
+
|
15
|
+
<div>
|
16
|
+
<!-- Icons by feather https://github.com/feathericons/feather -->
|
17
|
+
<div id="top-links">
|
18
|
+
<!-- index page -->
|
19
|
+
<a href="index" title="Home" style="margin-right: 12px; cursor: pointer; z-index: 1">
|
20
|
+
<svg class="feather">
|
21
|
+
<use class="feather" href="static/img/feather-sprite.svg#home" />
|
22
|
+
</svg>
|
23
|
+
</a>
|
24
|
+
<a href="https://emhass.readthedocs.io/en/latest/">
|
25
|
+
<svg class="feather" title="EMHASS Docs" style="margin-right: 12px;" ;>
|
26
|
+
<use class="feather" href="static/img/feather-sprite.svg#book" />
|
27
|
+
</svg>
|
28
|
+
</a>
|
29
|
+
<a href="https://github.com/davidusb-geek/emhass" target="_blank" rel="noopener noreferrer">
|
30
|
+
<svg class="feather" title="EMHASS Git repo" style="margin-right: 0px;">
|
31
|
+
<use class="feather" href="static/img/feather-sprite.svg#git-branch" />
|
32
|
+
</svg>
|
33
|
+
</a>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<!-- Title -->
|
37
|
+
<img src="static/img/emhass_icon.png" alt="">
|
38
|
+
<h2>EMHASS: Energy Management Optimization for Home Assistant</h2>
|
39
|
+
</div>
|
40
|
+
<div class="header-footer">
|
41
|
+
<h4>Configuration:</h4>
|
42
|
+
<a id="json-toggle" title="List and Box view toggle">
|
43
|
+
<svg id="json" class="feather" class="header-footer-button">
|
44
|
+
<use class="feather" href="static/img/feather-sprite.svg#code" />
|
45
|
+
</svg>
|
46
|
+
</a>
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<!-- parameter list/box elements section -->
|
50
|
+
<div id=configuration-container>
|
51
|
+
</div>
|
52
|
+
<!-- configuration buttons (defaults, save, yaml) -->
|
53
|
+
<div class="save_button header-footer">
|
54
|
+
<button style="margin-right: 5px;" type="button" id="yaml" title="Convert yaml to json" class="">YAML</button>
|
55
|
+
<button type="button" id="defaults" title="Restore to default parameter values" class="">Defaults</button>
|
56
|
+
<button type="button" id="save" title="Save Config to EMHASS" class="">Save</button>
|
57
|
+
<div class="loading-div"> <!-- dynamic tick/cross element -->
|
58
|
+
<div id=loader></div>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<!-- alert box -->
|
62
|
+
<div style="display: none;" id="alert" class="alert">
|
63
|
+
<div>
|
64
|
+
<span onclick="this.parentElement.parentElement.style.display='none';">×</span>
|
65
|
+
<p id="alert-text"></p>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<footer class="footer">
|
69
|
+
<p style="margin-top:10px; text-align:center;">© MIT License | Copyright (c) 2021-2025 David
|
70
|
+
HERNANDEZ</p>
|
71
|
+
</footer>
|
72
|
+
</div>
|
73
|
+
</body>
|
74
|
+
|
75
|
+
</html>
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<!-- Index page html -->
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html class="adaptive">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>EMHASS: Energy Management Optimization for Home Assistant</title>
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8
|
+
<link rel="stylesheet" type="text/css" href="static/style.css?version=1">
|
9
|
+
<link rel="icon" type="image/x-icon" href="static/img/emhass_logo_short.svg">
|
10
|
+
<script src="static/script.js"></script>
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body style="margin: auto; align-items:center; text-align:center;">
|
14
|
+
|
15
|
+
<div>
|
16
|
+
<!-- Icons by feather https://github.com/feathericons/feather -->
|
17
|
+
<div id="top-links">
|
18
|
+
<!-- configuration page -->
|
19
|
+
<a href="configuration" title="Configuration Page" style="margin-right: 12px; cursor: pointer; z-index: 1">
|
20
|
+
<svg class="feather">
|
21
|
+
<use class="feather" href="static/img/feather-sprite.svg#settings" />
|
22
|
+
</svg>
|
23
|
+
</a>
|
24
|
+
<!-- advanced or basic page switch -->
|
25
|
+
<a id="basicOrAdvanced" title="Advanced Toggle" style="margin-right: 24px; cursor: pointer; z-index: 1">
|
26
|
+
<svg class="feather">
|
27
|
+
<use class="feather" href="static/img/feather-sprite.svg#tool" />
|
28
|
+
</svg>
|
29
|
+
</a>
|
30
|
+
<a href="https://emhass.readthedocs.io/en/latest/">
|
31
|
+
<svg class="feather" title="EMHASS Docs" style="margin-right: 12px;" ;>
|
32
|
+
<use class="feather" href="static/img/feather-sprite.svg#book" />
|
33
|
+
</svg>
|
34
|
+
</a>
|
35
|
+
<a href="https://github.com/davidusb-geek/emhass" target="_blank" rel="noopener noreferrer">
|
36
|
+
<svg class="feather" title="EMHASS Git repo" style="margin-right: 0px;">
|
37
|
+
<use class="feather" href="static/img/feather-sprite.svg#git-branch" />
|
38
|
+
</svg>
|
39
|
+
</a>
|
40
|
+
</div>
|
41
|
+
<!-- Title -->
|
42
|
+
<img src="static/img/emhass_icon.png" alt="">
|
43
|
+
<h2>EMHASS: Energy Management Optimization for Home Assistant</h2>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
|
47
|
+
<div class="center">
|
48
|
+
<div id=TabSelection class="form">
|
49
|
+
<!-- Basic and Advance pages will be dynamically loaded here -->
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
<!-- alert box element -->
|
53
|
+
<div style="display: none;" id="alert" class="alert">
|
54
|
+
<div>
|
55
|
+
<span onclick="this.parentElement.parentElement.style.display='none';">×</span>
|
56
|
+
<p id="alert-text"></p>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
<br>
|
60
|
+
|
61
|
+
<!-- dynamic table/diagram elements section -->
|
62
|
+
</div>
|
63
|
+
<div id="template"> <!-- table/diagram container element -->
|
64
|
+
{% for plot in injection_dict %} <!-- diagrams/tables elements will be added here -->
|
65
|
+
<div class="table_div">
|
66
|
+
{{injection_dict[plot]}}
|
67
|
+
</div>
|
68
|
+
{% endfor %}
|
69
|
+
<div>
|
70
|
+
|
71
|
+
<footer class="footer">
|
72
|
+
<p style="margin-top:10px; text-align:center;">© MIT License | Copyright (c) 2021-2025 David
|
73
|
+
HERNANDEZ</p>
|
74
|
+
</footer>
|
75
|
+
</body>
|
76
|
+
|
77
|
+
</html>
|