emhass 0.4.13__py3-none-any.whl → 0.4.14__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/retrieve_hass.py +3 -3
- {emhass-0.4.13.dist-info → emhass-0.4.14.dist-info}/METADATA +3 -3
- {emhass-0.4.13.dist-info → emhass-0.4.14.dist-info}/RECORD +6 -6
- {emhass-0.4.13.dist-info → emhass-0.4.14.dist-info}/WHEEL +0 -0
- {emhass-0.4.13.dist-info → emhass-0.4.14.dist-info}/entry_points.txt +0 -0
- {emhass-0.4.13.dist-info → emhass-0.4.14.dist-info}/top_level.txt +0 -0
emhass/retrieve_hass.py
CHANGED
@@ -223,7 +223,7 @@ class retrieve_hass:
|
|
223
223
|
list_df = copy.deepcopy(data_df).loc[data_df.index[idx]:].reset_index()
|
224
224
|
list_df.columns = ['timestamps', entity_id]
|
225
225
|
ts_list = [str(i) for i in list_df['timestamps'].tolist()]
|
226
|
-
vals_list = [str(np.round(i)) for i in list_df[entity_id].tolist()]
|
226
|
+
vals_list = [str(np.round(i,2)) for i in list_df[entity_id].tolist()]
|
227
227
|
forecast_list = []
|
228
228
|
for i, ts in enumerate(ts_list):
|
229
229
|
datum = {}
|
@@ -231,7 +231,7 @@ class retrieve_hass:
|
|
231
231
|
datum[entity_id.split('sensor.')[1]] = vals_list[i]
|
232
232
|
forecast_list.append(datum)
|
233
233
|
data = {
|
234
|
-
"state":
|
234
|
+
"state": "{:.2f}".format(state),
|
235
235
|
"attributes": {
|
236
236
|
"unit_of_measurement": unit_of_measurement,
|
237
237
|
"friendly_name": friendly_name,
|
@@ -307,7 +307,7 @@ class retrieve_hass:
|
|
307
307
|
friendly_name, "scheduled_forecast", state)
|
308
308
|
else:
|
309
309
|
data = {
|
310
|
-
"state":
|
310
|
+
"state": "{:.2f}".format(state),
|
311
311
|
"attributes": {
|
312
312
|
"unit_of_measurement": unit_of_measurement,
|
313
313
|
"friendly_name": friendly_name
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: emhass
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.14
|
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
|
@@ -30,7 +30,7 @@ Requires-Dist: pulp (>=2.4)
|
|
30
30
|
Requires-Dist: pyyaml (>=5.4.1)
|
31
31
|
Requires-Dist: netcdf4 (>=1.5.3)
|
32
32
|
Requires-Dist: tables (==3.7.0)
|
33
|
-
Requires-Dist: skforecast (==0.
|
33
|
+
Requires-Dist: skforecast (==0.9.1)
|
34
34
|
|
35
35
|
<div align="center">
|
36
36
|
<br>
|
@@ -389,7 +389,7 @@ Here is the list of the other additional dictionnary keys that can be passed at
|
|
389
389
|
|
390
390
|
- `SOCtarget` for the desired target value of initial and final SOC.
|
391
391
|
|
392
|
-
- `publish_prefix` use this key to pass a common prefix to all published data.
|
392
|
+
- `publish_prefix` use this key to pass a common prefix to all published data. This will add a prefix to the sensor name but also to the forecasts attributes keys within the sensor.
|
393
393
|
|
394
394
|
## A naive Model Predictive Controller
|
395
395
|
|
@@ -3,13 +3,13 @@ emhass/command_line.py,sha256=ROab6kyZfUh7L-kVl4YbZJeOr-slPTYL5YOqPF9Y0TM,36018
|
|
3
3
|
emhass/forecast.py,sha256=3zqFIKwfu5cjGGLDGUZ-j1eMu8sWlSAc679oGmIwPeo,43060
|
4
4
|
emhass/machine_learning_forecaster.py,sha256=Zhs8zcTn9E5yBNjdyYDPXjd2x6iQuqtL-QgaE74ODco,15633
|
5
5
|
emhass/optimization.py,sha256=xJGtIRU3TjEtfQSDoxf-eR2OX8c74HzFz1aTDcSdlWU,31220
|
6
|
-
emhass/retrieve_hass.py,sha256=
|
6
|
+
emhass/retrieve_hass.py,sha256=TRECIc_ZohY1MOVC5t7UjB0t9Ke3gNIn6x8ZrnBMGUo,16969
|
7
7
|
emhass/utils.py,sha256=OFb4VA7tooaUkTlqo7SPvBQPShsS5_wFE4KymJUH6KA,23644
|
8
8
|
emhass/web_server.py,sha256=zGN-xt7bh7wErbRPDQZcGEL8NWIhLlzJDKVBCdsbOP8,19684
|
9
9
|
emhass/static/style.css,sha256=5qGJl0MZGSaSvr0HUcGQ9UgMtDKP2CiyE-1H-jbsLuU,6760
|
10
10
|
emhass/templates/index.html,sha256=gdiq_mJQgiRBMEVfFyxpeqlndJJm1YprGb8R6SjS40k,6614
|
11
|
-
emhass-0.4.
|
12
|
-
emhass-0.4.
|
13
|
-
emhass-0.4.
|
14
|
-
emhass-0.4.
|
15
|
-
emhass-0.4.
|
11
|
+
emhass-0.4.14.dist-info/METADATA,sha256=goup4y0hGPWtD9qeYz8w72xEgJhynGRz4OHcTY0m4xk,28137
|
12
|
+
emhass-0.4.14.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
13
|
+
emhass-0.4.14.dist-info/entry_points.txt,sha256=tJULCm7mHGYb_IxyzPN_4KFYvhxv209_jq68jPiByy0,53
|
14
|
+
emhass-0.4.14.dist-info/top_level.txt,sha256=L7fIX4awfmxQbAePtSdVg2e6x_HhghfReHfsKSpKr9I,7
|
15
|
+
emhass-0.4.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|