emerald-hws 0.0.8__py3-none-any.whl → 0.0.10__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.
- emerald_hws/emeraldhws.py +13 -0
- {emerald_hws-0.0.8.dist-info → emerald_hws-0.0.10.dist-info}/METADATA +2 -2
- emerald_hws-0.0.10.dist-info/RECORD +8 -0
- {emerald_hws-0.0.8.dist-info → emerald_hws-0.0.10.dist-info}/WHEEL +1 -1
- emerald_hws-0.0.8.dist-info/RECORD +0 -8
- {emerald_hws-0.0.8.dist-info → emerald_hws-0.0.10.dist-info}/LICENSE +0 -0
- {emerald_hws-0.0.8.dist-info → emerald_hws-0.0.10.dist-info}/top_level.txt +0 -0
emerald_hws/emeraldhws.py
CHANGED
@@ -81,6 +81,12 @@ class EmeraldHWS():
|
|
81
81
|
else:
|
82
82
|
raise Exception("Unable to fetch properties from Emerald API")
|
83
83
|
|
84
|
+
def replaceCallback(self, update_callback):
|
85
|
+
""" Replaces the current registered update callback (if any) with the supplied
|
86
|
+
"""
|
87
|
+
|
88
|
+
self.update_callback = update_callback
|
89
|
+
|
84
90
|
def reconnectMQTT(self):
|
85
91
|
""" Stops an existing MQTT connection and creates a new one
|
86
92
|
"""
|
@@ -305,6 +311,13 @@ class EmeraldHWS():
|
|
305
311
|
switch_status = self.getFullStatus(id).get("last_state").get("switch")
|
306
312
|
return (switch_status == 1 or switch_status == "on")
|
307
313
|
|
314
|
+
def isHeating(self, id):
|
315
|
+
""" Returns true if the specified HWS is currently heating
|
316
|
+
:param id: The UUID of the HWS to query
|
317
|
+
"""
|
318
|
+
heating_status = self.getFullStatus(id).get("device_operation_status")
|
319
|
+
return (heating_status == 1)
|
320
|
+
|
308
321
|
def currentMode(self, id):
|
309
322
|
""" Returns an integer specifying the current mode (0==boost, 1==normal, 2==quiet)
|
310
323
|
:param id: The UUID of the HWS to query
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: emerald_hws
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.10
|
4
4
|
Summary: A package to manipulate and monitor Emerald Heat Pump Hot Water Systems
|
5
5
|
Author-email: Ross Williamson <ross@inertia.net.nz>
|
6
6
|
Project-URL: Homepage, https://github.com/ross-w/emerald_hws_py
|
@@ -0,0 +1,8 @@
|
|
1
|
+
emerald_hws/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
2
|
+
emerald_hws/emeraldhws.py,sha256=aAH2x5f9c5sw2NBg0BSbPJ0iuzNdLaXWvWMK7h2hYeY,14361
|
3
|
+
emerald_hws/__assets__/SFSRootCAG2.pem,sha256=hw9W0AnYrrlbcWsOewAgIl1ULEsoO57Ylu35dCjWcS4,1424
|
4
|
+
emerald_hws-0.0.10.dist-info/LICENSE,sha256=zzMi56JX7OO-epbXNfe_oFW6sfZHSlO7Yxm0Oh0V014,1072
|
5
|
+
emerald_hws-0.0.10.dist-info/METADATA,sha256=8TYWMzh7CgGm7WBoOAdUwNyKzv0k2--LGRti97PM7DU,689
|
6
|
+
emerald_hws-0.0.10.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
7
|
+
emerald_hws-0.0.10.dist-info/top_level.txt,sha256=ZCiUmnBkDr2n4QVkTet1s_AKiGJjuz3heuCR5w5ZqLY,12
|
8
|
+
emerald_hws-0.0.10.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
emerald_hws/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
2
|
-
emerald_hws/emeraldhws.py,sha256=tsTBTs0ZrBgAkvERT6FqYI8iNqFEkg4LvLijnsWp3eY,13892
|
3
|
-
emerald_hws/__assets__/SFSRootCAG2.pem,sha256=hw9W0AnYrrlbcWsOewAgIl1ULEsoO57Ylu35dCjWcS4,1424
|
4
|
-
emerald_hws-0.0.8.dist-info/LICENSE,sha256=zzMi56JX7OO-epbXNfe_oFW6sfZHSlO7Yxm0Oh0V014,1072
|
5
|
-
emerald_hws-0.0.8.dist-info/METADATA,sha256=4AvoaGEg0ITTsgGTW24_mbDu83ECe-ovrE0c5VQgKms,688
|
6
|
-
emerald_hws-0.0.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
7
|
-
emerald_hws-0.0.8.dist-info/top_level.txt,sha256=ZCiUmnBkDr2n4QVkTet1s_AKiGJjuz3heuCR5w5ZqLY,12
|
8
|
-
emerald_hws-0.0.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|