plugwise 0.37.4.1__py3-none-any.whl → 0.37.5__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.
- plugwise/__init__.py +7 -6
- plugwise/legacy/smile.py +6 -4
- plugwise/smile.py +23 -17
- {plugwise-0.37.4.1.dist-info → plugwise-0.37.5.dist-info}/METADATA +1 -1
- {plugwise-0.37.4.1.dist-info → plugwise-0.37.5.dist-info}/RECORD +8 -8
- {plugwise-0.37.4.1.dist-info → plugwise-0.37.5.dist-info}/LICENSE +0 -0
- {plugwise-0.37.4.1.dist-info → plugwise-0.37.5.dist-info}/WHEEL +0 -0
- {plugwise-0.37.4.1.dist-info → plugwise-0.37.5.dist-info}/top_level.txt +0 -0
plugwise/__init__.py
CHANGED
@@ -323,13 +323,14 @@ class Smile(SmileComm):
|
|
323
323
|
"""Set the given Temperature on the relevant Thermostat."""
|
324
324
|
await self._smile_api.set_temperature(loc_id, items)
|
325
325
|
|
326
|
-
async def
|
326
|
+
async def set_number(
|
327
|
+
self,
|
328
|
+
dev_id: str,
|
329
|
+
key: str,
|
330
|
+
temperature: float,
|
331
|
+
) -> None:
|
327
332
|
"""Set the max. Boiler or DHW setpoint on the Central Heating boiler."""
|
328
|
-
await self._smile_api.
|
329
|
-
|
330
|
-
async def set_temperature_offset(self, _: str, dev_id: str, offset: float) -> None:
|
331
|
-
"""Set the Temperature offset for thermostats that support this feature."""
|
332
|
-
await self._smile_api.set_temperature_offset(dev_id, offset)
|
333
|
+
await self._smile_api.set_number(dev_id, key, temperature)
|
333
334
|
|
334
335
|
async def set_switch_state(
|
335
336
|
self, appl_id: str, members: list[str] | None, model: str, state: str
|
plugwise/legacy/smile.py
CHANGED
@@ -154,7 +154,12 @@ class SmileLegacyAPI(SmileComm, SmileLegacyData):
|
|
154
154
|
async def set_gateway_mode(self, mode: str) -> None:
|
155
155
|
"""Set-function placeholder for legacy devices."""
|
156
156
|
|
157
|
-
async def
|
157
|
+
async def set_number(
|
158
|
+
self,
|
159
|
+
dev_id: str,
|
160
|
+
key: str,
|
161
|
+
temperature: float,
|
162
|
+
) -> None:
|
158
163
|
"""Set-function placeholder for legacy devices."""
|
159
164
|
|
160
165
|
async def set_preset(self, _: str, preset: str) -> None:
|
@@ -268,6 +273,3 @@ class SmileLegacyAPI(SmileComm, SmileLegacyData):
|
|
268
273
|
)
|
269
274
|
|
270
275
|
await self._request(uri, method="put", data=data)
|
271
|
-
|
272
|
-
async def set_temperature_offset(self, dev_id: str, offset: float) -> None:
|
273
|
-
"""Set-function placeholder for legacy devices."""
|
plugwise/smile.py
CHANGED
@@ -182,10 +182,16 @@ class SmileAPI(SmileComm, SmileData):
|
|
182
182
|
|
183
183
|
await self._request(uri, method="put", data=data)
|
184
184
|
|
185
|
-
async def
|
186
|
-
|
187
|
-
|
188
|
-
|
185
|
+
async def set_number(
|
186
|
+
self,
|
187
|
+
dev_id: str,
|
188
|
+
key: str,
|
189
|
+
temperature: float,
|
190
|
+
) -> None:
|
191
|
+
"""Set the maximum boiler- or DHW-setpoint on the Central Heating boiler or the temperature-offset on a Thermostat."""
|
192
|
+
if key == "temperature_offset":
|
193
|
+
await self.set_offset(dev_id, temperature)
|
194
|
+
return
|
189
195
|
|
190
196
|
temp = str(temperature)
|
191
197
|
thermostat_id: str | None = None
|
@@ -202,6 +208,19 @@ class SmileAPI(SmileComm, SmileData):
|
|
202
208
|
data = f"<thermostat_functionality><setpoint>{temp}</setpoint></thermostat_functionality>"
|
203
209
|
await self._request(uri, method="put", data=data)
|
204
210
|
|
211
|
+
async def set_offset(self, dev_id: str, offset: float) -> None:
|
212
|
+
"""Set the Temperature offset for thermostats that support this feature."""
|
213
|
+
if dev_id not in self.therms_with_offset_func:
|
214
|
+
raise PlugwiseError(
|
215
|
+
"Plugwise: this device does not have temperature-offset capability."
|
216
|
+
)
|
217
|
+
|
218
|
+
value = str(offset)
|
219
|
+
uri = f"{APPLIANCES};id={dev_id}/offset;type=temperature_offset"
|
220
|
+
data = f"<offset_functionality><offset>{value}</offset></offset_functionality>"
|
221
|
+
|
222
|
+
await self._request(uri, method="put", data=data)
|
223
|
+
|
205
224
|
async def set_preset(self, loc_id: str, preset: str) -> None:
|
206
225
|
"""Set the given Preset on the relevant Thermostat - from LOCATIONS."""
|
207
226
|
if (presets := self._presets(loc_id)) is None:
|
@@ -413,16 +432,3 @@ class SmileAPI(SmileComm, SmileData):
|
|
413
432
|
)
|
414
433
|
|
415
434
|
await self._request(uri, method="put", data=data)
|
416
|
-
|
417
|
-
async def set_temperature_offset(self, dev_id: str, offset: float) -> None:
|
418
|
-
"""Set the Temperature offset for thermostats that support this feature."""
|
419
|
-
if dev_id not in self.therms_with_offset_func:
|
420
|
-
raise PlugwiseError(
|
421
|
-
"Plugwise: this device does not have temperature-offset capability."
|
422
|
-
)
|
423
|
-
|
424
|
-
value = str(offset)
|
425
|
-
uri = f"{APPLIANCES};id={dev_id}/offset;type=temperature_offset"
|
426
|
-
data = f"<offset_functionality><offset>{value}</offset></offset_functionality>"
|
427
|
-
|
428
|
-
await self._request(uri, method="put", data=data)
|
@@ -1,17 +1,17 @@
|
|
1
|
-
plugwise/__init__.py,sha256=
|
1
|
+
plugwise/__init__.py,sha256=6htaD3AMGbtiuI30EJX9D6gy-gYjA9Lfdl_GZ7Syzmw,13796
|
2
2
|
plugwise/common.py,sha256=P4sUYzgVcFsIR2DmQxeVeOiZvFZWpZXgwHA3XRc1Sx0,12538
|
3
3
|
plugwise/constants.py,sha256=adi2UFHJUcPRWNz1bn155NC9DLzhYbeNriMKTpSyWAg,16574
|
4
4
|
plugwise/data.py,sha256=OTkPJ80b1L1h_TeddfvmUPX1-jBacTjbHKD0XgUIfeg,8965
|
5
5
|
plugwise/exceptions.py,sha256=rymGtWnXosdFkzSehc_41HVl2jXJEg_9Hq9APDEUwrk,1223
|
6
6
|
plugwise/helper.py,sha256=bNT_Tdc0LAxmVZEikMgKm461jeGP-WY-cI1r3JGgIcI,44037
|
7
7
|
plugwise/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
plugwise/smile.py,sha256=
|
8
|
+
plugwise/smile.py,sha256=iGaA_1pWHeFUSK4k_jAS1qV7Bm3hDJsIDAj2GSixyms,17177
|
9
9
|
plugwise/util.py,sha256=w24CiW-xSV3ARZAeNYZ9T5C4kJpYGCcBoIlX2BhNOYg,6618
|
10
10
|
plugwise/legacy/data.py,sha256=y7gBG9Sg40lltB3B5CpWPtAXggMbcx2IMay-mwvOB1M,2986
|
11
11
|
plugwise/legacy/helper.py,sha256=tSrqA2UeMO7HSYudQHAxBThBTevAOKIxHqN6NCN-r5k,18947
|
12
|
-
plugwise/legacy/smile.py,sha256=
|
13
|
-
plugwise-0.37.
|
14
|
-
plugwise-0.37.
|
15
|
-
plugwise-0.37.
|
16
|
-
plugwise-0.37.
|
17
|
-
plugwise-0.37.
|
12
|
+
plugwise/legacy/smile.py,sha256=ltg9XQBPSCCZV4QnqSZ3e9Ta1Zkdqs8MwQJgyyavg3A,10250
|
13
|
+
plugwise-0.37.5.dist-info/LICENSE,sha256=mL22BjmXtg_wnoDnnaqps5_Bg_VGj_yHueX5lsKwbCc,1144
|
14
|
+
plugwise-0.37.5.dist-info/METADATA,sha256=ho502aS821_t2yuQA8C2fvAyqPSaFfRJaEq5NHyQEWQ,8939
|
15
|
+
plugwise-0.37.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
16
|
+
plugwise-0.37.5.dist-info/top_level.txt,sha256=MYOmktMFf8ZmX6_OE1y9MoCZFfY-L8DA0F2tA2IvE4s,9
|
17
|
+
plugwise-0.37.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|