Skip to content

Commit 87361ee

Browse files
committed
Start adding set_temperature_offset() function
1 parent 1cc2915 commit 87361ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugwise/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,14 @@ async def set_dhw_mode(self, mode: str) -> None:
823823

824824
await self._request(uri, method="put", data=data)
825825

826+
async def set_temperature_offset(self, offset: float) -> None:
827+
"""Set the temperature offset for thermostats that support this feature."""
828+
829+
uri = f"{APPLIANCES}???????????"
830+
data = f"<offset_functionality><offset>{offset}</offset></offset_functionality>"
831+
832+
await self._request(uri, method="put", data=data)
833+
826834
async def delete_notification(self) -> None:
827835
"""Delete the active Plugwise Notification."""
828836
await self._request(NOTIFICATIONS, method="delete")

0 commit comments

Comments
 (0)