pyControl4 1.3.0__tar.gz → 1.4.0__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.
Files changed (22) hide show
  1. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/PKG-INFO +1 -1
  2. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/climate.py +31 -7
  3. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4.egg-info/PKG-INFO +1 -1
  4. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/setup.py +1 -1
  5. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/LICENSE +0 -0
  6. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/README.md +0 -0
  7. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/__init__.py +0 -0
  8. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/account.py +0 -0
  9. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/alarm.py +0 -0
  10. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/blind.py +0 -0
  11. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/director.py +0 -0
  12. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/error_handling.py +0 -0
  13. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/fan.py +0 -0
  14. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/light.py +0 -0
  15. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/relay.py +0 -0
  16. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/room.py +0 -0
  17. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4/websocket.py +0 -0
  18. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4.egg-info/SOURCES.txt +0 -0
  19. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4.egg-info/dependency_links.txt +0 -0
  20. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4.egg-info/requires.txt +0 -0
  21. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/pyControl4.egg-info/top_level.txt +0 -0
  22. {pycontrol4-1.3.0 → pycontrol4-1.4.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyControl4
3
- Version: 1.3.0
3
+ Version: 1.4.0
4
4
  Summary: Python 3 asyncio package for interacting with Control4 systems
5
5
  Home-page: https://github.com/lawtancool/pyControl4
6
6
  Author: lawtancool
@@ -43,10 +43,18 @@ class C4Climate(C4Entity):
43
43
  async def getCoolSetpointF(self):
44
44
  """Returns the cooling setpoint temperature in Fahrenheit."""
45
45
  return await self.director.getItemVariableValue(self.item_id, "COOL_SETPOINT_F")
46
+
47
+ async def getCoolSetpointC(self):
48
+ """Returns the cooling setpoint temperature in Celsius."""
49
+ return await self.director.getItemVariableValue(self.item_id, "COOL_SETPOINT_C")
46
50
 
47
51
  async def getHeatSetpointF(self):
48
52
  """Returns the heating setpoint temperature in Fahrenheit."""
49
53
  return await self.director.getItemVariableValue(self.item_id, "HEAT_SETPOINT_F")
54
+
55
+ async def getHeatSetpointC(self):
56
+ """Returns the heating setpoint temperature in Celsius."""
57
+ return await self.director.getItemVariableValue(self.item_id, "HEAT_SETPOINT_C")
50
58
 
51
59
  # ------------------------
52
60
  # Sensor Readings
@@ -56,19 +64,19 @@ class C4Climate(C4Entity):
56
64
  """Returns the current humidity percentage."""
57
65
  return await self.director.getItemVariableValue(self.item_id, "HUMIDITY")
58
66
 
59
- async def getCurrentTemperature(self):
67
+ async def getCurrentTemperatureF(self):
60
68
  """Returns the current ambient temperature in Fahrenheit."""
61
69
  return await self.director.getItemVariableValue(self.item_id, "TEMPERATURE_F")
70
+
71
+ async def getCurrentTemperatureC(self):
72
+ """Returns the current ambient temperature in Celsius."""
73
+ return await self.director.getItemVariableValue(self.item_id, "TEMPERATURE_C")
62
74
 
63
75
  # ------------------------
64
76
  # Setters / Commands
65
77
  # ------------------------
66
78
 
67
- async def setTemperature(self, temp):
68
- """Sets the cooling setpoint temperature in Fahrenheit."""
69
- await self.setCoolSetpoint(temp) # Delegates to the proper method
70
-
71
- async def setCoolSetpoint(self, temp):
79
+ async def setCoolSetpointF(self, temp):
72
80
  """Sets the cooling setpoint temperature in Fahrenheit."""
73
81
  await self.director.sendPostRequest(
74
82
  f"/api/v1/items/{self.item_id}/commands",
@@ -76,13 +84,29 @@ class C4Climate(C4Entity):
76
84
  {"FAHRENHEIT": temp},
77
85
  )
78
86
 
79
- async def setHeatSetpoint(self, temp):
87
+ async def setCoolSetpointC(self, temp):
88
+ """Sets the cooling setpoint temperature in Celsius."""
89
+ await self.director.sendPostRequest(
90
+ f"/api/v1/items/{self.item_id}/commands",
91
+ "SET_SETPOINT_COOL",
92
+ {"CELSIUS": temp},
93
+ )
94
+
95
+ async def setHeatSetpointF(self, temp):
80
96
  """Sets the heating setpoint temperature in Fahrenheit."""
81
97
  await self.director.sendPostRequest(
82
98
  f"/api/v1/items/{self.item_id}/commands",
83
99
  "SET_SETPOINT_HEAT",
84
100
  {"FAHRENHEIT": temp},
85
101
  )
102
+
103
+ async def setHeatSetpointC(self, temp):
104
+ """Sets the heating setpoint temperature in Celsius."""
105
+ await self.director.sendPostRequest(
106
+ f"/api/v1/items/{self.item_id}/commands",
107
+ "SET_SETPOINT_HEAT",
108
+ {"CELSIUS": temp},
109
+ )
86
110
 
87
111
  async def setHvacMode(self, mode):
88
112
  """Sets the HVAC operating mode (e.g., heat, cool, auto)."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyControl4
3
- Version: 1.3.0
3
+ Version: 1.4.0
4
4
  Summary: Python 3 asyncio package for interacting with Control4 systems
5
5
  Home-page: https://github.com/lawtancool/pyControl4
6
6
  Author: lawtancool
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="pyControl4", # Replace with your own username
8
- version="1.3.0",
8
+ version="1.4.0",
9
9
  author="lawtancool",
10
10
  author_email="contact@lawrencetan.ca",
11
11
  description="Python 3 asyncio package for interacting with Control4 systems",
File without changes
File without changes
File without changes
File without changes