idealclima 0.1.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.
@@ -0,0 +1,34 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ check:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.13", "3.14"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: Install dependencies
25
+ run: uv sync --all-extras
26
+
27
+ - name: Run ruff
28
+ run: uv run ruff check .
29
+
30
+ - name: Run mypy
31
+ run: uv run mypy src tests
32
+
33
+ - name: Run pytest
34
+ run: uv run pytest -v
@@ -0,0 +1,54 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+
14
+ - name: Install uv
15
+ uses: astral-sh/setup-uv@v5
16
+ with:
17
+ python-version: "3.13"
18
+
19
+ - name: Install dependencies
20
+ run: uv sync --all-extras
21
+
22
+ - name: Run checks
23
+ run: |
24
+ uv run ruff check .
25
+ uv run mypy src tests
26
+ uv run pytest -v
27
+
28
+ - name: Build package
29
+ run: uv build
30
+
31
+ - name: Upload build artifacts
32
+ uses: actions/upload-artifact@v4
33
+ with:
34
+ name: dist
35
+ path: dist/
36
+
37
+ publish:
38
+ needs: build
39
+ runs-on: ubuntu-latest
40
+ environment:
41
+ name: pypi
42
+ url: https://pypi.org/p/idealclima
43
+ permissions:
44
+ id-token: write
45
+
46
+ steps:
47
+ - name: Download build artifacts
48
+ uses: actions/download-artifact@v4
49
+ with:
50
+ name: dist
51
+ path: dist/
52
+
53
+ - name: Publish to PyPI
54
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,26 @@
1
+ # Virtual environments
2
+ .venv/
3
+ venv/
4
+
5
+ # Python caches and build artifacts
6
+ __pycache__/
7
+ *.py[cod]
8
+ *$py.class
9
+ *.egg-info/
10
+ dist/
11
+ build/
12
+ .eggs/
13
+
14
+ # Tool caches
15
+ .mypy_cache/
16
+ .pytest_cache/
17
+ .ruff_cache/
18
+
19
+ # Coverage
20
+ .coverage
21
+ htmlcov/
22
+
23
+ # OS / IDE
24
+ .DS_Store
25
+ .vscode/
26
+ .idea/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Claudio Ruggeri - CR-Tech
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,71 @@
1
+ Metadata-Version: 2.5
2
+ Name: idealclima
3
+ Version: 0.1.0
4
+ Summary: Async Modbus library for Idealclima fan coil units (Comfosplit IKARO HW and Radiantore SKUDO DC Inverter)
5
+ Project-URL: Homepage, https://github.com/crug80/idealclima
6
+ Project-URL: Issues, https://github.com/crug80/idealclima/issues
7
+ Author-email: crug80 <claudio@cr-tech.it>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: home-assistant,hvac,idealclima,ikaro,modbus,skudo
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Topic :: Home Automation
18
+ Classifier: Typing :: Typed
19
+ Requires-Python: >=3.13
20
+ Requires-Dist: modbus-connection>=4.12.7
21
+ Provides-Extra: tmodbus
22
+ Requires-Dist: modbus-connection[tmodbus]>=4.12.7; extra == 'tmodbus'
23
+ Description-Content-Type: text/markdown
24
+
25
+ # idealclima
26
+
27
+ Async Python library for controlling Idealclima Modbus fan coil units ([**Comfosplit IKARO HW**](https://www.idealclima.eu/it/radiantori/terminali-idronici/ikaro) and [**Radiantore SKUDO DC Inverter**](https://www.idealclima.eu/it/radiantori/terminali-idronici/radiantore-skudo-dc-inverter)), built on [`modbus-connection`](https://github.com/home-assistant-libs/modbus-connection) for Home Assistant Core integrations and standalone use.
28
+
29
+ ## Requirements & Notes
30
+
31
+ - **Modbus Unit Address**: Units ship with default Modbus address `15`, which only allows changing the address. **You must assign a unique address** (`1–32`) to each unit before using this library.
32
+ - **Serial Settings**: `9600 bps`, `8N1`.
33
+ - **Write Function**: Both models only support Modbus function `0x10` (Write Multiple Registers), which is enforced automatically via `force_fc16=True`.
34
+
35
+ ## Installation
36
+
37
+ For Home Assistant or when providing your own `ModbusUnit`:
38
+
39
+ ```bash
40
+ pip install idealclima
41
+ ```
42
+
43
+ For standalone usage with `tmodbus`:
44
+
45
+ ```bash
46
+ pip install "idealclima[tmodbus]"
47
+ ```
48
+
49
+ ## Usage
50
+
51
+ ```python
52
+ import asyncio
53
+ from modbus_connection import ModbusSerialParams
54
+ from modbus_connection.tmodbus import ModbusConnection
55
+ from idealclima import FanSpeed, IkaroHW, IkaroMode
56
+
57
+ async def main() -> None:
58
+ conn = ModbusConnection(
59
+ ModbusSerialParams(device="/dev/ttyUSB0", baudrate=9600)
60
+ )
61
+ async with conn:
62
+ unit = conn.for_unit(20)
63
+ ikaro = IkaroHW(unit)
64
+ await ikaro.async_update()
65
+ print(ikaro.readings.ambient_temperature)
66
+ await ikaro.async_set_mode(IkaroMode.COOL)
67
+ await ikaro.async_set_fan_speed(FanSpeed.LOW)
68
+ await ikaro.async_set_power(True)
69
+
70
+ asyncio.run(main())
71
+ ```
@@ -0,0 +1,47 @@
1
+ # idealclima
2
+
3
+ Async Python library for controlling Idealclima Modbus fan coil units ([**Comfosplit IKARO HW**](https://www.idealclima.eu/it/radiantori/terminali-idronici/ikaro) and [**Radiantore SKUDO DC Inverter**](https://www.idealclima.eu/it/radiantori/terminali-idronici/radiantore-skudo-dc-inverter)), built on [`modbus-connection`](https://github.com/home-assistant-libs/modbus-connection) for Home Assistant Core integrations and standalone use.
4
+
5
+ ## Requirements & Notes
6
+
7
+ - **Modbus Unit Address**: Units ship with default Modbus address `15`, which only allows changing the address. **You must assign a unique address** (`1–32`) to each unit before using this library.
8
+ - **Serial Settings**: `9600 bps`, `8N1`.
9
+ - **Write Function**: Both models only support Modbus function `0x10` (Write Multiple Registers), which is enforced automatically via `force_fc16=True`.
10
+
11
+ ## Installation
12
+
13
+ For Home Assistant or when providing your own `ModbusUnit`:
14
+
15
+ ```bash
16
+ pip install idealclima
17
+ ```
18
+
19
+ For standalone usage with `tmodbus`:
20
+
21
+ ```bash
22
+ pip install "idealclima[tmodbus]"
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ```python
28
+ import asyncio
29
+ from modbus_connection import ModbusSerialParams
30
+ from modbus_connection.tmodbus import ModbusConnection
31
+ from idealclima import FanSpeed, IkaroHW, IkaroMode
32
+
33
+ async def main() -> None:
34
+ conn = ModbusConnection(
35
+ ModbusSerialParams(device="/dev/ttyUSB0", baudrate=9600)
36
+ )
37
+ async with conn:
38
+ unit = conn.for_unit(20)
39
+ ikaro = IkaroHW(unit)
40
+ await ikaro.async_update()
41
+ print(ikaro.readings.ambient_temperature)
42
+ await ikaro.async_set_mode(IkaroMode.COOL)
43
+ await ikaro.async_set_fan_speed(FanSpeed.LOW)
44
+ await ikaro.async_set_power(True)
45
+
46
+ asyncio.run(main())
47
+ ```
@@ -0,0 +1,76 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "idealclima"
7
+ version = "0.1.0"
8
+ description = "Async Modbus library for Idealclima fan coil units (Comfosplit IKARO HW and Radiantore SKUDO DC Inverter)"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.13"
12
+ authors = [
13
+ { name = "crug80", email="claudio@cr-tech.it" },
14
+ ]
15
+ keywords = ["idealclima", "modbus", "home-assistant", "ikaro", "skudo", "hvac"]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Intended Audience :: Developers",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Programming Language :: Python :: 3.14",
23
+ "Topic :: Home Automation",
24
+ "Typing :: Typed",
25
+ ]
26
+ dependencies = [
27
+ "modbus-connection>=4.12.7",
28
+ ]
29
+
30
+ [project.optional-dependencies]
31
+ tmodbus = [
32
+ "modbus-connection[tmodbus]>=4.12.7",
33
+ ]
34
+
35
+ [project.urls]
36
+ Homepage = "https://github.com/crug80/idealclima"
37
+ Issues = "https://github.com/crug80/idealclima/issues"
38
+
39
+ [dependency-groups]
40
+ dev = [
41
+ "mypy>=2.0",
42
+ "pytest>=9.0",
43
+ "pytest-asyncio>=0.25",
44
+ "ruff>=0.15",
45
+ ]
46
+
47
+ [tool.hatch.build.targets.wheel]
48
+ packages = ["src/idealclima"]
49
+
50
+ [tool.pytest.ini_options]
51
+ testpaths = ["tests"]
52
+ asyncio_default_fixture_loop_scope = "function"
53
+
54
+ [tool.mypy]
55
+ python_version = "3.13"
56
+ strict = true
57
+ warn_unreachable = true
58
+ packages = ["idealclima"]
59
+ mypy_path = "src"
60
+
61
+ [tool.ruff]
62
+ target-version = "py313"
63
+ src = ["src", "tests"]
64
+
65
+ [tool.ruff.lint]
66
+ select = [
67
+ "E",
68
+ "F",
69
+ "W",
70
+ "I",
71
+ "UP",
72
+ "B",
73
+ "SIM",
74
+ "ASYNC",
75
+ "RUF",
76
+ ]
@@ -0,0 +1,18 @@
1
+ """Async Modbus library for Idealclima fan coil units."""
2
+
3
+ from .enums import FanSpeed, IkaroMode, SkudoMode, TemperatureUnit
4
+ from .ikaro import IkaroHW, IkaroReadings, IkaroSettings
5
+ from .skudo import SkudoDCInverter, SkudoReadings, SkudoSettings
6
+
7
+ __all__ = [
8
+ "FanSpeed",
9
+ "IkaroHW",
10
+ "IkaroMode",
11
+ "IkaroReadings",
12
+ "IkaroSettings",
13
+ "SkudoDCInverter",
14
+ "SkudoMode",
15
+ "SkudoReadings",
16
+ "SkudoSettings",
17
+ "TemperatureUnit",
18
+ ]
@@ -0,0 +1,85 @@
1
+ """Shared base components and device logic for Idealclima units."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from modbus_connection import ModbusUnit
6
+ from modbus_connection.model import (
7
+ Component,
8
+ Device,
9
+ UpdateReport,
10
+ boolean,
11
+ enum,
12
+ gauge,
13
+ )
14
+
15
+ from .enums import FanSpeed
16
+
17
+
18
+ class BaseIdealclimaReadings(Component):
19
+ """Common input registers shared by Idealclima fan coil units."""
20
+
21
+ register_space = "input"
22
+
23
+ ambient_temperature = gauge(46801, 0.1, signed=True, unit="°C")
24
+
25
+
26
+ class BaseIdealclimaSettings(Component):
27
+ """Common holding registers shared by Idealclima fan coil units."""
28
+
29
+ register_space = "holding"
30
+ max_gap = 0
31
+
32
+ power = boolean(28301, writable=True, force_fc16=True)
33
+ fan_speed = enum(28303, FanSpeed, signed=True, writable=True, force_fc16=True)
34
+ target_temp_cool = gauge(
35
+ 28310, 0.1, signed=True, writable=True, unit="°C", force_fc16=True
36
+ )
37
+ target_temp_heat = gauge(
38
+ 28311, 0.1, signed=True, writable=True, unit="°C", force_fc16=True
39
+ )
40
+
41
+
42
+ class BaseIdealclimaDevice[
43
+ R: BaseIdealclimaReadings,
44
+ S: BaseIdealclimaSettings,
45
+ ](Device):
46
+ """Base device wrapping readings and settings components."""
47
+
48
+ readings: R
49
+ settings: S
50
+
51
+ def __init__(self, unit: ModbusUnit, readings: R, settings: S) -> None:
52
+ """Initialize the device with a shared Modbus unit and its components."""
53
+ super().__init__(unit)
54
+ self.readings = readings
55
+ self.settings = settings
56
+
57
+ async def async_update_readings(self) -> UpdateReport:
58
+ """Poll input registers (live sensor readings)."""
59
+ return await self.async_poll(("readings",))
60
+
61
+ async def async_update_settings(self) -> UpdateReport:
62
+ """Poll holding registers (configuration and setpoints)."""
63
+ return await self.async_poll(("settings",))
64
+
65
+ async def async_update(self) -> UpdateReport:
66
+ """Poll both readings and settings."""
67
+ return await self.async_poll(("readings", "settings"))
68
+
69
+ async def _async_set_power(self, enabled: bool, *, stop_fan: bool) -> None:
70
+ """Set unit power and optionally stop the fan when turning off."""
71
+ await self.settings.write("power", enabled)
72
+ if not enabled and stop_fan:
73
+ await self.settings.write("fan_speed", FanSpeed.OFF)
74
+
75
+ async def async_set_fan_speed(self, speed: FanSpeed) -> None:
76
+ """Set the target fan speed (register 28303)."""
77
+ await self.settings.write("fan_speed", speed)
78
+
79
+ async def async_set_target_temp_cool(self, temperature: float) -> None:
80
+ """Set the cooling target temperature in °C (register 28310)."""
81
+ await self.settings.write("target_temp_cool", temperature)
82
+
83
+ async def async_set_target_temp_heat(self, temperature: float) -> None:
84
+ """Set the heating target temperature in °C (register 28311)."""
85
+ await self.settings.write("target_temp_heat", temperature)
@@ -0,0 +1,43 @@
1
+ """Enumerations for Idealclima Modbus fan coil units."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from enum import IntEnum
6
+
7
+
8
+ class FanSpeed(IntEnum):
9
+ """Fan speed values for holding register 28303."""
10
+
11
+ OFF = 0
12
+ SUPER_SILENCE = 1
13
+ LOW = 2
14
+ MEDIUM = 3
15
+ HIGH = 4
16
+ AUTO = 6
17
+
18
+
19
+ class IkaroMode(IntEnum):
20
+ """Operating mode values for Comfosplit IKARO HW (register 28302)."""
21
+
22
+ OFF = 0
23
+ COOL = 1
24
+ DRY = 2
25
+ FAN_ONLY = 3
26
+ HEAT = 4
27
+
28
+
29
+ class SkudoMode(IntEnum):
30
+ """Operating mode values for Radiantore SKUDO DC Inverter (register 28302)."""
31
+
32
+ AUTO = 0
33
+ COOL = 1
34
+ DRY = 2
35
+ FAN_ONLY = 3
36
+ HEAT = 4
37
+
38
+
39
+ class TemperatureUnit(IntEnum):
40
+ """Display temperature unit for SKUDO DC Inverter (register 28319)."""
41
+
42
+ CELSIUS = 0
43
+ FAHRENHEIT = 1
@@ -0,0 +1,39 @@
1
+ """Comfosplit IKARO HW Modbus device model."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from modbus_connection import ModbusUnit
6
+ from modbus_connection.model import enum
7
+
8
+ from .base import (
9
+ BaseIdealclimaDevice,
10
+ BaseIdealclimaReadings,
11
+ BaseIdealclimaSettings,
12
+ )
13
+ from .enums import IkaroMode
14
+
15
+
16
+ class IkaroReadings(BaseIdealclimaReadings):
17
+ """Input registers for Comfosplit IKARO HW."""
18
+
19
+
20
+ class IkaroSettings(BaseIdealclimaSettings):
21
+ """Holding registers for Comfosplit IKARO HW."""
22
+
23
+ mode = enum(28302, IkaroMode, signed=True, writable=True, force_fc16=True)
24
+
25
+
26
+ class IkaroHW(BaseIdealclimaDevice[IkaroReadings, IkaroSettings]):
27
+ """Comfosplit IKARO HW fan coil unit."""
28
+
29
+ def __init__(self, unit: ModbusUnit) -> None:
30
+ """Initialize an IKARO HW device bound to a ModbusUnit."""
31
+ super().__init__(unit, IkaroReadings(unit), IkaroSettings(unit))
32
+
33
+ async def async_set_power(self, enabled: bool, *, stop_fan: bool = True) -> None:
34
+ """Turn the unit on or off; stops the fan by default when turning off."""
35
+ await self._async_set_power(enabled, stop_fan=stop_fan)
36
+
37
+ async def async_set_mode(self, mode: IkaroMode) -> None:
38
+ """Set the operating mode (register 28302)."""
39
+ await self.settings.write("mode", mode)
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,161 @@
1
+ """Radiantore SKUDO DC Inverter Modbus device model."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from modbus_connection import ModbusUnit
6
+ from modbus_connection.model import boolean, enum, gauge, integer
7
+
8
+ from .base import (
9
+ BaseIdealclimaDevice,
10
+ BaseIdealclimaReadings,
11
+ BaseIdealclimaSettings,
12
+ )
13
+ from .enums import SkudoMode, TemperatureUnit
14
+
15
+
16
+ def _validate_timer_hours(value: int) -> int:
17
+ """Validate SKUDO timer hours (0 = disabled, 1-11 hours)."""
18
+ if not 0 <= value <= 11:
19
+ raise ValueError(f"Timer hours must be between 0 and 11, got {value}")
20
+ return value
21
+
22
+
23
+ class SkudoReadings(BaseIdealclimaReadings):
24
+ """Input registers for Radiantore SKUDO DC Inverter (46801-46810).
25
+
26
+ Uses ``max_gap = 1`` so 46801-46810 are polled in a single 0x04 request
27
+ while skipping 46803 and 46807.
28
+ """
29
+
30
+ max_gap = 1
31
+
32
+ coil_temperature = gauge(46802, 0.1, signed=True, unit="°C")
33
+ fan_rpm = integer(46804, signed=True, unit="rpm")
34
+ valve_command = boolean(46805)
35
+ power_state = boolean(46806)
36
+ motor_alarm = boolean(46808)
37
+ ambient_sensor_alarm = boolean(46809)
38
+ coil_sensor_alarm = boolean(46810)
39
+
40
+
41
+ class SkudoSettings(BaseIdealclimaSettings):
42
+ """Holding registers for Radiantore SKUDO DC Inverter (28301-28327)."""
43
+
44
+ mode = enum(28302, SkudoMode, signed=True, writable=True, force_fc16=True)
45
+ key_lock = boolean(28304, writable=True, force_fc16=True)
46
+ sleep = boolean(28305, writable=True, force_fc16=True)
47
+ timer_off_hours = integer(
48
+ 28306, signed=True, writable=_validate_timer_hours, force_fc16=True
49
+ )
50
+ timer_on_hours = integer(
51
+ 28307, signed=True, writable=_validate_timer_hours, force_fc16=True
52
+ )
53
+ max_target_temp = gauge(
54
+ 28308, 0.1, signed=True, writable=True, unit="°C", force_fc16=True
55
+ )
56
+ min_target_temp = gauge(
57
+ 28309, 0.1, signed=True, writable=True, unit="°C", force_fc16=True
58
+ )
59
+ target_temp_auto_cool = gauge(
60
+ 28312, 0.1, signed=True, writable=True, unit="°C", force_fc16=True
61
+ )
62
+ target_temp_auto_heat = gauge(
63
+ 28313, 0.1, signed=True, writable=True, unit="°C", force_fc16=True
64
+ )
65
+ anti_draft_threshold = gauge(
66
+ 28314, 0.1, signed=True, writable=True, unit="°C", force_fc16=True
67
+ )
68
+ anti_draft_enabled = boolean(28315, writable=True, force_fc16=True)
69
+ super_silence_enabled = boolean(28316, writable=True, force_fc16=True)
70
+ valve_present = boolean(28317, writable=True, force_fc16=True)
71
+ temperature_unit = enum(
72
+ 28319, TemperatureUnit, signed=True, writable=True, force_fc16=True
73
+ )
74
+ key_lock_enabled = boolean(28322, writable=True, force_fc16=True)
75
+ remote_enabled_with_key_lock = boolean(28323, writable=True, force_fc16=True)
76
+ password_enabled = boolean(28324, writable=True, force_fc16=True)
77
+ fan_intermittent = boolean(28327, writable=True, force_fc16=True)
78
+
79
+
80
+ class SkudoDCInverter(BaseIdealclimaDevice[SkudoReadings, SkudoSettings]):
81
+ """Radiantore SKUDO DC Inverter fan coil unit."""
82
+
83
+ def __init__(self, unit: ModbusUnit) -> None:
84
+ """Initialize a SKUDO DC Inverter device bound to a ModbusUnit."""
85
+ super().__init__(unit, SkudoReadings(unit), SkudoSettings(unit))
86
+
87
+ async def async_set_power(self, enabled: bool, *, stop_fan: bool = False) -> None:
88
+ """Turn the unit on or off."""
89
+ await self._async_set_power(enabled, stop_fan=stop_fan)
90
+
91
+ async def async_set_mode(self, mode: SkudoMode) -> None:
92
+ """Set the operating mode (register 28302)."""
93
+ await self.settings.write("mode", mode)
94
+
95
+ async def async_set_key_lock(self, locked: bool) -> None:
96
+ """Lock or unlock the onboard panel keys (register 28304)."""
97
+ await self.settings.write("key_lock", locked)
98
+
99
+ async def async_set_sleep(self, enabled: bool) -> None:
100
+ """Enable or disable sleep mode (register 28305)."""
101
+ await self.settings.write("sleep", enabled)
102
+
103
+ async def async_set_timer_off_hours(self, hours: int) -> None:
104
+ """Set auto-off timer in hours, 0 to disable or 1-11 (register 28306)."""
105
+ await self.settings.write("timer_off_hours", hours)
106
+
107
+ async def async_set_timer_on_hours(self, hours: int) -> None:
108
+ """Set auto-on timer in hours, 0 to disable or 1-11 (register 28307)."""
109
+ await self.settings.write("timer_on_hours", hours)
110
+
111
+ async def async_set_max_target_temp(self, temperature: float) -> None:
112
+ """Set maximum allowed target temperature in °C (register 28308)."""
113
+ await self.settings.write("max_target_temp", temperature)
114
+
115
+ async def async_set_min_target_temp(self, temperature: float) -> None:
116
+ """Set minimum allowed target temperature in °C (register 28309)."""
117
+ await self.settings.write("min_target_temp", temperature)
118
+
119
+ async def async_set_target_temp_auto_cool(self, temperature: float) -> None:
120
+ """Set cooling target temperature in auto mode in °C (register 28312)."""
121
+ await self.settings.write("target_temp_auto_cool", temperature)
122
+
123
+ async def async_set_target_temp_auto_heat(self, temperature: float) -> None:
124
+ """Set heating target temperature in auto mode in °C (register 28313)."""
125
+ await self.settings.write("target_temp_auto_heat", temperature)
126
+
127
+ async def async_set_anti_draft_threshold(self, temperature: float) -> None:
128
+ """Set coil anti-draft threshold temperature in °C (register 28314)."""
129
+ await self.settings.write("anti_draft_threshold", temperature)
130
+
131
+ async def async_set_anti_draft_enabled(self, enabled: bool) -> None:
132
+ """Enable or disable the anti-draft function (register 28315)."""
133
+ await self.settings.write("anti_draft_enabled", enabled)
134
+
135
+ async def async_set_super_silence_enabled(self, enabled: bool) -> None:
136
+ """Enable or disable super silence speed availability (register 28316)."""
137
+ await self.settings.write("super_silence_enabled", enabled)
138
+
139
+ async def async_set_valve_present(self, present: bool) -> None:
140
+ """Configure whether a water valve actuator is present (register 28317)."""
141
+ await self.settings.write("valve_present", present)
142
+
143
+ async def async_set_temperature_unit(self, unit: TemperatureUnit) -> None:
144
+ """Set display temperature unit (register 28319)."""
145
+ await self.settings.write("temperature_unit", unit)
146
+
147
+ async def async_set_key_lock_enabled(self, enabled: bool) -> None:
148
+ """Enable or disable the key lock feature (register 28322)."""
149
+ await self.settings.write("key_lock_enabled", enabled)
150
+
151
+ async def async_set_remote_enabled_with_key_lock(self, enabled: bool) -> None:
152
+ """Allow or block IR remote control when key lock is active (register 28323)."""
153
+ await self.settings.write("remote_enabled_with_key_lock", enabled)
154
+
155
+ async def async_set_password_enabled(self, enabled: bool) -> None:
156
+ """Enable or disable onboard terminal password protection (register 28324)."""
157
+ await self.settings.write("password_enabled", enabled)
158
+
159
+ async def async_set_fan_intermittent(self, enabled: bool) -> None:
160
+ """Enable or disable intermittent fan at target temperature (register 28327)."""
161
+ await self.settings.write("fan_intermittent", enabled)