emerald-hws 0.0.9__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.9
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.9"
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"
@@ -311,6 +311,13 @@ class EmeraldHWS():
311
311
  switch_status = self.getFullStatus(id).get("last_state").get("switch")
312
312
  return (switch_status == 1 or switch_status == "on")
313
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
+
314
321
  def currentMode(self, id):
315
322
  """ Returns an integer specifying the current mode (0==boost, 1==normal, 2==quiet)
316
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.9
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