|
8 | 8 |
|
9 | 9 | import aiohttp |
10 | 10 |
|
11 | | -# Dict as class |
12 | 11 | from munch import Munch |
| 12 | +import semver |
13 | 13 |
|
14 | 14 | # Version detection |
15 | 15 | from plugwise.constants import ( |
@@ -41,22 +41,22 @@ def __init__( |
41 | 41 | self, |
42 | 42 | host: str, |
43 | 43 | password: str, |
44 | | - _is_thermostat, |
45 | | - _on_off_device, |
46 | | - _opentherm_device, |
47 | | - _schedule_old_states, |
48 | | - _stretch_v2, |
49 | | - _stretch_v3, |
50 | | - _target_smile, |
51 | | - smile_fw_version, |
52 | | - smile_hostname, |
53 | | - smile_hw_version, |
54 | | - smile_mac_address, |
55 | | - smile_model, |
56 | | - smile_name, |
57 | | - smile_type, |
58 | | - smile_version, |
59 | | - smile_zigbee_mac_address, |
| 44 | + _is_thermostat: bool, |
| 45 | + _on_off_device: bool, |
| 46 | + _opentherm_device: bool, |
| 47 | + _schedule_old_states: dict[str, dict[str, str]], |
| 48 | + _stretch_v2: bool, |
| 49 | + _stretch_v3: bool, |
| 50 | + _target_smile: str, |
| 51 | + smile_fw_version: str | None, |
| 52 | + smile_hostname: str, |
| 53 | + smile_hw_version: str | None, |
| 54 | + smile_mac_address: str | None, |
| 55 | + smile_model: str, |
| 56 | + smile_name: str, |
| 57 | + smile_type: str, |
| 58 | + smile_version: tuple[str, semver.version.Version], |
| 59 | + smile_zigbee_mac_address: str | None, |
60 | 60 | username: str = DEFAULT_USERNAME, |
61 | 61 | port: int = DEFAULT_PORT, |
62 | 62 | timeout: float = DEFAULT_TIMEOUT, |
@@ -255,3 +255,27 @@ async def _set_groupswitch_member_state( |
255 | 255 | data = f"<{switch.func_type}><{switch.func}>{state}</{switch.func}></{switch.func_type}>" |
256 | 256 |
|
257 | 257 | await self._request(uri, method="put", data=data) |
| 258 | + |
| 259 | + async def set_number_setpoint(self, key: str, temperature: float) -> None: |
| 260 | + """Set the max. Boiler or DHW setpoint on the Central Heating boiler.""" |
| 261 | + pass |
| 262 | + |
| 263 | + async def set_temperature_offset(self, dev_id: str, offset: float) -> None: |
| 264 | + """Set the Temperature offset for thermostats that support this feature.""" |
| 265 | + pass |
| 266 | + |
| 267 | + async def set_gateway_mode(self, mode: str) -> None: |
| 268 | + """Set the gateway mode.""" |
| 269 | + pass |
| 270 | + |
| 271 | + async def set_regulation_mode(self, mode: str) -> None: |
| 272 | + """Set the heating regulation mode.""" |
| 273 | + pass |
| 274 | + |
| 275 | + async def set_dhw_mode(self, mode: str) -> None: |
| 276 | + """Set the domestic hot water heating regulation mode.""" |
| 277 | + pass |
| 278 | + |
| 279 | + async def delete_notification(self) -> None: |
| 280 | + """Delete the active Plugwise Notification.""" |
| 281 | + pass |
0 commit comments