emerald-hws 0.0.8__tar.gz → 0.0.10__tar.gz

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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: emerald_hws
3
- Version: 0.0.8
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "emerald_hws"
7
- version = "0.0.8"
7
+ version = "0.0.10"
8
8
  dependencies = ["boto3", "awsiotsdk"]
9
9
  authors = [{ name = "Ross Williamson", email = "ross@inertia.net.nz" }]
10
10
  description = "A package to manipulate and monitor Emerald Heat Pump Hot Water Systems"
@@ -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
1
+ Metadata-Version: 2.2
2
2
  Name: emerald_hws
3
- Version: 0.0.8
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
File without changes
File without changes
File without changes