From 9d07e66969831ae6b1c873380a1119ff28990a62 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2026 05:08:51 +0000 Subject: [PATCH 001/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.9 (#869) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ee4300a3..6bef3ebf1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.8 + rev: v0.15.9 hooks: - id: ruff name: "Ruff check" From f68a0c29e68de664887f62ae40bee67050ea3ad8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 04:33:39 +0000 Subject: [PATCH 002/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.10 (#871) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6bef3ebf1..d1d32ddcd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.9 + rev: v0.15.10 hooks: - id: ruff name: "Ruff check" From bbb0c5ccaa3f32f8453f6b2d1c22e9e860633f6b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 06:58:43 +0000 Subject: [PATCH 003/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.11 (#872) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1d32ddcd..35c993124 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.10 + rev: v0.15.11 hooks: - id: ruff name: "Ruff check" From e2bd730c927784371bcfe3aaf927a9c07067650d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 25 Apr 2026 06:29:12 +0000 Subject: [PATCH 004/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.12 (#873) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 35c993124..038a14a5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.11 + rev: v0.15.12 hooks: - id: ruff name: "Ruff check" From 64c4b53abb66edfe04be60242089bcd95adf9551 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 5 May 2026 05:37:24 +0000 Subject: [PATCH 005/371] Update pre-commit hook jackdewinter/pymarkdown to v0.9.37 (#874) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 038a14a5a..4a6051a8d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -112,7 +112,7 @@ repos: language: script pass_filenames: false - repo: https://github.com/jackdewinter/pymarkdown - rev: v0.9.36 + rev: v0.9.37 hooks: - id: pymarkdown name: MarkDown Lint From 25a7c3d7ea200a91b74d87c27c4feca951d5c0f4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 05:35:01 +0000 Subject: [PATCH 006/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.13 (#875) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a6051a8d..41511b487 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.12 + rev: v0.15.13 hooks: - id: ruff name: "Ruff check" From 45ab4e33f32f2273963c875becad2f87d8e18241 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 02:15:51 +0000 Subject: [PATCH 007/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.14 (#876) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41511b487..7a0cdf3ad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.13 + rev: v0.15.14 hooks: - id: ruff name: "Ruff check" From 5caec3208e9d1658f23bc310010de60b312b7c70 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 24 May 2026 15:16:26 +0200 Subject: [PATCH 008/371] Add m_adam_heating_off_schedule --- scripts/manual_fixtures.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index f7a842318..19378bdb9 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -199,6 +199,32 @@ def json_writer(manual_name: str, output: dict) -> None: json_writer("m_adam_heating", m_adam_heating) +# Version with select_regulation = off and an active schedule +m_adam_heating_off_schedule = m_adam_heating.copy() + +# Updates for f2bf9048bef64cc5b6d5110154e33c81" +m_adam_heating["f2bf9048bef64cc5b6d5110154e33c81"]["climate_mode"] = "off" +m_adam_heating["f2bf9048bef64cc5b6d5110154e33c81"]["control_state"] = "idle" +m_adam_heating["f2bf9048bef64cc5b6d5110154e33c81"]["select_schedule"] = "Weekschema" + +# Go for e2f4 +m_adam_heating["f871b8c4d63549319221e294e4f88074"]["climate_mode"] = "off" +m_adam_heating["f871b8c4d63549319221e294e4f88074"]["control_state"] = "idle" +m_adam_heating["f871b8c4d63549319221e294e4f88074"]["select_schedule"] = "Badkamer" + +# Go for da22 +m_adam_heating["da224107914542988a88561b4452b0f6"]["select_regulation_mode"] = "off" + +# Go for 056e +m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["binary_sensors"][ + "heating_state" +] = False +m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["sensors"][ + "intended_boiler_temperature" +] = 0.0 + +json_writer("m_adam_heating_off_schedule", m_adam_heating_off_schedule) + ### Manual Anna fixtures base_anna_manual = "anna_heatpump_heating" From d41bd6c772a54f03d41207f1a85e606ca0069ce7 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 24 May 2026 15:30:57 +0200 Subject: [PATCH 009/371] Save generated fixture --- .../m_adam_heating_off_schedule/data.json | 309 ++++++++++++++++++ 1 file changed, 309 insertions(+) create mode 100644 fixtures/m_adam_heating_off_schedule/data.json diff --git a/fixtures/m_adam_heating_off_schedule/data.json b/fixtures/m_adam_heating_off_schedule/data.json new file mode 100644 index 000000000..406219f2a --- /dev/null +++ b/fixtures/m_adam_heating_off_schedule/data.json @@ -0,0 +1,309 @@ +{ + "056ee145a816487eaa69243c3280f8bf": { + "available": true, + "binary_sensors": { + "dhw_state": false, + "flame_state": false, + "heating_state": false + }, + "dev_class": "heater_central", + "location": "bc93488efab249e5bc54fd7e175a6f91", + "max_dhw_temperature": { + "lower_bound": 40.0, + "resolution": 0.01, + "setpoint": 60.0, + "upper_bound": 60.0 + }, + "maximum_boiler_temperature": { + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, + "model": "Generic heater", + "name": "OpenTherm", + "sensors": { + "intended_boiler_temperature": 0.0, + "water_temperature": 37.0 + }, + "switches": { + "dhw_cm_switch": false + } + }, + "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { + "available": true, + "binary_sensors": { + "low_battery": false + }, + "dev_class": "zone_thermostat", + "firmware": "2025-11-10T01:00:00+01:00", + "hardware": "1", + "location": "f2bf9048bef64cc5b6d5110154e33c81", + "model": "Emma Pro", + "model_id": "170-01", + "name": "Emma", + "sensors": { + "battery": 100, + "humidity": 65.0, + "setpoint": 20.0, + "temperature": 19.5 + }, + "temperature_offset": { + "lower_bound": -2.0, + "resolution": 0.1, + "setpoint": 0.0, + "upper_bound": 2.0 + }, + "vendor": "Plugwise", + "zigbee_mac_address": "60EFABFFFE89CBA0" + }, + "1772a4ea304041adb83f357b751341ff": { + "available": true, + "binary_sensors": { + "low_battery": false + }, + "dev_class": "thermostatic_radiator_valve", + "firmware": "2020-11-04T01:00:00+01:00", + "hardware": "1", + "location": "f871b8c4d63549319221e294e4f88074", + "model": "Tom", + "model_id": "106-03", + "name": "Tom Badkamer", + "sensors": { + "battery": 60, + "setpoint": 25.0, + "temperature": 18.6, + "temperature_difference": -0.4, + "valve_position": 100.0 + }, + "temperature_offset": { + "lower_bound": -2.0, + "resolution": 0.1, + "setpoint": 0.1, + "upper_bound": 2.0 + }, + "vendor": "Plugwise", + "zigbee_mac_address": "000D6F000C8FCBA0" + }, + "ad4838d7d35c4d6ea796ee12ae5aedf8": { + "dev_class": "thermostat", + "location": "f2bf9048bef64cc5b6d5110154e33c81", + "model": "ThermoTouch", + "model_id": "143.1", + "name": "Anna", + "sensors": { + "setpoint": 20.0, + "temperature": 19.1 + }, + "vendor": "Plugwise" + }, + "c9293d1d68ee48fc8843c6f0dee2b6be": { + "dev_class": "pumping", + "members": [ + "854f8a9b0e7e425db97f1f110e1ce4b3", + "ad4838d7d35c4d6ea796ee12ae5aedf8" + ], + "model": "Group", + "name": "Vloerverwarming", + "sensors": { + "electricity_consumed": 45.0, + "electricity_produced": 0.0, + "temperature": 20.1 + }, + "vendor": "Plugwise" + }, + "da224107914542988a88561b4452b0f6": { + "binary_sensors": { + "plugwise_notification": false + }, + "dev_class": "gateway", + "firmware": "3.9.0", + "gateway_modes": [ + "away", + "full", + "vacation" + ], + "hardware": "AME Smile 2.0 board", + "location": "bc93488efab249e5bc54fd7e175a6f91", + "mac_address": "D40FB201CBA0", + "model": "Gateway", + "model_id": "smile_open_therm", + "name": "Adam", + "notifications": {}, + "regulation_modes": [ + "bleeding_cold", + "heating", + "off", + "bleeding_hot" + ], + "select_gateway_mode": "full", + "select_regulation_mode": "off", + "sensors": { + "outdoor_temperature": -1.25 + }, + "vendor": "Plugwise", + "zigbee_mac_address": "000D6F000D5ACBA0" + }, + "da575e9e09b947e281fb6e3ebce3b174": { + "available": true, + "binary_sensors": { + "low_battery": false + }, + "dev_class": "zone_thermometer", + "firmware": "2020-09-01T02:00:00+02:00", + "hardware": "1", + "location": "f2bf9048bef64cc5b6d5110154e33c81", + "model": "Jip", + "model_id": "168-01", + "name": "Jip", + "sensors": { + "battery": 100, + "humidity": 65.8, + "setpoint": 20.0, + "temperature": 19.3 + }, + "vendor": "Plugwise", + "zigbee_mac_address": "70AC08FFFEE1CBA0" + }, + "e2f4322d57924fa090fbbc48b3a140dc": { + "available": true, + "binary_sensors": { + "low_battery": false + }, + "dev_class": "zone_thermostat", + "firmware": "2016-10-10T02:00:00+02:00", + "hardware": "255", + "location": "f871b8c4d63549319221e294e4f88074", + "model": "Lisa", + "model_id": "158-01", + "name": "Lisa Badkamer", + "sensors": { + "battery": 71, + "setpoint": 15.0, + "temperature": 17.9 + }, + "temperature_offset": { + "lower_bound": -2.0, + "resolution": 0.1, + "setpoint": 0.0, + "upper_bound": 2.0 + }, + "vendor": "Plugwise", + "zigbee_mac_address": "000D6F000C86CBA0" + }, + "e8ef2a01ed3b4139a53bf749204fe6b4": { + "dev_class": "switching", + "members": [ + "2568cc4b9c1e401495d4741a5f89bee1", + "29542b2b6a6a4169acecc15c72a599b8" + ], + "model": "Group", + "name": "Test", + "sensors": { + "electricity_consumed": 16.5, + "electricity_produced": 0.0 + }, + "switches": { + "relay": true + }, + "vendor": "Plugwise" + }, + "f2bf9048bef64cc5b6d5110154e33c81": { + "active_preset": "home", + "available_schedules": [ + "Badkamer", + "Vakantie", + "Weekschema", + "Test", + "off" + ], + "climate_mode": "off", + "control_state": "idle", + "dev_class": "climate", + "model": "ThermoZone", + "name": "Living room", + "preset_modes": [ + "vacation", + "no_frost", + "asleep", + "home", + "away" + ], + "select_schedule": "Weekschema", + "select_zone_profile": "active", + "sensors": { + "electricity_consumed": 60.8, + "electricity_produced": 0.0, + "temperature": 19.1 + }, + "thermostat": { + "lower_bound": 1.0, + "resolution": 0.01, + "setpoint": 20.0, + "upper_bound": 35.0 + }, + "thermostats": { + "primary": [ + "ad4838d7d35c4d6ea796ee12ae5aedf8", + "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6", + "da575e9e09b947e281fb6e3ebce3b174" + ], + "secondary": [] + }, + "vendor": "Plugwise", + "zone_profiles": [ + "active", + "off", + "passive" + ] + }, + "f871b8c4d63549319221e294e4f88074": { + "active_preset": "vacation", + "available_schedules": [ + "Badkamer", + "Vakantie", + "Weekschema", + "Test", + "off" + ], + "climate_mode": "off", + "control_state": "idle", + "dev_class": "climate", + "model": "ThermoZone", + "name": "Bathroom", + "preset_modes": [ + "vacation", + "no_frost", + "asleep", + "home", + "away" + ], + "select_schedule": "Badkamer", + "select_zone_profile": "passive", + "sensors": { + "electricity_consumed": 0.0, + "electricity_produced": 0.0, + "temperature": 17.9 + }, + "thermostat": { + "lower_bound": 0.0, + "resolution": 0.01, + "setpoint": 15.0, + "upper_bound": 99.9 + }, + "thermostats": { + "primary": [ + "e2f4322d57924fa090fbbc48b3a140dc" + ], + "secondary": [ + "1772a4ea304041adb83f357b751341ff" + ] + }, + "vendor": "Plugwise", + "zone_profiles": [ + "active", + "off", + "passive" + ] + } +} From adbc2bc3d9e438bcab977f76a16cd9038155a989 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 24 May 2026 15:54:05 +0200 Subject: [PATCH 010/371] Revert schedule-change --- scripts/manual_fixtures.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index 19378bdb9..830a76eef 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -205,7 +205,6 @@ def json_writer(manual_name: str, output: dict) -> None: # Updates for f2bf9048bef64cc5b6d5110154e33c81" m_adam_heating["f2bf9048bef64cc5b6d5110154e33c81"]["climate_mode"] = "off" m_adam_heating["f2bf9048bef64cc5b6d5110154e33c81"]["control_state"] = "idle" -m_adam_heating["f2bf9048bef64cc5b6d5110154e33c81"]["select_schedule"] = "Weekschema" # Go for e2f4 m_adam_heating["f871b8c4d63549319221e294e4f88074"]["climate_mode"] = "off" From 1976c598f65af6ca6a9bb8ae7fb7cff209990e9d Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 24 May 2026 15:57:01 +0200 Subject: [PATCH 011/371] Save updated fixture --- fixtures/m_adam_heating_off_schedule/data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixtures/m_adam_heating_off_schedule/data.json b/fixtures/m_adam_heating_off_schedule/data.json index 406219f2a..3aeb08f30 100644 --- a/fixtures/m_adam_heating_off_schedule/data.json +++ b/fixtures/m_adam_heating_off_schedule/data.json @@ -229,7 +229,7 @@ "home", "away" ], - "select_schedule": "Weekschema", + "select_schedule": "off", "select_zone_profile": "active", "sensors": { "electricity_consumed": 60.8, From ce7d32d19b0877d0205ef3f9fbd63cb0a4b4db44 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 25 May 2026 13:09:14 +0200 Subject: [PATCH 012/371] Update CHANGELOG --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20ec7a66b..d162271b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## Ongoing -- Add Add missing Emma firmware via PR [#863](https://github.com/plugwise/python-plugwise/pull/863) +- Create an extra test-fixture for increased test coverage in the Integration via PR [#878](https://github.com/plugwise/python-plugwise/pull/878) +- Add missing Emma firmware via PR [#863](https://github.com/plugwise/python-plugwise/pull/863) - Improve test function added in #860 via PR [#862](https://github.com/plugwise/python-plugwise/pull/862) ## v1.11.3 From afc7747ab73b2d90ff4be07af89c69ff8f7a0c5c Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 25 May 2026 13:11:18 +0200 Subject: [PATCH 013/371] Correct script-update as suggested --- scripts/manual_fixtures.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index 830a76eef..77ad53935 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -203,22 +203,22 @@ def json_writer(manual_name: str, output: dict) -> None: m_adam_heating_off_schedule = m_adam_heating.copy() # Updates for f2bf9048bef64cc5b6d5110154e33c81" -m_adam_heating["f2bf9048bef64cc5b6d5110154e33c81"]["climate_mode"] = "off" -m_adam_heating["f2bf9048bef64cc5b6d5110154e33c81"]["control_state"] = "idle" +m_adam_heating_off_schedule["f2bf9048bef64cc5b6d5110154e33c81"]["climate_mode"] = "off" +m_adam_heating_off_schedule["f2bf9048bef64cc5b6d5110154e33c81"]["control_state"] = "idle" # Go for e2f4 -m_adam_heating["f871b8c4d63549319221e294e4f88074"]["climate_mode"] = "off" -m_adam_heating["f871b8c4d63549319221e294e4f88074"]["control_state"] = "idle" -m_adam_heating["f871b8c4d63549319221e294e4f88074"]["select_schedule"] = "Badkamer" +m_adam_heating_off_schedule["f871b8c4d63549319221e294e4f88074"]["climate_mode"] = "off" +m_adam_heating_off_schedule["f871b8c4d63549319221e294e4f88074"]["control_state"] = "idle" +m_adam_heating_off_schedule["f871b8c4d63549319221e294e4f88074"]["select_schedule"] = "Badkamer" # Go for da22 -m_adam_heating["da224107914542988a88561b4452b0f6"]["select_regulation_mode"] = "off" +m_adam_heating_off_schedule["da224107914542988a88561b4452b0f6"]["select_regulation_mode"] = "off" # Go for 056e -m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["binary_sensors"][ +m_adam_heating_off_schedule["056ee145a816487eaa69243c3280f8bf"]["binary_sensors"][ "heating_state" ] = False -m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["sensors"][ +m_adam_heating_off_schedule["056ee145a816487eaa69243c3280f8bf"]["sensors"][ "intended_boiler_temperature" ] = 0.0 From b14f9e44d541eb7783bfd90679efb3bbb32dc13d Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 25 May 2026 12:39:43 +0200 Subject: [PATCH 014/371] Change P1 detection for Anna --- plugwise/__init__.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index 9c4cd84dd..f45f6149c 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -198,15 +198,13 @@ async def _smile_detect( return # pragma: no cover model = vendor_model.text - elec_measurement = gateway.find( - "gateway_environment/electricity_consumption_tariff_structure" + elec_point_meters = result.findall( + "./location/logs/point_log/electricity_point_meter" ) - if ( - elec_measurement is not None - and elec_measurement.text - and model == "smile_thermo" - ): - self.smile.anna_p1 = True + for meter in elec_point_meters: + if meter.get("id") is not None and model == "smile_thermo": + self.smile.anna_p1 = True + break else: model = await self._smile_detect_legacy(result, dsmrmain, model) From 5e90a9b58871ef6e839b9f039ac666b9456216f8 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 25 May 2026 13:27:44 +0200 Subject: [PATCH 015/371] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d162271b2..cc12cd2cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Ongoing +- Correct Anna P1 detection via PR (#879)[https://github.com/plugwise/python-plugwise/pull/879] - Create an extra test-fixture for increased test coverage in the Integration via PR [#878](https://github.com/plugwise/python-plugwise/pull/878) - Add missing Emma firmware via PR [#863](https://github.com/plugwise/python-plugwise/pull/863) - Improve test function added in #860 via PR [#862](https://github.com/plugwise/python-plugwise/pull/862) From db0a61497792d68dcbb4fd6db680b27b60d19670 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 25 May 2026 13:31:44 +0200 Subject: [PATCH 016/371] Set to v1.11.4 release-version --- CHANGELOG.md | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc12cd2cf..03e87b1d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Ongoing +## v1.11.4 - Correct Anna P1 detection via PR (#879)[https://github.com/plugwise/python-plugwise/pull/879] - Create an extra test-fixture for increased test coverage in the Integration via PR [#878](https://github.com/plugwise/python-plugwise/pull/878) diff --git a/pyproject.toml b/pyproject.toml index a66c400a2..3333fa6f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "plugwise" -version = "1.11.3" +version = "1.11.4" license = "MIT" description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3." readme = "README.md" From 1074fc2aba2f10276464d926be70caa14b4b4785 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 25 May 2026 13:37:21 +0200 Subject: [PATCH 017/371] Correct typos --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03e87b1d8..a6746c458 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## v1.11.4 -- Correct Anna P1 detection via PR (#879)[https://github.com/plugwise/python-plugwise/pull/879] +- Correct Anna P1 detection via PR [#879](https://github.com/plugwise/python-plugwise/pull/879) - Create an extra test-fixture for increased test coverage in the Integration via PR [#878](https://github.com/plugwise/python-plugwise/pull/878) - Add missing Emma firmware via PR [#863](https://github.com/plugwise/python-plugwise/pull/863) - Improve test function added in #860 via PR [#862](https://github.com/plugwise/python-plugwise/pull/862) From ad900b012fb88a49b82aaef2fe63abdb1c7e674a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 25 May 2026 16:50:31 +0200 Subject: [PATCH 018/371] Reduce complexity --- plugwise/__init__.py | 60 ++++++++++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index f45f6149c..830cf08f6 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -187,7 +187,14 @@ async def _smile_detect( """Helper-function for connect(). Detect which type of Plugwise Gateway is being connected. + Store the collected data, also collect some specific thermostat devices. """ + model = await self._collect_smile_data(dsmrmain, result) + self._store_smile_data(model) + self._process_for_thermostat(result) + + async def _collect_smile_data(self, dsmrmain: etree.Element, result: etree.Element) -> str: + """Collect smile/gateway data.""" model: str = "Unknown" if (gateway := result.find("./gateway")) is not None: self.smile.version = parse(gateway.find("firmware_version").text) @@ -218,6 +225,35 @@ async def _smile_detect( ) raise UnsupportedDeviceError + return model + + def _process_for_thermostat(self, result: etree.Element) -> None: + """Extra processing for thermostats.""" + if self.smile.type != "thermostat": + return + + self._is_thermostat = True + # For Adam, Anna, determine the system capabilities: + # Find the connected heating/cooling device (heater_central), + # e.g. heat-pump or gas-fired heater + onoff_boiler = result.find("./module/protocols/onoff_boiler") + open_therm_boiler = result.find("./module/protocols/open_therm_boiler") + self._on_off_device = onoff_boiler is not None + self._opentherm_device = open_therm_boiler is not None + + # Determine the presence of special features + locator_1 = "./gateway/features/cooling" + locator_2 = "./gateway/features/elga_support" + if result.find(locator_1) is not None: + self._cooling_present = True + if result.find(locator_2) is not None: + self._elga = True + + def _store_smile_data(self, model: str) -> None: + """Store the collected the smile/gateway data. + + Perform some checks, and set a shorter timeout for non-legacy Gateways. + """ version_major = str(self.smile.version.major) self._target_smile = f"{model}_v{version_major}" LOGGER.debug("Plugwise identified as %s", self._target_smile) @@ -249,30 +285,6 @@ async def _smile_detect( if self.smile.type == "stretch": self._stretch_v2 = int(version_major) == 2 - self._process_for_thermostat(result) - - def _process_for_thermostat(self, result: etree.Element) -> None: - """Extra processing for thermostats.""" - if self.smile.type != "thermostat": - return - - self._is_thermostat = True - # For Adam, Anna, determine the system capabilities: - # Find the connected heating/cooling device (heater_central), - # e.g. heat-pump or gas-fired heater - onoff_boiler = result.find("./module/protocols/onoff_boiler") - open_therm_boiler = result.find("./module/protocols/open_therm_boiler") - self._on_off_device = onoff_boiler is not None - self._opentherm_device = open_therm_boiler is not None - - # Determine the presence of special features - locator_1 = "./gateway/features/cooling" - locator_2 = "./gateway/features/elga_support" - if result.find(locator_1) is not None: - self._cooling_present = True - if result.find(locator_2) is not None: - self._elga = True - async def _smile_detect_legacy( self, result: etree.Element, dsmrmain: etree.Element, model: str ) -> str: From f3992bf98228c68cf5f9173cd9c8a4be754d1044 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 25 May 2026 17:38:32 +0200 Subject: [PATCH 019/371] Correct function return --- plugwise/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index 830cf08f6..64fa4c36e 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -193,7 +193,9 @@ async def _smile_detect( self._store_smile_data(model) self._process_for_thermostat(result) - async def _collect_smile_data(self, dsmrmain: etree.Element, result: etree.Element) -> str: + async def _collect_smile_data( + self, dsmrmain: etree.Element, result: etree.Element + ) -> str: """Collect smile/gateway data.""" model: str = "Unknown" if (gateway := result.find("./gateway")) is not None: @@ -201,10 +203,10 @@ async def _collect_smile_data(self, dsmrmain: etree.Element, result: etree.Eleme self.smile.hw_version = gateway.find("hardware_version").text self.smile.hostname = gateway.find("hostname").text self.smile.mac_address = gateway.find("mac_address").text - if (vendor_model := gateway.find("vendor_model")) is None: - return # pragma: no cover + if (vendor_model := gateway.find("vendor_model")) is not None: + model = vendor_model.text - model = vendor_model.text + # Check for Anna P1 function elec_point_meters = result.findall( "./location/logs/point_log/electricity_point_meter" ) From 6d5b83fed3c259840b477a93bf1478db0ddd61be Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 25 May 2026 17:40:46 +0200 Subject: [PATCH 020/371] Strengthen code as suggested --- plugwise/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index 64fa4c36e..efe23dfd4 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -211,7 +211,7 @@ async def _collect_smile_data( "./location/logs/point_log/electricity_point_meter" ) for meter in elec_point_meters: - if meter.get("id") is not None and model == "smile_thermo": + if meter.get("id") and model == "smile_thermo": self.smile.anna_p1 = True break else: From 33d4fb6dec6980e4ac8b419e1cebc781b768f4bf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 01:14:11 +0000 Subject: [PATCH 021/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.15 (#880) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7a0cdf3ad..11a77936d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.14 + rev: v0.15.15 hooks: - id: ruff name: "Ruff check" From e462c6edd1ef443d09bde0a53d28736fe54bd6b0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 01:49:29 +0000 Subject: [PATCH 022/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.16 (#881) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 11a77936d..7047a4347 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.15 + rev: v0.15.16 hooks: - id: ruff name: "Ruff check" From d06304ecdf532ae65ae4c989f8dc1f4451fdd872 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 00:51:14 +0000 Subject: [PATCH 023/371] Update codecov/codecov-action action to v7 (#882) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 512627b10..82a033474 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -235,7 +235,7 @@ jobs: coverage report --fail-under=94 coverage xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v6 + uses: codecov/codecov-action@v7 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 705958aa40c2371dbeb64083e21fc8097b5f1c48 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 02:06:42 +0000 Subject: [PATCH 024/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.17 (#884) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7047a4347..c22b2906f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.16 + rev: v0.15.17 hooks: - id: ruff name: "Ruff check" From a80708904d228890e11d9ddf72d37223634ae41f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 05:47:30 +0000 Subject: [PATCH 025/371] Update pre-commit hook jackdewinter/pymarkdown to v0.9.38 (#885) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c22b2906f..873167545 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -112,7 +112,7 @@ repos: language: script pass_filenames: false - repo: https://github.com/jackdewinter/pymarkdown - rev: v0.9.37 + rev: v0.9.38 hooks: - id: pymarkdown name: MarkDown Lint From 8072baa94e73f3e97ad0640bdda8dab988513071 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 03:03:15 +0000 Subject: [PATCH 026/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.18 (#886) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 873167545..126db5f1c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.17 + rev: v0.15.18 hooks: - id: ruff name: "Ruff check" From ef07aecce4075b920c818e41e5f0df6db6543335 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 06:05:06 +0000 Subject: [PATCH 027/371] Update actions/checkout action to v7 (#887) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/merge.yml | 2 +- .github/workflows/verify.yml | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6f3a0fd2a..413f9ab3d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -36,7 +36,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index f144643b6..00ad17b66 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -26,7 +26,7 @@ jobs: if: github.event.pull_request.merged == true steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Prepare uv run: | pip install uv diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 82a033474..7cf273e52 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -25,7 +25,7 @@ jobs: python-version: ${{ steps.python.outputs.python-version }} # Ensure all runners use THIS minor version steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Python and determine minor version for ${{ env.DEFAULT_PYTHON }} id: python uses: actions/setup-python@v6 @@ -62,7 +62,7 @@ jobs: - prepare steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: persist-credentials: false - name: Restore cached environment @@ -100,7 +100,7 @@ jobs: - dependencies_check steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Restore cached environment id: cache-reuse uses: plugwise/gh-actions/restore-venv@v2 @@ -130,7 +130,7 @@ jobs: python-version: ["3.14", "3.13"] steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} id: python uses: actions/setup-python@v6 @@ -166,7 +166,7 @@ jobs: - pytest steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: persist-credentials: false - name: Restore cached environment @@ -189,7 +189,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Run ShellCheck uses: ludeeus/action-shellcheck@master @@ -199,7 +199,7 @@ jobs: name: Dependency steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Run dependency checker run: scripts/dependencies_check.sh debug @@ -213,7 +213,7 @@ jobs: - mypy steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Restore cached environment id: cache-reuse uses: plugwise/gh-actions/restore-venv@v2 @@ -253,7 +253,7 @@ jobs: - mypy steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Prepare uv run: | pip install uv @@ -295,7 +295,7 @@ jobs: - coverage steps: - name: Check out committed code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Restore cached environment id: cache-reuse uses: plugwise/gh-actions/restore-venv@v2 From bbbb02ca54e99aa0f351612975ca0e01881130cd Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 8 Jun 2026 15:31:07 +0200 Subject: [PATCH 028/371] Change dhw_cm_switch to _dhw_allowed_modes/select_dhw_mode --- plugwise/helper.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 075f5b17d..d8ecadfca 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -482,8 +482,13 @@ def _get_toggle_state( if xml.find("type").text == "heater_central": locator = f"./actuator_functionalities/toggle_functionality[type='{toggle}']/state" if (state := xml.find(locator)) is not None: - data["switches"][name] = state.text == "on" - self._count += 1 + match toggle: + case "cooling_ena_switch": + data["switches"][name] = state.text == "on" + self._count += 1 + case "dhw_cm_switch": + self._dhw_allowed_modes = ["comfort", "off"] + self.select_dhw_mode = "comfort" if state.text == "on" else "off" def _get_plugwise_notifications(self) -> None: """Collect the Plugwise notifications.""" From 34ca03e08e0f74a0744d9ce3961dc06d59244dab Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 9 Jun 2026 08:13:22 +0200 Subject: [PATCH 029/371] Adapt comment to widened scope --- plugwise/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index d8ecadfca..b72a384fb 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -351,7 +351,7 @@ def _get_measurement_data(self, entity_id: str, entity: GwEntityData) -> None: measurements = DEVICE_MEASUREMENTS if self._is_thermostat and entity_id == self.heater_id: measurements = HEATER_CENTRAL_MEASUREMENTS - # Show the allowed dhw_modes (Loria only) + # Show the available dhw_modes if self._dhw_allowed_modes: data["dhw_modes"] = self._dhw_allowed_modes # Counting of this item is done in _appliance_measurements() From de48b75289f66354af45e889441ba8d3b781e977 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 9 Jun 2026 08:14:43 +0200 Subject: [PATCH 030/371] Move toggles collection up --- plugwise/helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index b72a384fb..869a3aef9 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -407,12 +407,12 @@ def _collect_appliance_data( if ( appliance := self._domain_objects.find(f'./appliance[@id="{entity_id}"]') ) is not None: - self._appliance_measurements(appliance, data, measurements) - self._get_lock_state(appliance, data) - for toggle, name in TOGGLES.items(): self._get_toggle_state(appliance, toggle, name, data) + self._appliance_measurements(appliance, data, measurements) + self._get_lock_state(appliance, data) + if appliance.find("type").text in ACTUATOR_CLASSES: self._get_actuator_functionalities(appliance, entity, data) From aadfedb23cf09291a8e504cc8cbe52359f9aef3e Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 9 Jun 2026 08:21:29 +0200 Subject: [PATCH 031/371] Improve --- plugwise/helper.py | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 869a3aef9..c7be3f7fd 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -242,9 +242,8 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch appl := self._appl_heater_central_info(appl, appliance, False) ): # False means non-legacy entity return Munch() - self._dhw_allowed_modes = self._get_appl_actuator_modes( - appliance, "domestic_hot_water_mode_control_functionality" - ) + self._collect_dhw_modes(appliance) + return appl case _ as s if s.endswith("_plug"): # Collect info from plug-types (Plug, Aqara Smart Plug) @@ -265,6 +264,18 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch case _: # pragma: no cover return Munch() + def _collect_dhw_modes(self, appliance: etree.Element) -> None: + """Collect the DHW modes.""" + # Collect the Loria dhw_modes + self._dhw_allowed_modes = self._get_appl_actuator_modes( + appliance, "domestic_hot_water_mode_control_functionality" + ) + # Collect the default dhw modes: comfort and off + if not self._dhw_allowed_modes: + self._get_toggle_state( + appliance, "domestic_hot_water_comfort_mode", "dhw_cm_switch", None + ) + def _appl_gateway_info(self, appl: Munch, appliance: etree.Element) -> Munch: """Helper-function for _appliance_info_finder().""" self._gateway_id = appl.entity_id @@ -407,8 +418,8 @@ def _collect_appliance_data( if ( appliance := self._domain_objects.find(f'./appliance[@id="{entity_id}"]') ) is not None: - for toggle, name in TOGGLES.items(): - self._get_toggle_state(appliance, toggle, name, data) + # Collect the cooling enabled toggle state + self._get_toggle_state(appliance, "cooling_enabled", "cooling_ena_switch", data) self._appliance_measurements(appliance, data, measurements) self._get_lock_state(appliance, data) @@ -483,12 +494,12 @@ def _get_toggle_state( locator = f"./actuator_functionalities/toggle_functionality[type='{toggle}']/state" if (state := xml.find(locator)) is not None: match toggle: - case "cooling_ena_switch": + case "cooling_enabled": data["switches"][name] = state.text == "on" self._count += 1 - case "dhw_cm_switch": + case "domestic_hot_water_comfort_mode": self._dhw_allowed_modes = ["comfort", "off"] - self.select_dhw_mode = "comfort" if state.text == "on" else "off" + # data["select_dhw_mode"] = "comfort" if state.text == "on" else "off" def _get_plugwise_notifications(self) -> None: """Collect the Plugwise notifications.""" From e281ce6a914a6b3c01c375466db62379187f1c23 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 9 Jun 2026 20:06:12 +0200 Subject: [PATCH 032/371] Constants: add 2nd options for select_dhw_mode --- plugwise/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugwise/constants.py b/plugwise/constants.py index 267f2cbdb..4673b6dd7 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -181,6 +181,7 @@ ), # Available with the Loria and Elga (newer Anna firmware) heatpumps "cooling_state": UOM(NONE), "domestic_hot_water_mode": DATA("select_dhw_mode", NONE), + "domestic_hot_water_comfort_mode": DATA("select_dhw_mode", NONE), "domestic_hot_water_setpoint": UOM(TEMP_CELSIUS), "domestic_hot_water_state": DATA("dhw_state", NONE), "domestic_hot_water_temperature": DATA("dhw_temperature", TEMP_CELSIUS), From 564d902029231f05332e35072459a29b280d14ff Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 9 Jun 2026 20:09:23 +0200 Subject: [PATCH 033/371] Improve 2 --- plugwise/helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index c7be3f7fd..797277b0d 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -463,6 +463,7 @@ def _appliance_measurements( continue if new_name := getattr(attrs, ATTR_NAME, None): + old_measurement = measurement measurement = new_name match measurement: @@ -471,6 +472,8 @@ def _appliance_measurements( case "select_dhw_mode": if self._dhw_allowed_modes: data["select_dhw_mode"] = appl_p_loc.text + if old_measurement == "domestic_hot_water_comfort_mode": + data["select_dhw_mode"] = "comfort" if appl_p_loc.text == "on" else "off" common_match_cases(measurement, attrs, appl_p_loc, data) @@ -499,7 +502,6 @@ def _get_toggle_state( self._count += 1 case "domestic_hot_water_comfort_mode": self._dhw_allowed_modes = ["comfort", "off"] - # data["select_dhw_mode"] = "comfort" if state.text == "on" else "off" def _get_plugwise_notifications(self) -> None: """Collect the Plugwise notifications.""" From ebd6b8a3a2240b12445cbf28628e975d19e1341b Mon Sep 17 00:00:00 2001 From: autoruff Date: Tue, 9 Jun 2026 18:20:22 +0000 Subject: [PATCH 034/371] fixup: dhw_update Python code fixed using ruff --- plugwise/helper.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 797277b0d..b6f7645c8 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -419,7 +419,9 @@ def _collect_appliance_data( appliance := self._domain_objects.find(f'./appliance[@id="{entity_id}"]') ) is not None: # Collect the cooling enabled toggle state - self._get_toggle_state(appliance, "cooling_enabled", "cooling_ena_switch", data) + self._get_toggle_state( + appliance, "cooling_enabled", "cooling_ena_switch", data + ) self._appliance_measurements(appliance, data, measurements) self._get_lock_state(appliance, data) @@ -473,7 +475,9 @@ def _appliance_measurements( if self._dhw_allowed_modes: data["select_dhw_mode"] = appl_p_loc.text if old_measurement == "domestic_hot_water_comfort_mode": - data["select_dhw_mode"] = "comfort" if appl_p_loc.text == "on" else "off" + data["select_dhw_mode"] = ( + "comfort" if appl_p_loc.text == "on" else "off" + ) common_match_cases(measurement, attrs, appl_p_loc, data) From 64377af41ec4c767785c6ff02db55432d91f1224 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 10 Jun 2026 07:57:02 +0200 Subject: [PATCH 035/371] Update testdata json --- tests/data/adam/adam_bad_thermostat.json | 8 +++++--- tests/data/adam/adam_heatpump_cooling.json | 8 +++++--- tests/data/adam/adam_jip.json | 8 +++++--- tests/data/adam/adam_onoff_cooling_fake_firmware.json | 8 +++++--- tests/data/adam/adam_plus_anna.json | 8 +++++--- tests/data/adam/adam_plus_anna_new.json | 8 +++++--- tests/data/adam/adam_plus_anna_new_regulation_off.json | 8 +++++--- 7 files changed, 35 insertions(+), 21 deletions(-) diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index 5554c02e1..16978a60c 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -7,6 +7,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "856285a783f24bf4b2573c8bc510eabf", "max_dhw_temperature": { "lower_bound": 0.0, @@ -23,6 +27,7 @@ "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, @@ -31,9 +36,6 @@ "return_temperature": 33.0, "water_temperature": 20.9 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "WeHeat" }, "3ee6b9486cb04c258a3130fff2b144a4": { diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index 71bfad7e2..6c9f1fabe 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -44,6 +44,10 @@ }, "dev_class": "heater_central", "location": "eedadcb297564f1483faa509179aebed", + "dhw_modes": [ + "comfort", + "off" + ], "max_dhw_temperature": { "lower_bound": 40.0, "resolution": 0.01, @@ -59,6 +63,7 @@ "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, @@ -68,9 +73,6 @@ "water_pressure": 2.0, "water_temperature": 24.5 }, - "switches": { - "dhw_cm_switch": true - }, "vendor": "Remeha B.V." }, "1053c8bbf8be43c6921742b146a625f1": { diff --git a/tests/data/adam/adam_jip.json b/tests/data/adam/adam_jip.json index a1136e3c9..3c10a4ca7 100644 --- a/tests/data/adam/adam_jip.json +++ b/tests/data/adam/adam_jip.json @@ -330,6 +330,10 @@ }, "dev_class": "heater_central", "location": "9e4433a9d69f40b3aefd15e74395eaec", + "dhw_modes": [ + "comfort", + "off" + ], "max_dhw_temperature": { "lower_bound": 40.0, "resolution": 0.01, @@ -345,6 +349,7 @@ "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, @@ -352,9 +357,6 @@ "water_pressure": 1.4, "water_temperature": 37.3 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Remeha B.V." }, "f61f1a2535f54f52ad006a3d18e459ca": { diff --git a/tests/data/adam/adam_onoff_cooling_fake_firmware.json b/tests/data/adam/adam_onoff_cooling_fake_firmware.json index f822e33d8..27d994a0e 100644 --- a/tests/data/adam/adam_onoff_cooling_fake_firmware.json +++ b/tests/data/adam/adam_onoff_cooling_fake_firmware.json @@ -9,6 +9,10 @@ }, "dev_class": "heater_central", "location": "eedadcb297564f1483faa509179aebed", + "dhw_modes": [ + "comfort", + "off" + ], "max_dhw_temperature": { "lower_bound": 40.0, "resolution": 0.01, @@ -23,6 +27,7 @@ }, "model": "Unknown", "name": "OnOff", + "select_dhw_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, @@ -31,9 +36,6 @@ "return_temperature": 24.9, "water_pressure": 2.0, "water_temperature": 24.5 - }, - "switches": { - "dhw_cm_switch": true } }, "7d97fc3117784cfdafe347bcedcbbbcb": { diff --git a/tests/data/adam/adam_plus_anna.json b/tests/data/adam/adam_plus_anna.json index 8533e7468..d86a53176 100644 --- a/tests/data/adam/adam_plus_anna.json +++ b/tests/data/adam/adam_plus_anna.json @@ -35,6 +35,10 @@ }, "dev_class": "heater_central", "location": "07d618f0bb80412687f065b8698ce3e7", + "dhw_modes": [ + "comfort", + "off" + ], "maximum_boiler_temperature": { "lower_bound": 0.0, "resolution": 1.0, @@ -43,12 +47,10 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "water_temperature": 48.0 - }, - "switches": { - "dhw_cm_switch": false } }, "aa6b0002df0a46e1b1eb94beb61eddfe": { diff --git a/tests/data/adam/adam_plus_anna_new.json b/tests/data/adam/adam_plus_anna_new.json index 0c1057afc..d794d51cd 100644 --- a/tests/data/adam/adam_plus_anna_new.json +++ b/tests/data/adam/adam_plus_anna_new.json @@ -8,6 +8,10 @@ }, "dev_class": "heater_central", "location": "bc93488efab249e5bc54fd7e175a6f91", + "dhw_modes": [ + "comfort", + "off" + ], "maximum_boiler_temperature": { "lower_bound": 25.0, "resolution": 0.01, @@ -16,12 +20,10 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 22.5, "water_temperature": 43.0 - }, - "switches": { - "dhw_cm_switch": false } }, "10016900610d4c7481df78c89606ef22": { diff --git a/tests/data/adam/adam_plus_anna_new_regulation_off.json b/tests/data/adam/adam_plus_anna_new_regulation_off.json index 4a0576d90..4f3130c05 100644 --- a/tests/data/adam/adam_plus_anna_new_regulation_off.json +++ b/tests/data/adam/adam_plus_anna_new_regulation_off.json @@ -8,6 +8,10 @@ }, "dev_class": "heater_central", "location": "bc93488efab249e5bc54fd7e175a6f91", + "dhw_modes": [ + "comfort", + "off" + ], "maximum_boiler_temperature": { "lower_bound": 25.0, "resolution": 0.01, @@ -16,12 +20,10 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "water_temperature": 30.0 - }, - "switches": { - "dhw_cm_switch": false } }, "10016900610d4c7481df78c89606ef22": { From 124a633cf01055140c184e7002c03bd6b2c2620c Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 10 Jun 2026 08:13:15 +0200 Subject: [PATCH 036/371] Save entity_items updates --- tests/test_adam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index b818713f1..98266c7cc 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -47,7 +47,7 @@ async def test_connect_adam_plus_anna_new(self): test_items = await self.device_test(api, "2025-10-12 00:00:01", testdata) assert api.gateway_id == "da224107914542988a88561b4452b0f6" - assert self.entity_items == 231 + assert self.entity_items == 232 assert test_items == self.entity_items assert self.entity_list == [ "da224107914542988a88561b4452b0f6", From eee59b7e0ec506a3689590ad8a52c28c50b26639 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 10 Jun 2026 16:26:41 +0200 Subject: [PATCH 037/371] Fix typing as suggested --- plugwise/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index b6f7645c8..237303fd6 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -491,7 +491,7 @@ def _appliance_measurements( self._count = count_data_items(self._count, data) def _get_toggle_state( - self, xml: etree.Element, toggle: str, name: ToggleNameType, data: GwEntityData + self, xml: etree.Element, toggle: str, name: ToggleNameType, data: GwEntityData | None ) -> None: """Helper-function for _get_measurement_data(). From 052ffc29860dfe1942f851560073512249e26546 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 10 Jun 2026 18:54:31 +0200 Subject: [PATCH 038/371] Remove dhw_cm_switch from SwitchType and SmileSwitch classes --- plugwise/constants.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugwise/constants.py b/plugwise/constants.py index 4673b6dd7..85e901b1c 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -387,7 +387,6 @@ SwitchType = Literal[ "cooling_ena_switch", - "dhw_cm_switch", "lock", "relay", ] @@ -506,7 +505,6 @@ class SmileSwitches(TypedDict, total=False): """Smile Switches class.""" cooling_ena_switch: bool - dhw_cm_switch: bool lock: bool relay: bool From 72dfd8152b7033ea3109e0ea3a86453bca748d26 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 19:24:25 +0200 Subject: [PATCH 039/371] Fix item_count --- fixtures/adam_bad_thermostat/data.json | 8 +++++--- fixtures/adam_plus_anna_new/data.json | 8 +++++--- plugwise/helper.py | 1 - 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/fixtures/adam_bad_thermostat/data.json b/fixtures/adam_bad_thermostat/data.json index 5554c02e1..16978a60c 100644 --- a/fixtures/adam_bad_thermostat/data.json +++ b/fixtures/adam_bad_thermostat/data.json @@ -7,6 +7,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "856285a783f24bf4b2573c8bc510eabf", "max_dhw_temperature": { "lower_bound": 0.0, @@ -23,6 +27,7 @@ "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, @@ -31,9 +36,6 @@ "return_temperature": 33.0, "water_temperature": 20.9 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "WeHeat" }, "3ee6b9486cb04c258a3130fff2b144a4": { diff --git a/fixtures/adam_plus_anna_new/data.json b/fixtures/adam_plus_anna_new/data.json index 0c1057afc..56c7ffbb0 100644 --- a/fixtures/adam_plus_anna_new/data.json +++ b/fixtures/adam_plus_anna_new/data.json @@ -7,6 +7,10 @@ "heating_state": true }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "bc93488efab249e5bc54fd7e175a6f91", "maximum_boiler_temperature": { "lower_bound": 25.0, @@ -16,12 +20,10 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 22.5, "water_temperature": 43.0 - }, - "switches": { - "dhw_cm_switch": false } }, "10016900610d4c7481df78c89606ef22": { diff --git a/plugwise/helper.py b/plugwise/helper.py index 237303fd6..14ba5f8c5 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -503,7 +503,6 @@ def _get_toggle_state( match toggle: case "cooling_enabled": data["switches"][name] = state.text == "on" - self._count += 1 case "domestic_hot_water_comfort_mode": self._dhw_allowed_modes = ["comfort", "off"] From 659d9682b6fc338fda8f5adb465f0d8a93a36062 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 19:27:13 +0200 Subject: [PATCH 040/371] Remove now invalid testcase --- tests/test_adam.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index 98266c7cc..55701f17e 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -115,12 +115,6 @@ async def test_connect_adam_plus_anna_new(self): ["2568cc4b9c1e401495d4741a5f89bee1", "29542b2b6a6a4169acecc15c72a599b8"], ) assert switch_change - switch_change = await self.tinker_switch( - api, - "056ee145a816487eaa69243c3280f8bf", - model="dhw_cm_switch", - ) - assert switch_change # Test relay without lock-attribute switch_change = await self.tinker_switch( api, From 431b7dde88c4dba96ea7e8c540441b1b39c05b46 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 19:30:38 +0200 Subject: [PATCH 041/371] Correct test-json --- tests/data/adam/adam_heatpump_cooling.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index 6c9f1fabe..604192067 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -63,7 +63,7 @@ "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, From 1dfc1b8cebfeb7ebbd1f1c0b4b5a2e40610e9a60 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 19:32:15 +0200 Subject: [PATCH 042/371] Fix entity_items count --- fixtures/adam_heatpump_cooling/data.json | 8 +++++--- fixtures/adam_plus_anna_new_regulation_off/data.json | 8 +++++--- tests/test_adam.py | 8 ++++---- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/fixtures/adam_heatpump_cooling/data.json b/fixtures/adam_heatpump_cooling/data.json index 4075bf756..d0dc677c0 100644 --- a/fixtures/adam_heatpump_cooling/data.json +++ b/fixtures/adam_heatpump_cooling/data.json @@ -55,6 +55,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "eedadcb297564f1483faa509179aebed", "max_dhw_temperature": { "lower_bound": 40.0, @@ -71,6 +75,7 @@ "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", + "select_dhw_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, @@ -80,9 +85,6 @@ "water_pressure": 2.0, "water_temperature": 24.5 }, - "switches": { - "dhw_cm_switch": true - }, "vendor": "Remeha B.V." }, "1053c8bbf8be43c6921742b146a625f1": { diff --git a/fixtures/adam_plus_anna_new_regulation_off/data.json b/fixtures/adam_plus_anna_new_regulation_off/data.json index ca57a68b6..dab5f22f7 100644 --- a/fixtures/adam_plus_anna_new_regulation_off/data.json +++ b/fixtures/adam_plus_anna_new_regulation_off/data.json @@ -7,6 +7,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "bc93488efab249e5bc54fd7e175a6f91", "maximum_boiler_temperature": { "lower_bound": 25.0, @@ -16,12 +20,10 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "water_temperature": 30.0 - }, - "switches": { - "dhw_cm_switch": false } }, "10016900610d4c7481df78c89606ef22": { diff --git a/tests/test_adam.py b/tests/test_adam.py index 55701f17e..149d717a9 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -346,7 +346,7 @@ async def test_adam_heatpump_cooling(self): server, api, client = await self.connect_wrapper() test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) - assert self.entity_items == 539 + assert self.entity_items == 540 assert test_items == self.entity_items assert self.cooling_present assert self._cooling_enabled @@ -370,7 +370,7 @@ async def test_connect_adam_onoff_cooling_fake_firmware(self): ) test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) - assert self.entity_items == 70 + assert self.entity_items == 71 assert test_items == self.entity_items assert self.cooling_present # assert self._cooling_enabled - no cooling_enabled indication present @@ -395,7 +395,7 @@ async def test_connect_adam_plus_anna(self): test_items = await self.device_test(api, "2020-03-22 00:00:01", testdata) assert api.gateway_id == "b128b4bbbd1f47e9bf4d756e8fb5ee94" - assert self.entity_items == 82 + assert self.entity_items == 83 assert test_items == self.entity_items assert "6fb89e35caeb4b1cb275184895202d84" in self.notifications @@ -436,7 +436,7 @@ async def test_adam_plus_jip(self): test_items = await self.device_test(api, "2021-06-20 00:00:01", testdata) assert api.gateway_id == "b5c2386c6f6342669e50fe49dd05b188" - assert self.entity_items == 269 + assert self.entity_items == 270 assert test_items == self.entity_items # Negative test From 7492f2f883d73c945c238af1f54ede7859c58f2c Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 19:36:32 +0200 Subject: [PATCH 043/371] Save updated adam fixtures --- fixtures/adam_jip/data.json | 8 +++++--- fixtures/adam_onoff_cooling_fake_firmware/data.json | 8 +++++--- fixtures/adam_plus_anna/data.json | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/fixtures/adam_jip/data.json b/fixtures/adam_jip/data.json index 65d256e10..315eba45b 100644 --- a/fixtures/adam_jip/data.json +++ b/fixtures/adam_jip/data.json @@ -394,6 +394,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "9e4433a9d69f40b3aefd15e74395eaec", "max_dhw_temperature": { "lower_bound": 40.0, @@ -410,6 +414,7 @@ "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, @@ -417,9 +422,6 @@ "water_pressure": 1.4, "water_temperature": 37.3 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Remeha B.V." }, "f61f1a2535f54f52ad006a3d18e459ca": { diff --git a/fixtures/adam_onoff_cooling_fake_firmware/data.json b/fixtures/adam_onoff_cooling_fake_firmware/data.json index 117954c61..f1902e5a4 100644 --- a/fixtures/adam_onoff_cooling_fake_firmware/data.json +++ b/fixtures/adam_onoff_cooling_fake_firmware/data.json @@ -8,6 +8,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "eedadcb297564f1483faa509179aebed", "max_dhw_temperature": { "lower_bound": 40.0, @@ -23,6 +27,7 @@ }, "model": "Unknown", "name": "OnOff", + "select_dhw_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, @@ -31,9 +36,6 @@ "return_temperature": 24.9, "water_pressure": 2.0, "water_temperature": 24.5 - }, - "switches": { - "dhw_cm_switch": true } }, "7d97fc3117784cfdafe347bcedcbbbcb": { diff --git a/fixtures/adam_plus_anna/data.json b/fixtures/adam_plus_anna/data.json index 57d9011c1..22986758b 100644 --- a/fixtures/adam_plus_anna/data.json +++ b/fixtures/adam_plus_anna/data.json @@ -45,6 +45,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "07d618f0bb80412687f065b8698ce3e7", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -54,12 +58,10 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "water_temperature": 48.0 - }, - "switches": { - "dhw_cm_switch": false } }, "aa6b0002df0a46e1b1eb94beb61eddfe": { From 0f6df7b1057f19f67339513d1ef5c06155bb3c24 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 20:01:06 +0200 Subject: [PATCH 044/371] Save updated anna test-jsons --- tests/data/anna/anna_elga_2.json | 8 +++++--- tests/data/anna/anna_elga_2_cooling.json | 8 +++++--- tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json | 8 +++++--- tests/data/anna/anna_elga_2_schedule_off.json | 8 +++++--- tests/data/anna/anna_elga_no_cooling.json | 8 +++++--- tests/data/anna/anna_heatpump_cooling.json | 8 +++++--- tests/data/anna/anna_heatpump_cooling_fake_firmware.json | 8 +++++--- tests/data/anna/anna_heatpump_heating.json | 8 +++++--- tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json | 9 ++++++--- tests/data/anna/anna_loria_cooling_active.json | 3 +-- tests/data/anna/anna_loria_driessens.json | 3 +-- tests/data/anna/anna_loria_heating_idle.json | 3 +-- tests/data/anna/anna_p1.json | 5 ++--- tests/data/anna/anna_v4.json | 5 ++--- tests/data/anna/anna_v4_UPDATED_DATA.json | 5 ++--- tests/data/anna/anna_v4_dhw.json | 5 ++--- tests/data/anna/anna_v4_no_tag.json | 5 ++--- 17 files changed, 59 insertions(+), 48 deletions(-) diff --git a/tests/data/anna/anna_elga_2.json b/tests/data/anna/anna_elga_2.json index e417927a2..d2efd669e 100644 --- a/tests/data/anna/anna_elga_2.json +++ b/tests/data/anna/anna_elga_2.json @@ -11,9 +11,14 @@ "secondary_boiler_state": true }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "d34dfe6ab90b410c98068e75de3eb631", "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 58.3, @@ -23,9 +28,6 @@ "water_pressure": 0.5, "water_temperature": 42.6 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { diff --git a/tests/data/anna/anna_elga_2_cooling.json b/tests/data/anna/anna_elga_2_cooling.json index 0c417702b..1910f9e8c 100644 --- a/tests/data/anna/anna_elga_2_cooling.json +++ b/tests/data/anna/anna_elga_2_cooling.json @@ -11,6 +11,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "d34dfe6ab90b410c98068e75de3eb631", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -20,6 +24,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "comfort", "sensors": { "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 0.0, @@ -29,9 +34,6 @@ "water_pressure": 0.5, "water_temperature": 22.8 }, - "switches": { - "dhw_cm_switch": true - }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { diff --git a/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json b/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json index e4dcbd958..446c24759 100644 --- a/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json +++ b/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json @@ -11,6 +11,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "d34dfe6ab90b410c98068e75de3eb631", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -20,6 +24,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "comfort", "sensors": { "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 0.0, @@ -29,9 +34,6 @@ "water_pressure": 0.5, "water_temperature": 22.8 }, - "switches": { - "dhw_cm_switch": true - }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { diff --git a/tests/data/anna/anna_elga_2_schedule_off.json b/tests/data/anna/anna_elga_2_schedule_off.json index 064a483d8..0fa003651 100644 --- a/tests/data/anna/anna_elga_2_schedule_off.json +++ b/tests/data/anna/anna_elga_2_schedule_off.json @@ -11,6 +11,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "d34dfe6ab90b410c98068e75de3eb631", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -20,6 +24,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "comfort", "sensors": { "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 0.0, @@ -29,9 +34,6 @@ "water_pressure": 0.5, "water_temperature": 22.8 }, - "switches": { - "dhw_cm_switch": true - }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index 23ec151d4..756f47148 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -4,6 +4,10 @@ "plugwise_notification": false }, "dev_class": "gateway", + "dhw_modes": [ + "comfort", + "off" + ], "firmware": "4.0.15", "hardware": "AME Smile 2.0 board", "location": "a57efe5f145f498c9be62a9b63626fbf", @@ -42,6 +46,7 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, @@ -51,9 +56,6 @@ "water_pressure": 1.57, "water_temperature": 29.1 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { diff --git a/tests/data/anna/anna_heatpump_cooling.json b/tests/data/anna/anna_heatpump_cooling.json index c722045a2..abdea92dc 100644 --- a/tests/data/anna/anna_heatpump_cooling.json +++ b/tests/data/anna/anna_heatpump_cooling.json @@ -29,6 +29,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -38,6 +42,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 41.5, "domestic_hot_water_setpoint": 60.0, @@ -48,9 +53,6 @@ "water_pressure": 1.61, "water_temperature": 24.7 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { diff --git a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json index 4218240cb..77eaab4e1 100644 --- a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json +++ b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json @@ -29,6 +29,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -38,6 +42,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 41.5, "domestic_hot_water_setpoint": 60.0, @@ -48,9 +53,6 @@ "water_pressure": 1.61, "water_temperature": 24.7 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { diff --git a/tests/data/anna/anna_heatpump_heating.json b/tests/data/anna/anna_heatpump_heating.json index ab6bdf08e..809f9afea 100644 --- a/tests/data/anna/anna_heatpump_heating.json +++ b/tests/data/anna/anna_heatpump_heating.json @@ -29,6 +29,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "max_dhw_temperature": { "lower_bound": 35.0, @@ -44,6 +48,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, @@ -53,9 +58,6 @@ "water_pressure": 1.57, "water_temperature": 29.1 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { diff --git a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json index a36012587..bb8c9aac8 100644 --- a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json +++ b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json @@ -1,6 +1,10 @@ { "1cbf783bb11e4a7c8a6843dee3a86927": { "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", @@ -21,6 +25,7 @@ "secondary_boiler_state": false, "flame_state": false }, + "select_dhw_mode": "off", "sensors": { "water_temperature": 29.1, "domestic_hot_water_setpoint": 60.0, @@ -30,9 +35,7 @@ "return_temperature": 25.1, "water_pressure": 1.57, "outdoor_air_temperature": 3.0 - }, - "switches": { - "dhw_cm_switch": false + } } } diff --git a/tests/data/anna/anna_loria_cooling_active.json b/tests/data/anna/anna_loria_cooling_active.json index 8b6c7341e..7d16279cc 100644 --- a/tests/data/anna/anna_loria_cooling_active.json +++ b/tests/data/anna/anna_loria_cooling_active.json @@ -88,8 +88,7 @@ "water_temperature": 25.3 }, "switches": { - "cooling_ena_switch": true, - "dhw_cm_switch": true + "cooling_ena_switch": true }, "vendor": "Atlantic" } diff --git a/tests/data/anna/anna_loria_driessens.json b/tests/data/anna/anna_loria_driessens.json index 2519d1f45..809904ecd 100644 --- a/tests/data/anna/anna_loria_driessens.json +++ b/tests/data/anna/anna_loria_driessens.json @@ -94,8 +94,7 @@ "water_temperature": 23.3 }, "switches": { - "cooling_ena_switch": false, - "dhw_cm_switch": true + "cooling_ena_switch": false }, "vendor": "Atlantic" } diff --git a/tests/data/anna/anna_loria_heating_idle.json b/tests/data/anna/anna_loria_heating_idle.json index d1b640345..c6f83d35a 100644 --- a/tests/data/anna/anna_loria_heating_idle.json +++ b/tests/data/anna/anna_loria_heating_idle.json @@ -88,8 +88,7 @@ "water_temperature": 25.3 }, "switches": { - "cooling_ena_switch": false, - "dhw_cm_switch": true + "cooling_ena_switch": false }, "vendor": "Atlantic" } diff --git a/tests/data/anna/anna_p1.json b/tests/data/anna/anna_p1.json index 2d09ad41f..4afa66135 100644 --- a/tests/data/anna/anna_p1.json +++ b/tests/data/anna/anna_p1.json @@ -39,19 +39,18 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": ["comfort", "off"], "location": "da7be222ab3b420c927f3e49fade0304", "model": "Generic heater", "model_id": "HR24", "name": "OpenTherm", + "select_dhw_mode": "comfort", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "water_pressure": 6.0, "water_temperature": 35.0 }, - "switches": { - "dhw_cm_switch": true - }, "vendor": "Intergas" }, "da7be222ab3b420c927f3e49fade0304": { diff --git a/tests/data/anna/anna_v4.json b/tests/data/anna/anna_v4.json index 7e6f138be..6696e2511 100644 --- a/tests/data/anna/anna_v4.json +++ b/tests/data/anna/anna_v4.json @@ -57,6 +57,7 @@ "heating_state": true }, "dev_class": "heater_central", + "dhw_modes": ["comfort", "off"], "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "max_dhw_temperature": { "lower_bound": 30.0, @@ -73,6 +74,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, @@ -80,9 +82,6 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Bosch Thermotechniek B.V." } } diff --git a/tests/data/anna/anna_v4_UPDATED_DATA.json b/tests/data/anna/anna_v4_UPDATED_DATA.json index 0d0fde7af..dac96af49 100644 --- a/tests/data/anna/anna_v4_UPDATED_DATA.json +++ b/tests/data/anna/anna_v4_UPDATED_DATA.json @@ -1,5 +1,6 @@ { "cd0e6156b1f04d5f952349ffbe397481": { + "dhw_modes": ["comfort", "off"], "maximum_boiler_temperature": { "setpoint": 69.0, "lower_bound": 0.0, @@ -17,15 +18,13 @@ "heating_state": false, "flame_state": false }, + "select_dhw_mode": "off", "sensors": { "water_temperature": 51.0, "intended_boiler_temperature": 0.0, "modulation_level": 0, "return_temperature": 41.0, "water_pressure": 2.1 - }, - "switches": { - "dhw_cm_switch": true } }, "01b85360fdd243d0aaad4d6ac2a5ba7e": { diff --git a/tests/data/anna/anna_v4_dhw.json b/tests/data/anna/anna_v4_dhw.json index a560de161..504ac4592 100644 --- a/tests/data/anna/anna_v4_dhw.json +++ b/tests/data/anna/anna_v4_dhw.json @@ -57,6 +57,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": ["comfort", "off"], "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "max_dhw_temperature": { "lower_bound": 30.0, @@ -73,6 +74,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, @@ -80,9 +82,6 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Bosch Thermotechniek B.V." } } diff --git a/tests/data/anna/anna_v4_no_tag.json b/tests/data/anna/anna_v4_no_tag.json index 513e7ce20..a9c448f3f 100644 --- a/tests/data/anna/anna_v4_no_tag.json +++ b/tests/data/anna/anna_v4_no_tag.json @@ -57,6 +57,7 @@ "heating_state": true }, "dev_class": "heater_central", + "dhw_modes": ["comfort", "off"], "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "max_dhw_temperature": { "lower_bound": 30.0, @@ -73,6 +74,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, @@ -80,9 +82,6 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Bosch Thermotechniek B.V." } } From 4b475f10eeea3d398dbb13bc39c7db470aef2dfa Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 20:02:17 +0200 Subject: [PATCH 045/371] Update entity_items count --- fixtures/anna_v4/data.json | 8 +++++--- tests/test_anna.py | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fixtures/anna_v4/data.json b/fixtures/anna_v4/data.json index a64605171..ea4559532 100644 --- a/fixtures/anna_v4/data.json +++ b/fixtures/anna_v4/data.json @@ -67,6 +67,10 @@ "heating_state": true }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "max_dhw_temperature": { "lower_bound": 30.0, @@ -83,6 +87,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, @@ -90,9 +95,6 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Bosch Thermotechniek B.V." } } diff --git a/tests/test_anna.py b/tests/test_anna.py index 84fbcf27a..00ad59b98 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -29,7 +29,7 @@ async def test_connect_anna_v4(self): await self.device_test(api, "2020-04-05 00:00:01", testdata) assert api.gateway_id == "0466eae8520144c78afb29628384edeb" - assert self.entity_items == 60 + assert self.entity_items == 61 assert not self.notifications assert not self.cooling_present @@ -101,7 +101,7 @@ async def test_connect_anna_v4_dhw(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata) - assert self.entity_items == 60 + assert self.entity_items == 61 assert not self.notifications result = await self.tinker_thermostat( From ae3f1a3b0d0542d811fe2efdb6c04458532997a1 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 20:04:06 +0200 Subject: [PATCH 046/371] Correct test-json --- tests/data/anna/anna_v4_UPDATED_DATA.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data/anna/anna_v4_UPDATED_DATA.json b/tests/data/anna/anna_v4_UPDATED_DATA.json index dac96af49..8e0568a11 100644 --- a/tests/data/anna/anna_v4_UPDATED_DATA.json +++ b/tests/data/anna/anna_v4_UPDATED_DATA.json @@ -18,7 +18,7 @@ "heating_state": false, "flame_state": false }, - "select_dhw_mode": "off", + "select_dhw_mode": "comfort", "sensors": { "water_temperature": 51.0, "intended_boiler_temperature": 0.0, From 6aeb423e7842e67590ec55fd3c380457f758052c Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 20:06:10 +0200 Subject: [PATCH 047/371] Update entity_items count --- fixtures/anna_v4_dhw/data.json | 8 +++++--- fixtures/anna_v4_no_tag/data.json | 8 +++++--- tests/test_anna.py | 24 ++++++++++++------------ 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/fixtures/anna_v4_dhw/data.json b/fixtures/anna_v4_dhw/data.json index 677d0a622..c5d40ae4e 100644 --- a/fixtures/anna_v4_dhw/data.json +++ b/fixtures/anna_v4_dhw/data.json @@ -67,6 +67,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "max_dhw_temperature": { "lower_bound": 30.0, @@ -83,6 +87,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, @@ -90,9 +95,6 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Bosch Thermotechniek B.V." } } diff --git a/fixtures/anna_v4_no_tag/data.json b/fixtures/anna_v4_no_tag/data.json index 926b858e2..4f2410b5e 100644 --- a/fixtures/anna_v4_no_tag/data.json +++ b/fixtures/anna_v4_no_tag/data.json @@ -67,6 +67,10 @@ "heating_state": true }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "max_dhw_temperature": { "lower_bound": 30.0, @@ -83,6 +87,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, @@ -90,9 +95,6 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Bosch Thermotechniek B.V." } } diff --git a/tests/test_anna.py b/tests/test_anna.py index 00ad59b98..2aba648ae 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -130,7 +130,7 @@ async def test_connect_anna_v4_no_tag(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata) - assert self.entity_items == 60 + assert self.entity_items == 61 result = await self.tinker_thermostat( api, @@ -186,7 +186,7 @@ async def test_connect_anna_heatpump_heating(self): await self.device_test(api, "2020-04-12 00:00:01", testdata) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - assert self.entity_items == 69 + assert self.entity_items == 70 assert not self.notifications assert self.cooling_present assert not self._cooling_enabled @@ -216,7 +216,7 @@ async def test_connect_anna_heatpump_heating(self): await self.device_test( api, "2020-04-13 00:00:01", testdata_updated, initialize=False ) - assert self.entity_items == 66 + assert self.entity_items == 67 await api.close_connection() await self.disconnect(server, client) @@ -241,7 +241,7 @@ async def test_connect_anna_heatpump_cooling(self): ) await self.device_test(api, "2020-04-19 00:00:01", testdata) - assert self.entity_items == 66 + assert self.entity_items == 67 assert self.cooling_present assert not self.notifications @@ -287,7 +287,7 @@ async def test_connect_anna_heatpump_cooling_fake_firmware(self): ) await self.device_test(api, "2020-04-19 00:00:01", testdata) - assert self.entity_items == 66 + assert self.entity_items == 67 assert self.cooling_present assert self._cooling_enabled assert self._cooling_active @@ -313,7 +313,7 @@ async def test_connect_anna_elga_no_cooling(self): await self.device_test(api, "2020-04-12 00:00:01", testdata) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - assert self.entity_items == 65 + assert self.entity_items == 66 assert not self.notifications assert not self.cooling_present @@ -336,7 +336,7 @@ async def test_connect_anna_elga_2(self): ) await self.device_test(api, "2022-03-13 00:00:01", testdata) - assert self.entity_items == 61 + assert self.entity_items == 62 assert api.gateway_id == "fb49af122f6e4b0f91267e1cf7666d6f" assert self.cooling_present assert not self._cooling_enabled @@ -356,7 +356,7 @@ async def test_connect_anna_elga_2_schedule_off(self): await self.device_test(api, "2022-03-13 00:00:01", testdata) assert not self._cooling_enabled - assert self.entity_items == 65 + assert self.entity_items == 66 result = await self.tinker_thermostat( api, @@ -387,7 +387,7 @@ async def test_connect_anna_elga_2_cooling(self): ) await self.device_test(api, "2022-03-10 00:00:01", testdata) - assert self.entity_items == 65 + assert self.entity_items == 66 assert not self.notifications assert self.cooling_present @@ -440,7 +440,7 @@ async def test_connect_anna_loria_heating_idle(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata) - assert self.entity_items == 68 + assert self.entity_items == 67 assert self.cooling_present assert not self._cooling_enabled @@ -505,7 +505,7 @@ async def test_connect_anna_loria_cooling_active(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata) - assert self.entity_items == 68 + assert self.entity_items == 67 assert self.cooling_present assert self._cooling_enabled @@ -528,7 +528,7 @@ async def test_connect_anna_loria_driessens(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata) - assert self.entity_items == 68 + assert self.entity_items == 67 assert self.cooling_present assert not self._cooling_enabled From 8ae1e252bf4f0125367cd0dcf3d060ea3a52fb4a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 12 Jun 2026 20:07:43 +0200 Subject: [PATCH 048/371] Correct test-json --- tests/data/anna/anna_elga_no_cooling.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index 756f47148..f2f2af764 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -4,10 +4,6 @@ "plugwise_notification": false }, "dev_class": "gateway", - "dhw_modes": [ - "comfort", - "off" - ], "firmware": "4.0.15", "hardware": "AME Smile 2.0 board", "location": "a57efe5f145f498c9be62a9b63626fbf", @@ -31,6 +27,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "max_dhw_temperature": { "lower_bound": 35.0, From 9184e3ed0b79a2a822d80039df521d29e1e9465f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 09:12:59 +0200 Subject: [PATCH 049/371] Don't overwrite select_dhw_mode --- plugwise/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 14ba5f8c5..0079eda63 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -472,7 +472,7 @@ def _appliance_measurements( case "elga_status_code": data["elga_status_code"] = int(appl_p_loc.text) case "select_dhw_mode": - if self._dhw_allowed_modes: + if self._dhw_allowed_modes and "select_dhw_mode" not in data: data["select_dhw_mode"] = appl_p_loc.text if old_measurement == "domestic_hot_water_comfort_mode": data["select_dhw_mode"] = ( From 4521707fe0ddae55142addbaf5445790b01a2ca8 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 09:17:51 +0200 Subject: [PATCH 050/371] Update entity_items count --- tests/test_anna.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_anna.py b/tests/test_anna.py index 2aba648ae..66c0973ea 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -551,7 +551,7 @@ async def test_connect_anna_p1(self): ) await self.device_test(api, "2025-11-02 00:00:01", testdata) - assert self.entity_items == 76 + assert self.entity_items == 77 await api.close_connection() await self.disconnect(server, client) From fb1f9454e20986c21c069d8207a87dbd9ce8cb4b Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 09:18:54 +0200 Subject: [PATCH 051/371] Clean up --- plugwise/constants.py | 5 ----- plugwise/helper.py | 1 - 2 files changed, 6 deletions(-) diff --git a/plugwise/constants.py b/plugwise/constants.py index 85e901b1c..43816f904 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -406,11 +406,6 @@ "cooling_ena_switch", "dhw_cm_switch", ] -TOGGLES: Final[dict[str, ToggleNameType]] = { - "cooling_enabled": "cooling_ena_switch", - "domestic_hot_water_comfort_mode": "dhw_cm_switch", -} - ZONE_THERMOSTATS: Final[tuple[str, ...]] = ( "thermostat", "thermostatic_radiator_valve", diff --git a/plugwise/helper.py b/plugwise/helper.py index 0079eda63..91d8f4d0a 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -32,7 +32,6 @@ TEMP_CELSIUS, THERMO_MATCHING, THERMOSTAT_CLASSES, - TOGGLES, UOM, ZONE_MEASUREMENTS, ActuatorData, From d7fe43c839bc63a3e14efba18b4bf3b99adbeb3b Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 09:21:53 +0200 Subject: [PATCH 052/371] Revert typing-update and adapt --- plugwise/helper.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 91d8f4d0a..8b5a44b6b 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -272,7 +272,7 @@ def _collect_dhw_modes(self, appliance: etree.Element) -> None: # Collect the default dhw modes: comfort and off if not self._dhw_allowed_modes: self._get_toggle_state( - appliance, "domestic_hot_water_comfort_mode", "dhw_cm_switch", None + appliance, "domestic_hot_water_comfort_mode", "dhw_cm_switch", {} ) def _appl_gateway_info(self, appl: Munch, appliance: etree.Element) -> Munch: @@ -490,7 +490,11 @@ def _appliance_measurements( self._count = count_data_items(self._count, data) def _get_toggle_state( - self, xml: etree.Element, toggle: str, name: ToggleNameType, data: GwEntityData | None + self, + xml: etree.Element, + toggle: str, + name: ToggleNameType, + data: GwEntityData, ) -> None: """Helper-function for _get_measurement_data(). From 877d7c53f178e099c0d083e46b98926447fcdb02 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 09:29:19 +0200 Subject: [PATCH 053/371] Revert SmileSwitches removal --- plugwise/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugwise/constants.py b/plugwise/constants.py index 43816f904..1a7ff4389 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -500,6 +500,7 @@ class SmileSwitches(TypedDict, total=False): """Smile Switches class.""" cooling_ena_switch: bool + dhw_cm_switch: bool lock: bool relay: bool From bb412b0c47343a45f66191fd6b4476327da27a0d Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 09:30:33 +0200 Subject: [PATCH 054/371] Save fixture updates --- fixtures/anna_elga_2/data.json | 8 +++++--- fixtures/anna_elga_2_cooling/data.json | 8 +++++--- fixtures/anna_elga_2_schedule_off/data.json | 8 +++++--- fixtures/anna_elga_no_cooling/data.json | 8 +++++--- fixtures/anna_heatpump_cooling/data.json | 8 +++++--- fixtures/anna_heatpump_cooling_fake_firmware/data.json | 8 +++++--- fixtures/anna_heatpump_heating/data.json | 8 +++++--- fixtures/anna_loria_cooling_active/data.json | 3 +-- fixtures/anna_loria_driessens/data.json | 3 +-- fixtures/anna_loria_heating_idle/data.json | 3 +-- fixtures/anna_p1/data.json | 8 +++++--- fixtures/m_adam_cooling/data.json | 8 +++++--- fixtures/m_adam_heating/data.json | 8 +++++--- fixtures/m_adam_heating_off_schedule/data.json | 8 +++++--- fixtures/m_adam_jip/data.json | 8 +++++--- fixtures/m_anna_heatpump_cooling/data.json | 8 +++++--- fixtures/m_anna_heatpump_idle/data.json | 8 +++++--- 17 files changed, 73 insertions(+), 48 deletions(-) diff --git a/fixtures/anna_elga_2/data.json b/fixtures/anna_elga_2/data.json index 0611a5a7c..0d25467b4 100644 --- a/fixtures/anna_elga_2/data.json +++ b/fixtures/anna_elga_2/data.json @@ -11,9 +11,14 @@ "secondary_boiler_state": true }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "d34dfe6ab90b410c98068e75de3eb631", "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 58.3, @@ -23,9 +28,6 @@ "water_pressure": 0.5, "water_temperature": 42.6 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { diff --git a/fixtures/anna_elga_2_cooling/data.json b/fixtures/anna_elga_2_cooling/data.json index e78a5ea40..235d0bce5 100644 --- a/fixtures/anna_elga_2_cooling/data.json +++ b/fixtures/anna_elga_2_cooling/data.json @@ -11,6 +11,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "d34dfe6ab90b410c98068e75de3eb631", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -20,6 +24,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "comfort", "sensors": { "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 0.0, @@ -29,9 +34,6 @@ "water_pressure": 0.5, "water_temperature": 22.8 }, - "switches": { - "dhw_cm_switch": true - }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { diff --git a/fixtures/anna_elga_2_schedule_off/data.json b/fixtures/anna_elga_2_schedule_off/data.json index 3bc5f122f..1da73a1fa 100644 --- a/fixtures/anna_elga_2_schedule_off/data.json +++ b/fixtures/anna_elga_2_schedule_off/data.json @@ -11,6 +11,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "d34dfe6ab90b410c98068e75de3eb631", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -20,6 +24,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "comfort", "sensors": { "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 0.0, @@ -29,9 +34,6 @@ "water_pressure": 0.5, "water_temperature": 22.8 }, - "switches": { - "dhw_cm_switch": true - }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { diff --git a/fixtures/anna_elga_no_cooling/data.json b/fixtures/anna_elga_no_cooling/data.json index 9075d01e7..8df4581c4 100644 --- a/fixtures/anna_elga_no_cooling/data.json +++ b/fixtures/anna_elga_no_cooling/data.json @@ -27,6 +27,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "max_dhw_temperature": { "lower_bound": 35.0, @@ -42,6 +46,7 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, @@ -51,9 +56,6 @@ "water_pressure": 1.57, "water_temperature": 29.1 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { diff --git a/fixtures/anna_heatpump_cooling/data.json b/fixtures/anna_heatpump_cooling/data.json index f1bdd86fe..7c03b25d2 100644 --- a/fixtures/anna_heatpump_cooling/data.json +++ b/fixtures/anna_heatpump_cooling/data.json @@ -29,6 +29,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -38,6 +42,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 41.5, "domestic_hot_water_setpoint": 60.0, @@ -48,9 +53,6 @@ "water_pressure": 1.61, "water_temperature": 24.7 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { diff --git a/fixtures/anna_heatpump_cooling_fake_firmware/data.json b/fixtures/anna_heatpump_cooling_fake_firmware/data.json index f08a11bba..e2865ce40 100644 --- a/fixtures/anna_heatpump_cooling_fake_firmware/data.json +++ b/fixtures/anna_heatpump_cooling_fake_firmware/data.json @@ -29,6 +29,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "maximum_boiler_temperature": { "lower_bound": 0.0, @@ -38,6 +42,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 41.5, "domestic_hot_water_setpoint": 60.0, @@ -48,9 +53,6 @@ "water_pressure": 1.61, "water_temperature": 24.7 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { diff --git a/fixtures/anna_heatpump_heating/data.json b/fixtures/anna_heatpump_heating/data.json index 2d90b6f12..00f3c821c 100644 --- a/fixtures/anna_heatpump_heating/data.json +++ b/fixtures/anna_heatpump_heating/data.json @@ -29,6 +29,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "max_dhw_temperature": { "lower_bound": 35.0, @@ -44,6 +48,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, @@ -53,9 +58,6 @@ "water_pressure": 1.57, "water_temperature": 29.1 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { diff --git a/fixtures/anna_loria_cooling_active/data.json b/fixtures/anna_loria_cooling_active/data.json index 66b6e1940..87ace82fe 100644 --- a/fixtures/anna_loria_cooling_active/data.json +++ b/fixtures/anna_loria_cooling_active/data.json @@ -104,8 +104,7 @@ "water_temperature": 25.3 }, "switches": { - "cooling_ena_switch": true, - "dhw_cm_switch": true + "cooling_ena_switch": true }, "vendor": "Atlantic" } diff --git a/fixtures/anna_loria_driessens/data.json b/fixtures/anna_loria_driessens/data.json index 06f266420..0cf0cdc26 100644 --- a/fixtures/anna_loria_driessens/data.json +++ b/fixtures/anna_loria_driessens/data.json @@ -106,8 +106,7 @@ "water_temperature": 23.3 }, "switches": { - "cooling_ena_switch": false, - "dhw_cm_switch": true + "cooling_ena_switch": false }, "vendor": "Atlantic" } diff --git a/fixtures/anna_loria_heating_idle/data.json b/fixtures/anna_loria_heating_idle/data.json index 62e1ca542..961accc91 100644 --- a/fixtures/anna_loria_heating_idle/data.json +++ b/fixtures/anna_loria_heating_idle/data.json @@ -104,8 +104,7 @@ "water_temperature": 25.3 }, "switches": { - "cooling_ena_switch": false, - "dhw_cm_switch": true + "cooling_ena_switch": false }, "vendor": "Atlantic" } diff --git a/fixtures/anna_p1/data.json b/fixtures/anna_p1/data.json index 5918dc8fb..6ee72b54c 100644 --- a/fixtures/anna_p1/data.json +++ b/fixtures/anna_p1/data.json @@ -48,19 +48,21 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "da7be222ab3b420c927f3e49fade0304", "model": "Generic heater", "model_id": "HR24", "name": "OpenTherm", + "select_dhw_mode": "comfort", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "water_pressure": 6.0, "water_temperature": 35.0 }, - "switches": { - "dhw_cm_switch": true - }, "vendor": "Intergas" }, "53130847be2f436cb946b78dedb9053a": { diff --git a/fixtures/m_adam_cooling/data.json b/fixtures/m_adam_cooling/data.json index d1b3753ea..c5b321660 100644 --- a/fixtures/m_adam_cooling/data.json +++ b/fixtures/m_adam_cooling/data.json @@ -8,6 +8,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "bc93488efab249e5bc54fd7e175a6f91", "maximum_boiler_temperature": { "lower_bound": 25.0, @@ -17,12 +21,10 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 17.5, "water_temperature": 19.0 - }, - "switches": { - "dhw_cm_switch": false } }, "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { diff --git a/fixtures/m_adam_heating/data.json b/fixtures/m_adam_heating/data.json index 208b6df84..f29aa84c7 100644 --- a/fixtures/m_adam_heating/data.json +++ b/fixtures/m_adam_heating/data.json @@ -7,6 +7,10 @@ "heating_state": true }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "bc93488efab249e5bc54fd7e175a6f91", "max_dhw_temperature": { "lower_bound": 40.0, @@ -22,12 +26,10 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 38.1, "water_temperature": 37.0 - }, - "switches": { - "dhw_cm_switch": false } }, "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { diff --git a/fixtures/m_adam_heating_off_schedule/data.json b/fixtures/m_adam_heating_off_schedule/data.json index 3aeb08f30..aaabc1495 100644 --- a/fixtures/m_adam_heating_off_schedule/data.json +++ b/fixtures/m_adam_heating_off_schedule/data.json @@ -7,6 +7,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "bc93488efab249e5bc54fd7e175a6f91", "max_dhw_temperature": { "lower_bound": 40.0, @@ -22,12 +26,10 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "water_temperature": 37.0 - }, - "switches": { - "dhw_cm_switch": false } }, "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { diff --git a/fixtures/m_adam_jip/data.json b/fixtures/m_adam_jip/data.json index a473c7748..573614cb8 100644 --- a/fixtures/m_adam_jip/data.json +++ b/fixtures/m_adam_jip/data.json @@ -393,6 +393,10 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "9e4433a9d69f40b3aefd15e74395eaec", "max_dhw_temperature": { "lower_bound": 40.0, @@ -409,6 +413,7 @@ "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, @@ -416,9 +421,6 @@ "water_pressure": 1.4, "water_temperature": 37.3 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Remeha B.V." }, "f61f1a2535f54f52ad006a3d18e459ca": { diff --git a/fixtures/m_anna_heatpump_cooling/data.json b/fixtures/m_anna_heatpump_cooling/data.json index e12f137bd..936345082 100644 --- a/fixtures/m_anna_heatpump_cooling/data.json +++ b/fixtures/m_anna_heatpump_cooling/data.json @@ -29,6 +29,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "max_dhw_temperature": { "lower_bound": 35.0, @@ -44,6 +48,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 41.5, "intended_boiler_temperature": 0.0, @@ -53,9 +58,6 @@ "water_pressure": 1.57, "water_temperature": 22.7 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { diff --git a/fixtures/m_anna_heatpump_idle/data.json b/fixtures/m_anna_heatpump_idle/data.json index 5e3c3c6f3..0d01bd40d 100644 --- a/fixtures/m_anna_heatpump_idle/data.json +++ b/fixtures/m_anna_heatpump_idle/data.json @@ -29,6 +29,10 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], "location": "a57efe5f145f498c9be62a9b63626fbf", "max_dhw_temperature": { "lower_bound": 35.0, @@ -44,6 +48,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 18.0, @@ -53,9 +58,6 @@ "water_pressure": 1.57, "water_temperature": 19.1 }, - "switches": { - "dhw_cm_switch": false - }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { From d4d43eea4f5ff644853ae5441f81812d75c670e8 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 09:31:25 +0200 Subject: [PATCH 055/371] Clean up now unused code --- plugwise/smile.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 6acb4233a..a9c18793b 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -43,10 +43,6 @@ def model_to_switch_items(model: str, state: str, switch: Munch) -> tuple[str, M Helper function for set_switch_state(). """ match model: - case "dhw_cm_switch": - switch.device = "toggle" - switch.func_type = "toggle_functionality" - switch.act_type = "domestic_hot_water_comfort_mode" case "cooling_ena_switch": switch.device = "toggle" switch.func_type = "toggle_functionality" From 2a704696eaef6a5074145a8ff28d52aa36e8426e Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 10:59:45 +0200 Subject: [PATCH 056/371] Improve old_measurement init, as suggested --- plugwise/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 8b5a44b6b..763e0e6f7 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -463,8 +463,8 @@ def _appliance_measurements( if skip_obsolete_measurements(appliance, measurement): continue + old_measurement = measurement if new_name := getattr(attrs, ATTR_NAME, None): - old_measurement = measurement measurement = new_name match measurement: From 604e8962ed9e8a67ebc1ec415fcc2f28841bbb3f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 11:05:47 +0200 Subject: [PATCH 057/371] Solve complexity --- plugwise/helper.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 763e0e6f7..52092a413 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -471,12 +471,7 @@ def _appliance_measurements( case "elga_status_code": data["elga_status_code"] = int(appl_p_loc.text) case "select_dhw_mode": - if self._dhw_allowed_modes and "select_dhw_mode" not in data: - data["select_dhw_mode"] = appl_p_loc.text - if old_measurement == "domestic_hot_water_comfort_mode": - data["select_dhw_mode"] = ( - "comfort" if appl_p_loc.text == "on" else "off" - ) + self._select_dhw_mode(appl_p_loc.text, data, old_measurement) common_match_cases(measurement, attrs, appl_p_loc, data) @@ -489,6 +484,15 @@ def _appliance_measurements( self._count = count_data_items(self._count, data) + def _select_dhw_mode(self, text: str, data: GwEntityData, measurement: str) -> None: + """Set the selected dhw mode.""" + if self._dhw_allowed_modes and "select_dhw_mode" not in data: + data["select_dhw_mode"] = text + if measurement == "domestic_hot_water_comfort_mode": + data["select_dhw_mode"] = ( + "comfort" if text == "on" else "off" + ) + def _get_toggle_state( self, xml: etree.Element, From 4cebfc1e8267718d751776c0dd6b5039d755d5f5 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 11:11:17 +0200 Subject: [PATCH 058/371] Ruffed --- plugwise/helper.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 52092a413..54a926a51 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -489,9 +489,7 @@ def _select_dhw_mode(self, text: str, data: GwEntityData, measurement: str) -> N if self._dhw_allowed_modes and "select_dhw_mode" not in data: data["select_dhw_mode"] = text if measurement == "domestic_hot_water_comfort_mode": - data["select_dhw_mode"] = ( - "comfort" if text == "on" else "off" - ) + data["select_dhw_mode"] = "comfort" if text == "on" else "off" def _get_toggle_state( self, From 4a813a8a07398afc2d5dc6fa6b9a10cbb0a6e583 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 11:22:36 +0200 Subject: [PATCH 059/371] Update CHANGELOG --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6746c458..2ee896c65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v1.12.0 + +- Replace the DHW-comfort-mode switch by a DHW mode selector to match the HA water_heater platform via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) + ## v1.11.4 - Correct Anna P1 detection via PR [#879](https://github.com/plugwise/python-plugwise/pull/879) From bf8d3dc1f61acca468dfc7fa01c73d06dfb1fdaa Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 11:23:04 +0200 Subject: [PATCH 060/371] Set to v1.12.0 release-version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3333fa6f4..997b1731c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "plugwise" -version = "1.11.4" +version = "1.12.0" license = "MIT" description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3." readme = "README.md" From 3bc032ce89eb51f773d0928c95c179832a42a2c9 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 11:25:53 +0200 Subject: [PATCH 061/371] Fix linter issue --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ee896c65..a7e62ff07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## v1.12.0 -- Replace the DHW-comfort-mode switch by a DHW mode selector to match the HA water_heater platform via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) +- Replace the DHW-comfort-mode switch by a DHW mode selector to match the HA water_heater platform via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) ## v1.11.4 From 7aa12a1ab5552587af83e57a11e4f13bf4937416 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 11:38:09 +0200 Subject: [PATCH 062/371] Debug --- plugwise/data.py | 4 ++++ scripts/tests_and_coverage.sh | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/plugwise/data.py b/plugwise/data.py index eb244f0f1..f47212873 100644 --- a/plugwise/data.py +++ b/plugwise/data.py @@ -10,6 +10,7 @@ from plugwise.constants import ( ADAM, ANNA, + LOGGER, MAX_SETPOINT, MIN_SETPOINT, NONE, @@ -78,6 +79,9 @@ def _update_gw_entities(self) -> None: remove_empty_platform_dicts(entity) + if "max_dhw_temperature" in entity: + LOGGER.debug("HOI data: %s", entity) + def _detect_low_batteries(self) -> list[str]: """Helper-function updating the low-battery binary_sensor status from a Battery-is-low message.""" mac_address_list: list[str] = [] diff --git a/scripts/tests_and_coverage.sh b/scripts/tests_and_coverage.sh index 42aca60ec..89998b496 100755 --- a/scripts/tests_and_coverage.sh +++ b/scripts/tests_and_coverage.sh @@ -52,7 +52,8 @@ set +u if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "test_and_coverage" ] ; then # Python tests (rerun with debug if failures) - PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing || PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/ + # PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing || + PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/ handle_command_error "python code testing" fi From 7e90f2cc1ba067cbbab6566c3008959ba4c1c388 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 11:45:27 +0200 Subject: [PATCH 063/371] Rename select_dhw_mode to water_heater_mode for applicable systems --- plugwise/data.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugwise/data.py b/plugwise/data.py index f47212873..86c89a7cd 100644 --- a/plugwise/data.py +++ b/plugwise/data.py @@ -80,7 +80,10 @@ def _update_gw_entities(self) -> None: remove_empty_platform_dicts(entity) if "max_dhw_temperature" in entity: - LOGGER.debug("HOI data: %s", entity) + mode = entity.get("select_dhw_mode") + if mode is not None: + entity.pop("select_dhw_mode") + entity["water_heater_mode"] = mode def _detect_low_batteries(self) -> list[str]: """Helper-function updating the low-battery binary_sensor status from a Battery-is-low message.""" From 0092f192fe05e66124a017bfe49d36940a37909a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 12:09:42 +0200 Subject: [PATCH 064/371] Update relevant test-json with water_heater_mode --- tests/data/adam/adam_bad_thermostat.json | 2 +- tests/data/adam/adam_heatpump_cooling.json | 2 +- tests/data/adam/adam_jip.json | 2 +- tests/data/adam/adam_onoff_cooling_fake_firmware.json | 2 +- tests/data/anna/anna_elga_no_cooling.json | 2 +- tests/data/anna/anna_heatpump_heating.json | 2 +- tests/data/anna/anna_loria_cooling_active.json | 2 +- tests/data/anna/anna_loria_driessens.json | 2 +- tests/data/anna/anna_loria_heating_idle.json | 2 +- tests/data/anna/anna_v4.json | 2 +- tests/data/anna/anna_v4_UPDATED_DATA.json | 2 +- tests/data/anna/anna_v4_dhw.json | 2 +- tests/data/anna/anna_v4_no_tag.json | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index 16978a60c..b2a3f9f5e 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -27,7 +27,7 @@ "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", - "select_dhw_mode": "off", + "water_heater_mode": "off", "sensors": { "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index 604192067..d545ef19a 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -63,7 +63,7 @@ "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", - "select_dhw_mode": "comfort", + "water_heater_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, diff --git a/tests/data/adam/adam_jip.json b/tests/data/adam/adam_jip.json index 3c10a4ca7..e9dcca0ae 100644 --- a/tests/data/adam/adam_jip.json +++ b/tests/data/adam/adam_jip.json @@ -349,7 +349,7 @@ "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", - "select_dhw_mode": "off", + "water_heater_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, diff --git a/tests/data/adam/adam_onoff_cooling_fake_firmware.json b/tests/data/adam/adam_onoff_cooling_fake_firmware.json index 27d994a0e..dddcd372d 100644 --- a/tests/data/adam/adam_onoff_cooling_fake_firmware.json +++ b/tests/data/adam/adam_onoff_cooling_fake_firmware.json @@ -27,7 +27,7 @@ }, "model": "Unknown", "name": "OnOff", - "select_dhw_mode": "comfort", + "water_heater_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index f2f2af764..859ffc3b0 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -46,7 +46,7 @@ }, "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "water_heater_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, diff --git a/tests/data/anna/anna_heatpump_heating.json b/tests/data/anna/anna_heatpump_heating.json index 809f9afea..fb4bbeb50 100644 --- a/tests/data/anna/anna_heatpump_heating.json +++ b/tests/data/anna/anna_heatpump_heating.json @@ -48,7 +48,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", + "water_heater_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, diff --git a/tests/data/anna/anna_loria_cooling_active.json b/tests/data/anna/anna_loria_cooling_active.json index 7d16279cc..710f524d8 100644 --- a/tests/data/anna/anna_loria_cooling_active.json +++ b/tests/data/anna/anna_loria_cooling_active.json @@ -78,7 +78,7 @@ "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "select_dhw_mode": "auto", + "water_heater_mode": "auto", "sensors": { "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_loria_driessens.json b/tests/data/anna/anna_loria_driessens.json index 809904ecd..005b0e972 100644 --- a/tests/data/anna/anna_loria_driessens.json +++ b/tests/data/anna/anna_loria_driessens.json @@ -84,7 +84,7 @@ "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "select_dhw_mode": "auto", + "water_heater_mode": "auto", "sensors": { "dhw_temperature": 49.5, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_loria_heating_idle.json b/tests/data/anna/anna_loria_heating_idle.json index c6f83d35a..5d9d9f379 100644 --- a/tests/data/anna/anna_loria_heating_idle.json +++ b/tests/data/anna/anna_loria_heating_idle.json @@ -78,7 +78,7 @@ "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "select_dhw_mode": "auto", + "water_heater_mode": "auto", "sensors": { "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_v4.json b/tests/data/anna/anna_v4.json index 6696e2511..50a752c96 100644 --- a/tests/data/anna/anna_v4.json +++ b/tests/data/anna/anna_v4.json @@ -74,7 +74,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "select_dhw_mode": "off", + "water_heater_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, diff --git a/tests/data/anna/anna_v4_UPDATED_DATA.json b/tests/data/anna/anna_v4_UPDATED_DATA.json index 8e0568a11..882b3d481 100644 --- a/tests/data/anna/anna_v4_UPDATED_DATA.json +++ b/tests/data/anna/anna_v4_UPDATED_DATA.json @@ -18,7 +18,7 @@ "heating_state": false, "flame_state": false }, - "select_dhw_mode": "comfort", + "water_heater_mode": "comfort", "sensors": { "water_temperature": 51.0, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_v4_dhw.json b/tests/data/anna/anna_v4_dhw.json index 504ac4592..5024efde7 100644 --- a/tests/data/anna/anna_v4_dhw.json +++ b/tests/data/anna/anna_v4_dhw.json @@ -74,7 +74,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "select_dhw_mode": "off", + "water_heater_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, diff --git a/tests/data/anna/anna_v4_no_tag.json b/tests/data/anna/anna_v4_no_tag.json index a9c448f3f..cb8bceed0 100644 --- a/tests/data/anna/anna_v4_no_tag.json +++ b/tests/data/anna/anna_v4_no_tag.json @@ -74,7 +74,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "select_dhw_mode": "off", + "water_heater_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, From f15c0afc4fcc4917e41eff0db750df8190833e92 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 12:10:32 +0200 Subject: [PATCH 065/371] Save updated fixtures --- fixtures/adam_bad_thermostat/data.json | 4 ++-- fixtures/adam_heatpump_cooling/data.json | 4 ++-- fixtures/adam_jip/data.json | 4 ++-- fixtures/adam_onoff_cooling_fake_firmware/data.json | 4 ++-- fixtures/anna_elga_no_cooling/data.json | 4 ++-- fixtures/anna_heatpump_heating/data.json | 4 ++-- fixtures/anna_loria_cooling_active/data.json | 4 ++-- fixtures/anna_loria_driessens/data.json | 4 ++-- fixtures/anna_loria_heating_idle/data.json | 4 ++-- fixtures/anna_v4/data.json | 4 ++-- fixtures/anna_v4_dhw/data.json | 4 ++-- fixtures/anna_v4_no_tag/data.json | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/fixtures/adam_bad_thermostat/data.json b/fixtures/adam_bad_thermostat/data.json index 16978a60c..81854f325 100644 --- a/fixtures/adam_bad_thermostat/data.json +++ b/fixtures/adam_bad_thermostat/data.json @@ -27,7 +27,6 @@ "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, @@ -36,7 +35,8 @@ "return_temperature": 33.0, "water_temperature": 20.9 }, - "vendor": "WeHeat" + "vendor": "WeHeat", + "water_heater_mode": "off" }, "3ee6b9486cb04c258a3130fff2b144a4": { "active_preset": "home", diff --git a/fixtures/adam_heatpump_cooling/data.json b/fixtures/adam_heatpump_cooling/data.json index d0dc677c0..b1699c4cd 100644 --- a/fixtures/adam_heatpump_cooling/data.json +++ b/fixtures/adam_heatpump_cooling/data.json @@ -75,7 +75,6 @@ "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", - "select_dhw_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, @@ -85,7 +84,8 @@ "water_pressure": 2.0, "water_temperature": 24.5 }, - "vendor": "Remeha B.V." + "vendor": "Remeha B.V.", + "water_heater_mode": "comfort" }, "1053c8bbf8be43c6921742b146a625f1": { "available": true, diff --git a/fixtures/adam_jip/data.json b/fixtures/adam_jip/data.json index 315eba45b..f6b932066 100644 --- a/fixtures/adam_jip/data.json +++ b/fixtures/adam_jip/data.json @@ -414,7 +414,6 @@ "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, @@ -422,7 +421,8 @@ "water_pressure": 1.4, "water_temperature": 37.3 }, - "vendor": "Remeha B.V." + "vendor": "Remeha B.V.", + "water_heater_mode": "off" }, "f61f1a2535f54f52ad006a3d18e459ca": { "available": true, diff --git a/fixtures/adam_onoff_cooling_fake_firmware/data.json b/fixtures/adam_onoff_cooling_fake_firmware/data.json index f1902e5a4..55f374d3c 100644 --- a/fixtures/adam_onoff_cooling_fake_firmware/data.json +++ b/fixtures/adam_onoff_cooling_fake_firmware/data.json @@ -27,7 +27,6 @@ }, "model": "Unknown", "name": "OnOff", - "select_dhw_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, @@ -36,7 +35,8 @@ "return_temperature": 24.9, "water_pressure": 2.0, "water_temperature": 24.5 - } + }, + "water_heater_mode": "comfort" }, "7d97fc3117784cfdafe347bcedcbbbcb": { "binary_sensors": { diff --git a/fixtures/anna_elga_no_cooling/data.json b/fixtures/anna_elga_no_cooling/data.json index 8df4581c4..9412bf4ba 100644 --- a/fixtures/anna_elga_no_cooling/data.json +++ b/fixtures/anna_elga_no_cooling/data.json @@ -46,7 +46,6 @@ }, "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, @@ -56,7 +55,8 @@ "water_pressure": 1.57, "water_temperature": 29.1 }, - "vendor": "Techneco" + "vendor": "Techneco", + "water_heater_mode": "off" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", diff --git a/fixtures/anna_heatpump_heating/data.json b/fixtures/anna_heatpump_heating/data.json index 00f3c821c..b0b126a95 100644 --- a/fixtures/anna_heatpump_heating/data.json +++ b/fixtures/anna_heatpump_heating/data.json @@ -48,7 +48,6 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, @@ -58,7 +57,8 @@ "water_pressure": 1.57, "water_temperature": 29.1 }, - "vendor": "Techneco" + "vendor": "Techneco", + "water_heater_mode": "off" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", diff --git a/fixtures/anna_loria_cooling_active/data.json b/fixtures/anna_loria_cooling_active/data.json index 87ace82fe..8d63f8936 100644 --- a/fixtures/anna_loria_cooling_active/data.json +++ b/fixtures/anna_loria_cooling_active/data.json @@ -94,7 +94,6 @@ "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "select_dhw_mode": "auto", "sensors": { "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, @@ -106,6 +105,7 @@ "switches": { "cooling_ena_switch": true }, - "vendor": "Atlantic" + "vendor": "Atlantic", + "water_heater_mode": "auto" } } diff --git a/fixtures/anna_loria_driessens/data.json b/fixtures/anna_loria_driessens/data.json index 0cf0cdc26..dcd2629fc 100644 --- a/fixtures/anna_loria_driessens/data.json +++ b/fixtures/anna_loria_driessens/data.json @@ -96,7 +96,6 @@ "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "select_dhw_mode": "auto", "sensors": { "dhw_temperature": 49.5, "intended_boiler_temperature": 0.0, @@ -108,6 +107,7 @@ "switches": { "cooling_ena_switch": false }, - "vendor": "Atlantic" + "vendor": "Atlantic", + "water_heater_mode": "auto" } } diff --git a/fixtures/anna_loria_heating_idle/data.json b/fixtures/anna_loria_heating_idle/data.json index 961accc91..c157de537 100644 --- a/fixtures/anna_loria_heating_idle/data.json +++ b/fixtures/anna_loria_heating_idle/data.json @@ -94,7 +94,6 @@ "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "select_dhw_mode": "auto", "sensors": { "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, @@ -106,6 +105,7 @@ "switches": { "cooling_ena_switch": false }, - "vendor": "Atlantic" + "vendor": "Atlantic", + "water_heater_mode": "auto" } } diff --git a/fixtures/anna_v4/data.json b/fixtures/anna_v4/data.json index ea4559532..3c40e0d89 100644 --- a/fixtures/anna_v4/data.json +++ b/fixtures/anna_v4/data.json @@ -87,7 +87,6 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, @@ -95,6 +94,7 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "vendor": "Bosch Thermotechniek B.V." + "vendor": "Bosch Thermotechniek B.V.", + "water_heater_mode": "off" } } diff --git a/fixtures/anna_v4_dhw/data.json b/fixtures/anna_v4_dhw/data.json index c5d40ae4e..c4c97bf08 100644 --- a/fixtures/anna_v4_dhw/data.json +++ b/fixtures/anna_v4_dhw/data.json @@ -87,7 +87,6 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, @@ -95,6 +94,7 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "vendor": "Bosch Thermotechniek B.V." + "vendor": "Bosch Thermotechniek B.V.", + "water_heater_mode": "off" } } diff --git a/fixtures/anna_v4_no_tag/data.json b/fixtures/anna_v4_no_tag/data.json index 4f2410b5e..9ac811ddc 100644 --- a/fixtures/anna_v4_no_tag/data.json +++ b/fixtures/anna_v4_no_tag/data.json @@ -87,7 +87,6 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, @@ -95,6 +94,7 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "vendor": "Bosch Thermotechniek B.V." + "vendor": "Bosch Thermotechniek B.V.", + "water_heater_mode": "off" } } From 61131ae30dca59be514b2ebcc81c6823d6edd20a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 12:11:56 +0200 Subject: [PATCH 066/371] Clean up, add comment --- plugwise/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/data.py b/plugwise/data.py index 86c89a7cd..e9b22c1bb 100644 --- a/plugwise/data.py +++ b/plugwise/data.py @@ -10,7 +10,6 @@ from plugwise.constants import ( ADAM, ANNA, - LOGGER, MAX_SETPOINT, MIN_SETPOINT, NONE, @@ -79,6 +78,7 @@ def _update_gw_entities(self) -> None: remove_empty_platform_dicts(entity) + # Replace select_dhw_mode with water_heater_mode when applicable if "max_dhw_temperature" in entity: mode = entity.get("select_dhw_mode") if mode is not None: From aee15273f04a958012a755b6988775346dc3d6b1 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 12:12:57 +0200 Subject: [PATCH 067/371] Back to normal test-output --- scripts/tests_and_coverage.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/tests_and_coverage.sh b/scripts/tests_and_coverage.sh index 89998b496..42aca60ec 100755 --- a/scripts/tests_and_coverage.sh +++ b/scripts/tests_and_coverage.sh @@ -52,8 +52,7 @@ set +u if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "test_and_coverage" ] ; then # Python tests (rerun with debug if failures) - # PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing || - PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/ + PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing || PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/ handle_command_error "python code testing" fi From b69913122a4b90ba7f44cf218930893a7b011251 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 12:16:38 +0200 Subject: [PATCH 068/371] Update constants --- plugwise/constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugwise/constants.py b/plugwise/constants.py index 1a7ff4389..27e6d98d0 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -556,8 +556,9 @@ class GwEntityData(TypedDict, total=False): # Device availability available: bool | None - # Loria + # DHW mode related select_dhw_mode: str + water_heater_mode: str dhw_modes: list[str] # Gateway From ad62171031b64e3c3e6eda70e8c919b7d2700e6a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 12:17:43 +0200 Subject: [PATCH 069/371] Save updated manual fixtures --- fixtures/m_adam_jip/data.json | 4 ++-- fixtures/m_anna_heatpump_cooling/data.json | 4 ++-- fixtures/m_anna_heatpump_idle/data.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fixtures/m_adam_jip/data.json b/fixtures/m_adam_jip/data.json index 573614cb8..021649f96 100644 --- a/fixtures/m_adam_jip/data.json +++ b/fixtures/m_adam_jip/data.json @@ -413,7 +413,6 @@ "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, @@ -421,7 +420,8 @@ "water_pressure": 1.4, "water_temperature": 37.3 }, - "vendor": "Remeha B.V." + "vendor": "Remeha B.V.", + "water_heater_mode": "off" }, "f61f1a2535f54f52ad006a3d18e459ca": { "available": true, diff --git a/fixtures/m_anna_heatpump_cooling/data.json b/fixtures/m_anna_heatpump_cooling/data.json index 936345082..eab63824d 100644 --- a/fixtures/m_anna_heatpump_cooling/data.json +++ b/fixtures/m_anna_heatpump_cooling/data.json @@ -48,7 +48,6 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "dhw_temperature": 41.5, "intended_boiler_temperature": 0.0, @@ -58,7 +57,8 @@ "water_pressure": 1.57, "water_temperature": 22.7 }, - "vendor": "Techneco" + "vendor": "Techneco", + "water_heater_mode": "off" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", diff --git a/fixtures/m_anna_heatpump_idle/data.json b/fixtures/m_anna_heatpump_idle/data.json index 0d01bd40d..7a21aa396 100644 --- a/fixtures/m_anna_heatpump_idle/data.json +++ b/fixtures/m_anna_heatpump_idle/data.json @@ -48,7 +48,6 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 18.0, @@ -58,7 +57,8 @@ "water_pressure": 1.57, "water_temperature": 19.1 }, - "vendor": "Techneco" + "vendor": "Techneco", + "water_heater_mode": "off" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", From ce1030b4aa6d5463bb0aaf2a58afe99636edff13 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 13 Jun 2026 12:19:25 +0200 Subject: [PATCH 070/371] Update CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7e62ff07..b5fa67870 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## v1.12.0 -- Replace the DHW-comfort-mode switch by a DHW mode selector to match the HA water_heater platform via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) +- Replace the DHW-comfort-mode switch by a DHW mode selector to match the HA select or water_heater platforms, via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) ## v1.11.4 From cc3a265ff82ad22a914f670cd8e2783cc2de3753 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 6 Jun 2026 11:35:30 +0200 Subject: [PATCH 071/371] Implement improvement suggestion --- plugwise/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index efe23dfd4..6767a3db4 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -210,10 +210,11 @@ async def _collect_smile_data( elec_point_meters = result.findall( "./location/logs/point_log/electricity_point_meter" ) - for meter in elec_point_meters: - if meter.get("id") and model == "smile_thermo": - self.smile.anna_p1 = True - break + if model == "smile_thermo": + for meter in elec_point_meters: + if meter.get("id"): + self.smile.anna_p1 = True + break else: model = await self._smile_detect_legacy(result, dsmrmain, model) From f36c42b06c749e2b94671a697e4a170de308ac03 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 14 Jun 2026 08:52:57 +0200 Subject: [PATCH 072/371] Change `water_heater_mode` to `dhw_mode` --- plugwise/constants.py | 4 ++-- plugwise/data.py | 2 +- tests/data/adam/adam_bad_thermostat.json | 2 +- tests/data/adam/adam_heatpump_cooling.json | 2 +- tests/data/adam/adam_jip.json | 2 +- tests/data/adam/adam_onoff_cooling_fake_firmware.json | 2 +- tests/data/anna/anna_elga_no_cooling.json | 2 +- tests/data/anna/anna_heatpump_heating.json | 2 +- tests/data/anna/anna_loria_cooling_active.json | 2 +- tests/data/anna/anna_loria_driessens.json | 2 +- tests/data/anna/anna_loria_heating_idle.json | 2 +- tests/data/anna/anna_v4.json | 2 +- tests/data/anna/anna_v4_UPDATED_DATA.json | 2 +- tests/data/anna/anna_v4_dhw.json | 2 +- tests/data/anna/anna_v4_no_tag.json | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/plugwise/constants.py b/plugwise/constants.py index 27e6d98d0..55e4b8e91 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -557,9 +557,9 @@ class GwEntityData(TypedDict, total=False): available: bool | None # DHW mode related - select_dhw_mode: str - water_heater_mode: str + dhw_mode: str dhw_modes: list[str] + select_dhw_mode: str # Gateway gateway_modes: list[str] diff --git a/plugwise/data.py b/plugwise/data.py index e9b22c1bb..566f9e714 100644 --- a/plugwise/data.py +++ b/plugwise/data.py @@ -83,7 +83,7 @@ def _update_gw_entities(self) -> None: mode = entity.get("select_dhw_mode") if mode is not None: entity.pop("select_dhw_mode") - entity["water_heater_mode"] = mode + entity["dhw_mode"] = mode def _detect_low_batteries(self) -> list[str]: """Helper-function updating the low-battery binary_sensor status from a Battery-is-low message.""" diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index b2a3f9f5e..71b54b9a0 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -27,7 +27,7 @@ "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", - "water_heater_mode": "off", + "dhw_mode": "off", "sensors": { "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index d545ef19a..e2401f79a 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -63,7 +63,7 @@ "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", - "water_heater_mode": "comfort", + "dhw_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, diff --git a/tests/data/adam/adam_jip.json b/tests/data/adam/adam_jip.json index e9dcca0ae..7ae98246a 100644 --- a/tests/data/adam/adam_jip.json +++ b/tests/data/adam/adam_jip.json @@ -349,7 +349,7 @@ "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", - "water_heater_mode": "off", + "dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, diff --git a/tests/data/adam/adam_onoff_cooling_fake_firmware.json b/tests/data/adam/adam_onoff_cooling_fake_firmware.json index dddcd372d..c31a7710c 100644 --- a/tests/data/adam/adam_onoff_cooling_fake_firmware.json +++ b/tests/data/adam/adam_onoff_cooling_fake_firmware.json @@ -27,7 +27,7 @@ }, "model": "Unknown", "name": "OnOff", - "water_heater_mode": "comfort", + "dhw_mode": "comfort", "sensors": { "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index 859ffc3b0..4bb9b040c 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -46,7 +46,7 @@ }, "model": "Generic heater", "name": "OpenTherm", - "water_heater_mode": "off", + "dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, diff --git a/tests/data/anna/anna_heatpump_heating.json b/tests/data/anna/anna_heatpump_heating.json index fb4bbeb50..d38345a3a 100644 --- a/tests/data/anna/anna_heatpump_heating.json +++ b/tests/data/anna/anna_heatpump_heating.json @@ -48,7 +48,7 @@ }, "model": "Generic heater/cooler", "name": "OpenTherm", - "water_heater_mode": "off", + "dhw_mode": "off", "sensors": { "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, diff --git a/tests/data/anna/anna_loria_cooling_active.json b/tests/data/anna/anna_loria_cooling_active.json index 710f524d8..1dcb2e851 100644 --- a/tests/data/anna/anna_loria_cooling_active.json +++ b/tests/data/anna/anna_loria_cooling_active.json @@ -78,7 +78,7 @@ "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "water_heater_mode": "auto", + "dhw_mode": "auto", "sensors": { "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_loria_driessens.json b/tests/data/anna/anna_loria_driessens.json index 005b0e972..3d665c289 100644 --- a/tests/data/anna/anna_loria_driessens.json +++ b/tests/data/anna/anna_loria_driessens.json @@ -84,7 +84,7 @@ "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "water_heater_mode": "auto", + "dhw_mode": "auto", "sensors": { "dhw_temperature": 49.5, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_loria_heating_idle.json b/tests/data/anna/anna_loria_heating_idle.json index 5d9d9f379..628515d57 100644 --- a/tests/data/anna/anna_loria_heating_idle.json +++ b/tests/data/anna/anna_loria_heating_idle.json @@ -78,7 +78,7 @@ "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "water_heater_mode": "auto", + "dhw_mode": "auto", "sensors": { "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_v4.json b/tests/data/anna/anna_v4.json index 50a752c96..09f295bad 100644 --- a/tests/data/anna/anna_v4.json +++ b/tests/data/anna/anna_v4.json @@ -74,7 +74,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "water_heater_mode": "off", + "dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, diff --git a/tests/data/anna/anna_v4_UPDATED_DATA.json b/tests/data/anna/anna_v4_UPDATED_DATA.json index 882b3d481..e36a6e5b1 100644 --- a/tests/data/anna/anna_v4_UPDATED_DATA.json +++ b/tests/data/anna/anna_v4_UPDATED_DATA.json @@ -18,7 +18,7 @@ "heating_state": false, "flame_state": false }, - "water_heater_mode": "comfort", + "dhw_mode": "comfort", "sensors": { "water_temperature": 51.0, "intended_boiler_temperature": 0.0, diff --git a/tests/data/anna/anna_v4_dhw.json b/tests/data/anna/anna_v4_dhw.json index 5024efde7..dc8ba3858 100644 --- a/tests/data/anna/anna_v4_dhw.json +++ b/tests/data/anna/anna_v4_dhw.json @@ -74,7 +74,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "water_heater_mode": "off", + "dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, diff --git a/tests/data/anna/anna_v4_no_tag.json b/tests/data/anna/anna_v4_no_tag.json index cb8bceed0..d9a500cfc 100644 --- a/tests/data/anna/anna_v4_no_tag.json +++ b/tests/data/anna/anna_v4_no_tag.json @@ -74,7 +74,7 @@ "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "water_heater_mode": "off", + "dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, From 8bde080826c2e1d414afbf7be6effa05f8d6ce5b Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 14 Jun 2026 08:57:36 +0200 Subject: [PATCH 073/371] Save updated fixtures --- fixtures/adam_bad_thermostat/data.json | 4 ++-- fixtures/adam_heatpump_cooling/data.json | 4 ++-- fixtures/adam_jip/data.json | 4 ++-- fixtures/adam_onoff_cooling_fake_firmware/data.json | 4 ++-- fixtures/anna_elga_no_cooling/data.json | 4 ++-- fixtures/anna_heatpump_heating/data.json | 4 ++-- fixtures/anna_loria_cooling_active/data.json | 4 ++-- fixtures/anna_loria_driessens/data.json | 4 ++-- fixtures/anna_loria_heating_idle/data.json | 4 ++-- fixtures/anna_v4/data.json | 4 ++-- fixtures/anna_v4_dhw/data.json | 4 ++-- fixtures/anna_v4_no_tag/data.json | 4 ++-- fixtures/m_adam_jip/data.json | 4 ++-- fixtures/m_anna_heatpump_cooling/data.json | 4 ++-- fixtures/m_anna_heatpump_idle/data.json | 4 ++-- 15 files changed, 30 insertions(+), 30 deletions(-) diff --git a/fixtures/adam_bad_thermostat/data.json b/fixtures/adam_bad_thermostat/data.json index 81854f325..14d7d4c4d 100644 --- a/fixtures/adam_bad_thermostat/data.json +++ b/fixtures/adam_bad_thermostat/data.json @@ -7,6 +7,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -35,8 +36,7 @@ "return_temperature": 33.0, "water_temperature": 20.9 }, - "vendor": "WeHeat", - "water_heater_mode": "off" + "vendor": "WeHeat" }, "3ee6b9486cb04c258a3130fff2b144a4": { "active_preset": "home", diff --git a/fixtures/adam_heatpump_cooling/data.json b/fixtures/adam_heatpump_cooling/data.json index b1699c4cd..0102ce080 100644 --- a/fixtures/adam_heatpump_cooling/data.json +++ b/fixtures/adam_heatpump_cooling/data.json @@ -55,6 +55,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "comfort", "dhw_modes": [ "comfort", "off" @@ -84,8 +85,7 @@ "water_pressure": 2.0, "water_temperature": 24.5 }, - "vendor": "Remeha B.V.", - "water_heater_mode": "comfort" + "vendor": "Remeha B.V." }, "1053c8bbf8be43c6921742b146a625f1": { "available": true, diff --git a/fixtures/adam_jip/data.json b/fixtures/adam_jip/data.json index f6b932066..bbf89908e 100644 --- a/fixtures/adam_jip/data.json +++ b/fixtures/adam_jip/data.json @@ -394,6 +394,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -421,8 +422,7 @@ "water_pressure": 1.4, "water_temperature": 37.3 }, - "vendor": "Remeha B.V.", - "water_heater_mode": "off" + "vendor": "Remeha B.V." }, "f61f1a2535f54f52ad006a3d18e459ca": { "available": true, diff --git a/fixtures/adam_onoff_cooling_fake_firmware/data.json b/fixtures/adam_onoff_cooling_fake_firmware/data.json index 55f374d3c..c35ef647f 100644 --- a/fixtures/adam_onoff_cooling_fake_firmware/data.json +++ b/fixtures/adam_onoff_cooling_fake_firmware/data.json @@ -8,6 +8,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "comfort", "dhw_modes": [ "comfort", "off" @@ -35,8 +36,7 @@ "return_temperature": 24.9, "water_pressure": 2.0, "water_temperature": 24.5 - }, - "water_heater_mode": "comfort" + } }, "7d97fc3117784cfdafe347bcedcbbbcb": { "binary_sensors": { diff --git a/fixtures/anna_elga_no_cooling/data.json b/fixtures/anna_elga_no_cooling/data.json index 9412bf4ba..4a19bb86e 100644 --- a/fixtures/anna_elga_no_cooling/data.json +++ b/fixtures/anna_elga_no_cooling/data.json @@ -27,6 +27,7 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -55,8 +56,7 @@ "water_pressure": 1.57, "water_temperature": 29.1 }, - "vendor": "Techneco", - "water_heater_mode": "off" + "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", diff --git a/fixtures/anna_heatpump_heating/data.json b/fixtures/anna_heatpump_heating/data.json index b0b126a95..54a045273 100644 --- a/fixtures/anna_heatpump_heating/data.json +++ b/fixtures/anna_heatpump_heating/data.json @@ -29,6 +29,7 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -57,8 +58,7 @@ "water_pressure": 1.57, "water_temperature": 29.1 }, - "vendor": "Techneco", - "water_heater_mode": "off" + "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", diff --git a/fixtures/anna_loria_cooling_active/data.json b/fixtures/anna_loria_cooling_active/data.json index 8d63f8936..f46113d09 100644 --- a/fixtures/anna_loria_cooling_active/data.json +++ b/fixtures/anna_loria_cooling_active/data.json @@ -71,6 +71,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "auto", "dhw_modes": [ "off", "auto", @@ -105,7 +106,6 @@ "switches": { "cooling_ena_switch": true }, - "vendor": "Atlantic", - "water_heater_mode": "auto" + "vendor": "Atlantic" } } diff --git a/fixtures/anna_loria_driessens/data.json b/fixtures/anna_loria_driessens/data.json index dcd2629fc..31d518a8f 100644 --- a/fixtures/anna_loria_driessens/data.json +++ b/fixtures/anna_loria_driessens/data.json @@ -73,6 +73,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "auto", "dhw_modes": [ "comfort", "eco", @@ -107,7 +108,6 @@ "switches": { "cooling_ena_switch": false }, - "vendor": "Atlantic", - "water_heater_mode": "auto" + "vendor": "Atlantic" } } diff --git a/fixtures/anna_loria_heating_idle/data.json b/fixtures/anna_loria_heating_idle/data.json index c157de537..c13abbbcf 100644 --- a/fixtures/anna_loria_heating_idle/data.json +++ b/fixtures/anna_loria_heating_idle/data.json @@ -71,6 +71,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "auto", "dhw_modes": [ "off", "auto", @@ -105,7 +106,6 @@ "switches": { "cooling_ena_switch": false }, - "vendor": "Atlantic", - "water_heater_mode": "auto" + "vendor": "Atlantic" } } diff --git a/fixtures/anna_v4/data.json b/fixtures/anna_v4/data.json index 3c40e0d89..563560b49 100644 --- a/fixtures/anna_v4/data.json +++ b/fixtures/anna_v4/data.json @@ -67,6 +67,7 @@ "heating_state": true }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -94,7 +95,6 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "vendor": "Bosch Thermotechniek B.V.", - "water_heater_mode": "off" + "vendor": "Bosch Thermotechniek B.V." } } diff --git a/fixtures/anna_v4_dhw/data.json b/fixtures/anna_v4_dhw/data.json index c4c97bf08..9c1f13360 100644 --- a/fixtures/anna_v4_dhw/data.json +++ b/fixtures/anna_v4_dhw/data.json @@ -67,6 +67,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -94,7 +95,6 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "vendor": "Bosch Thermotechniek B.V.", - "water_heater_mode": "off" + "vendor": "Bosch Thermotechniek B.V." } } diff --git a/fixtures/anna_v4_no_tag/data.json b/fixtures/anna_v4_no_tag/data.json index 9ac811ddc..8fe2f6606 100644 --- a/fixtures/anna_v4_no_tag/data.json +++ b/fixtures/anna_v4_no_tag/data.json @@ -67,6 +67,7 @@ "heating_state": true }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -94,7 +95,6 @@ "water_pressure": 2.2, "water_temperature": 45.0 }, - "vendor": "Bosch Thermotechniek B.V.", - "water_heater_mode": "off" + "vendor": "Bosch Thermotechniek B.V." } } diff --git a/fixtures/m_adam_jip/data.json b/fixtures/m_adam_jip/data.json index 021649f96..ff33d77c2 100644 --- a/fixtures/m_adam_jip/data.json +++ b/fixtures/m_adam_jip/data.json @@ -393,6 +393,7 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -420,8 +421,7 @@ "water_pressure": 1.4, "water_temperature": 37.3 }, - "vendor": "Remeha B.V.", - "water_heater_mode": "off" + "vendor": "Remeha B.V." }, "f61f1a2535f54f52ad006a3d18e459ca": { "available": true, diff --git a/fixtures/m_anna_heatpump_cooling/data.json b/fixtures/m_anna_heatpump_cooling/data.json index eab63824d..fb4085270 100644 --- a/fixtures/m_anna_heatpump_cooling/data.json +++ b/fixtures/m_anna_heatpump_cooling/data.json @@ -29,6 +29,7 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -57,8 +58,7 @@ "water_pressure": 1.57, "water_temperature": 22.7 }, - "vendor": "Techneco", - "water_heater_mode": "off" + "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", diff --git a/fixtures/m_anna_heatpump_idle/data.json b/fixtures/m_anna_heatpump_idle/data.json index 7a21aa396..e50349146 100644 --- a/fixtures/m_anna_heatpump_idle/data.json +++ b/fixtures/m_anna_heatpump_idle/data.json @@ -29,6 +29,7 @@ "secondary_boiler_state": false }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -57,8 +58,7 @@ "water_pressure": 1.57, "water_temperature": 19.1 }, - "vendor": "Techneco", - "water_heater_mode": "off" + "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", From 867f777138ad5766c1df679226e6112d4957cf70 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 14 Jun 2026 09:34:15 +0200 Subject: [PATCH 074/371] Fix comment as suggested --- plugwise/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/data.py b/plugwise/data.py index 566f9e714..0448eb859 100644 --- a/plugwise/data.py +++ b/plugwise/data.py @@ -78,7 +78,7 @@ def _update_gw_entities(self) -> None: remove_empty_platform_dicts(entity) - # Replace select_dhw_mode with water_heater_mode when applicable + # Replace select_dhw_mode with dhw_mode when applicable if "max_dhw_temperature" in entity: mode = entity.get("select_dhw_mode") if mode is not None: From 352c357073b7df0658ca8c5b0ac41290dae3b1f2 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 14 Jun 2026 13:24:18 +0200 Subject: [PATCH 075/371] Handle changed select and water_heater setters --- plugwise/smile.py | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index a9c18793b..19ee58def 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -43,6 +43,10 @@ def model_to_switch_items(model: str, state: str, switch: Munch) -> tuple[str, M Helper function for set_switch_state(). """ match model: + case "select_dhw_mode": + switch.device = "toggle" + switch.func_type = "toggle_functionality" + switch.act_type = "domestic_hot_water_comfort_mode" case "cooling_ena_switch": switch.device = "toggle" switch.func_type = "toggle_functionality" @@ -234,7 +238,8 @@ async def set_select( """Set a dhw/gateway/regulation mode or the thermostat schedule option.""" match key: case "select_dhw_mode": - await self.set_dhw_mode(option) + state = STATE_ON if option == "comfort" else STATE_OFF + await self.set_switch_state(loc_id, None, key, state) case "select_gateway_mode": await self.set_gateway_mode(option) case "select_regulation_mode": @@ -245,18 +250,27 @@ async def set_select( case "select_zone_profile": await self.set_zone_profile(loc_id, option) - async def set_dhw_mode(self, mode: str) -> None: - """Set the domestic hot water heating regulation mode.""" + async def set_dhw_mode( + self, key: str, loc_id: str, length: int, mode: str + ) -> None: + """Set the domestic hot water mode.""" if mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") - data = ( - "" - f"{mode}" - "" - ) - uri = f"{APPLIANCES};type=heater_central/domestic_hot_water_mode_control" - await self.call_request(uri, method="put", data=data) + match length: + # Devices with the domestic_hot_water_comfort switch + case 2: + state = STATE_ON if mode == "comfort" else STATE_OFF + await self.set_switch_state(loc_id, None, key, state) + # Loria with extended dhw modes + case _: + data = ( + "" + f"{mode}" + "" + ) + uri = f"{APPLIANCES};type=heater_central/domestic_hot_water_mode_control" + await self.call_request(uri, method="put", data=data) async def set_gateway_mode(self, mode: str) -> None: """Set the gateway mode.""" From d0646301d5a3ca8e4798b1ecf5b32eeed0de41ae Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 08:19:46 +0200 Subject: [PATCH 076/371] Update tinker_dhw_mode() --- tests/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_init.py b/tests/test_init.py index 1f8f3c803..53277f1e6 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -859,7 +859,7 @@ async def tinker_dhw_mode(api, unhappy=False): mode = mode[1:] _LOGGER.info("%s", f"- Adjusting dhw mode to {mode}{warning}") try: - await api.set_select("select_dhw_mode", "dummy", mode) + await api.set_dhw_mode("select_dhw_mode", 4, mode) _LOGGER.info(" + tinker_dhw_mode worked as intended") tinker_dhw_mode_passed = True except pw_exceptions.PlugwiseError: From 1f586a300b6b4be72510694c95e408c6dbf4590b Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 18:57:12 +0200 Subject: [PATCH 077/371] Adapt set_dhw_mode() functions --- plugwise/__init__.py | 4 ++-- plugwise/smile.py | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index 6767a3db4..b0611977c 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -461,10 +461,10 @@ async def set_regulation_mode(self, mode: str) -> None: f"Failed to set regulation mode: {str(exc)}" ) from exc # pragma no cover - async def set_dhw_mode(self, mode: str) -> None: + async def set_dhw_mode(self, location: str, length: int, mode: str) -> None: """Set the domestic hot water heating regulation mode.""" try: # pragma no cover - await self._smile_api.set_dhw_mode(mode) # pragma: no cover + await self._smile_api.set_dhw_mode(location, length, mode) # pragma: no cover except ConnectionFailedError as exc: # pragma no cover raise ConnectionFailedError( f"Failed to set dhw mode: {str(exc)}" diff --git a/plugwise/smile.py b/plugwise/smile.py index 19ee58def..7fb47b84d 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -250,9 +250,7 @@ async def set_select( case "select_zone_profile": await self.set_zone_profile(loc_id, option) - async def set_dhw_mode( - self, key: str, loc_id: str, length: int, mode: str - ) -> None: + async def set_dhw_mode(self, loc_id: str, length: int, mode: str) -> None: """Set the domestic hot water mode.""" if mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") @@ -261,7 +259,7 @@ async def set_dhw_mode( # Devices with the domestic_hot_water_comfort switch case 2: state = STATE_ON if mode == "comfort" else STATE_OFF - await self.set_switch_state(loc_id, None, key, state) + await self.set_switch_state(loc_id, None, "select_dhw_mode", state) # Loria with extended dhw modes case _: data = ( From d1cda3f778e95cb36e26be1df4ad0f1ca25276d7 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 19:01:50 +0200 Subject: [PATCH 078/371] Update tinker_dhw_mode() functions in test --- tests/test_anna.py | 6 ++++-- tests/test_init.py | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test_anna.py b/tests/test_anna.py index 66c0973ea..f20b16d52 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -474,7 +474,7 @@ async def test_connect_anna_loria_heating_idle(self): "ERROR raised setting block cooling: %s", exc.value ) # pragma: no cover - tinkered = await self.tinker_dhw_mode(api) + tinkered = await self.tinker_dhw_mode(api, "bfb5ee0a88e14e5f97bfa725a760cc49") assert not tinkered await api.close_connection() @@ -483,7 +483,9 @@ async def test_connect_anna_loria_heating_idle(self): server, api, client = await self.connect_wrapper(raise_timeout=True) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - tinkered = await self.tinker_dhw_mode(api, unhappy=True) + tinkered = await self.tinker_dhw_mode( + api, "bfb5ee0a88e14e5f97bfa725a760cc49", unhappy=True + ) assert tinkered await api.close_connection() diff --git a/tests/test_init.py b/tests/test_init.py index 53277f1e6..bce9af28a 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -849,7 +849,7 @@ async def tinker_legacy_thermostat( return result_1 and result_2 and result_3 @staticmethod - async def tinker_dhw_mode(api, unhappy=False): + async def tinker_dhw_mode(api, appliance, unhappy=False): """Toggle dhw to test functionality.""" tinker_dhw_mode_passed = False for mode in ["auto", "boost", BOGUS]: @@ -859,7 +859,7 @@ async def tinker_dhw_mode(api, unhappy=False): mode = mode[1:] _LOGGER.info("%s", f"- Adjusting dhw mode to {mode}{warning}") try: - await api.set_dhw_mode("select_dhw_mode", 4, mode) + await api.set_dhw_mode(appliance, 4, mode) _LOGGER.info(" + tinker_dhw_mode worked as intended") tinker_dhw_mode_passed = True except pw_exceptions.PlugwiseError: From 37aa2003832e1fe60cc23f09f15595bbc618e619 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 19:08:17 +0200 Subject: [PATCH 079/371] Add dhw_mode test for comfort_mode toggle --- tests/test_adam.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_adam.py b/tests/test_adam.py index 149d717a9..6ba0eab35 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -455,5 +455,9 @@ async def test_adam_plus_jip(self): good_schedules=[None], ) assert result + + tinkered = await self.tinker_dhw_mode(api, "e4684553153b44afbef2200885f379dc") + assert not tinkered + await api.close_connection() await self.disconnect(server, client) From 812510f29859a2f64d4515bab8edc3742328b23d Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 19:14:21 +0200 Subject: [PATCH 080/371] Ruffed --- plugwise/__init__.py | 4 +++- plugwise/smile.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index b0611977c..78c678b87 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -464,7 +464,9 @@ async def set_regulation_mode(self, mode: str) -> None: async def set_dhw_mode(self, location: str, length: int, mode: str) -> None: """Set the domestic hot water heating regulation mode.""" try: # pragma no cover - await self._smile_api.set_dhw_mode(location, length, mode) # pragma: no cover + await self._smile_api.set_dhw_mode( + location, length, mode + ) # pragma: no cover except ConnectionFailedError as exc: # pragma no cover raise ConnectionFailedError( f"Failed to set dhw mode: {str(exc)}" diff --git a/plugwise/smile.py b/plugwise/smile.py index 7fb47b84d..f64f6df13 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -267,7 +267,9 @@ async def set_dhw_mode(self, loc_id: str, length: int, mode: str) -> None: f"{mode}" "" ) - uri = f"{APPLIANCES};type=heater_central/domestic_hot_water_mode_control" + uri = ( + f"{APPLIANCES};type=heater_central/domestic_hot_water_mode_control" + ) await self.call_request(uri, method="put", data=data) async def set_gateway_mode(self, mode: str) -> None: From 01f017c45f208b45df6fd3e03d528b8a7636ebc0 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 19:20:09 +0200 Subject: [PATCH 081/371] Wide dhw_mode options in tinker-test --- tests/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_init.py b/tests/test_init.py index bce9af28a..8600f9cd4 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -852,7 +852,7 @@ async def tinker_legacy_thermostat( async def tinker_dhw_mode(api, appliance, unhappy=False): """Toggle dhw to test functionality.""" tinker_dhw_mode_passed = False - for mode in ["auto", "boost", BOGUS]: + for mode in ["comfort", "auto", BOGUS]: warning = "" if mode[0] == "!": warning = " TD Negative test" From 4a5c5e7c94ccdff1c79899ed7d45c4e2f2e3cafd Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 19:22:42 +0200 Subject: [PATCH 082/371] Update legacy set_dhw_mode() placeholder --- plugwise/legacy/smile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/legacy/smile.py b/plugwise/legacy/smile.py index 89e582256..8847e8558 100644 --- a/plugwise/legacy/smile.py +++ b/plugwise/legacy/smile.py @@ -131,7 +131,7 @@ async def delete_notification(self) -> None: async def reboot_gateway(self) -> None: """Set-function placeholder for legacy devices.""" - async def set_dhw_mode(self, mode: str) -> None: + async def set_dhw_mode(self, loc_id: str, length: int, mode: str) -> None: """Set-function placeholder for legacy devices.""" async def set_gateway_mode(self, mode: str) -> None: From 0ea621d5b7da974993f8c423bfae632aabdc59bb Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 19:25:08 +0200 Subject: [PATCH 083/371] Add select_dhw_mode testcase --- tests/test_adam.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_adam.py b/tests/test_adam.py index 6ba0eab35..0fe5b06a0 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -138,6 +138,9 @@ async def test_connect_adam_plus_anna_new(self): "854f8a9b0e7e425db97f1f110e1ce4b3", ) + tinkered = await self.tinker_dhw_mode(api, "056ee145a816487eaa69243c3280f8bf") + assert not tinkered + tinkered = await self.tinker_gateway_mode(api) assert not tinkered From a219f5c3dcb73392c0ccd2da8992c5bc4a5fa416 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 19:28:29 +0200 Subject: [PATCH 084/371] Tinker_dhw_mode(): pass lenght as argument --- tests/test_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_init.py b/tests/test_init.py index 8600f9cd4..d0b5fab6b 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -849,7 +849,7 @@ async def tinker_legacy_thermostat( return result_1 and result_2 and result_3 @staticmethod - async def tinker_dhw_mode(api, appliance, unhappy=False): + async def tinker_dhw_mode(api, appliance, length, unhappy=False): """Toggle dhw to test functionality.""" tinker_dhw_mode_passed = False for mode in ["comfort", "auto", BOGUS]: @@ -859,7 +859,7 @@ async def tinker_dhw_mode(api, appliance, unhappy=False): mode = mode[1:] _LOGGER.info("%s", f"- Adjusting dhw mode to {mode}{warning}") try: - await api.set_dhw_mode(appliance, 4, mode) + await api.set_dhw_mode(appliance, lenght, mode) _LOGGER.info(" + tinker_dhw_mode worked as intended") tinker_dhw_mode_passed = True except pw_exceptions.PlugwiseError: From a4552dc5b7c49545d6d424b95e66516d3f3d2162 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 19:29:49 +0200 Subject: [PATCH 085/371] Adapt use in test cases --- tests/test_adam.py | 4 ++-- tests/test_anna.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index 0fe5b06a0..9f6f466f6 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -138,7 +138,7 @@ async def test_connect_adam_plus_anna_new(self): "854f8a9b0e7e425db97f1f110e1ce4b3", ) - tinkered = await self.tinker_dhw_mode(api, "056ee145a816487eaa69243c3280f8bf") + tinkered = await self.tinker_dhw_mode(api, "056ee145a816487eaa69243c3280f8bf", 2) assert not tinkered tinkered = await self.tinker_gateway_mode(api) @@ -459,7 +459,7 @@ async def test_adam_plus_jip(self): ) assert result - tinkered = await self.tinker_dhw_mode(api, "e4684553153b44afbef2200885f379dc") + tinkered = await self.tinker_dhw_mode(api, "e4684553153b44afbef2200885f379dc", 2) assert not tinkered await api.close_connection() diff --git a/tests/test_anna.py b/tests/test_anna.py index f20b16d52..037a183ac 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -474,7 +474,7 @@ async def test_connect_anna_loria_heating_idle(self): "ERROR raised setting block cooling: %s", exc.value ) # pragma: no cover - tinkered = await self.tinker_dhw_mode(api, "bfb5ee0a88e14e5f97bfa725a760cc49") + tinkered = await self.tinker_dhw_mode(api, "bfb5ee0a88e14e5f97bfa725a760cc49", 4) assert not tinkered await api.close_connection() @@ -484,7 +484,7 @@ async def test_connect_anna_loria_heating_idle(self): await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) tinkered = await self.tinker_dhw_mode( - api, "bfb5ee0a88e14e5f97bfa725a760cc49", unhappy=True + api, "bfb5ee0a88e14e5f97bfa725a760cc49", 4, unhappy=True ) assert tinkered From ecc4acec8464a6c96c4a5fdf4862e6db8cac5d33 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 15 Jun 2026 19:30:52 +0200 Subject: [PATCH 086/371] Fix typo --- tests/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_init.py b/tests/test_init.py index d0b5fab6b..15ce5d9de 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -859,7 +859,7 @@ async def tinker_dhw_mode(api, appliance, length, unhappy=False): mode = mode[1:] _LOGGER.info("%s", f"- Adjusting dhw mode to {mode}{warning}") try: - await api.set_dhw_mode(appliance, lenght, mode) + await api.set_dhw_mode(appliance, length, mode) _LOGGER.info(" + tinker_dhw_mode worked as intended") tinker_dhw_mode_passed = True except pw_exceptions.PlugwiseError: From 2178fc47a5f75363b182359a60ebc3d7d132f79f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 08:19:26 +0200 Subject: [PATCH 087/371] Use try except to manage a missing switch --- plugwise/smile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index f64f6df13..d408124d8 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -419,7 +419,11 @@ async def set_switch_state( Return the requested state when successful, the current state otherwise. """ model_type = cast(SwitchType, model) - current_state = self.gw_entities[appl_id]["switches"][model_type] + try: + current_state = self.gw_entities[appl_id]["switches"][model_type] + except KeyError: + current_state = None + requested_state = state == STATE_ON switch = Munch() switch.actuator = "actuator_functionalities" From f6580c52de665ee54cd5c0df3eafee613cf8eae0 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 08:24:52 +0200 Subject: [PATCH 088/371] Update typing --- plugwise/__init__.py | 2 +- plugwise/smile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index 78c678b87..d80d66d27 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -423,7 +423,7 @@ async def set_temperature_offset(self, dev_id: str, offset: float) -> None: async def set_switch_state( self, appl_id: str, members: list[str] | None, model: str, state: str - ) -> bool: + ) -> bool | None: """Set the given State of the relevant Switch. Return the result: diff --git a/plugwise/smile.py b/plugwise/smile.py index d408124d8..18dc7d979 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -410,7 +410,7 @@ def determine_contexts(self, loc_id: str, state: str, sched_id: str) -> str: async def set_switch_state( self, appl_id: str, members: list[str] | None, model: str, state: str - ) -> bool: + ) -> bool | None: """Set the given state of the relevant Switch. For individual switches, sets the state directly. From 5ea53054896af93ba0c1695e2ab853b44ce7aad4 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 08:31:00 +0200 Subject: [PATCH 089/371] Remove double code --- plugwise/smile.py | 1 - tests/test_adam.py | 8 ++++++-- tests/test_anna.py | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 18dc7d979..4c13b0488 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -238,7 +238,6 @@ async def set_select( """Set a dhw/gateway/regulation mode or the thermostat schedule option.""" match key: case "select_dhw_mode": - state = STATE_ON if option == "comfort" else STATE_OFF await self.set_switch_state(loc_id, None, key, state) case "select_gateway_mode": await self.set_gateway_mode(option) diff --git a/tests/test_adam.py b/tests/test_adam.py index 9f6f466f6..1276bbd63 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -138,7 +138,9 @@ async def test_connect_adam_plus_anna_new(self): "854f8a9b0e7e425db97f1f110e1ce4b3", ) - tinkered = await self.tinker_dhw_mode(api, "056ee145a816487eaa69243c3280f8bf", 2) + tinkered = await self.tinker_dhw_mode( + api, "056ee145a816487eaa69243c3280f8bf", 2 + ) assert not tinkered tinkered = await self.tinker_gateway_mode(api) @@ -459,7 +461,9 @@ async def test_adam_plus_jip(self): ) assert result - tinkered = await self.tinker_dhw_mode(api, "e4684553153b44afbef2200885f379dc", 2) + tinkered = await self.tinker_dhw_mode( + api, "e4684553153b44afbef2200885f379dc", 2 + ) assert not tinkered await api.close_connection() diff --git a/tests/test_anna.py b/tests/test_anna.py index 037a183ac..08eb73e89 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -474,7 +474,9 @@ async def test_connect_anna_loria_heating_idle(self): "ERROR raised setting block cooling: %s", exc.value ) # pragma: no cover - tinkered = await self.tinker_dhw_mode(api, "bfb5ee0a88e14e5f97bfa725a760cc49", 4) + tinkered = await self.tinker_dhw_mode( + api, "bfb5ee0a88e14e5f97bfa725a760cc49", 4 + ) assert not tinkered await api.close_connection() From 4ec51b97ddceaf6fe34c967644870123d0050c47 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 08:35:49 +0200 Subject: [PATCH 090/371] Add comment for required functionality --- plugwise/smile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugwise/smile.py b/plugwise/smile.py index 4c13b0488..9aa48b959 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -16,6 +16,7 @@ DOMAIN_OBJECTS, GATEWAY_REBOOT, LOCATIONS, + LOGGER, MAX_SETPOINT, MIN_SETPOINT, NONE, @@ -257,8 +258,12 @@ async def set_dhw_mode(self, loc_id: str, length: int, mode: str) -> None: match length: # Devices with the domestic_hot_water_comfort switch case 2: + # two options here: + # - with max_dhw_temperature dict: call set_select() + # - without: call set_switch_state() state = STATE_ON if mode == "comfort" else STATE_OFF await self.set_switch_state(loc_id, None, "select_dhw_mode", state) + # Loria with extended dhw modes case _: data = ( From f5e5af8ccaaaa1ebfa37a7126920e4f0b1fca4a0 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 17:40:47 +0200 Subject: [PATCH 091/371] Adapt for both select_dhw_mode and dhw_mode options --- plugwise/smile.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 9aa48b959..19ac83123 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -44,7 +44,7 @@ def model_to_switch_items(model: str, state: str, switch: Munch) -> tuple[str, M Helper function for set_switch_state(). """ match model: - case "select_dhw_mode": + case "select_dhw_mode" | "dhw_mode": switch.device = "toggle" switch.func_type = "toggle_functionality" switch.act_type = "domestic_hot_water_comfort_mode" @@ -238,7 +238,7 @@ async def set_select( ) -> None: """Set a dhw/gateway/regulation mode or the thermostat schedule option.""" match key: - case "select_dhw_mode": + case "select_dhw_mode" | "dhw_mode": await self.set_switch_state(loc_id, None, key, state) case "select_gateway_mode": await self.set_gateway_mode(option) @@ -250,7 +250,9 @@ async def set_select( case "select_zone_profile": await self.set_zone_profile(loc_id, option) - async def set_dhw_mode(self, loc_id: str, length: int, mode: str) -> None: + async def set_dhw_mode( + self, key: str, loc_id: str, length: int, mode: str + ) -> None: """Set the domestic hot water mode.""" if mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") @@ -258,12 +260,8 @@ async def set_dhw_mode(self, loc_id: str, length: int, mode: str) -> None: match length: # Devices with the domestic_hot_water_comfort switch case 2: - # two options here: - # - with max_dhw_temperature dict: call set_select() - # - without: call set_switch_state() state = STATE_ON if mode == "comfort" else STATE_OFF - await self.set_switch_state(loc_id, None, "select_dhw_mode", state) - + await self.set_select(key, loc_id, None, state) # Loria with extended dhw modes case _: data = ( From f30442c420a03fbac198da7ce55ee57491b7cc2a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 17:42:37 +0200 Subject: [PATCH 092/371] Adapt tinker_dhw_mode --- tests/test_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_init.py b/tests/test_init.py index 15ce5d9de..dad9cfb53 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -849,7 +849,7 @@ async def tinker_legacy_thermostat( return result_1 and result_2 and result_3 @staticmethod - async def tinker_dhw_mode(api, appliance, length, unhappy=False): + async def tinker_dhw_mode(api, appliance, key, length, unhappy=False): """Toggle dhw to test functionality.""" tinker_dhw_mode_passed = False for mode in ["comfort", "auto", BOGUS]: @@ -859,7 +859,7 @@ async def tinker_dhw_mode(api, appliance, length, unhappy=False): mode = mode[1:] _LOGGER.info("%s", f"- Adjusting dhw mode to {mode}{warning}") try: - await api.set_dhw_mode(appliance, length, mode) + await api.set_dhw_mode(key, appliance, length, mode) _LOGGER.info(" + tinker_dhw_mode worked as intended") tinker_dhw_mode_passed = True except pw_exceptions.PlugwiseError: From dd49a03f56eedce5352dfc2779a9e100d11a086d Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 17:44:36 +0200 Subject: [PATCH 093/371] Update related test cases --- tests/test_adam.py | 4 ++-- tests/test_anna.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index 1276bbd63..1ef525961 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -139,7 +139,7 @@ async def test_connect_adam_plus_anna_new(self): ) tinkered = await self.tinker_dhw_mode( - api, "056ee145a816487eaa69243c3280f8bf", 2 + api, "056ee145a816487eaa69243c3280f8bf", "select_dhw_mode", 2 ) assert not tinkered @@ -462,7 +462,7 @@ async def test_adam_plus_jip(self): assert result tinkered = await self.tinker_dhw_mode( - api, "e4684553153b44afbef2200885f379dc", 2 + api, "e4684553153b44afbef2200885f379dc", "dhw_mode", 2 ) assert not tinkered diff --git a/tests/test_anna.py b/tests/test_anna.py index 08eb73e89..d6334d7e7 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -475,7 +475,7 @@ async def test_connect_anna_loria_heating_idle(self): ) # pragma: no cover tinkered = await self.tinker_dhw_mode( - api, "bfb5ee0a88e14e5f97bfa725a760cc49", 4 + api, "bfb5ee0a88e14e5f97bfa725a760cc49", "dhw_mode", 4 ) assert not tinkered @@ -486,7 +486,7 @@ async def test_connect_anna_loria_heating_idle(self): await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) tinkered = await self.tinker_dhw_mode( - api, "bfb5ee0a88e14e5f97bfa725a760cc49", 4, unhappy=True + api, "bfb5ee0a88e14e5f97bfa725a760cc49", "dhw_mode", 4, unhappy=True ) assert tinkered From f984ac9883644143371262a287d9447a7eaafb11 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 17:47:20 +0200 Subject: [PATCH 094/371] Line up all set_dhw_mode() functions --- plugwise/__init__.py | 4 ++-- plugwise/legacy/smile.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index d80d66d27..0c38fbaac 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -461,11 +461,11 @@ async def set_regulation_mode(self, mode: str) -> None: f"Failed to set regulation mode: {str(exc)}" ) from exc # pragma no cover - async def set_dhw_mode(self, location: str, length: int, mode: str) -> None: + async def set_dhw_mode(self, key: str, location: str, length: int, mode: str) -> None: """Set the domestic hot water heating regulation mode.""" try: # pragma no cover await self._smile_api.set_dhw_mode( - location, length, mode + key, location, length, mode ) # pragma: no cover except ConnectionFailedError as exc: # pragma no cover raise ConnectionFailedError( diff --git a/plugwise/legacy/smile.py b/plugwise/legacy/smile.py index 8847e8558..e75bd5b2c 100644 --- a/plugwise/legacy/smile.py +++ b/plugwise/legacy/smile.py @@ -131,7 +131,7 @@ async def delete_notification(self) -> None: async def reboot_gateway(self) -> None: """Set-function placeholder for legacy devices.""" - async def set_dhw_mode(self, loc_id: str, length: int, mode: str) -> None: + async def set_dhw_mode(self, key: str, location: str, length: int, mode: str) -> None: """Set-function placeholder for legacy devices.""" async def set_gateway_mode(self, mode: str) -> None: From ef833bd8e5cf321dd1acbac0a404282f28923aa7 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 17:47:56 +0200 Subject: [PATCH 095/371] Clean up --- plugwise/__init__.py | 4 +++- plugwise/legacy/smile.py | 4 +++- plugwise/smile.py | 5 +---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index 0c38fbaac..fe8a9470e 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -461,7 +461,9 @@ async def set_regulation_mode(self, mode: str) -> None: f"Failed to set regulation mode: {str(exc)}" ) from exc # pragma no cover - async def set_dhw_mode(self, key: str, location: str, length: int, mode: str) -> None: + async def set_dhw_mode( + self, key: str, location: str, length: int, mode: str + ) -> None: """Set the domestic hot water heating regulation mode.""" try: # pragma no cover await self._smile_api.set_dhw_mode( diff --git a/plugwise/legacy/smile.py b/plugwise/legacy/smile.py index e75bd5b2c..622d7ca38 100644 --- a/plugwise/legacy/smile.py +++ b/plugwise/legacy/smile.py @@ -131,7 +131,9 @@ async def delete_notification(self) -> None: async def reboot_gateway(self) -> None: """Set-function placeholder for legacy devices.""" - async def set_dhw_mode(self, key: str, location: str, length: int, mode: str) -> None: + async def set_dhw_mode( + self, key: str, location: str, length: int, mode: str + ) -> None: """Set-function placeholder for legacy devices.""" async def set_gateway_mode(self, mode: str) -> None: diff --git a/plugwise/smile.py b/plugwise/smile.py index 19ac83123..82de8d5b2 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -16,7 +16,6 @@ DOMAIN_OBJECTS, GATEWAY_REBOOT, LOCATIONS, - LOGGER, MAX_SETPOINT, MIN_SETPOINT, NONE, @@ -250,9 +249,7 @@ async def set_select( case "select_zone_profile": await self.set_zone_profile(loc_id, option) - async def set_dhw_mode( - self, key: str, loc_id: str, length: int, mode: str - ) -> None: + async def set_dhw_mode(self, key: str, loc_id: str, length: int, mode: str) -> None: """Set the domestic hot water mode.""" if mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") From e8f331b72e21175caf9595f9bb7c48baaaf147fe Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 17:51:26 +0200 Subject: [PATCH 096/371] Typing fixes --- plugwise/smile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 82de8d5b2..3b9adee8d 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -238,7 +238,8 @@ async def set_select( """Set a dhw/gateway/regulation mode or the thermostat schedule option.""" match key: case "select_dhw_mode" | "dhw_mode": - await self.set_switch_state(loc_id, None, key, state) + if state is not None: + await self.set_switch_state(loc_id, None, key, state) case "select_gateway_mode": await self.set_gateway_mode(option) case "select_regulation_mode": @@ -258,7 +259,7 @@ async def set_dhw_mode(self, key: str, loc_id: str, length: int, mode: str) -> N # Devices with the domestic_hot_water_comfort switch case 2: state = STATE_ON if mode == "comfort" else STATE_OFF - await self.set_select(key, loc_id, None, state) + await self.set_select(key, loc_id, "dummy", state) # Loria with extended dhw modes case _: data = ( From e46c74e156347ff4bcf12213eea6f854dfed9792 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 19:46:47 +0200 Subject: [PATCH 097/371] Fix length in test as suggested --- tests/test_anna.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_anna.py b/tests/test_anna.py index d6334d7e7..464d2e277 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -475,7 +475,7 @@ async def test_connect_anna_loria_heating_idle(self): ) # pragma: no cover tinkered = await self.tinker_dhw_mode( - api, "bfb5ee0a88e14e5f97bfa725a760cc49", "dhw_mode", 4 + api, "bfb5ee0a88e14e5f97bfa725a760cc49", "dhw_mode", 5 ) assert not tinkered From 197457ef90b30165383635e8d0cac1ddcb16b167 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 20:02:29 +0200 Subject: [PATCH 098/371] Test dhw_mode off to as suggested --- tests/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_init.py b/tests/test_init.py index dad9cfb53..7e6394df5 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -852,7 +852,7 @@ async def tinker_legacy_thermostat( async def tinker_dhw_mode(api, appliance, key, length, unhappy=False): """Toggle dhw to test functionality.""" tinker_dhw_mode_passed = False - for mode in ["comfort", "auto", BOGUS]: + for mode in ["off", "comfort", "auto", BOGUS]: warning = "" if mode[0] == "!": warning = " TD Negative test" From fb343b6e5927357cf2d9b884c0cbce544fc3ee18 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 20:22:12 +0200 Subject: [PATCH 099/371] Improve --- plugwise/smile.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 3b9adee8d..5205adb06 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -238,8 +238,9 @@ async def set_select( """Set a dhw/gateway/regulation mode or the thermostat schedule option.""" match key: case "select_dhw_mode" | "dhw_mode": - if state is not None: - await self.set_switch_state(loc_id, None, key, state) + state = STATE_ON if option == "comfort" else STATE_OFF + # loc_id = appliance_id + await self.set_switch_state(loc_id, None, key, state) case "select_gateway_mode": await self.set_gateway_mode(option) case "select_regulation_mode": @@ -250,7 +251,7 @@ async def set_select( case "select_zone_profile": await self.set_zone_profile(loc_id, option) - async def set_dhw_mode(self, key: str, loc_id: str, length: int, mode: str) -> None: + async def set_dhw_mode(self, key: str, appl_id: str, length: int, mode: str) -> None: """Set the domestic hot water mode.""" if mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") @@ -258,8 +259,7 @@ async def set_dhw_mode(self, key: str, loc_id: str, length: int, mode: str) -> N match length: # Devices with the domestic_hot_water_comfort switch case 2: - state = STATE_ON if mode == "comfort" else STATE_OFF - await self.set_select(key, loc_id, "dummy", state) + await self.set_select(key, appl_id, mode, None) # Loria with extended dhw modes case _: data = ( From 20579fba75a36e722bd3dc43669d9c84ecf635de Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 20:24:36 +0200 Subject: [PATCH 100/371] Ruffed --- plugwise/smile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 5205adb06..37da99d20 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -251,7 +251,9 @@ async def set_select( case "select_zone_profile": await self.set_zone_profile(loc_id, option) - async def set_dhw_mode(self, key: str, appl_id: str, length: int, mode: str) -> None: + async def set_dhw_mode( + self, key: str, appl_id: str, length: int, mode: str + ) -> None: """Set the domestic hot water mode.""" if mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") From 050e6d7c826278a47b56b37f3930d446c3f43b01 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 20:29:02 +0200 Subject: [PATCH 101/371] Debug --- plugwise/smile.py | 16 ++++++++++++++++ scripts/tests_and_coverage.sh | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 37da99d20..0d4318e66 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -16,6 +16,7 @@ DOMAIN_OBJECTS, GATEWAY_REBOOT, LOCATIONS, + LOGGER, MAX_SETPOINT, MIN_SETPOINT, NONE, @@ -236,6 +237,9 @@ async def set_select( self, key: str, loc_id: str, option: str, state: str | None ) -> None: """Set a dhw/gateway/regulation mode or the thermostat schedule option.""" + LOGGER.debug( + "HOI set_select called with: %s, %s, %s, %s", key, loc_id, option, state + ) match key: case "select_dhw_mode" | "dhw_mode": state = STATE_ON if option == "comfort" else STATE_OFF @@ -258,6 +262,9 @@ async def set_dhw_mode( if mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") + LOGGER.debug( + "HOI set_dhw_mode called with: %s, %s, %s, %s", key, appl_id, length, mode + ) match length: # Devices with the domestic_hot_water_comfort switch case 2: @@ -420,6 +427,13 @@ async def set_switch_state( For switch-locks, sets the lock state using a different data format. Return the requested state when successful, the current state otherwise. """ + LOGGER.debug( + "HOI set_switch_state called with: %s, %s, %s, %s", + appl_id, + members, + model, + state, + ) model_type = cast(SwitchType, model) try: current_state = self.gw_entities[appl_id]["switches"][model_type] @@ -449,11 +463,13 @@ async def set_switch_state( for item in found: # multiple types of e.g. toggle_functionality present if (sw_type := item.find("type")) is not None: + LOGGER.debug("HOI switch_type: %s", sw_type.text) if sw_type.text == switch.act_type: switch_id = item.get("id") break else: # actuators with a single item like relay_functionality switch_id = item.get("id") + LOGGER.debug("HOI switch_id: %s", switch_id) uri = f"{APPLIANCES};id={appl_id}/{switch.device};id={switch_id}" if model == "relay": diff --git a/scripts/tests_and_coverage.sh b/scripts/tests_and_coverage.sh index 42aca60ec..89998b496 100755 --- a/scripts/tests_and_coverage.sh +++ b/scripts/tests_and_coverage.sh @@ -52,7 +52,8 @@ set +u if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "test_and_coverage" ] ; then # Python tests (rerun with debug if failures) - PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing || PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/ + # PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing || + PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/ handle_command_error "python code testing" fi From c0dd270db429e74efb4e9fc50ff9669acba0eb40 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 20:42:13 +0200 Subject: [PATCH 102/371] Init switch_id --- plugwise/smile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugwise/smile.py b/plugwise/smile.py index 0d4318e66..5485f00b0 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -460,6 +460,7 @@ async def set_switch_state( locator = f'appliance[@id="{appl_id}"]/{switch.actuator}/{switch.func_type}' found = self._domain_objects.findall(locator) + switch_id: str | None = None for item in found: # multiple types of e.g. toggle_functionality present if (sw_type := item.find("type")) is not None: From 07e5beec256330e939c445e399cd8048f324a905 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Tue, 16 Jun 2026 20:46:52 +0200 Subject: [PATCH 103/371] Debug 2 --- plugwise/smile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 5485f00b0..6dc01316c 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -470,7 +470,7 @@ async def set_switch_state( break else: # actuators with a single item like relay_functionality switch_id = item.get("id") - LOGGER.debug("HOI switch_id: %s", switch_id) + LOGGER.debug("HOI switch_id: %s", switch_id) uri = f"{APPLIANCES};id={appl_id}/{switch.device};id={switch_id}" if model == "relay": From 12f638c7a199d66d19d5260465a23a0c6198df18 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 17 Jun 2026 20:24:30 +0200 Subject: [PATCH 104/371] Update set_switch_state() URI call for toggle, relay and lock --- plugwise/smile.py | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 6dc01316c..33a0baead 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -46,11 +46,11 @@ def model_to_switch_items(model: str, state: str, switch: Munch) -> tuple[str, M match model: case "select_dhw_mode" | "dhw_mode": switch.device = "toggle" - switch.func_type = "toggle_functionality" + switch.func_type = "toggle" switch.act_type = "domestic_hot_water_comfort_mode" case "cooling_ena_switch": switch.device = "toggle" - switch.func_type = "toggle_functionality" + switch.func_type = "toggle" switch.act_type = "cooling_enabled" case "lock": switch.func = "lock" @@ -452,27 +452,16 @@ async def set_switch_state( f"<{switch.func}>{state}" f"" ) + extra = "" + if switch.device == "toggle": + extra = f";type={switch.act_type}" if members is not None: return await self._set_groupswitch_member_state( appl_id, data, members, state, switch ) - locator = f'appliance[@id="{appl_id}"]/{switch.actuator}/{switch.func_type}' - found = self._domain_objects.findall(locator) - switch_id: str | None = None - for item in found: - # multiple types of e.g. toggle_functionality present - if (sw_type := item.find("type")) is not None: - LOGGER.debug("HOI switch_type: %s", sw_type.text) - if sw_type.text == switch.act_type: - switch_id = item.get("id") - break - else: # actuators with a single item like relay_functionality - switch_id = item.get("id") - LOGGER.debug("HOI switch_id: %s", switch_id) - - uri = f"{APPLIANCES};id={appl_id}/{switch.device};id={switch_id}" + uri = f"{APPLIANCES};id={appl_id}/{switch.device}{extra}" if model == "relay": lock_blocked = self.gw_entities[appl_id]["switches"].get("lock") if lock_blocked or lock_blocked is None: From ccd331dc3c3e04afeedd92a30b41024c4e2cd2f5 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Thu, 18 Jun 2026 08:13:34 +0200 Subject: [PATCH 105/371] Also adapt _set_groupswitch_member_state() --- plugwise/smile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 33a0baead..44a1de7a1 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -484,9 +484,7 @@ async def _set_groupswitch_member_state( requested_state = state == STATE_ON switched = 0 for member in members: - locator = f'appliance[@id="{member}"]/{switch.actuator}/{switch.func_type}' - switch_id = self._domain_objects.find(locator).get("id") - uri = f"{APPLIANCES};id={member}/{switch.device};id={switch_id}" + uri = f"{APPLIANCES};id={member}/{switch.device}" lock_blocked = self.gw_entities[member]["switches"].get("lock") # Assume Plugs under Plugwise control are not part of a group if lock_blocked is not None and not lock_blocked: From 5d391fb9948561f3648c6cf28d1df4fff5aab8a3 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Thu, 18 Jun 2026 18:28:51 +0200 Subject: [PATCH 106/371] Use the appropriate method --- plugwise/smile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 44a1de7a1..4dbd505f9 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -54,6 +54,7 @@ def model_to_switch_items(model: str, state: str, switch: Munch) -> tuple[str, M switch.act_type = "cooling_enabled" case "lock": switch.func = "lock" + switch.method = "post" state = "true" if state == STATE_ON else "false" return state, switch @@ -446,6 +447,7 @@ async def set_switch_state( switch.device = "relay" switch.func_type = "relay_functionality" switch.func = "state" + switch.method = "put" state, switch = model_to_switch_items(model, state, switch) data = ( f"<{switch.func_type}>" @@ -469,7 +471,7 @@ async def set_switch_state( # lock is present. That means the relay can't be controlled by the user. return current_state - await self.call_request(uri, method="put", data=data) + await self.call_request(uri, method=switch.method, data=data) return requested_state async def _set_groupswitch_member_state( From 853569e96f0c216c56eb3bea639c0c783344a248 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Thu, 18 Jun 2026 19:29:18 +0200 Subject: [PATCH 107/371] Allow POST for core/appliances --- tests/test_init.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/test_init.py b/tests/test_init.py index 7e6394df5..db3790005 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -115,22 +115,23 @@ def setup_app( # Introducte timeout with 2 seconds, test by setting response to 10ms # Don't actually wait 2 seconds as this will prolongue testing if not raise_timeout: + app.router.add_route("POST", CORE_APPLIANCES_TAIL, self.smile_http_accept) + app.router.add_route("PUT", CORE_APPLIANCES_TAIL, self.smile_http_accept) app.router.add_route("POST", CORE_GATEWAYS_TAIL, self.smile_http_accept) - app.router.add_route("PUT", CORE_LOCATIONS_TAIL, self.smile_http_accept) app.router.add_route("POST", CORE_LOCATIONS_TAIL, self.smile_http_accept) + app.router.add_route("PUT", CORE_LOCATIONS_TAIL, self.smile_http_accept) app.router.add_route( "DELETE", CORE_NOTIFICATIONS_TAIL, self.smile_http_accept ) app.router.add_route("PUT", CORE_RULES_TAIL, self.smile_http_accept) - app.router.add_route("PUT", CORE_APPLIANCES_TAIL, self.smile_http_accept) else: + app.router.add_route("POST", CORE_APPLIANCES_TAIL, self.smile_timeout) + app.router.add_route("PUT", CORE_APPLIANCES_TAIL, self.smile_timeout) app.router.add_route("POST", CORE_GATEWAYS_TAIL, self.smile_timeout) - app.router.add_route("PUT", CORE_LOCATIONS_TAIL, self.smile_timeout) app.router.add_route("POST", CORE_LOCATIONS_TAIL, self.smile_timeout) - app.router.add_route("PUT", CORE_RULES_TAIL, self.smile_timeout) - app.router.add_route("PUT", CORE_APPLIANCES_TAIL, self.smile_timeout) + app.router.add_route("PUT", CORE_LOCATIONS_TAIL, self.smile_timeout) app.router.add_route("DELETE", CORE_NOTIFICATIONS_TAIL, self.smile_timeout) - + app.router.add_route("PUT", CORE_RULES_TAIL, self.smile_timeout) return app def setup_legacy_app( From f33536932326c939f30d476a4f5ee7a632083e63 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 19 Jun 2026 12:34:54 +0200 Subject: [PATCH 108/371] Rework to single if with walrus --- plugwise/data.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugwise/data.py b/plugwise/data.py index 0448eb859..3dfc293d0 100644 --- a/plugwise/data.py +++ b/plugwise/data.py @@ -79,11 +79,12 @@ def _update_gw_entities(self) -> None: remove_empty_platform_dicts(entity) # Replace select_dhw_mode with dhw_mode when applicable - if "max_dhw_temperature" in entity: - mode = entity.get("select_dhw_mode") - if mode is not None: - entity.pop("select_dhw_mode") - entity["dhw_mode"] = mode + if ( + "max_dhw_temperature" in entity + and (mode := entity.get("select_dhw_mode")) is not None + ): + entity.pop("select_dhw_mode") + entity["dhw_mode"] = mode def _detect_low_batteries(self) -> list[str]: """Helper-function updating the low-battery binary_sensor status from a Battery-is-low message.""" From 621df52019df5dc559a4a05eb720f78027e82422 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 19 Jun 2026 12:50:51 +0200 Subject: [PATCH 109/371] Improve comments --- plugwise/helper.py | 4 ++-- plugwise/smile.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 54a926a51..bd7a35ca3 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -265,11 +265,11 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch def _collect_dhw_modes(self, appliance: etree.Element) -> None: """Collect the DHW modes.""" - # Collect the Loria dhw_modes + # Collect the Loria dhw modes self._dhw_allowed_modes = self._get_appl_actuator_modes( appliance, "domestic_hot_water_mode_control_functionality" ) - # Collect the default dhw modes: comfort and off + # Determine the dhw modes from the domestic_hot_water_comfort_mode toggle if not self._dhw_allowed_modes: self._get_toggle_state( appliance, "domestic_hot_water_comfort_mode", "dhw_cm_switch", {} diff --git a/plugwise/smile.py b/plugwise/smile.py index 4dbd505f9..461537cc8 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -244,14 +244,15 @@ async def set_select( match key: case "select_dhw_mode" | "dhw_mode": state = STATE_ON if option == "comfort" else STATE_OFF - # loc_id = appliance_id + # Appliance id is passed as loc_id await self.set_switch_state(loc_id, None, key, state) case "select_gateway_mode": await self.set_gateway_mode(option) case "select_regulation_mode": await self.set_regulation_mode(option) case "select_schedule": - # schedule name corresponds to select option + # The schedule name corresponds to the select option + # Location id is passed as loc_id await self.set_schedule_state(loc_id, state, option) case "select_zone_profile": await self.set_zone_profile(loc_id, option) From 94792bfc4e061c1655165e6a93e191dc27ad0110 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 19 Jun 2026 17:14:07 +0200 Subject: [PATCH 110/371] Optimize --- plugwise/smile.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 461537cc8..91749454a 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -45,12 +45,10 @@ def model_to_switch_items(model: str, state: str, switch: Munch) -> tuple[str, M """ match model: case "select_dhw_mode" | "dhw_mode": - switch.device = "toggle" - switch.func_type = "toggle" + switch.device = switch.func_type = "toggle" switch.act_type = "domestic_hot_water_comfort_mode" case "cooling_ena_switch": - switch.device = "toggle" - switch.func_type = "toggle" + switch.device = switch.func_type = "toggle" switch.act_type = "cooling_enabled" case "lock": switch.func = "lock" From d08492ec7d22d3b9510dd05014f0ce7f535cbed5 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 19 Jun 2026 17:16:18 +0200 Subject: [PATCH 111/371] Remove debug-logger lines --- plugwise/smile.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 91749454a..9cb65c5d4 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -16,7 +16,6 @@ DOMAIN_OBJECTS, GATEWAY_REBOOT, LOCATIONS, - LOGGER, MAX_SETPOINT, MIN_SETPOINT, NONE, @@ -236,9 +235,6 @@ async def set_select( self, key: str, loc_id: str, option: str, state: str | None ) -> None: """Set a dhw/gateway/regulation mode or the thermostat schedule option.""" - LOGGER.debug( - "HOI set_select called with: %s, %s, %s, %s", key, loc_id, option, state - ) match key: case "select_dhw_mode" | "dhw_mode": state = STATE_ON if option == "comfort" else STATE_OFF @@ -262,9 +258,6 @@ async def set_dhw_mode( if mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") - LOGGER.debug( - "HOI set_dhw_mode called with: %s, %s, %s, %s", key, appl_id, length, mode - ) match length: # Devices with the domestic_hot_water_comfort switch case 2: @@ -427,13 +420,6 @@ async def set_switch_state( For switch-locks, sets the lock state using a different data format. Return the requested state when successful, the current state otherwise. """ - LOGGER.debug( - "HOI set_switch_state called with: %s, %s, %s, %s", - appl_id, - members, - model, - state, - ) model_type = cast(SwitchType, model) try: current_state = self.gw_entities[appl_id]["switches"][model_type] From 4515b6a7bc5b3431f967bb9ef92bffdc54105b35 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 19 Jun 2026 17:35:46 +0200 Subject: [PATCH 112/371] Improve comments, docstring --- plugwise/smile.py | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 9cb65c5d4..9624389ac 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -232,37 +232,41 @@ async def set_preset(self, loc_id: str, preset: str) -> None: await self.call_request(uri, method="put", data=data) async def set_select( - self, key: str, loc_id: str, option: str, state: str | None + self, key: str, appl_or_loc_id: str, option: str, state: str | None ) -> None: """Set a dhw/gateway/regulation mode or the thermostat schedule option.""" match key: case "select_dhw_mode" | "dhw_mode": state = STATE_ON if option == "comfort" else STATE_OFF - # Appliance id is passed as loc_id - await self.set_switch_state(loc_id, None, key, state) + # Appliance id is passed + await self.set_switch_state(appl_or_loc_id, None, key, state) case "select_gateway_mode": await self.set_gateway_mode(option) case "select_regulation_mode": await self.set_regulation_mode(option) case "select_schedule": # The schedule name corresponds to the select option - # Location id is passed as loc_id - await self.set_schedule_state(loc_id, state, option) + # Location id is passed + await self.set_schedule_state(appl_or_loc_id, state, option) case "select_zone_profile": - await self.set_zone_profile(loc_id, option) + # Location id is passed + await self.set_zone_profile(appl_or_loc_id, option) async def set_dhw_mode( self, key: str, appl_id: str, length: int, mode: str ) -> None: - """Set the domestic hot water mode.""" + """Set the domestic hot water mode. + + Two options are known: + - 2 modes, comfort and off, representing the dhw comfort mode on and off switch states, + - and the 5 modes available on the Loria. + """ if mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") match length: - # Devices with the domestic_hot_water_comfort switch case 2: await self.set_select(key, appl_id, mode, None) - # Loria with extended dhw modes case _: data = ( "" From 235e0341dcebef917d0d5a9e9b3204ef6c016a9d Mon Sep 17 00:00:00 2001 From: autoruff Date: Fri, 19 Jun 2026 15:37:24 +0000 Subject: [PATCH 113/371] fixup: dhw_update Python code fixed using ruff --- plugwise/smile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 9624389ac..40fdbc627 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -256,7 +256,7 @@ async def set_dhw_mode( self, key: str, appl_id: str, length: int, mode: str ) -> None: """Set the domestic hot water mode. - + Two options are known: - 2 modes, comfort and off, representing the dhw comfort mode on and off switch states, - and the 5 modes available on the Loria. From 667e26a105ea948a0e155e2c07d7bf92f64fbecc Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 19 Jun 2026 17:39:53 +0200 Subject: [PATCH 114/371] Update CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5fa67870..83dfd45b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## v1.12.0 -- Replace the DHW-comfort-mode switch by a DHW mode selector to match the HA select or water_heater platforms, via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) +- Replace the DHW-comfort-mode switch by a DHW mode selector to match the new HA select or water_heater platform updates, via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) ## v1.11.4 From b17a1fc62d26bf9a01c46059c890ec58dce32396 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 20 Jun 2026 09:29:56 +0200 Subject: [PATCH 115/371] Back to normal test-output --- scripts/tests_and_coverage.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/tests_and_coverage.sh b/scripts/tests_and_coverage.sh index 89998b496..42aca60ec 100755 --- a/scripts/tests_and_coverage.sh +++ b/scripts/tests_and_coverage.sh @@ -52,8 +52,7 @@ set +u if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "test_and_coverage" ] ; then # Python tests (rerun with debug if failures) - # PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing || - PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/ + PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing || PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/ handle_command_error "python code testing" fi From eefb304869eb5e0aecf8f4edf2bc894eb523dbfb Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 20 Jun 2026 09:50:20 +0200 Subject: [PATCH 116/371] Adapt legacy set_switch_state() output typing --- plugwise/legacy/smile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugwise/legacy/smile.py b/plugwise/legacy/smile.py index 622d7ca38..419f2fde9 100644 --- a/plugwise/legacy/smile.py +++ b/plugwise/legacy/smile.py @@ -223,7 +223,7 @@ async def set_schedule_state( async def set_switch_state( self, appl_id: str, members: list[str] | None, model: str, state: str - ) -> bool: + ) -> bool | None: """Set the given state of the relevant switch. For individual switches, sets the state directly. @@ -231,7 +231,7 @@ async def set_switch_state( For switch-locks, sets the lock state using a different data format. Return the requested state when successful, the current state otherwise. """ - current_state = self.gw_entities[appl_id]["switches"]["relay"] + current_state = self.gw_entities[appl_id]["switches"].get("relay") requested_state = state == STATE_ON switch = Munch() switch.actuator = "actuator_functionalities" From e9e558f0a36fe6f788bfde212fdb64337dd4dc1c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 05:26:34 +0000 Subject: [PATCH 117/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.20 (#889) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 126db5f1c..e39899b78 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.18 + rev: v0.15.20 hooks: - id: ruff name: "Ruff check" From 92222cca04c48897bd374bf6e1af5ce4cc823d31 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 5 Jul 2026 10:36:10 +0000 Subject: [PATCH 118/371] Add PEP 740 and pin GitHub actions --- .github/workflows/merge.yml | 7 ++++-- .github/workflows/verify.yml | 49 +++++++++++++++++++----------------- CHANGELOG.md | 6 +++++ pyproject.toml | 2 +- 4 files changed, 38 insertions(+), 26 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 00ad17b66..d38f89ed1 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -4,7 +4,7 @@ name: Latest release env: - CACHE_VERSION: 11 + CACHE_VERSION: 1 DEFAULT_PYTHON: "3.14" # Only run on merges @@ -26,7 +26,7 @@ jobs: if: github.event.pull_request.merged == true steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Prepare uv run: | pip install uv @@ -54,6 +54,9 @@ jobs: run: | . venv/bin/activate uv build + - name: Generate PEP 740 Attestations + if: steps.check_package.outputs.should_publish == 'true' + uses: astral-sh/attest-action@f589a42a7efb6fe400b4f400de60b4bc90390027 - name: Publish distribution 📦 to PyPI if: steps.check_package.outputs.should_publish == 'true' run: | diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 7cf273e52..9e68e4884 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -4,7 +4,7 @@ name: Latest commit env: - CACHE_VERSION: 3 + CACHE_VERSION: 2 DEFAULT_PYTHON: "3.14" VENV: venv @@ -25,10 +25,10 @@ jobs: python-version: ${{ steps.python.outputs.python-version }} # Ensure all runners use THIS minor version steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Set up Python and determine minor version for ${{ env.DEFAULT_PYTHON }} id: python - uses: actions/setup-python@v6 + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 with: python-version: ${{ env.DEFAULT_PYTHON }} - name: Fetch HA pyproject @@ -46,7 +46,7 @@ jobs: steps: - name: Prepare code checkout and python/prek(pre-commit) setup id: cache-reuse - uses: plugwise/gh-actions/prepare-python-and-code@v2 + uses: plugwise/gh-actions/prepare-python-and-code@72ceb10366b90ac4fe63e27ca70341da283084df with: cache-key: ${{ needs.cache.outputs.cache-key }} fail-on-miss: false # First time create cache (if not already exists) @@ -62,12 +62,12 @@ jobs: - prepare steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 with: persist-credentials: false - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@v2 + uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -100,10 +100,10 @@ jobs: - dependencies_check steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@v2 + uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -130,15 +130,15 @@ jobs: python-version: ["3.14", "3.13"] steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Set up Python ${{ matrix.python-version }} id: python - uses: actions/setup-python@v6 + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 with: python-version: ${{ matrix.python-version }} - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@v2 + uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df with: fail-on-miss: false # First time create cache (if not already exists) cache-key: ${{ needs.cache.outputs.cache-key }} @@ -150,7 +150,7 @@ jobs: . venv-${{ steps.python.outputs.python-version }}/bin/activate pytest --log-level info tests/*.py --cov='.' - name: Upload coverage artifact - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a with: name: coverage-${{ steps.python.outputs.python-version }} path: .coverage @@ -166,12 +166,12 @@ jobs: - pytest steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 with: persist-credentials: false - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@v2 + uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -189,7 +189,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Run ShellCheck uses: ludeeus/action-shellcheck@master @@ -199,7 +199,7 @@ jobs: name: Dependency steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Run dependency checker run: scripts/dependencies_check.sh debug @@ -213,17 +213,17 @@ jobs: - mypy steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@v2 + uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} venv-dir: ${{ env.VENV }} prek-home: ${{ env.PREK_HOME }} - name: Download all coverage artifacts - uses: actions/download-artifact@v8 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c with: pattern: coverage-* merge-multiple: true @@ -235,7 +235,7 @@ jobs: coverage report --fail-under=94 coverage xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v7 + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} @@ -253,7 +253,7 @@ jobs: - mypy steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Prepare uv run: | pip install uv @@ -280,6 +280,9 @@ jobs: run: | . venv/bin/activate uv build + - name: Generate PEP 740 Attestations + if: steps.check_package.outputs.should_publish == 'true' + uses: astral-sh/attest-action@f589a42a7efb6fe400b4f400de60b4bc90390027 - name: Publish distribution 📦 to TestPyPI if: steps.check_package.outputs.should_publish == 'true' run: | @@ -295,10 +298,10 @@ jobs: - coverage steps: - name: Check out committed code - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@v2 + uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 83dfd45b9..c02a29bfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v1.12.1 + +- Add PEP 740 digital attestations (workaround until included in `uv publish`) +- Pin GitHub acions +- Bump our own github actions to pinned tag + ## v1.12.0 - Replace the DHW-comfort-mode switch by a DHW mode selector to match the new HA select or water_heater platform updates, via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) diff --git a/pyproject.toml b/pyproject.toml index 997b1731c..596a10eed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "plugwise" -version = "1.12.0" +version = "1.12.1a0" license = "MIT" description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3." readme = "README.md" From 1f7790978457871f61f2fabeea5f84a9f7a2d459 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 5 Jul 2026 12:02:47 +0000 Subject: [PATCH 119/371] Update own actions --- .github/workflows/verify.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 9e68e4884..97927045b 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -46,7 +46,7 @@ jobs: steps: - name: Prepare code checkout and python/prek(pre-commit) setup id: cache-reuse - uses: plugwise/gh-actions/prepare-python-and-code@72ceb10366b90ac4fe63e27ca70341da283084df + uses: plugwise/gh-actions/prepare-python-and-code@0375df40f07d6f002cb134335a3e3296579ac99b with: cache-key: ${{ needs.cache.outputs.cache-key }} fail-on-miss: false # First time create cache (if not already exists) @@ -67,7 +67,7 @@ jobs: persist-credentials: false - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df + uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -103,7 +103,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df + uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -138,7 +138,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df + uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b with: fail-on-miss: false # First time create cache (if not already exists) cache-key: ${{ needs.cache.outputs.cache-key }} @@ -171,7 +171,7 @@ jobs: persist-credentials: false - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df + uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -216,7 +216,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df + uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -301,7 +301,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@72ceb10366b90ac4fe63e27ca70341da283084df + uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} From 733d508a86c58a01d3b3f8be89bc9026863f15ca Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 5 Jul 2026 12:16:26 +0000 Subject: [PATCH 120/371] Update own actions --- .github/workflows/verify.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 97927045b..807160149 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -46,7 +46,7 @@ jobs: steps: - name: Prepare code checkout and python/prek(pre-commit) setup id: cache-reuse - uses: plugwise/gh-actions/prepare-python-and-code@0375df40f07d6f002cb134335a3e3296579ac99b + uses: plugwise/gh-actions/prepare-python-and-code@09054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} fail-on-miss: false # First time create cache (if not already exists) @@ -67,7 +67,7 @@ jobs: persist-credentials: false - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b + uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -103,7 +103,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b + uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -138,7 +138,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b + uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 with: fail-on-miss: false # First time create cache (if not already exists) cache-key: ${{ needs.cache.outputs.cache-key }} @@ -171,7 +171,7 @@ jobs: persist-credentials: false - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b + uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -216,7 +216,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b + uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -301,7 +301,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@0375df40f07d6f002cb134335a3e3296579ac99b + uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} From 94833ee88423b740b67cb3e1f868f02d2063f880 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 5 Jul 2026 12:25:42 +0000 Subject: [PATCH 121/371] Update own actions --- .github/workflows/verify.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 807160149..50bf2707b 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -46,7 +46,7 @@ jobs: steps: - name: Prepare code checkout and python/prek(pre-commit) setup id: cache-reuse - uses: plugwise/gh-actions/prepare-python-and-code@09054f02b05e53697300c41df27d0307332dc7cd8 + uses: plugwise/gh-actions/prepare-python-and-code@9054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} fail-on-miss: false # First time create cache (if not already exists) @@ -67,7 +67,7 @@ jobs: persist-credentials: false - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 + uses: plugwise/gh-actions/restore-venv@9054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -103,7 +103,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 + uses: plugwise/gh-actions/restore-venv@9054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -138,7 +138,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 + uses: plugwise/gh-actions/restore-venv@9054f02b05e53697300c41df27d0307332dc7cd8 with: fail-on-miss: false # First time create cache (if not already exists) cache-key: ${{ needs.cache.outputs.cache-key }} @@ -171,7 +171,7 @@ jobs: persist-credentials: false - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 + uses: plugwise/gh-actions/restore-venv@9054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -216,7 +216,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 + uses: plugwise/gh-actions/restore-venv@9054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} @@ -301,7 +301,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Restore cached environment id: cache-reuse - uses: plugwise/gh-actions/restore-venv@09054f02b05e53697300c41df27d0307332dc7cd8 + uses: plugwise/gh-actions/restore-venv@9054f02b05e53697300c41df27d0307332dc7cd8 with: cache-key: ${{ needs.cache.outputs.cache-key }} python-version: ${{ needs.cache.outputs.python-version }} From c7330980b04d2722e7e04c039516e52086799ec2 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 5 Jul 2026 12:31:22 +0000 Subject: [PATCH 122/371] Update shellcheck --- .github/workflows/verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 50bf2707b..94197a817 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -191,7 +191,7 @@ jobs: - name: Check out committed code uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: Run ShellCheck - uses: ludeeus/action-shellcheck@master + uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # Check for missing python dependencies dependencies_check: From 280c7b4ff667da1d1cefce104134bb781a3f06d1 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 5 Jul 2026 12:36:04 +0000 Subject: [PATCH 123/371] Bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 596a10eed..2a4605c43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "plugwise" -version = "1.12.1a0" +version = "1.12.1a1" license = "MIT" description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3." readme = "README.md" From 7137dfb31e358d35cc296a89f7a9e15673c0426c Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 5 Jul 2026 12:41:35 +0000 Subject: [PATCH 124/371] Revert versions to ongoing, bumping cache --- .github/workflows/merge.yml | 2 +- .github/workflows/verify.yml | 2 +- CHANGELOG.md | 5 ++--- pyproject.toml | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index d38f89ed1..b5e18ce60 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -4,7 +4,7 @@ name: Latest release env: - CACHE_VERSION: 1 + CACHE_VERSION: 4 DEFAULT_PYTHON: "3.14" # Only run on merges diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 94197a817..e1709ab5e 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -4,7 +4,7 @@ name: Latest commit env: - CACHE_VERSION: 2 + CACHE_VERSION: 4 DEFAULT_PYTHON: "3.14" VENV: venv diff --git a/CHANGELOG.md b/CHANGELOG.md index c02a29bfe..aacc7d943 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,9 @@ # Changelog -## v1.12.1 +## Ongoing - Add PEP 740 digital attestations (workaround until included in `uv publish`) -- Pin GitHub acions -- Bump our own github actions to pinned tag +- Pin GitHub acions including our own from gh-actions ## v1.12.0 diff --git a/pyproject.toml b/pyproject.toml index 2a4605c43..997b1731c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "plugwise" -version = "1.12.1a1" +version = "1.12.0" license = "MIT" description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3." readme = "README.md" From d3fe434c719410a6ae28a125077cceb030ead815 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 4 Jul 2026 19:20:28 +0200 Subject: [PATCH 125/371] Fix BasicAuth depreciation --- plugwise/smilecomm.py | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/plugwise/smilecomm.py b/plugwise/smilecomm.py index 61617a7e4..07746f310 100644 --- a/plugwise/smilecomm.py +++ b/plugwise/smilecomm.py @@ -15,7 +15,7 @@ from plugwise.util import escape_illegal_xml_characters # This way of importing aiohttp is because of patch/mocking in testing (aiohttp timeouts) -from aiohttp import BasicAuth, ClientError, ClientResponse, ClientSession, ClientTimeout +import aiohttp from defusedxml import ElementTree as etree @@ -29,12 +29,12 @@ def __init__( port: int, timeout: int, username: str, - websession: ClientSession | None, + websession: aiohttp.ClientSession | None, ) -> None: """Set the constructor for this class.""" if not websession: - aio_timeout = ClientTimeout(total=timeout) - self._websession = ClientSession(timeout=aio_timeout) + aio_timeout = aiohttp.ClientTimeout(total=timeout) + self._websession = aiohttp.ClientSession(timeout=aio_timeout) else: self._websession = websession @@ -42,7 +42,7 @@ def __init__( if host.count(":") > 2: # pragma: no cover host = f"[{host}]" - self._auth = BasicAuth(username, password=password) + self._base_header = {"Authorization": aiohttp.encode_basic_auth(username, password=password)} self._endpoint = f"http://{host}:{str(port)}" # Sensitive async def _request( @@ -53,36 +53,32 @@ async def _request( data: str | None = None, ) -> etree.Element: """Get/put/delete data from a give URL.""" - resp: ClientResponse + resp: aiohttp.ClientResponse url = f"{self._endpoint}{command}" try: match method: case "delete": - resp = await self._websession.delete(url, auth=self._auth) + resp = await self._websession.delete(url, headers=self._base_header) case "get": # Work-around for Stretchv2, should not hurt the other smiles - headers = {"Accept-Encoding": "gzip"} - resp = await self._websession.get( - url, headers=headers, auth=self._auth - ) + headers = {**self._base_header, "Accept-Encoding": "gzip"} + resp = await self._websession.get(url, headers=headers) case "post": - headers = {"Content-type": "text/xml"} + headers = {**self._base_header, "Content-type": "text/xml"} resp = await self._websession.post( url, headers=headers, data=data, - auth=self._auth, ) case "put": - headers = {"Content-type": "text/xml"} + headers = {**self._base_header, "Content-type": "text/xml"} resp = await self._websession.put( url, headers=headers, data=data, - auth=self._auth, ) except ( - ClientError + aiohttp.ClientError ) as exc: # ClientError is an ancestor class of ServerTimeoutError if retry < 1: LOGGER.warning( @@ -108,7 +104,7 @@ async def _request( return await self._request_validate(resp, method) async def _request_validate( - self, resp: ClientResponse, method: str + self, resp: aiohttp.ClientResponse, method: str ) -> etree.Element: """Helper-function for _request(): validate the returned data.""" match resp.status: From 89c00ea5409e6fc57e1861b366c0cf56f2fdb17c Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 5 Jul 2026 08:21:54 +0200 Subject: [PATCH 126/371] Update test_generic --- tests/test_generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_generic.py b/tests/test_generic.py index 4a6af75c0..6704ad6d6 100644 --- a/tests/test_generic.py +++ b/tests/test_generic.py @@ -48,7 +48,7 @@ async def test_connect_fail_firmware(self): # Test connect for timeout @patch( - "plugwise.smilecomm.ClientSession.get", + "plugwise.smilecomm.aiohttp.ClientSession.get", side_effect=aiohttp.ServerTimeoutError, ) @pytest.mark.asyncio From 5225ef47d23f21979ed91bcff218cec4f62c7327 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 5 Jul 2026 08:22:36 +0200 Subject: [PATCH 127/371] Ruffed --- plugwise/smilecomm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugwise/smilecomm.py b/plugwise/smilecomm.py index 07746f310..3fd226d83 100644 --- a/plugwise/smilecomm.py +++ b/plugwise/smilecomm.py @@ -42,7 +42,9 @@ def __init__( if host.count(":") > 2: # pragma: no cover host = f"[{host}]" - self._base_header = {"Authorization": aiohttp.encode_basic_auth(username, password=password)} + self._base_header = { + "Authorization": aiohttp.encode_basic_auth(username, password=password) + } self._endpoint = f"http://{host}:{str(port)}" # Sensitive async def _request( From 9be2b716782c2a9aa6d3bddf2fb4ead6e2de448e Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 5 Jul 2026 08:30:01 +0200 Subject: [PATCH 128/371] Revert to required imports --- plugwise/smilecomm.py | 22 ++++++++++++++-------- tests/test_generic.py | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/plugwise/smilecomm.py b/plugwise/smilecomm.py index 3fd226d83..7d3425587 100644 --- a/plugwise/smilecomm.py +++ b/plugwise/smilecomm.py @@ -15,7 +15,13 @@ from plugwise.util import escape_illegal_xml_characters # This way of importing aiohttp is because of patch/mocking in testing (aiohttp timeouts) -import aiohttp +from aiohttp import ( + ClientError, + ClientResponse, + ClientSession, + ClientTimeout, + encode_basic_auth, +) from defusedxml import ElementTree as etree @@ -29,12 +35,12 @@ def __init__( port: int, timeout: int, username: str, - websession: aiohttp.ClientSession | None, + websession: ClientSession | None, ) -> None: """Set the constructor for this class.""" if not websession: - aio_timeout = aiohttp.ClientTimeout(total=timeout) - self._websession = aiohttp.ClientSession(timeout=aio_timeout) + aio_timeout = ClientTimeout(total=timeout) + self._websession = ClientSession(timeout=aio_timeout) else: self._websession = websession @@ -43,7 +49,7 @@ def __init__( host = f"[{host}]" self._base_header = { - "Authorization": aiohttp.encode_basic_auth(username, password=password) + "Authorization": encode_basic_auth(username, password=password) } self._endpoint = f"http://{host}:{str(port)}" # Sensitive @@ -55,7 +61,7 @@ async def _request( data: str | None = None, ) -> etree.Element: """Get/put/delete data from a give URL.""" - resp: aiohttp.ClientResponse + resp: ClientResponse url = f"{self._endpoint}{command}" try: match method: @@ -80,7 +86,7 @@ async def _request( data=data, ) except ( - aiohttp.ClientError + ClientError ) as exc: # ClientError is an ancestor class of ServerTimeoutError if retry < 1: LOGGER.warning( @@ -106,7 +112,7 @@ async def _request( return await self._request_validate(resp, method) async def _request_validate( - self, resp: aiohttp.ClientResponse, method: str + self, resp: ClientResponse, method: str ) -> etree.Element: """Helper-function for _request(): validate the returned data.""" match resp.status: diff --git a/tests/test_generic.py b/tests/test_generic.py index 6704ad6d6..4a6af75c0 100644 --- a/tests/test_generic.py +++ b/tests/test_generic.py @@ -48,7 +48,7 @@ async def test_connect_fail_firmware(self): # Test connect for timeout @patch( - "plugwise.smilecomm.aiohttp.ClientSession.get", + "plugwise.smilecomm.ClientSession.get", side_effect=aiohttp.ServerTimeoutError, ) @pytest.mark.asyncio From 096c7a136a6da4e3c8fd177094b1af0e3d70f23a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 5 Jul 2026 08:33:15 +0200 Subject: [PATCH 129/371] Update CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aacc7d943..6ab0da59a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - Add PEP 740 digital attestations (workaround until included in `uv publish`) - Pin GitHub acions including our own from gh-actions - +- Solve aiohttp BasicAuth deprecation via PR [#890](https://github.com/plugwise/python-plugwise/pull/890) ## v1.12.0 - Replace the DHW-comfort-mode switch by a DHW mode selector to match the new HA select or water_heater platform updates, via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) From c9fc54fa54e28a998b0e1ddd20b1f0a4535620cc Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 5 Jul 2026 08:40:00 +0200 Subject: [PATCH 130/371] Update pyproject.toml as suggested --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 997b1731c..c4b0ded55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ maintainers = [ requires-python = ">=3.13" dependencies = [ "aiofiles", - "aiohttp", + "aiohttp>=3.14", "defusedxml", "munch", "python-dateutil", From 123fbc301fc0c0f5619a56c1d369b6e0da720667 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 5 Jul 2026 15:17:02 +0200 Subject: [PATCH 131/371] Rework CHANGELOG after rebase --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ab0da59a..ab9c0b3b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,9 @@ ## Ongoing -- Add PEP 740 digital attestations (workaround until included in `uv publish`) -- Pin GitHub acions including our own from gh-actions +- Add PEP 740 digital attestations (workaround until included in `uv publish`), pin GitHub acions including our own from gh-actions, via PR [#891](https://github.com/plugwise/python-plugwise/pull/891) - Solve aiohttp BasicAuth deprecation via PR [#890](https://github.com/plugwise/python-plugwise/pull/890) + ## v1.12.0 - Replace the DHW-comfort-mode switch by a DHW mode selector to match the new HA select or water_heater platform updates, via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) From 4319d6380689e63bb34d14bcf34e2568ae6a5ff9 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 20 Jun 2026 17:46:02 +0200 Subject: [PATCH 132/371] Change constants preparing for improved water_heater dicts --- plugwise/constants.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugwise/constants.py b/plugwise/constants.py index 55e4b8e91..1d1d8ef5c 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -257,9 +257,8 @@ "zone_thermostat", ) ActuatorType = Literal[ - "domestic_hot_water_setpoint", - "max_dhw_temperature", - "maximum_boiler_temperature", + "boiler_temperature", + "dhw_temperature", "temperature_offset", "thermostat", ] @@ -277,6 +276,7 @@ ActuatorDataType = Literal[ "control_state", + "current", "lower_bound", "regulation_control", "resolution", @@ -585,8 +585,8 @@ class GwEntityData(TypedDict, total=False): # Dict-types binary_sensors: SmileBinarySensors - max_dhw_temperature: ActuatorData - maximum_boiler_temperature: ActuatorData + boiler_temperature: ActuatorData + dhw_temperature: ActuatorData sensors: SmileSensors switches: SmileSwitches temperature_offset: ActuatorData From c12354c52068adf050906504cba86d90c169a32f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 20 Jun 2026 17:53:36 +0200 Subject: [PATCH 133/371] Update for dhw_temperature and debug --- plugwise/helper.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index bd7a35ca3..46616fedd 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -535,9 +535,9 @@ def _get_actuator_functionalities( Add the resulting dict(s) to the entity's data. """ for item in ACTIVE_ACTUATORS: - # Skip max_dhw_temperature, not initially valid, + # Skip dhw_temperature, not initially valid, # skip thermostat for all but zones with thermostats - if item == "max_dhw_temperature" or ( + if item == "dhw_temperature" or ( item == "thermostat" and ( entity["dev_class"] != "climate" @@ -583,10 +583,11 @@ def _get_actuator_functionalities( temp_dict[act_key] = str(pw_function.text) if temp_dict: + LOGGER.debug("HOI temp_dict: %s", temp_dict) # If domestic_hot_water_setpoint is present as actuator, # rename and remove as sensor if item == DHW_SETPOINT: - item = "max_dhw_temperature" + item = "dhw_temperature" if DHW_SETPOINT in data["sensors"]: data["sensors"].pop(DHW_SETPOINT) self._count -= 1 From 66799ee484a43b8887d9871af934606c66a80302 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 20 Jun 2026 18:02:02 +0200 Subject: [PATCH 134/371] Revert removal of original actuator keys --- fixtures/adam_bad_thermostat/data.json | 15 ++------------- plugwise/constants.py | 2 ++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/fixtures/adam_bad_thermostat/data.json b/fixtures/adam_bad_thermostat/data.json index 14d7d4c4d..f2f422c56 100644 --- a/fixtures/adam_bad_thermostat/data.json +++ b/fixtures/adam_bad_thermostat/data.json @@ -7,29 +7,18 @@ "heating_state": false }, "dev_class": "heater_central", - "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], "location": "856285a783f24bf4b2573c8bc510eabf", - "max_dhw_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 50.0, - "upper_bound": 100.0 - }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 38.0, - "upper_bound": 45.0 - }, "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", + "select_dhw_mode": "off", "sensors": { "dhw_temperature": 49.9, + "domestic_hot_water_setpoint": 50.0, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.6, diff --git a/plugwise/constants.py b/plugwise/constants.py index 1d1d8ef5c..368ce7429 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -259,6 +259,8 @@ ActuatorType = Literal[ "boiler_temperature", "dhw_temperature", + "domestic_hot_water_setpoint", + "maximum_boiler_temperature", "temperature_offset", "thermostat", ] From 9e35212f4afc0d391ed0489890d71cff0607f3b2 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 20 Jun 2026 18:09:40 +0200 Subject: [PATCH 135/371] Add current (temperature) to dhw_temperature dict --- plugwise/helper.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 46616fedd..2bbe0a544 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -535,9 +535,9 @@ def _get_actuator_functionalities( Add the resulting dict(s) to the entity's data. """ for item in ACTIVE_ACTUATORS: - # Skip dhw_temperature, not initially valid, + # Skip boiler_ and dhw_temperature, not initially valid, # skip thermostat for all but zones with thermostats - if item == "dhw_temperature" or ( + if item in ("boiler_temperature", "dhw_temperature") or ( item == "thermostat" and ( entity["dev_class"] != "climate" @@ -591,6 +591,9 @@ def _get_actuator_functionalities( if DHW_SETPOINT in data["sensors"]: data["sensors"].pop(DHW_SETPOINT) self._count -= 1 + if "dhw_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["dhw_temperature"] + data["sensors"].pop("dhw_temperature") act_item = cast(ActuatorType, item) data[act_item] = temp_dict From b9bb11809adcba5f3281cbd375f20a2b647e711a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 20 Jun 2026 18:13:26 +0200 Subject: [PATCH 136/371] Add current to maximum_boiler_temperature dict --- plugwise/helper.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugwise/helper.py b/plugwise/helper.py index 2bbe0a544..7004f933f 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -595,6 +595,11 @@ def _get_actuator_functionalities( temp_dict["current"] = data["sensors"]["dhw_temperature"] data["sensors"].pop("dhw_temperature") + if item == "maximum_boiler_temperature": + if "water_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["water_temperature"] + data["sensors"].pop("water_temperature") + act_item = cast(ActuatorType, item) data[act_item] = temp_dict From cecaedabdf3b49a8ec98b47ea2c20522fc8f6266 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 20 Jun 2026 18:20:36 +0200 Subject: [PATCH 137/371] Shorter maximum_boiler_temperature dict name --- plugwise/helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugwise/helper.py b/plugwise/helper.py index 7004f933f..33659e422 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -596,6 +596,7 @@ def _get_actuator_functionalities( data["sensors"].pop("dhw_temperature") if item == "maximum_boiler_temperature": + item = "boiler_temperature" if "water_temperature" in data["sensors"]: temp_dict["current"] = data["sensors"]["water_temperature"] data["sensors"].pop("water_temperature") From 19916e30972a27fbf7e4223d37ad998343b9e1ab Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:07:30 +0200 Subject: [PATCH 138/371] Handle common dhw_ and water_temperature --- plugwise/helper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugwise/helper.py b/plugwise/helper.py index 33659e422..7e72cd4dc 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -594,6 +594,8 @@ def _get_actuator_functionalities( if "dhw_temperature" in data["sensors"]: temp_dict["current"] = data["sensors"]["dhw_temperature"] data["sensors"].pop("dhw_temperature") + elif "water_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["water_temperature"] if item == "maximum_boiler_temperature": item = "boiler_temperature" From 512d93928fecaa3c508992d76c87cbef149f9ccd Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:11:45 +0200 Subject: [PATCH 139/371] Remove test-debug-line --- plugwise/helper.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 7e72cd4dc..88d967066 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -583,7 +583,6 @@ def _get_actuator_functionalities( temp_dict[act_key] = str(pw_function.text) if temp_dict: - LOGGER.debug("HOI temp_dict: %s", temp_dict) # If domestic_hot_water_setpoint is present as actuator, # rename and remove as sensor if item == DHW_SETPOINT: From 43e9a6948e15e92b5930e57a6bd03e50d933ab5b Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:13:00 +0200 Subject: [PATCH 140/371] Update test-jsons to the updated format --- tests/data/adam/adam_bad_thermostat.json | 24 +- tests/data/adam/adam_heatpump_cooling.json | 210 ++++++++++++++---- tests/data/adam/adam_plus_anna_new.json | 18 +- .../adam_plus_anna_new_regulation_off.json | 100 ++++++--- 4 files changed, 260 insertions(+), 92 deletions(-) diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index 71b54b9a0..3b6ab9422 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -6,35 +6,35 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 20.9, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 38.0, + "upper_bound": 45.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], - "location": "856285a783f24bf4b2573c8bc510eabf", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 49.9, "lower_bound": 0.0, "resolution": 1.0, "setpoint": 50.0, "upper_bound": 100.0 }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 38.0, - "upper_bound": 45.0 - }, + "location": "856285a783f24bf4b2573c8bc510eabf", "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", - "dhw_mode": "off", + "select_dhw_mode": "off", "sensors": { - "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.6, - "return_temperature": 33.0, - "water_temperature": 20.9 + "return_temperature": 33.0 }, "vendor": "WeHeat" }, diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index e2401f79a..35612a0f7 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -12,7 +12,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Slaapkamer SJ", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "off", "select_zone_profile": "passive", "sensors": { @@ -27,11 +33,17 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["d3a276aeb3114a509bab1e4bf8c40348"], + "primary": [ + "d3a276aeb3114a509bab1e4bf8c40348" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "0ca13e8176204ca7bf6f09de59f81c83": { "available": true, @@ -42,36 +54,36 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 24.5, + "lower_bound": 7.0, + "resolution": 0.01, + "setpoint": 35.0, + "upper_bound": 50.0 + }, "dev_class": "heater_central", - "location": "eedadcb297564f1483faa509179aebed", "dhw_modes": [ "comfort", "off" ], - "max_dhw_temperature": { + "dhw_temperature": { + "current": 63.5, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 65.0 }, - "maximum_boiler_temperature": { - "lower_bound": 7.0, - "resolution": 0.01, - "setpoint": 35.0, - "upper_bound": 50.0 - }, + "location": "eedadcb297564f1483faa509179aebed", "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", - "dhw_mode": "comfort", + "select_dhw_mode": "comfort", "sensors": { - "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, "return_temperature": 24.9, - "water_pressure": 2.0, - "water_temperature": 24.5 + "water_pressure": 2.0 }, "vendor": "Remeha B.V." }, @@ -134,7 +146,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Slaapkamer DB", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "off", "select_zone_profile": "passive", "sensors": { @@ -149,11 +167,17 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["47e2c550a33846b680725aa3fb229473"], + "primary": [ + "47e2c550a33846b680725aa3fb229473" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "2e0fc4db2a6d4cbeb7cf786143543961": { "available": true, @@ -250,7 +274,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Badkamer 2", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "Werkdag schema", "select_zone_profile": "passive", "sensors": { @@ -264,11 +294,17 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["f04c985c11ad4848b8fcd710343f9dcf"], + "primary": [ + "f04c985c11ad4848b8fcd710343f9dcf" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "5ead63c65e5f44e7870ba2bd680ceb9e": { "available": true, @@ -296,7 +332,11 @@ }, "dev_class": "gateway", "firmware": "3.2.8", - "gateway_modes": ["away", "full", "vacation"], + "gateway_modes": [ + "away", + "full", + "vacation" + ], "hardware": "AME Smile 2.0 board", "location": "eedadcb297564f1483faa509179aebed", "mac_address": "012345670001", @@ -394,7 +434,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Badkamer 1", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "Werkdag schema", "select_zone_profile": "passive", "sensors": { @@ -409,11 +455,17 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["eac5db95d97241f6b17790897847ccf5"], + "primary": [ + "eac5db95d97241f6b17790897847ccf5" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "93ac3f7bf25342f58cbb77c4a99ac0b3": { "active_preset": "away", @@ -428,7 +480,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Slaapkamer RB", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "off", "select_zone_profile": "passive", "sensors": { @@ -442,11 +500,17 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["c4ed311d54e341f58b4cdd201d1fde7e"], + "primary": [ + "c4ed311d54e341f58b4cdd201d1fde7e" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "96714ad90fc948bcbcb5021c4b9f5ae9": { "available": true, @@ -481,7 +545,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Slaapkamer SQ", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "off", "select_zone_profile": "passive", "sensors": { @@ -496,11 +566,17 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["beb32da072274e698146db8b022f3c36"], + "primary": [ + "beb32da072274e698146db8b022f3c36" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "a03b6e8e76dd4646af1a77c31dd9370c": { "available": true, @@ -535,7 +611,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Keuken", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "Werkdag schema", "select_zone_profile": "active", "sensors": { @@ -550,11 +632,17 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["ea8372c0e3ad4622ad45a041d02425f5"], + "primary": [ + "ea8372c0e3ad4622ad45a041d02425f5" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "b52908550469425b812c87f766fe5303": { "active_preset": "away", @@ -569,7 +657,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Bijkeuken", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "off", "select_zone_profile": "active", "sensors": { @@ -584,11 +678,17 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["1053c8bbf8be43c6921742b146a625f1"], + "primary": [ + "1053c8bbf8be43c6921742b146a625f1" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "bbcffa48019f4b09b8368bbaf9559e68": { "available": true, @@ -701,7 +801,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Slaapkamer JM", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "off", "select_zone_profile": "passive", "sensors": { @@ -716,11 +822,17 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["7fda9f84f01342f8afe9ebbbbff30c0f"], + "primary": [ + "7fda9f84f01342f8afe9ebbbbff30c0f" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "ea8372c0e3ad4622ad45a041d02425f5": { "available": true, @@ -805,7 +917,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Woonkamer", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "Werkdag schema", "select_zone_profile": "active", "sensors": { @@ -820,10 +938,16 @@ "upper_bound": 35.0 }, "thermostats": { - "primary": ["ca79d23ae0094120b877558734cff85c"], + "primary": [ + "ca79d23ae0094120b877558734cff85c" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] } } diff --git a/tests/data/adam/adam_plus_anna_new.json b/tests/data/adam/adam_plus_anna_new.json index d794d51cd..5a199f12a 100644 --- a/tests/data/adam/adam_plus_anna_new.json +++ b/tests/data/adam/adam_plus_anna_new.json @@ -6,24 +6,24 @@ "flame_state": true, "heating_state": true }, - "dev_class": "heater_central", - "location": "bc93488efab249e5bc54fd7e175a6f91", - "dhw_modes": [ - "comfort", - "off" - ], - "maximum_boiler_temperature": { + "boiler_temperature": { + "current": 43.0, "lower_bound": 25.0, "resolution": 0.01, "setpoint": 50.0, "upper_bound": 95.0 }, + "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], + "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", "sensors": { - "intended_boiler_temperature": 22.5, - "water_temperature": 43.0 + "intended_boiler_temperature": 22.5 } }, "10016900610d4c7481df78c89606ef22": { diff --git a/tests/data/adam/adam_plus_anna_new_regulation_off.json b/tests/data/adam/adam_plus_anna_new_regulation_off.json index 4f3130c05..b9a5f2303 100644 --- a/tests/data/adam/adam_plus_anna_new_regulation_off.json +++ b/tests/data/adam/adam_plus_anna_new_regulation_off.json @@ -6,24 +6,24 @@ "flame_state": false, "heating_state": false }, - "dev_class": "heater_central", - "location": "bc93488efab249e5bc54fd7e175a6f91", - "dhw_modes": [ - "comfort", - "off" - ], - "maximum_boiler_temperature": { + "boiler_temperature": { + "current": 30.0, "lower_bound": 25.0, "resolution": 0.01, "setpoint": 50.0, "upper_bound": 95.0 }, + "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], + "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", "sensors": { - "intended_boiler_temperature": 0.0, - "water_temperature": 30.0 + "intended_boiler_temperature": 0.0 } }, "10016900610d4c7481df78c89606ef22": { @@ -157,13 +157,32 @@ }, "vendor": "Plugwise" }, + "c9293d1d68ee48fc8843c6f0dee2b6be": { + "dev_class": "pumping", + "members": [ + "854f8a9b0e7e425db97f1f110e1ce4b3", + "ad4838d7d35c4d6ea796ee12ae5aedf8" + ], + "model": "Group", + "name": "Vloerverwarming", + "sensors": { + "electricity_consumed": 43.8, + "electricity_produced": 0.0, + "temperature": 18.4 + }, + "vendor": "Plugwise" + }, "da224107914542988a88561b4452b0f6": { "binary_sensors": { "plugwise_notification": false }, "dev_class": "gateway", "firmware": "3.7.8", - "gateway_modes": ["away", "full", "vacation"], + "gateway_modes": [ + "away", + "full", + "vacation" + ], "hardware": "AME Smile 2.0 board", "location": "bc93488efab249e5bc54fd7e175a6f91", "mac_address": "012345679891", @@ -171,7 +190,12 @@ "model_id": "smile_open_therm", "name": "Adam", "notifications": {}, - "regulation_modes": ["bleeding_hot", "bleeding_cold", "off", "heating"], + "regulation_modes": [ + "bleeding_hot", + "bleeding_cold", + "off", + "heating" + ], "select_gateway_mode": "full", "select_regulation_mode": "off", "sensors": { @@ -180,16 +204,6 @@ "vendor": "Plugwise", "zigbee_mac_address": "000D6F000D5A168D" }, - "c9293d1d68ee48fc8843c6f0dee2b6be": { - "dev_class": "pumping", - "members": [ - "854f8a9b0e7e425db97f1f110e1ce4b3", - "ad4838d7d35c4d6ea796ee12ae5aedf8" - ], - "model": "Group", - "name": "Vloerverwarming", - "vendor": "Plugwise" - }, "e2f4322d57924fa090fbbc48b3a140dc": { "available": true, "binary_sensors": { @@ -224,6 +238,10 @@ ], "model": "Group", "name": "Test", + "sensors": { + "electricity_consumed": 14.8, + "electricity_produced": 0.0 + }, "switches": { "relay": true }, @@ -243,7 +261,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Living room", - "preset_modes": ["no_frost", "asleep", "vacation", "home", "away"], + "preset_modes": [ + "no_frost", + "asleep", + "vacation", + "home", + "away" + ], "select_schedule": "off", "select_zone_profile": "active", "sensors": { @@ -258,11 +282,17 @@ "upper_bound": 35.0 }, "thermostats": { - "primary": ["ad4838d7d35c4d6ea796ee12ae5aedf8"], + "primary": [ + "ad4838d7d35c4d6ea796ee12ae5aedf8" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "f871b8c4d63549319221e294e4f88074": { "active_preset": "home", @@ -278,7 +308,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Bathroom", - "preset_modes": ["no_frost", "asleep", "vacation", "home", "away"], + "preset_modes": [ + "no_frost", + "asleep", + "vacation", + "home", + "away" + ], "select_schedule": "off", "select_zone_profile": "passive", "sensors": { @@ -293,10 +329,18 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["e2f4322d57924fa090fbbc48b3a140dc"], - "secondary": ["1772a4ea304041adb83f357b751341ff"] + "primary": [ + "e2f4322d57924fa090fbbc48b3a140dc" + ], + "secondary": [ + "1772a4ea304041adb83f357b751341ff" + ] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] } } From 43068c9fcacfcbe6e353dccfe58564d28aef266f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:18:37 +0200 Subject: [PATCH 141/371] Update parameter name in data.py too --- plugwise/data.py | 2 +- tests/data/adam/adam_bad_thermostat.json | 2 +- tests/data/adam/adam_heatpump_cooling.json | 2 +- tests/data/adam/adam_jip.json | 124 ++++++++++++++---- .../adam_onoff_cooling_fake_firmware.json | 48 ++++--- tests/data/adam/adam_plus_anna.json | 35 +++-- 6 files changed, 153 insertions(+), 60 deletions(-) diff --git a/plugwise/data.py b/plugwise/data.py index 3dfc293d0..6c4df088d 100644 --- a/plugwise/data.py +++ b/plugwise/data.py @@ -80,7 +80,7 @@ def _update_gw_entities(self) -> None: # Replace select_dhw_mode with dhw_mode when applicable if ( - "max_dhw_temperature" in entity + "dhw_temperature" in entity and (mode := entity.get("select_dhw_mode")) is not None ): entity.pop("select_dhw_mode") diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index 3b6ab9422..d4a158aeb 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -14,6 +14,7 @@ "upper_bound": 45.0 }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" @@ -29,7 +30,6 @@ "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index 35612a0f7..a31c1f9a8 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -62,6 +62,7 @@ "upper_bound": 50.0 }, "dev_class": "heater_central", + "dhw_mode": "comfort", "dhw_modes": [ "comfort", "off" @@ -77,7 +78,6 @@ "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", - "select_dhw_mode": "comfort", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, diff --git a/tests/data/adam/adam_jip.json b/tests/data/adam/adam_jip.json index 7ae98246a..391d28bbd 100644 --- a/tests/data/adam/adam_jip.json +++ b/tests/data/adam/adam_jip.json @@ -7,7 +7,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Slaapkamer", - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": [ + "home", + "asleep", + "away", + "vacation", + "no_frost" + ], "select_schedule": null, "select_zone_profile": "active", "sensors": { @@ -20,11 +26,19 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["1346fbd8498d4dbcab7e18d51b771f3d"], - "secondary": ["356b65335e274d769c338223e7af9c33"] + "primary": [ + "1346fbd8498d4dbcab7e18d51b771f3d" + ], + "secondary": [ + "356b65335e274d769c338223e7af9c33" + ] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "13228dab8ce04617af318a2888b3c548": { "active_preset": "home", @@ -34,7 +48,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Woonkamer", - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": [ + "home", + "asleep", + "away", + "vacation", + "no_frost" + ], "select_schedule": null, "select_zone_profile": "active", "sensors": { @@ -47,11 +67,19 @@ "upper_bound": 30.0 }, "thermostats": { - "primary": ["f61f1a2535f54f52ad006a3d18e459ca"], - "secondary": ["833de10f269c4deab58fb9df69901b4e"] + "primary": [ + "f61f1a2535f54f52ad006a3d18e459ca" + ], + "secondary": [ + "833de10f269c4deab58fb9df69901b4e" + ] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "1346fbd8498d4dbcab7e18d51b771f3d": { "available": true, @@ -226,7 +254,11 @@ }, "dev_class": "gateway", "firmware": "3.2.8", - "gateway_modes": ["away", "full", "vacation"], + "gateway_modes": [ + "away", + "full", + "vacation" + ], "hardware": "AME Smile 2.0 board", "location": "9e4433a9d69f40b3aefd15e74395eaec", "mac_address": "012345670001", @@ -234,7 +266,12 @@ "model_id": "smile_open_therm", "name": "Adam", "notifications": {}, - "regulation_modes": ["heating", "off", "bleeding_cold", "bleeding_hot"], + "regulation_modes": [ + "heating", + "off", + "bleeding_cold", + "bleeding_hot" + ], "select_gateway_mode": "full", "select_regulation_mode": "heating", "sensors": { @@ -251,7 +288,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Kinderkamer", - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": [ + "home", + "asleep", + "away", + "vacation", + "no_frost" + ], "select_schedule": null, "select_zone_profile": "active", "sensors": { @@ -264,11 +307,19 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["6f3e9d7084214c21b9dfa46f6eeb8700"], - "secondary": ["d4496250d0e942cfa7aea3476e9070d5"] + "primary": [ + "6f3e9d7084214c21b9dfa46f6eeb8700" + ], + "secondary": [ + "d4496250d0e942cfa7aea3476e9070d5" + ] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "d4496250d0e942cfa7aea3476e9070d5": { "available": true, @@ -302,7 +353,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Logeerkamer", - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": [ + "home", + "asleep", + "away", + "vacation", + "no_frost" + ], "select_schedule": null, "select_zone_profile": "active", "sensors": { @@ -315,11 +372,19 @@ "upper_bound": 99.9 }, "thermostats": { - "primary": ["a6abc6a129ee499c88a4d420cc413b47"], - "secondary": ["1da4d325838e4ad8aac12177214505c9"] + "primary": [ + "a6abc6a129ee499c88a4d420cc413b47" + ], + "secondary": [ + "1da4d325838e4ad8aac12177214505c9" + ] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] }, "e4684553153b44afbef2200885f379dc": { "available": true, @@ -328,34 +393,35 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 37.3, + "lower_bound": 20.0, + "resolution": 0.01, + "setpoint": 90.0, + "upper_bound": 90.0 + }, "dev_class": "heater_central", - "location": "9e4433a9d69f40b3aefd15e74395eaec", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "max_dhw_temperature": { + "dhw_temperature": { + "current": 37.3, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 20.0, - "resolution": 0.01, - "setpoint": 90.0, - "upper_bound": 90.0 - }, + "location": "9e4433a9d69f40b3aefd15e74395eaec", "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", - "dhw_mode": "off", "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 37.1, - "water_pressure": 1.4, - "water_temperature": 37.3 + "water_pressure": 1.4 }, "vendor": "Remeha B.V." }, diff --git a/tests/data/adam/adam_onoff_cooling_fake_firmware.json b/tests/data/adam/adam_onoff_cooling_fake_firmware.json index c31a7710c..f69d3abd6 100644 --- a/tests/data/adam/adam_onoff_cooling_fake_firmware.json +++ b/tests/data/adam/adam_onoff_cooling_fake_firmware.json @@ -7,35 +7,35 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 24.5, + "lower_bound": 7.0, + "resolution": 0.01, + "setpoint": 35.0, + "upper_bound": 50.0 + }, "dev_class": "heater_central", - "location": "eedadcb297564f1483faa509179aebed", + "dhw_mode": "comfort", "dhw_modes": [ "comfort", "off" ], - "max_dhw_temperature": { + "dhw_temperature": { + "current": 63.5, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 65.0 }, - "maximum_boiler_temperature": { - "lower_bound": 7.0, - "resolution": 0.01, - "setpoint": 35.0, - "upper_bound": 50.0 - }, + "location": "eedadcb297564f1483faa509179aebed", "model": "Unknown", "name": "OnOff", - "dhw_mode": "comfort", "sensors": { - "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, "return_temperature": 24.9, - "water_pressure": 2.0, - "water_temperature": 24.5 + "water_pressure": 2.0 } }, "7d97fc3117784cfdafe347bcedcbbbcb": { @@ -44,7 +44,11 @@ }, "dev_class": "gateway", "firmware": "3.2.8", - "gateway_modes": ["away", "full", "vacation"], + "gateway_modes": [ + "away", + "full", + "vacation" + ], "hardware": "AME Smile 2.0 board", "location": "eedadcb297564f1483faa509179aebed", "mac_address": "012345670001", @@ -92,7 +96,13 @@ "dev_class": "climate", "model": "ThermoZone", "name": "Woonkamer", - "preset_modes": ["no_frost", "vacation", "away", "home", "asleep"], + "preset_modes": [ + "no_frost", + "vacation", + "away", + "home", + "asleep" + ], "select_schedule": "Werkdag schema", "select_zone_profile": "active", "sensors": { @@ -107,10 +117,16 @@ "upper_bound": 35.0 }, "thermostats": { - "primary": ["ca79d23ae0094120b877558734cff85c"], + "primary": [ + "ca79d23ae0094120b877558734cff85c" + ], "secondary": [] }, "vendor": "Plugwise", - "zone_profiles": ["active", "off", "passive"] + "zone_profiles": [ + "active", + "off", + "passive" + ] } } diff --git a/tests/data/adam/adam_plus_anna.json b/tests/data/adam/adam_plus_anna.json index d86a53176..ea3f22917 100644 --- a/tests/data/adam/adam_plus_anna.json +++ b/tests/data/adam/adam_plus_anna.json @@ -1,13 +1,22 @@ { "009490cc2f674ce6b576863fbb64f867": { "active_preset": "home", - "available_schedules": ["Weekschema", "off"], + "available_schedules": [ + "Weekschema", + "off" + ], "climate_mode": "auto", "control_state": "idle", "dev_class": "climate", "model": "ThermoZone", "name": "Living room", - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": [ + "home", + "asleep", + "away", + "vacation", + "no_frost" + ], "select_schedule": "Weekschema", "sensors": { "electricity_consumed": 74.2, @@ -21,7 +30,9 @@ "upper_bound": 35.0 }, "thermostats": { - "primary": ["ee62cad889f94e8ca3d09021f03a660b"], + "primary": [ + "ee62cad889f94e8ca3d09021f03a660b" + ], "secondary": [] }, "vendor": "Plugwise" @@ -33,24 +44,24 @@ "flame_state": false, "heating_state": false }, - "dev_class": "heater_central", - "location": "07d618f0bb80412687f065b8698ce3e7", - "dhw_modes": [ - "comfort", - "off" - ], - "maximum_boiler_temperature": { + "boiler_temperature": { + "current": 48.0, "lower_bound": 0.0, "resolution": 1.0, "setpoint": 80.0, "upper_bound": 100.0 }, + "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "off" + ], + "location": "07d618f0bb80412687f065b8698ce3e7", "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", "sensors": { - "intended_boiler_temperature": 0.0, - "water_temperature": 48.0 + "intended_boiler_temperature": 0.0 } }, "aa6b0002df0a46e1b1eb94beb61eddfe": { From a3da0ba38b859f35d800850f30307bbdd30699e7 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:30:55 +0200 Subject: [PATCH 142/371] Correct items_count --- plugwise/helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugwise/helper.py b/plugwise/helper.py index 88d967066..a9a2a0b82 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -595,6 +595,7 @@ def _get_actuator_functionalities( data["sensors"].pop("dhw_temperature") elif "water_temperature" in data["sensors"]: temp_dict["current"] = data["sensors"]["water_temperature"] + self._count += 1 if item == "maximum_boiler_temperature": item = "boiler_temperature" From a59b31471359aee90a938134149f9b1fcdc05e08 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:36:28 +0200 Subject: [PATCH 143/371] Update entity_items assert --- tests/test_adam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index 1ef525961..fd7a471f8 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -441,7 +441,7 @@ async def test_adam_plus_jip(self): test_items = await self.device_test(api, "2021-06-20 00:00:01", testdata) assert api.gateway_id == "b5c2386c6f6342669e50fe49dd05b188" - assert self.entity_items == 270 + assert self.entity_items == 271 assert test_items == self.entity_items # Negative test From ea6cfe004642d709924a075eaa85a8b1107e9efb Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:37:51 +0200 Subject: [PATCH 144/371] Update test-json --- tests/data/anna/anna_v4.json | 42 ++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/tests/data/anna/anna_v4.json b/tests/data/anna/anna_v4.json index 09f295bad..fbf163590 100644 --- a/tests/data/anna/anna_v4.json +++ b/tests/data/anna/anna_v4.json @@ -1,7 +1,11 @@ { "01b85360fdd243d0aaad4d6ac2a5ba7e": { "active_preset": "home", - "available_schedules": ["Standaard", "Thuiswerken", "off"], + "available_schedules": [ + "Standaard", + "Thuiswerken", + "off" + ], "climate_mode": "heat", "control_state": "heating", "dev_class": "thermostat", @@ -10,7 +14,13 @@ "location": "eb5309212bf5407bb143e5bfa3b18aee", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["vacation", "no_frost", "away", "asleep", "home"], + "preset_modes": [ + "vacation", + "no_frost", + "away", + "asleep", + "home" + ], "select_schedule": "off", "sensors": { "illuminance": 60.0, @@ -56,31 +66,35 @@ "flame_state": false, "heating_state": true }, + "boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", - "dhw_modes": ["comfort", "off"], - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", - "max_dhw_temperature": { + "dhw_mode": "off", + "dhw_modes": [ + "comfort", + "off" + ], + "dhw_temperature": { + "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2, - "water_temperature": 45.0 + "water_pressure": 2.2 }, "vendor": "Bosch Thermotechniek B.V." } From db9836057f5c2896d9728c023da464b1446e40e8 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:38:58 +0200 Subject: [PATCH 145/371] Update entity_items assert --- tests/test_anna.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_anna.py b/tests/test_anna.py index 464d2e277..dad9cecd0 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -29,7 +29,7 @@ async def test_connect_anna_v4(self): await self.device_test(api, "2020-04-05 00:00:01", testdata) assert api.gateway_id == "0466eae8520144c78afb29628384edeb" - assert self.entity_items == 61 + assert self.entity_items == 62 assert not self.notifications assert not self.cooling_present From b8fa87f60eeb272de3d31408f7dab9701b806fb6 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:42:43 +0200 Subject: [PATCH 146/371] Update test-jsons --- tests/data/anna/anna_v4_UPDATED_DATA.json | 11 +++--- tests/data/anna/anna_v4_dhw.json | 42 +++++++++++++++-------- 2 files changed, 34 insertions(+), 19 deletions(-) diff --git a/tests/data/anna/anna_v4_UPDATED_DATA.json b/tests/data/anna/anna_v4_UPDATED_DATA.json index e36a6e5b1..e90e5f6a2 100644 --- a/tests/data/anna/anna_v4_UPDATED_DATA.json +++ b/tests/data/anna/anna_v4_UPDATED_DATA.json @@ -1,13 +1,16 @@ { "cd0e6156b1f04d5f952349ffbe397481": { - "dhw_modes": ["comfort", "off"], - "maximum_boiler_temperature": { + "boiler_temperature": { + "current": 51.0, "setpoint": 69.0, "lower_bound": 0.0, "upper_bound": 100.0, "resolution": 1.0 }, - "max_dhw_temperature": { + "dhw_mode": "comfort", + "dhw_modes": ["comfort", "off"], + "dhw_temperature": { + "current": 51.0, "setpoint": 59.0, "lower_bound": 30.0, "upper_bound": 60.0, @@ -18,9 +21,7 @@ "heating_state": false, "flame_state": false }, - "dhw_mode": "comfort", "sensors": { - "water_temperature": 51.0, "intended_boiler_temperature": 0.0, "modulation_level": 0, "return_temperature": 41.0, diff --git a/tests/data/anna/anna_v4_dhw.json b/tests/data/anna/anna_v4_dhw.json index dc8ba3858..6ec073250 100644 --- a/tests/data/anna/anna_v4_dhw.json +++ b/tests/data/anna/anna_v4_dhw.json @@ -1,7 +1,11 @@ { "01b85360fdd243d0aaad4d6ac2a5ba7e": { "active_preset": "home", - "available_schedules": ["Standaard", "Thuiswerken", "off"], + "available_schedules": [ + "Standaard", + "Thuiswerken", + "off" + ], "climate_mode": "heat", "control_state": "idle", "dev_class": "thermostat", @@ -10,7 +14,13 @@ "location": "eb5309212bf5407bb143e5bfa3b18aee", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["vacation", "no_frost", "away", "asleep", "home"], + "preset_modes": [ + "vacation", + "no_frost", + "away", + "asleep", + "home" + ], "select_schedule": "off", "sensors": { "illuminance": 60.0, @@ -56,31 +66,35 @@ "flame_state": true, "heating_state": false }, + "boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", - "dhw_modes": ["comfort", "off"], - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", - "max_dhw_temperature": { + "dhw_mode": "off", + "dhw_modes": [ + "comfort", + "off" + ], + "dhw_temperature": { + "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2, - "water_temperature": 45.0 + "water_pressure": 2.2 }, "vendor": "Bosch Thermotechniek B.V." } From cfd0c76ea81d41ed39fea3e0ec2d61bf0f79c8e7 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:44:26 +0200 Subject: [PATCH 147/371] Update entity_items assert --- tests/test_anna.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_anna.py b/tests/test_anna.py index dad9cecd0..855bc353e 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -101,7 +101,7 @@ async def test_connect_anna_v4_dhw(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata) - assert self.entity_items == 61 + assert self.entity_items == 62 assert not self.notifications result = await self.tinker_thermostat( From 395903022dee301551fa229a627cdfac8814e736 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:45:31 +0200 Subject: [PATCH 148/371] Update test-json --- tests/data/anna/anna_v4_no_tag.json | 42 +++++++++++++++++++---------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/tests/data/anna/anna_v4_no_tag.json b/tests/data/anna/anna_v4_no_tag.json index d9a500cfc..e862f44c0 100644 --- a/tests/data/anna/anna_v4_no_tag.json +++ b/tests/data/anna/anna_v4_no_tag.json @@ -1,7 +1,11 @@ { "01b85360fdd243d0aaad4d6ac2a5ba7e": { "active_preset": "home", - "available_schedules": ["Standaard", "Thuiswerken", "off"], + "available_schedules": [ + "Standaard", + "Thuiswerken", + "off" + ], "climate_mode": "auto", "control_state": "heating", "dev_class": "thermostat", @@ -10,7 +14,13 @@ "location": "eb5309212bf5407bb143e5bfa3b18aee", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["vacation", "no_frost", "away", "asleep", "home"], + "preset_modes": [ + "vacation", + "no_frost", + "away", + "asleep", + "home" + ], "select_schedule": "Thuiswerken", "sensors": { "illuminance": 60.0, @@ -56,31 +66,35 @@ "flame_state": false, "heating_state": true }, + "boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", - "dhw_modes": ["comfort", "off"], - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", - "max_dhw_temperature": { + "dhw_mode": "off", + "dhw_modes": [ + "comfort", + "off" + ], + "dhw_temperature": { + "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", - "dhw_mode": "off", "sensors": { "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2, - "water_temperature": 45.0 + "water_pressure": 2.2 }, "vendor": "Bosch Thermotechniek B.V." } From 5fa581a13e96a8e386533e1d23897c828017232e Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:46:36 +0200 Subject: [PATCH 149/371] Update entity_items assert --- tests/test_anna.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_anna.py b/tests/test_anna.py index 855bc353e..4e47fe965 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -130,7 +130,7 @@ async def test_connect_anna_v4_no_tag(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata) - assert self.entity_items == 61 + assert self.entity_items == 62 result = await self.tinker_thermostat( api, From 827f0900c99c14822418f150bbd6b8c5d2a88a34 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 09:47:44 +0200 Subject: [PATCH 150/371] update test-jsons --- tests/data/anna/anna_elga_2_cooling.json | 29 ++++++++---- .../anna_elga_2_cooling_UPDATED_DATA.json | 18 ++++---- tests/data/anna/anna_elga_2_schedule_off.json | 29 ++++++++---- tests/data/anna/anna_elga_no_cooling.json | 37 +++++++++------ tests/data/anna/anna_heatpump_cooling.json | 29 ++++++++---- .../anna_heatpump_cooling_fake_firmware.json | 29 ++++++++---- tests/data/anna/anna_heatpump_heating.json | 37 +++++++++------ .../anna_heatpump_heating_UPDATED_DATA.json | 17 ++++--- .../data/anna/anna_loria_cooling_active.json | 46 +++++++++++++------ tests/data/anna/anna_loria_driessens.json | 40 ++++++++++------ tests/data/anna/anna_loria_heating_idle.json | 46 +++++++++++++------ 11 files changed, 227 insertions(+), 130 deletions(-) diff --git a/tests/data/anna/anna_elga_2_cooling.json b/tests/data/anna/anna_elga_2_cooling.json index 1910f9e8c..593f4e7e4 100644 --- a/tests/data/anna/anna_elga_2_cooling.json +++ b/tests/data/anna/anna_elga_2_cooling.json @@ -10,18 +10,19 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "d34dfe6ab90b410c98068e75de3eb631", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", @@ -31,14 +32,16 @@ "modulation_level": 0.0, "outdoor_air_temperature": 30.0, "return_temperature": 23.4, - "water_pressure": 0.5, - "water_temperature": 22.8 + "water_pressure": 0.5 }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { "active_preset": "home", - "available_schedules": ["Thermostat schedule", "off"], + "available_schedules": [ + "Thermostat schedule", + "off" + ], "climate_mode": "auto", "control_state": "cooling", "dev_class": "thermostat", @@ -47,7 +50,13 @@ "location": "d3ce834534114348be628b61b26d9220", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["away", "no_frost", "vacation", "home", "asleep"], + "preset_modes": [ + "away", + "no_frost", + "vacation", + "home", + "asleep" + ], "select_schedule": "Thermostat schedule", "sensors": { "cooling_activation_outdoor_temperature": 26.0, diff --git a/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json b/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json index 446c24759..3c5177e11 100644 --- a/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json +++ b/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json @@ -10,29 +10,29 @@ "heating_state": true, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "d34dfe6ab90b410c98068e75de3eb631", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, + "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", "sensors": { - "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 3.0, "return_temperature": 23.4, - "water_pressure": 0.5, - "water_temperature": 22.8 + "water_pressure": 0.5 }, "vendor": "Techneco" }, diff --git a/tests/data/anna/anna_elga_2_schedule_off.json b/tests/data/anna/anna_elga_2_schedule_off.json index 0fa003651..a85239634 100644 --- a/tests/data/anna/anna_elga_2_schedule_off.json +++ b/tests/data/anna/anna_elga_2_schedule_off.json @@ -10,18 +10,19 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "d34dfe6ab90b410c98068e75de3eb631", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", @@ -31,14 +32,16 @@ "modulation_level": 0.0, "outdoor_air_temperature": 13.0, "return_temperature": 23.4, - "water_pressure": 0.5, - "water_temperature": 22.8 + "water_pressure": 0.5 }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { "active_preset": "home", - "available_schedules": ["Thermostat schedule", "off"], + "available_schedules": [ + "Thermostat schedule", + "off" + ], "climate_mode": "heat_cool", "control_state": "idle", "dev_class": "thermostat", @@ -47,7 +50,13 @@ "location": "d3ce834534114348be628b61b26d9220", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["away", "no_frost", "vacation", "home", "asleep"], + "preset_modes": [ + "away", + "no_frost", + "vacation", + "home", + "asleep" + ], "select_schedule": "off", "sensors": { "cooling_activation_outdoor_temperature": 26.0, diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index 4bb9b040c..bcabda7d8 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -26,41 +26,44 @@ "heating_state": true, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "a57efe5f145f498c9be62a9b63626fbf", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, + "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater", "name": "OpenTherm", - "dhw_mode": "off", "sensors": { - "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, "return_temperature": 25.1, - "water_pressure": 1.57, - "water_temperature": 29.1 + "water_pressure": 1.57 }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", - "available_schedules": ["standaard", "off"], + "available_schedules": [ + "standaard", + "off" + ], "climate_mode": "auto", "control_state": "heating", "dev_class": "thermostat", @@ -69,7 +72,13 @@ "location": "c784ee9fdab44e1395b8dee7d7a497d5", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["no_frost", "home", "away", "asleep", "vacation"], + "preset_modes": [ + "no_frost", + "home", + "away", + "asleep", + "vacation" + ], "select_schedule": "standaard", "sensors": { "cooling_activation_outdoor_temperature": 21.0, diff --git a/tests/data/anna/anna_heatpump_cooling.json b/tests/data/anna/anna_heatpump_cooling.json index abdea92dc..4d8d36859 100644 --- a/tests/data/anna/anna_heatpump_cooling.json +++ b/tests/data/anna/anna_heatpump_cooling.json @@ -28,18 +28,19 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 24.7, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "a57efe5f145f498c9be62a9b63626fbf", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "off", @@ -50,14 +51,16 @@ "modulation_level": 40, "outdoor_air_temperature": 22.0, "return_temperature": 23.8, - "water_pressure": 1.61, - "water_temperature": 24.7 + "water_pressure": 1.61 }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", - "available_schedules": ["standaard", "off"], + "available_schedules": [ + "standaard", + "off" + ], "climate_mode": "heat_cool", "control_state": "cooling", "dev_class": "thermostat", @@ -66,7 +69,13 @@ "location": "c784ee9fdab44e1395b8dee7d7a497d5", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["no_frost", "home", "away", "asleep", "vacation"], + "preset_modes": [ + "no_frost", + "home", + "away", + "asleep", + "vacation" + ], "select_schedule": "off", "sensors": { "cooling_activation_outdoor_temperature": 21.0, diff --git a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json index 77eaab4e1..91b3875b2 100644 --- a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json +++ b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json @@ -28,18 +28,19 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 24.7, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "a57efe5f145f498c9be62a9b63626fbf", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "off", @@ -50,14 +51,16 @@ "modulation_level": 100, "outdoor_air_temperature": 22.0, "return_temperature": 23.8, - "water_pressure": 1.61, - "water_temperature": 24.7 + "water_pressure": 1.61 }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", - "available_schedules": ["standaard", "off"], + "available_schedules": [ + "standaard", + "off" + ], "climate_mode": "heat_cool", "control_state": "cooling", "dev_class": "thermostat", @@ -66,7 +69,13 @@ "location": "c784ee9fdab44e1395b8dee7d7a497d5", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["no_frost", "home", "away", "asleep", "vacation"], + "preset_modes": [ + "no_frost", + "home", + "away", + "asleep", + "vacation" + ], "select_schedule": "off", "sensors": { "cooling_activation_outdoor_temperature": 21.0, diff --git a/tests/data/anna/anna_heatpump_heating.json b/tests/data/anna/anna_heatpump_heating.json index d38345a3a..69ea20098 100644 --- a/tests/data/anna/anna_heatpump_heating.json +++ b/tests/data/anna/anna_heatpump_heating.json @@ -28,41 +28,44 @@ "heating_state": true, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "a57efe5f145f498c9be62a9b63626fbf", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, + "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", - "dhw_mode": "off", "sensors": { - "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, "return_temperature": 25.1, - "water_pressure": 1.57, - "water_temperature": 29.1 + "water_pressure": 1.57 }, "vendor": "Techneco" }, "3cb70739631c4d17a86b8b12e8a5161b": { "active_preset": "home", - "available_schedules": ["standaard", "off"], + "available_schedules": [ + "standaard", + "off" + ], "climate_mode": "auto", "control_state": "heating", "dev_class": "thermostat", @@ -71,7 +74,13 @@ "location": "c784ee9fdab44e1395b8dee7d7a497d5", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["no_frost", "home", "away", "asleep", "vacation"], + "preset_modes": [ + "no_frost", + "home", + "away", + "asleep", + "vacation" + ], "select_schedule": "standaard", "sensors": { "cooling_activation_outdoor_temperature": 21.0, diff --git a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json index bb8c9aac8..fbf4401d7 100644 --- a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json +++ b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json @@ -1,5 +1,12 @@ { "1cbf783bb11e4a7c8a6843dee3a86927": { + "boiler_temperature": { + "current": 29.1, + "setpoint": 60.0, + "lower_bound": 0.0, + "upper_bound": 100.0, + "resolution": 1.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", @@ -9,12 +16,7 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "vendor": "Techneco", - "maximum_boiler_temperature": { - "setpoint": 60.0, - "lower_bound": 0.0, - "upper_bound": 100.0, - "resolution": 1.0 - }, + "available": true, "binary_sensors": { "dhw_state": false, @@ -27,9 +29,6 @@ }, "select_dhw_mode": "off", "sensors": { - "water_temperature": 29.1, - "domestic_hot_water_setpoint": 60.0, - "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "return_temperature": 25.1, diff --git a/tests/data/anna/anna_loria_cooling_active.json b/tests/data/anna/anna_loria_cooling_active.json index 1dcb2e851..13c3b2432 100644 --- a/tests/data/anna/anna_loria_cooling_active.json +++ b/tests/data/anna/anna_loria_cooling_active.json @@ -1,7 +1,11 @@ { "582dfbdace4d4aeb832923ce7d1ddda0": { "active_preset": "home", - "available_schedules": ["Winter", "Test ", "off"], + "available_schedules": [ + "Winter", + "Test ", + "off" + ], "climate_mode": "auto", "control_state": "cooling", "dev_class": "thermostat", @@ -10,7 +14,13 @@ "location": "15da035090b847e7a21f93e08c015ebc", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["away", "vacation", "no_frost", "home", "asleep"], + "preset_modes": [ + "away", + "vacation", + "no_frost", + "home", + "asleep" + ], "select_schedule": "Winter", "sensors": { "illuminance": 45.0, @@ -60,32 +70,38 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 25.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 40.0, + "upper_bound": 45.0 + }, "dev_class": "heater_central", - "dhw_modes": ["off", "auto", "boost", "eco", "comfort"], - "location": "674b657c138a41a291d315d7471deb06", - "max_dhw_temperature": { + "dhw_mode": "auto", + "dhw_modes": [ + "off", + "auto", + "boost", + "eco", + "comfort" + ], + "dhw_temperature": { + "current": 52.9, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 40.0, - "upper_bound": 45.0 - }, + "location": "674b657c138a41a291d315d7471deb06", "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "dhw_mode": "auto", "sensors": { - "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 100, "outdoor_air_temperature": 17.2, - "return_temperature": 26.3, - "water_temperature": 25.3 + "return_temperature": 26.3 }, "switches": { "cooling_ena_switch": true diff --git a/tests/data/anna/anna_loria_driessens.json b/tests/data/anna/anna_loria_driessens.json index 3d665c289..96e480c17 100644 --- a/tests/data/anna/anna_loria_driessens.json +++ b/tests/data/anna/anna_loria_driessens.json @@ -34,7 +34,13 @@ "location": "fa70e08550c94de3a34feb27ecf31421", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["no_frost", "asleep", "vacation", "away", "home"], + "preset_modes": [ + "no_frost", + "asleep", + "vacation", + "away", + "home" + ], "select_schedule": "Verwarmen@9-23u", "sensors": { "illuminance": 5.5, @@ -66,32 +72,38 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 23.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 45.0, + "upper_bound": 45.0 + }, "dev_class": "heater_central", - "dhw_modes": ["comfort", "eco", "off", "boost", "auto"], - "location": "82c15f65c9bf44c592d69e16139355e3", - "max_dhw_temperature": { + "dhw_mode": "auto", + "dhw_modes": [ + "comfort", + "eco", + "off", + "boost", + "auto" + ], + "dhw_temperature": { + "current": 49.5, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 45.0, - "upper_bound": 45.0 - }, + "location": "82c15f65c9bf44c592d69e16139355e3", "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "dhw_mode": "auto", "sensors": { - "dhw_temperature": 49.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 7.5, - "return_temperature": 23.0, - "water_temperature": 23.3 + "return_temperature": 23.0 }, "switches": { "cooling_ena_switch": false diff --git a/tests/data/anna/anna_loria_heating_idle.json b/tests/data/anna/anna_loria_heating_idle.json index 628515d57..00fe5ba07 100644 --- a/tests/data/anna/anna_loria_heating_idle.json +++ b/tests/data/anna/anna_loria_heating_idle.json @@ -1,7 +1,11 @@ { "582dfbdace4d4aeb832923ce7d1ddda0": { "active_preset": "home", - "available_schedules": ["Winter", "Test ", "off"], + "available_schedules": [ + "Winter", + "Test ", + "off" + ], "climate_mode": "auto", "control_state": "idle", "dev_class": "thermostat", @@ -10,7 +14,13 @@ "location": "15da035090b847e7a21f93e08c015ebc", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["away", "vacation", "no_frost", "home", "asleep"], + "preset_modes": [ + "away", + "vacation", + "no_frost", + "home", + "asleep" + ], "select_schedule": "Winter", "sensors": { "illuminance": 45.0, @@ -60,32 +70,38 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 25.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 40.0, + "upper_bound": 45.0 + }, "dev_class": "heater_central", - "dhw_modes": ["off", "auto", "boost", "eco", "comfort"], - "location": "674b657c138a41a291d315d7471deb06", - "max_dhw_temperature": { + "dhw_mode": "auto", + "dhw_modes": [ + "off", + "auto", + "boost", + "eco", + "comfort" + ], + "dhw_temperature": { + "current": 52.9, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 40.0, - "upper_bound": 45.0 - }, + "location": "674b657c138a41a291d315d7471deb06", "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", - "dhw_mode": "auto", "sensors": { - "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 17.2, - "return_temperature": 26.3, - "water_temperature": 25.3 + "return_temperature": 26.3 }, "switches": { "cooling_ena_switch": false From 4e7914bff199590e0d2518ab536e27c85e360553 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 10:16:09 +0200 Subject: [PATCH 151/371] Update classes for typing --- plugwise/constants.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugwise/constants.py b/plugwise/constants.py index 368ce7429..a5cfac2da 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -520,6 +520,7 @@ class ActuatorData(TypedDict, total=False): """Actuator data for thermostat types.""" control_state: str + current: float lower_bound: float regulation_control: str resolution: float @@ -589,6 +590,7 @@ class GwEntityData(TypedDict, total=False): binary_sensors: SmileBinarySensors boiler_temperature: ActuatorData dhw_temperature: ActuatorData + maximum_boiler_temperature: ActuatorData sensors: SmileSensors switches: SmileSwitches temperature_offset: ActuatorData From ae81f3d51d6687b53b4cad498c5fbb6cb26b53d8 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 13:15:15 +0200 Subject: [PATCH 152/371] Save updated fixtures --- fixtures/adam_bad_thermostat/data.json | 21 +++++++++++++----- fixtures/adam_heatpump_cooling/data.json | 22 +++++++++---------- fixtures/adam_jip/data.json | 21 +++++++++--------- .../data.json | 22 +++++++++---------- fixtures/adam_plus_anna/data.json | 16 +++++++------- fixtures/adam_plus_anna_new/data.json | 16 +++++++------- .../data.json | 16 +++++++------- fixtures/anna_elga_2_cooling/data.json | 16 +++++++------- fixtures/anna_elga_2_schedule_off/data.json | 16 +++++++------- fixtures/anna_elga_no_cooling/data.json | 22 +++++++++---------- fixtures/anna_heatpump_cooling/data.json | 16 +++++++------- .../data.json | 16 +++++++------- fixtures/anna_heatpump_heating/data.json | 22 +++++++++---------- fixtures/anna_loria_cooling_active/data.json | 22 +++++++++---------- fixtures/anna_loria_driessens/data.json | 22 +++++++++---------- fixtures/anna_loria_heating_idle/data.json | 22 +++++++++---------- fixtures/anna_v4/data.json | 21 +++++++++--------- fixtures/anna_v4_dhw/data.json | 21 +++++++++--------- fixtures/anna_v4_no_tag/data.json | 21 +++++++++--------- fixtures/m_adam_cooling/data.json | 13 ++++++----- fixtures/m_adam_heating/data.json | 13 ++++++----- .../m_adam_heating_off_schedule/data.json | 13 ++++++----- fixtures/m_adam_jip/data.json | 21 +++++++++--------- fixtures/m_anna_heatpump_cooling/data.json | 18 ++++++++------- fixtures/m_anna_heatpump_idle/data.json | 18 ++++++++------- 25 files changed, 245 insertions(+), 222 deletions(-) diff --git a/fixtures/adam_bad_thermostat/data.json b/fixtures/adam_bad_thermostat/data.json index f2f422c56..d4a158aeb 100644 --- a/fixtures/adam_bad_thermostat/data.json +++ b/fixtures/adam_bad_thermostat/data.json @@ -6,24 +6,35 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 20.9, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 38.0, + "upper_bound": 45.0 + }, "dev_class": "heater_central", + "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], + "dhw_temperature": { + "current": 49.9, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 50.0, + "upper_bound": 100.0 + }, "location": "856285a783f24bf4b2573c8bc510eabf", "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", - "select_dhw_mode": "off", "sensors": { - "dhw_temperature": 49.9, - "domestic_hot_water_setpoint": 50.0, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.6, - "return_temperature": 33.0, - "water_temperature": 20.9 + "return_temperature": 33.0 }, "vendor": "WeHeat" }, diff --git a/fixtures/adam_heatpump_cooling/data.json b/fixtures/adam_heatpump_cooling/data.json index 0102ce080..a31c1f9a8 100644 --- a/fixtures/adam_heatpump_cooling/data.json +++ b/fixtures/adam_heatpump_cooling/data.json @@ -54,36 +54,36 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 24.5, + "lower_bound": 7.0, + "resolution": 0.01, + "setpoint": 35.0, + "upper_bound": 50.0 + }, "dev_class": "heater_central", "dhw_mode": "comfort", "dhw_modes": [ "comfort", "off" ], - "location": "eedadcb297564f1483faa509179aebed", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 63.5, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 65.0 }, - "maximum_boiler_temperature": { - "lower_bound": 7.0, - "resolution": 0.01, - "setpoint": 35.0, - "upper_bound": 50.0 - }, + "location": "eedadcb297564f1483faa509179aebed", "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", "sensors": { - "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, "return_temperature": 24.9, - "water_pressure": 2.0, - "water_temperature": 24.5 + "water_pressure": 2.0 }, "vendor": "Remeha B.V." }, diff --git a/fixtures/adam_jip/data.json b/fixtures/adam_jip/data.json index bbf89908e..391d28bbd 100644 --- a/fixtures/adam_jip/data.json +++ b/fixtures/adam_jip/data.json @@ -393,25 +393,27 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 37.3, + "lower_bound": 20.0, + "resolution": 0.01, + "setpoint": 90.0, + "upper_bound": 90.0 + }, "dev_class": "heater_central", "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "9e4433a9d69f40b3aefd15e74395eaec", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 37.3, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 20.0, - "resolution": 0.01, - "setpoint": 90.0, - "upper_bound": 90.0 - }, + "location": "9e4433a9d69f40b3aefd15e74395eaec", "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", @@ -419,8 +421,7 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 37.1, - "water_pressure": 1.4, - "water_temperature": 37.3 + "water_pressure": 1.4 }, "vendor": "Remeha B.V." }, diff --git a/fixtures/adam_onoff_cooling_fake_firmware/data.json b/fixtures/adam_onoff_cooling_fake_firmware/data.json index c35ef647f..f69d3abd6 100644 --- a/fixtures/adam_onoff_cooling_fake_firmware/data.json +++ b/fixtures/adam_onoff_cooling_fake_firmware/data.json @@ -7,35 +7,35 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 24.5, + "lower_bound": 7.0, + "resolution": 0.01, + "setpoint": 35.0, + "upper_bound": 50.0 + }, "dev_class": "heater_central", "dhw_mode": "comfort", "dhw_modes": [ "comfort", "off" ], - "location": "eedadcb297564f1483faa509179aebed", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 63.5, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 65.0 }, - "maximum_boiler_temperature": { - "lower_bound": 7.0, - "resolution": 0.01, - "setpoint": 35.0, - "upper_bound": 50.0 - }, + "location": "eedadcb297564f1483faa509179aebed", "model": "Unknown", "name": "OnOff", "sensors": { - "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, "return_temperature": 24.9, - "water_pressure": 2.0, - "water_temperature": 24.5 + "water_pressure": 2.0 } }, "7d97fc3117784cfdafe347bcedcbbbcb": { diff --git a/fixtures/adam_plus_anna/data.json b/fixtures/adam_plus_anna/data.json index 22986758b..ea3f22917 100644 --- a/fixtures/adam_plus_anna/data.json +++ b/fixtures/adam_plus_anna/data.json @@ -44,24 +44,24 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 48.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 80.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "07d618f0bb80412687f065b8698ce3e7", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 80.0, - "upper_bound": 100.0 - }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", "sensors": { - "intended_boiler_temperature": 0.0, - "water_temperature": 48.0 + "intended_boiler_temperature": 0.0 } }, "aa6b0002df0a46e1b1eb94beb61eddfe": { diff --git a/fixtures/adam_plus_anna_new/data.json b/fixtures/adam_plus_anna_new/data.json index 56c7ffbb0..5a199f12a 100644 --- a/fixtures/adam_plus_anna_new/data.json +++ b/fixtures/adam_plus_anna_new/data.json @@ -6,24 +6,24 @@ "flame_state": true, "heating_state": true }, + "boiler_temperature": { + "current": 43.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "bc93488efab249e5bc54fd7e175a6f91", - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", "sensors": { - "intended_boiler_temperature": 22.5, - "water_temperature": 43.0 + "intended_boiler_temperature": 22.5 } }, "10016900610d4c7481df78c89606ef22": { diff --git a/fixtures/adam_plus_anna_new_regulation_off/data.json b/fixtures/adam_plus_anna_new_regulation_off/data.json index dab5f22f7..b9a5f2303 100644 --- a/fixtures/adam_plus_anna_new_regulation_off/data.json +++ b/fixtures/adam_plus_anna_new_regulation_off/data.json @@ -6,24 +6,24 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 30.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "bc93488efab249e5bc54fd7e175a6f91", - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", "sensors": { - "intended_boiler_temperature": 0.0, - "water_temperature": 30.0 + "intended_boiler_temperature": 0.0 } }, "10016900610d4c7481df78c89606ef22": { diff --git a/fixtures/anna_elga_2_cooling/data.json b/fixtures/anna_elga_2_cooling/data.json index 235d0bce5..593f4e7e4 100644 --- a/fixtures/anna_elga_2_cooling/data.json +++ b/fixtures/anna_elga_2_cooling/data.json @@ -10,18 +10,19 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "d34dfe6ab90b410c98068e75de3eb631", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", @@ -31,8 +32,7 @@ "modulation_level": 0.0, "outdoor_air_temperature": 30.0, "return_temperature": 23.4, - "water_pressure": 0.5, - "water_temperature": 22.8 + "water_pressure": 0.5 }, "vendor": "Techneco" }, diff --git a/fixtures/anna_elga_2_schedule_off/data.json b/fixtures/anna_elga_2_schedule_off/data.json index 1da73a1fa..a85239634 100644 --- a/fixtures/anna_elga_2_schedule_off/data.json +++ b/fixtures/anna_elga_2_schedule_off/data.json @@ -10,18 +10,19 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "d34dfe6ab90b410c98068e75de3eb631", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", @@ -31,8 +32,7 @@ "modulation_level": 0.0, "outdoor_air_temperature": 13.0, "return_temperature": 23.4, - "water_pressure": 0.5, - "water_temperature": 22.8 + "water_pressure": 0.5 }, "vendor": "Techneco" }, diff --git a/fixtures/anna_elga_no_cooling/data.json b/fixtures/anna_elga_no_cooling/data.json index 4a19bb86e..bcabda7d8 100644 --- a/fixtures/anna_elga_no_cooling/data.json +++ b/fixtures/anna_elga_no_cooling/data.json @@ -26,35 +26,35 @@ "heating_state": true, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "a57efe5f145f498c9be62a9b63626fbf", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, + "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater", "name": "OpenTherm", "sensors": { - "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, "return_temperature": 25.1, - "water_pressure": 1.57, - "water_temperature": 29.1 + "water_pressure": 1.57 }, "vendor": "Techneco" }, diff --git a/fixtures/anna_heatpump_cooling/data.json b/fixtures/anna_heatpump_cooling/data.json index 7c03b25d2..4d8d36859 100644 --- a/fixtures/anna_heatpump_cooling/data.json +++ b/fixtures/anna_heatpump_cooling/data.json @@ -28,18 +28,19 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 24.7, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "a57efe5f145f498c9be62a9b63626fbf", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "off", @@ -50,8 +51,7 @@ "modulation_level": 40, "outdoor_air_temperature": 22.0, "return_temperature": 23.8, - "water_pressure": 1.61, - "water_temperature": 24.7 + "water_pressure": 1.61 }, "vendor": "Techneco" }, diff --git a/fixtures/anna_heatpump_cooling_fake_firmware/data.json b/fixtures/anna_heatpump_cooling_fake_firmware/data.json index e2865ce40..91b3875b2 100644 --- a/fixtures/anna_heatpump_cooling_fake_firmware/data.json +++ b/fixtures/anna_heatpump_cooling_fake_firmware/data.json @@ -28,18 +28,19 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 24.7, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "a57efe5f145f498c9be62a9b63626fbf", - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "off", @@ -50,8 +51,7 @@ "modulation_level": 100, "outdoor_air_temperature": 22.0, "return_temperature": 23.8, - "water_pressure": 1.61, - "water_temperature": 24.7 + "water_pressure": 1.61 }, "vendor": "Techneco" }, diff --git a/fixtures/anna_heatpump_heating/data.json b/fixtures/anna_heatpump_heating/data.json index 54a045273..69ea20098 100644 --- a/fixtures/anna_heatpump_heating/data.json +++ b/fixtures/anna_heatpump_heating/data.json @@ -28,35 +28,35 @@ "heating_state": true, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "a57efe5f145f498c9be62a9b63626fbf", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, + "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { - "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, "return_temperature": 25.1, - "water_pressure": 1.57, - "water_temperature": 29.1 + "water_pressure": 1.57 }, "vendor": "Techneco" }, diff --git a/fixtures/anna_loria_cooling_active/data.json b/fixtures/anna_loria_cooling_active/data.json index f46113d09..13c3b2432 100644 --- a/fixtures/anna_loria_cooling_active/data.json +++ b/fixtures/anna_loria_cooling_active/data.json @@ -70,6 +70,13 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 25.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 40.0, + "upper_bound": 45.0 + }, "dev_class": "heater_central", "dhw_mode": "auto", "dhw_modes": [ @@ -79,29 +86,22 @@ "eco", "comfort" ], - "location": "674b657c138a41a291d315d7471deb06", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 52.9, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 40.0, - "upper_bound": 45.0 - }, + "location": "674b657c138a41a291d315d7471deb06", "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", "sensors": { - "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 100, "outdoor_air_temperature": 17.2, - "return_temperature": 26.3, - "water_temperature": 25.3 + "return_temperature": 26.3 }, "switches": { "cooling_ena_switch": true diff --git a/fixtures/anna_loria_driessens/data.json b/fixtures/anna_loria_driessens/data.json index 31d518a8f..96e480c17 100644 --- a/fixtures/anna_loria_driessens/data.json +++ b/fixtures/anna_loria_driessens/data.json @@ -72,6 +72,13 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 23.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 45.0, + "upper_bound": 45.0 + }, "dev_class": "heater_central", "dhw_mode": "auto", "dhw_modes": [ @@ -81,29 +88,22 @@ "boost", "auto" ], - "location": "82c15f65c9bf44c592d69e16139355e3", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 49.5, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 45.0, - "upper_bound": 45.0 - }, + "location": "82c15f65c9bf44c592d69e16139355e3", "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", "sensors": { - "dhw_temperature": 49.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 7.5, - "return_temperature": 23.0, - "water_temperature": 23.3 + "return_temperature": 23.0 }, "switches": { "cooling_ena_switch": false diff --git a/fixtures/anna_loria_heating_idle/data.json b/fixtures/anna_loria_heating_idle/data.json index c13abbbcf..00fe5ba07 100644 --- a/fixtures/anna_loria_heating_idle/data.json +++ b/fixtures/anna_loria_heating_idle/data.json @@ -70,6 +70,13 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 25.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 40.0, + "upper_bound": 45.0 + }, "dev_class": "heater_central", "dhw_mode": "auto", "dhw_modes": [ @@ -79,29 +86,22 @@ "eco", "comfort" ], - "location": "674b657c138a41a291d315d7471deb06", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 52.9, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 40.0, - "upper_bound": 45.0 - }, + "location": "674b657c138a41a291d315d7471deb06", "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", "sensors": { - "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 17.2, - "return_temperature": 26.3, - "water_temperature": 25.3 + "return_temperature": 26.3 }, "switches": { "cooling_ena_switch": false diff --git a/fixtures/anna_v4/data.json b/fixtures/anna_v4/data.json index 563560b49..fbf163590 100644 --- a/fixtures/anna_v4/data.json +++ b/fixtures/anna_v4/data.json @@ -66,25 +66,27 @@ "flame_state": false, "heating_state": true }, + "boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", @@ -92,8 +94,7 @@ "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2, - "water_temperature": 45.0 + "water_pressure": 2.2 }, "vendor": "Bosch Thermotechniek B.V." } diff --git a/fixtures/anna_v4_dhw/data.json b/fixtures/anna_v4_dhw/data.json index 9c1f13360..6ec073250 100644 --- a/fixtures/anna_v4_dhw/data.json +++ b/fixtures/anna_v4_dhw/data.json @@ -66,25 +66,27 @@ "flame_state": true, "heating_state": false }, + "boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", @@ -92,8 +94,7 @@ "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2, - "water_temperature": 45.0 + "water_pressure": 2.2 }, "vendor": "Bosch Thermotechniek B.V." } diff --git a/fixtures/anna_v4_no_tag/data.json b/fixtures/anna_v4_no_tag/data.json index 8fe2f6606..e862f44c0 100644 --- a/fixtures/anna_v4_no_tag/data.json +++ b/fixtures/anna_v4_no_tag/data.json @@ -66,25 +66,27 @@ "flame_state": false, "heating_state": true }, + "boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", @@ -92,8 +94,7 @@ "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2, - "water_temperature": 45.0 + "water_pressure": 2.2 }, "vendor": "Bosch Thermotechniek B.V." } diff --git a/fixtures/m_adam_cooling/data.json b/fixtures/m_adam_cooling/data.json index c5b321660..082ab0344 100644 --- a/fixtures/m_adam_cooling/data.json +++ b/fixtures/m_adam_cooling/data.json @@ -7,18 +7,19 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 43.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "off" ], "location": "bc93488efab249e5bc54fd7e175a6f91", - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", diff --git a/fixtures/m_adam_heating/data.json b/fixtures/m_adam_heating/data.json index f29aa84c7..9aae52f76 100644 --- a/fixtures/m_adam_heating/data.json +++ b/fixtures/m_adam_heating/data.json @@ -6,6 +6,13 @@ "flame_state": false, "heating_state": true }, + "boiler_temperature": { + "current": 43.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", @@ -18,12 +25,6 @@ "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", diff --git a/fixtures/m_adam_heating_off_schedule/data.json b/fixtures/m_adam_heating_off_schedule/data.json index aaabc1495..44c46afd7 100644 --- a/fixtures/m_adam_heating_off_schedule/data.json +++ b/fixtures/m_adam_heating_off_schedule/data.json @@ -6,6 +6,13 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 43.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "dev_class": "heater_central", "dhw_modes": [ "comfort", @@ -18,12 +25,6 @@ "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", diff --git a/fixtures/m_adam_jip/data.json b/fixtures/m_adam_jip/data.json index ff33d77c2..fd2ccd4dc 100644 --- a/fixtures/m_adam_jip/data.json +++ b/fixtures/m_adam_jip/data.json @@ -392,25 +392,27 @@ "flame_state": false, "heating_state": false }, + "boiler_temperature": { + "current": 37.3, + "lower_bound": 20.0, + "resolution": 0.01, + "setpoint": 90.0, + "upper_bound": 90.0 + }, "dev_class": "heater_central", "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "9e4433a9d69f40b3aefd15e74395eaec", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 37.3, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 20.0, - "resolution": 0.01, - "setpoint": 90.0, - "upper_bound": 90.0 - }, + "location": "9e4433a9d69f40b3aefd15e74395eaec", "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", @@ -418,8 +420,7 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 37.1, - "water_pressure": 1.4, - "water_temperature": 37.3 + "water_pressure": 1.4 }, "vendor": "Remeha B.V." }, diff --git a/fixtures/m_anna_heatpump_cooling/data.json b/fixtures/m_anna_heatpump_cooling/data.json index fb4085270..254356df9 100644 --- a/fixtures/m_anna_heatpump_cooling/data.json +++ b/fixtures/m_anna_heatpump_cooling/data.json @@ -28,25 +28,27 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "a57efe5f145f498c9be62a9b63626fbf", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, + "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { diff --git a/fixtures/m_anna_heatpump_idle/data.json b/fixtures/m_anna_heatpump_idle/data.json index e50349146..f403c6cb1 100644 --- a/fixtures/m_anna_heatpump_idle/data.json +++ b/fixtures/m_anna_heatpump_idle/data.json @@ -28,25 +28,27 @@ "heating_state": false, "secondary_boiler_state": false }, + "boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "dev_class": "heater_central", "dhw_mode": "off", "dhw_modes": [ "comfort", "off" ], - "location": "a57efe5f145f498c9be62a9b63626fbf", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "maximum_boiler_temperature": { - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, + "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { From c35616726dc4cb2e40e563f553deb5162d8964c1 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 13:21:22 +0200 Subject: [PATCH 153/371] Legacy has no dhw_temperature dict --- plugwise/legacy/helper.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugwise/legacy/helper.py b/plugwise/legacy/helper.py index 4f3c806c3..b0c4668e5 100644 --- a/plugwise/legacy/helper.py +++ b/plugwise/legacy/helper.py @@ -346,13 +346,6 @@ def _get_actuator_functionalities( ) -> None: """Helper-function for _get_measurement_data().""" for item in ACTIVE_ACTUATORS: - # Skip max_dhw_temperature, not initially valid, - # skip thermostat for thermo_sensors - if item == "max_dhw_temperature" or ( - item == "thermostat" and entity["dev_class"] == "thermo_sensor" - ): - continue - temp_dict: ActuatorData = {} functionality = "thermostat_functionality" From d5dc505d08c7aec94f5527db571dae7549c20f78 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 13:40:55 +0200 Subject: [PATCH 154/371] Reduce complexity --- plugwise/helper.py | 49 +++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index a9a2a0b82..e60410588 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -583,29 +583,38 @@ def _get_actuator_functionalities( temp_dict[act_key] = str(pw_function.text) if temp_dict: - # If domestic_hot_water_setpoint is present as actuator, - # rename and remove as sensor - if item == DHW_SETPOINT: - item = "dhw_temperature" - if DHW_SETPOINT in data["sensors"]: - data["sensors"].pop(DHW_SETPOINT) - self._count -= 1 - if "dhw_temperature" in data["sensors"]: - temp_dict["current"] = data["sensors"]["dhw_temperature"] - data["sensors"].pop("dhw_temperature") - elif "water_temperature" in data["sensors"]: - temp_dict["current"] = data["sensors"]["water_temperature"] - self._count += 1 - - if item == "maximum_boiler_temperature": - item = "boiler_temperature" - if "water_temperature" in data["sensors"]: - temp_dict["current"] = data["sensors"]["water_temperature"] - data["sensors"].pop("water_temperature") - + item, temp_dict = self._create_special_dicts(item, data, temp_dict) act_item = cast(ActuatorType, item) data[act_item] = temp_dict + def _create_special_dicts( + self, item: str, data: GwEntityData, temp_dict: ActuatorData + ) -> tuple[str, ActuatorData]: + """Create dhw_temperature and boiler_temperature dicts. + + The initial item-names are updated and a current key is added. + Also, the copied sensor data is removed. + """ + if item == DHW_SETPOINT: + item = "dhw_temperature" + if DHW_SETPOINT in data["sensors"]: + data["sensors"].pop(DHW_SETPOINT) + self._count -= 1 + if "dhw_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["dhw_temperature"] + data["sensors"].pop("dhw_temperature") + elif "water_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["water_temperature"] + self._count += 1 + + if item == "maximum_boiler_temperature": + item = "boiler_temperature" + if "water_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["water_temperature"] + data["sensors"].pop("water_temperature") + + return item, temp_dict + def _get_actuator_mode( self, appliance: etree.Element, entity_id: str, key: str ) -> str | None: From d2f69da33b167e807d2019bfb46346f5bda08316 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 17:56:12 +0200 Subject: [PATCH 155/371] Update manual_fixtures.py --- scripts/manual_fixtures.py | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index 77ad53935..5149001c9 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -127,9 +127,7 @@ def json_writer(manual_name: str, output: dict) -> None: m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["binary_sensors"]["flame_state"] = ( False ) -m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["sensors"]["water_temperature"] = ( - 19.0 -) +m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["boiler_temperature"]["current"] = 19.0 m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["sensors"][ "intended_boiler_temperature" ] = 17.5 @@ -184,13 +182,12 @@ def json_writer(manual_name: str, output: dict) -> None: m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["binary_sensors"]["flame_state"] = ( False ) -m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["sensors"]["water_temperature"] = ( - 37.0 -) +m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["boiler_temperature"]["current"] = 37.0 m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["sensors"][ "intended_boiler_temperature" ] = 38.1 -m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["max_dhw_temperature"] = { +m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["dhw_temperature"] = { + "current": 37.0, "setpoint": 60.0, "lower_bound": 40.0, "upper_bound": 60.0, @@ -247,12 +244,8 @@ def json_writer(manual_name: str, output: dict) -> None: "cooling_state" ] = True -m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ - "water_temperature" -] = 22.7 -m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ - "dhw_temperature" -] = 41.5 +m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["boiler_temperature"]["current"] = 22.7 +m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["dhw_temperature"]["current"] = 41.5 m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ "intended_boiler_temperature" ] = 0.0 @@ -304,12 +297,8 @@ def json_writer(manual_name: str, output: dict) -> None: "cooling_state" ] = False -m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ - "water_temperature" -] = 19.1 -m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ - "dhw_temperature" -] = 46.3 +m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["boiler_temperature"]["current"] = 19.1 +m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["dhw_temperature"]["current"] = 46.3 m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ "intended_boiler_temperature" ] = 18.0 From 54012e5f485be279b293ad1c51fa75f1708167d5 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 18:08:22 +0200 Subject: [PATCH 156/371] Save correctly update manual fixtures --- fixtures/m_adam_cooling/data.json | 5 ++--- fixtures/m_adam_heating/data.json | 10 +++++----- fixtures/m_adam_heating_off_schedule/data.json | 10 +++++----- fixtures/m_anna_heatpump_cooling/data.json | 8 +++----- fixtures/m_anna_heatpump_idle/data.json | 6 ++---- 5 files changed, 17 insertions(+), 22 deletions(-) diff --git a/fixtures/m_adam_cooling/data.json b/fixtures/m_adam_cooling/data.json index 082ab0344..c388b60a6 100644 --- a/fixtures/m_adam_cooling/data.json +++ b/fixtures/m_adam_cooling/data.json @@ -8,7 +8,7 @@ "heating_state": false }, "boiler_temperature": { - "current": 43.0, + "current": 19.0, "lower_bound": 25.0, "resolution": 0.01, "setpoint": 50.0, @@ -24,8 +24,7 @@ "name": "OpenTherm", "select_dhw_mode": "off", "sensors": { - "intended_boiler_temperature": 17.5, - "water_temperature": 19.0 + "intended_boiler_temperature": 17.5 } }, "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { diff --git a/fixtures/m_adam_heating/data.json b/fixtures/m_adam_heating/data.json index 9aae52f76..a45d345d8 100644 --- a/fixtures/m_adam_heating/data.json +++ b/fixtures/m_adam_heating/data.json @@ -7,7 +7,7 @@ "heating_state": true }, "boiler_temperature": { - "current": 43.0, + "current": 37.0, "lower_bound": 25.0, "resolution": 0.01, "setpoint": 50.0, @@ -18,19 +18,19 @@ "comfort", "off" ], - "location": "bc93488efab249e5bc54fd7e175a6f91", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 37.0, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, + "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", "sensors": { - "intended_boiler_temperature": 38.1, - "water_temperature": 37.0 + "intended_boiler_temperature": 38.1 } }, "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { diff --git a/fixtures/m_adam_heating_off_schedule/data.json b/fixtures/m_adam_heating_off_schedule/data.json index 44c46afd7..a3c7095c4 100644 --- a/fixtures/m_adam_heating_off_schedule/data.json +++ b/fixtures/m_adam_heating_off_schedule/data.json @@ -7,7 +7,7 @@ "heating_state": false }, "boiler_temperature": { - "current": 43.0, + "current": 37.0, "lower_bound": 25.0, "resolution": 0.01, "setpoint": 50.0, @@ -18,19 +18,19 @@ "comfort", "off" ], - "location": "bc93488efab249e5bc54fd7e175a6f91", - "max_dhw_temperature": { + "dhw_temperature": { + "current": 37.0, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, + "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "off", "sensors": { - "intended_boiler_temperature": 0.0, - "water_temperature": 37.0 + "intended_boiler_temperature": 0.0 } }, "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { diff --git a/fixtures/m_anna_heatpump_cooling/data.json b/fixtures/m_anna_heatpump_cooling/data.json index 254356df9..44729c758 100644 --- a/fixtures/m_anna_heatpump_cooling/data.json +++ b/fixtures/m_anna_heatpump_cooling/data.json @@ -29,7 +29,7 @@ "secondary_boiler_state": false }, "boiler_temperature": { - "current": 29.1, + "current": 22.7, "lower_bound": 0.0, "resolution": 1.0, "setpoint": 60.0, @@ -42,7 +42,7 @@ "off" ], "dhw_temperature": { - "current": 46.3, + "current": 41.5, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, @@ -52,13 +52,11 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { - "dhw_temperature": 41.5, "intended_boiler_temperature": 0.0, "modulation_level": 40, "outdoor_air_temperature": 28.0, "return_temperature": 23.8, - "water_pressure": 1.57, - "water_temperature": 22.7 + "water_pressure": 1.57 }, "vendor": "Techneco" }, diff --git a/fixtures/m_anna_heatpump_idle/data.json b/fixtures/m_anna_heatpump_idle/data.json index f403c6cb1..a3656fac6 100644 --- a/fixtures/m_anna_heatpump_idle/data.json +++ b/fixtures/m_anna_heatpump_idle/data.json @@ -29,7 +29,7 @@ "secondary_boiler_state": false }, "boiler_temperature": { - "current": 29.1, + "current": 19.1, "lower_bound": 0.0, "resolution": 1.0, "setpoint": 60.0, @@ -52,13 +52,11 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { - "dhw_temperature": 46.3, "intended_boiler_temperature": 18.0, "modulation_level": 0, "outdoor_air_temperature": 28.2, "return_temperature": 22.0, - "water_pressure": 1.57, - "water_temperature": 19.1 + "water_pressure": 1.57 }, "vendor": "Techneco" }, From b2997610532f4868647487c014b35f67b10fc689 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 19:46:07 +0200 Subject: [PATCH 157/371] Change dhw_mode off to eco, dhw heating is never off unless specificly stated --- plugwise/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index e60410588..0bf4fdba5 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -509,7 +509,7 @@ def _get_toggle_state( case "cooling_enabled": data["switches"][name] = state.text == "on" case "domestic_hot_water_comfort_mode": - self._dhw_allowed_modes = ["comfort", "off"] + self._dhw_allowed_modes = ["comfort", "eco"] def _get_plugwise_notifications(self) -> None: """Collect the Plugwise notifications.""" From cb0fc067b6096881d4343333f02a056d7c230a59 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 19:55:12 +0200 Subject: [PATCH 158/371] Save updated test-jsons --- tests/data/adam/adam_bad_thermostat.json | 2 +- tests/data/adam/adam_heatpump_cooling.json | 2 +- tests/data/adam/adam_jip.json | 2 +- tests/data/adam/adam_onoff_cooling_fake_firmware.json | 2 +- tests/data/adam/adam_plus_anna.json | 2 +- tests/data/adam/adam_plus_anna_new.json | 2 +- tests/data/adam/adam_plus_anna_new_regulation_off.json | 2 +- tests/data/anna/anna_elga_2.json | 2 +- tests/data/anna/anna_elga_2_cooling.json | 2 +- tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json | 2 +- tests/data/anna/anna_elga_2_schedule_off.json | 2 +- tests/data/anna/anna_elga_no_cooling.json | 2 +- tests/data/anna/anna_heatpump_cooling.json | 2 +- tests/data/anna/anna_heatpump_cooling_fake_firmware.json | 2 +- tests/data/anna/anna_heatpump_heating.json | 4 ++-- tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json | 4 ++-- tests/data/anna/anna_p1.json | 2 +- tests/data/anna/anna_v4.json | 2 +- tests/data/anna/anna_v4_UPDATED_DATA.json | 2 +- tests/data/anna/anna_v4_dhw.json | 2 +- tests/data/anna/anna_v4_no_tag.json | 2 +- 21 files changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index d4a158aeb..bf59552c5 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -17,7 +17,7 @@ "dhw_mode": "off", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 49.9, diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index a31c1f9a8..19322a002 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -65,7 +65,7 @@ "dhw_mode": "comfort", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 63.5, diff --git a/tests/data/adam/adam_jip.json b/tests/data/adam/adam_jip.json index 391d28bbd..19d5f18d2 100644 --- a/tests/data/adam/adam_jip.json +++ b/tests/data/adam/adam_jip.json @@ -404,7 +404,7 @@ "dhw_mode": "off", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 37.3, diff --git a/tests/data/adam/adam_onoff_cooling_fake_firmware.json b/tests/data/adam/adam_onoff_cooling_fake_firmware.json index f69d3abd6..cc40f41f5 100644 --- a/tests/data/adam/adam_onoff_cooling_fake_firmware.json +++ b/tests/data/adam/adam_onoff_cooling_fake_firmware.json @@ -18,7 +18,7 @@ "dhw_mode": "comfort", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 63.5, diff --git a/tests/data/adam/adam_plus_anna.json b/tests/data/adam/adam_plus_anna.json index ea3f22917..f0865c1be 100644 --- a/tests/data/adam/adam_plus_anna.json +++ b/tests/data/adam/adam_plus_anna.json @@ -54,7 +54,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "07d618f0bb80412687f065b8698ce3e7", "model": "Generic heater", diff --git a/tests/data/adam/adam_plus_anna_new.json b/tests/data/adam/adam_plus_anna_new.json index 5a199f12a..4ab9896b5 100644 --- a/tests/data/adam/adam_plus_anna_new.json +++ b/tests/data/adam/adam_plus_anna_new.json @@ -16,7 +16,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", diff --git a/tests/data/adam/adam_plus_anna_new_regulation_off.json b/tests/data/adam/adam_plus_anna_new_regulation_off.json index b9a5f2303..9f625849c 100644 --- a/tests/data/adam/adam_plus_anna_new_regulation_off.json +++ b/tests/data/adam/adam_plus_anna_new_regulation_off.json @@ -16,7 +16,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", diff --git a/tests/data/anna/anna_elga_2.json b/tests/data/anna/anna_elga_2.json index d2efd669e..9937e511f 100644 --- a/tests/data/anna/anna_elga_2.json +++ b/tests/data/anna/anna_elga_2.json @@ -13,7 +13,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", "model": "Generic heater/cooler", diff --git a/tests/data/anna/anna_elga_2_cooling.json b/tests/data/anna/anna_elga_2_cooling.json index 593f4e7e4..e1d3b007d 100644 --- a/tests/data/anna/anna_elga_2_cooling.json +++ b/tests/data/anna/anna_elga_2_cooling.json @@ -20,7 +20,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", "model": "Generic heater/cooler", diff --git a/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json b/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json index 3c5177e11..70ab678d7 100644 --- a/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json +++ b/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json @@ -20,7 +20,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", diff --git a/tests/data/anna/anna_elga_2_schedule_off.json b/tests/data/anna/anna_elga_2_schedule_off.json index a85239634..02e11d02e 100644 --- a/tests/data/anna/anna_elga_2_schedule_off.json +++ b/tests/data/anna/anna_elga_2_schedule_off.json @@ -20,7 +20,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", "model": "Generic heater/cooler", diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index bcabda7d8..f07554fd2 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -37,7 +37,7 @@ "dhw_mode": "off", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 46.3, diff --git a/tests/data/anna/anna_heatpump_cooling.json b/tests/data/anna/anna_heatpump_cooling.json index 4d8d36859..305a25c58 100644 --- a/tests/data/anna/anna_heatpump_cooling.json +++ b/tests/data/anna/anna_heatpump_cooling.json @@ -38,7 +38,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", diff --git a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json index 91b3875b2..a1414db4a 100644 --- a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json +++ b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json @@ -38,7 +38,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", diff --git a/tests/data/anna/anna_heatpump_heating.json b/tests/data/anna/anna_heatpump_heating.json index 69ea20098..53b710551 100644 --- a/tests/data/anna/anna_heatpump_heating.json +++ b/tests/data/anna/anna_heatpump_heating.json @@ -36,10 +36,10 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 46.3, diff --git a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json index fbf4401d7..4e64c7d99 100644 --- a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json +++ b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json @@ -8,9 +8,10 @@ "resolution": 1.0 }, "dev_class": "heater_central", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", @@ -27,7 +28,6 @@ "secondary_boiler_state": false, "flame_state": false }, - "select_dhw_mode": "off", "sensors": { "intended_boiler_temperature": 35.0, "modulation_level": 52, diff --git a/tests/data/anna/anna_p1.json b/tests/data/anna/anna_p1.json index 4afa66135..a2206b942 100644 --- a/tests/data/anna/anna_p1.json +++ b/tests/data/anna/anna_p1.json @@ -39,7 +39,7 @@ "heating_state": false }, "dev_class": "heater_central", - "dhw_modes": ["comfort", "off"], + "dhw_modes": ["comfort", "eco"], "location": "da7be222ab3b420c927f3e49fade0304", "model": "Generic heater", "model_id": "HR24", diff --git a/tests/data/anna/anna_v4.json b/tests/data/anna/anna_v4.json index fbf163590..550c2d60a 100644 --- a/tests/data/anna/anna_v4.json +++ b/tests/data/anna/anna_v4.json @@ -77,7 +77,7 @@ "dhw_mode": "off", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 45.0, diff --git a/tests/data/anna/anna_v4_UPDATED_DATA.json b/tests/data/anna/anna_v4_UPDATED_DATA.json index e90e5f6a2..4cd8fdda5 100644 --- a/tests/data/anna/anna_v4_UPDATED_DATA.json +++ b/tests/data/anna/anna_v4_UPDATED_DATA.json @@ -8,7 +8,7 @@ "resolution": 1.0 }, "dhw_mode": "comfort", - "dhw_modes": ["comfort", "off"], + "dhw_modes": ["comfort", "eco"], "dhw_temperature": { "current": 51.0, "setpoint": 59.0, diff --git a/tests/data/anna/anna_v4_dhw.json b/tests/data/anna/anna_v4_dhw.json index 6ec073250..b583c382f 100644 --- a/tests/data/anna/anna_v4_dhw.json +++ b/tests/data/anna/anna_v4_dhw.json @@ -77,7 +77,7 @@ "dhw_mode": "off", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 45.0, diff --git a/tests/data/anna/anna_v4_no_tag.json b/tests/data/anna/anna_v4_no_tag.json index e862f44c0..55fa447d3 100644 --- a/tests/data/anna/anna_v4_no_tag.json +++ b/tests/data/anna/anna_v4_no_tag.json @@ -77,7 +77,7 @@ "dhw_mode": "off", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 45.0, From 4bdd92347553c787b52deee54d251dc25c11d360 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 21 Jun 2026 20:02:07 +0200 Subject: [PATCH 159/371] Update test-jsons --- plugwise/helper.py | 2 +- tests/data/adam/adam_bad_thermostat.json | 2 +- tests/data/adam/adam_jip.json | 2 +- tests/data/adam/adam_plus_anna.json | 2 +- tests/data/adam/adam_plus_anna_new.json | 2 +- tests/data/adam/adam_plus_anna_new_regulation_off.json | 2 +- tests/data/anna/anna_elga_2.json | 2 +- tests/data/anna/anna_elga_no_cooling.json | 2 +- tests/data/anna/anna_heatpump_cooling.json | 2 +- tests/data/anna/anna_heatpump_cooling_fake_firmware.json | 2 +- tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json | 1 - tests/data/anna/anna_v4.json | 2 +- tests/data/anna/anna_v4_dhw.json | 2 +- tests/data/anna/anna_v4_no_tag.json | 2 +- 14 files changed, 13 insertions(+), 14 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 0bf4fdba5..e9b168458 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -489,7 +489,7 @@ def _select_dhw_mode(self, text: str, data: GwEntityData, measurement: str) -> N if self._dhw_allowed_modes and "select_dhw_mode" not in data: data["select_dhw_mode"] = text if measurement == "domestic_hot_water_comfort_mode": - data["select_dhw_mode"] = "comfort" if text == "on" else "off" + data["select_dhw_mode"] = "comfort" if text == "on" else "eco" def _get_toggle_state( self, diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index bf59552c5..4b762d7e5 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -14,7 +14,7 @@ "upper_bound": 45.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" diff --git a/tests/data/adam/adam_jip.json b/tests/data/adam/adam_jip.json index 19d5f18d2..8145751c2 100644 --- a/tests/data/adam/adam_jip.json +++ b/tests/data/adam/adam_jip.json @@ -401,7 +401,7 @@ "upper_bound": 90.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" diff --git a/tests/data/adam/adam_plus_anna.json b/tests/data/adam/adam_plus_anna.json index f0865c1be..82e620915 100644 --- a/tests/data/adam/adam_plus_anna.json +++ b/tests/data/adam/adam_plus_anna.json @@ -59,7 +59,7 @@ "location": "07d618f0bb80412687f065b8698ce3e7", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 0.0 } diff --git a/tests/data/adam/adam_plus_anna_new.json b/tests/data/adam/adam_plus_anna_new.json index 4ab9896b5..1f0aa4196 100644 --- a/tests/data/adam/adam_plus_anna_new.json +++ b/tests/data/adam/adam_plus_anna_new.json @@ -21,7 +21,7 @@ "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 22.5 } diff --git a/tests/data/adam/adam_plus_anna_new_regulation_off.json b/tests/data/adam/adam_plus_anna_new_regulation_off.json index 9f625849c..5ec7da839 100644 --- a/tests/data/adam/adam_plus_anna_new_regulation_off.json +++ b/tests/data/adam/adam_plus_anna_new_regulation_off.json @@ -21,7 +21,7 @@ "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 0.0 } diff --git a/tests/data/anna/anna_elga_2.json b/tests/data/anna/anna_elga_2.json index 9937e511f..71edd600e 100644 --- a/tests/data/anna/anna_elga_2.json +++ b/tests/data/anna/anna_elga_2.json @@ -18,7 +18,7 @@ "location": "d34dfe6ab90b410c98068e75de3eb631", "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 58.3, diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index f07554fd2..dfb5d15c1 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -34,7 +34,7 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" diff --git a/tests/data/anna/anna_heatpump_cooling.json b/tests/data/anna/anna_heatpump_cooling.json index 305a25c58..6c3cf8b7d 100644 --- a/tests/data/anna/anna_heatpump_cooling.json +++ b/tests/data/anna/anna_heatpump_cooling.json @@ -43,7 +43,7 @@ "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "dhw_temperature": 41.5, "domestic_hot_water_setpoint": 60.0, diff --git a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json index a1414db4a..2289796f1 100644 --- a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json +++ b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json @@ -43,7 +43,7 @@ "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "dhw_temperature": 41.5, "domestic_hot_water_setpoint": 60.0, diff --git a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json index 4e64c7d99..d210ff01b 100644 --- a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json +++ b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json @@ -17,7 +17,6 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "vendor": "Techneco", - "available": true, "binary_sensors": { "dhw_state": false, diff --git a/tests/data/anna/anna_v4.json b/tests/data/anna/anna_v4.json index 550c2d60a..cecb3e0a8 100644 --- a/tests/data/anna/anna_v4.json +++ b/tests/data/anna/anna_v4.json @@ -74,7 +74,7 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" diff --git a/tests/data/anna/anna_v4_dhw.json b/tests/data/anna/anna_v4_dhw.json index b583c382f..01c6bb25d 100644 --- a/tests/data/anna/anna_v4_dhw.json +++ b/tests/data/anna/anna_v4_dhw.json @@ -74,7 +74,7 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" diff --git a/tests/data/anna/anna_v4_no_tag.json b/tests/data/anna/anna_v4_no_tag.json index 55fa447d3..c9ea37dca 100644 --- a/tests/data/anna/anna_v4_no_tag.json +++ b/tests/data/anna/anna_v4_no_tag.json @@ -74,7 +74,7 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" From 6e5c39630d9689019fc502be340a3a2971d3b39a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 08:03:37 +0200 Subject: [PATCH 160/371] Fix left rework details --- plugwise/smile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 40fdbc627..c876d585c 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -170,12 +170,12 @@ async def set_number( key: str, temperature: float, ) -> None: - """Set the maximum boiler- or DHW-setpoint on the Central Heating boiler or the temperature-offset on a Thermostat.""" + """Set the boiler- or DHW-setpoint on the Central Heating boiler or the temperature-offset on a Thermostat.""" match key: case "temperature_offset": await self.set_offset(dev_id, temperature) return - case "max_dhw_temperature": + case "dhw_temperature": key = "domestic_hot_water_setpoint" temp = str(temperature) From 18d5e40d09c51eb6f56fd787340f7f34a3cc7d97 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 08:30:39 +0200 Subject: [PATCH 161/371] Correct/revert test-json updates --- .../anna_heatpump_heating_UPDATED_DATA.json | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json index d210ff01b..94995038b 100644 --- a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json +++ b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json @@ -1,5 +1,15 @@ { "1cbf783bb11e4a7c8a6843dee3a86927": { + "available": true, + "binary_sensors": { + "dhw_state": false, + "heating_state": true, + "compressor_state": true, + "cooling_state": false, + "cooling_enabled": false, + "secondary_boiler_state": false, + "flame_state": false + }, "boiler_temperature": { "current": 29.1, "setpoint": 60.0, @@ -8,7 +18,6 @@ "resolution": 1.0 }, "dev_class": "heater_central", - "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" @@ -16,17 +25,7 @@ "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", - "vendor": "Techneco", - "available": true, - "binary_sensors": { - "dhw_state": false, - "heating_state": true, - "compressor_state": true, - "cooling_state": false, - "cooling_enabled": false, - "secondary_boiler_state": false, - "flame_state": false - }, + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 35.0, "modulation_level": 52, @@ -34,6 +33,7 @@ "water_pressure": 1.57, "outdoor_air_temperature": 3.0 - } + }, + "vendor": "Techneco" } } From 19be7963cf1a8a389b506252b7e9249d98cbfa79 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 18:06:44 +0200 Subject: [PATCH 162/371] Save updated fixtures --- fixtures/adam_bad_thermostat/data.json | 4 ++-- fixtures/adam_heatpump_cooling/data.json | 2 +- fixtures/adam_jip/data.json | 4 ++-- fixtures/adam_onoff_cooling_fake_firmware/data.json | 2 +- fixtures/adam_plus_anna/data.json | 4 ++-- fixtures/adam_plus_anna_new/data.json | 4 ++-- fixtures/adam_plus_anna_new_regulation_off/data.json | 4 ++-- fixtures/anna_elga_2/data.json | 4 ++-- fixtures/anna_elga_2_cooling/data.json | 2 +- fixtures/anna_elga_2_schedule_off/data.json | 2 +- fixtures/anna_elga_no_cooling/data.json | 4 ++-- fixtures/anna_heatpump_cooling/data.json | 4 ++-- fixtures/anna_heatpump_cooling_fake_firmware/data.json | 4 ++-- fixtures/anna_heatpump_heating/data.json | 4 ++-- fixtures/anna_p1/data.json | 2 +- fixtures/anna_v4/data.json | 4 ++-- fixtures/anna_v4_dhw/data.json | 4 ++-- fixtures/anna_v4_no_tag/data.json | 4 ++-- fixtures/m_adam_cooling/data.json | 4 ++-- fixtures/m_adam_heating/data.json | 4 ++-- fixtures/m_adam_heating_off_schedule/data.json | 4 ++-- fixtures/m_adam_jip/data.json | 4 ++-- fixtures/m_anna_heatpump_cooling/data.json | 4 ++-- fixtures/m_anna_heatpump_idle/data.json | 4 ++-- 24 files changed, 43 insertions(+), 43 deletions(-) diff --git a/fixtures/adam_bad_thermostat/data.json b/fixtures/adam_bad_thermostat/data.json index d4a158aeb..4b762d7e5 100644 --- a/fixtures/adam_bad_thermostat/data.json +++ b/fixtures/adam_bad_thermostat/data.json @@ -14,10 +14,10 @@ "upper_bound": 45.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 49.9, diff --git a/fixtures/adam_heatpump_cooling/data.json b/fixtures/adam_heatpump_cooling/data.json index a31c1f9a8..19322a002 100644 --- a/fixtures/adam_heatpump_cooling/data.json +++ b/fixtures/adam_heatpump_cooling/data.json @@ -65,7 +65,7 @@ "dhw_mode": "comfort", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 63.5, diff --git a/fixtures/adam_jip/data.json b/fixtures/adam_jip/data.json index 391d28bbd..8145751c2 100644 --- a/fixtures/adam_jip/data.json +++ b/fixtures/adam_jip/data.json @@ -401,10 +401,10 @@ "upper_bound": 90.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 37.3, diff --git a/fixtures/adam_onoff_cooling_fake_firmware/data.json b/fixtures/adam_onoff_cooling_fake_firmware/data.json index f69d3abd6..cc40f41f5 100644 --- a/fixtures/adam_onoff_cooling_fake_firmware/data.json +++ b/fixtures/adam_onoff_cooling_fake_firmware/data.json @@ -18,7 +18,7 @@ "dhw_mode": "comfort", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 63.5, diff --git a/fixtures/adam_plus_anna/data.json b/fixtures/adam_plus_anna/data.json index ea3f22917..82e620915 100644 --- a/fixtures/adam_plus_anna/data.json +++ b/fixtures/adam_plus_anna/data.json @@ -54,12 +54,12 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "07d618f0bb80412687f065b8698ce3e7", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 0.0 } diff --git a/fixtures/adam_plus_anna_new/data.json b/fixtures/adam_plus_anna_new/data.json index 5a199f12a..1f0aa4196 100644 --- a/fixtures/adam_plus_anna_new/data.json +++ b/fixtures/adam_plus_anna_new/data.json @@ -16,12 +16,12 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 22.5 } diff --git a/fixtures/adam_plus_anna_new_regulation_off/data.json b/fixtures/adam_plus_anna_new_regulation_off/data.json index b9a5f2303..5ec7da839 100644 --- a/fixtures/adam_plus_anna_new_regulation_off/data.json +++ b/fixtures/adam_plus_anna_new_regulation_off/data.json @@ -16,12 +16,12 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 0.0 } diff --git a/fixtures/anna_elga_2/data.json b/fixtures/anna_elga_2/data.json index 0d25467b4..97e69f202 100644 --- a/fixtures/anna_elga_2/data.json +++ b/fixtures/anna_elga_2/data.json @@ -13,12 +13,12 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 58.3, diff --git a/fixtures/anna_elga_2_cooling/data.json b/fixtures/anna_elga_2_cooling/data.json index 593f4e7e4..e1d3b007d 100644 --- a/fixtures/anna_elga_2_cooling/data.json +++ b/fixtures/anna_elga_2_cooling/data.json @@ -20,7 +20,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", "model": "Generic heater/cooler", diff --git a/fixtures/anna_elga_2_schedule_off/data.json b/fixtures/anna_elga_2_schedule_off/data.json index a85239634..02e11d02e 100644 --- a/fixtures/anna_elga_2_schedule_off/data.json +++ b/fixtures/anna_elga_2_schedule_off/data.json @@ -20,7 +20,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", "model": "Generic heater/cooler", diff --git a/fixtures/anna_elga_no_cooling/data.json b/fixtures/anna_elga_no_cooling/data.json index bcabda7d8..dfb5d15c1 100644 --- a/fixtures/anna_elga_no_cooling/data.json +++ b/fixtures/anna_elga_no_cooling/data.json @@ -34,10 +34,10 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 46.3, diff --git a/fixtures/anna_heatpump_cooling/data.json b/fixtures/anna_heatpump_cooling/data.json index 4d8d36859..6c3cf8b7d 100644 --- a/fixtures/anna_heatpump_cooling/data.json +++ b/fixtures/anna_heatpump_cooling/data.json @@ -38,12 +38,12 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "dhw_temperature": 41.5, "domestic_hot_water_setpoint": 60.0, diff --git a/fixtures/anna_heatpump_cooling_fake_firmware/data.json b/fixtures/anna_heatpump_cooling_fake_firmware/data.json index 91b3875b2..2289796f1 100644 --- a/fixtures/anna_heatpump_cooling_fake_firmware/data.json +++ b/fixtures/anna_heatpump_cooling_fake_firmware/data.json @@ -38,12 +38,12 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", "model": "Generic heater/cooler", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "dhw_temperature": 41.5, "domestic_hot_water_setpoint": 60.0, diff --git a/fixtures/anna_heatpump_heating/data.json b/fixtures/anna_heatpump_heating/data.json index 69ea20098..53b710551 100644 --- a/fixtures/anna_heatpump_heating/data.json +++ b/fixtures/anna_heatpump_heating/data.json @@ -36,10 +36,10 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 46.3, diff --git a/fixtures/anna_p1/data.json b/fixtures/anna_p1/data.json index 6ee72b54c..4a7f5aa03 100644 --- a/fixtures/anna_p1/data.json +++ b/fixtures/anna_p1/data.json @@ -50,7 +50,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "da7be222ab3b420c927f3e49fade0304", "model": "Generic heater", diff --git a/fixtures/anna_v4/data.json b/fixtures/anna_v4/data.json index fbf163590..cecb3e0a8 100644 --- a/fixtures/anna_v4/data.json +++ b/fixtures/anna_v4/data.json @@ -74,10 +74,10 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 45.0, diff --git a/fixtures/anna_v4_dhw/data.json b/fixtures/anna_v4_dhw/data.json index 6ec073250..01c6bb25d 100644 --- a/fixtures/anna_v4_dhw/data.json +++ b/fixtures/anna_v4_dhw/data.json @@ -74,10 +74,10 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 45.0, diff --git a/fixtures/anna_v4_no_tag/data.json b/fixtures/anna_v4_no_tag/data.json index e862f44c0..c9ea37dca 100644 --- a/fixtures/anna_v4_no_tag/data.json +++ b/fixtures/anna_v4_no_tag/data.json @@ -74,10 +74,10 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 45.0, diff --git a/fixtures/m_adam_cooling/data.json b/fixtures/m_adam_cooling/data.json index c388b60a6..6aaec3e90 100644 --- a/fixtures/m_adam_cooling/data.json +++ b/fixtures/m_adam_cooling/data.json @@ -17,12 +17,12 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 17.5 } diff --git a/fixtures/m_adam_heating/data.json b/fixtures/m_adam_heating/data.json index a45d345d8..ad2fb4df1 100644 --- a/fixtures/m_adam_heating/data.json +++ b/fixtures/m_adam_heating/data.json @@ -16,7 +16,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 37.0, @@ -28,7 +28,7 @@ "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 38.1 } diff --git a/fixtures/m_adam_heating_off_schedule/data.json b/fixtures/m_adam_heating_off_schedule/data.json index a3c7095c4..9b2b1b245 100644 --- a/fixtures/m_adam_heating_off_schedule/data.json +++ b/fixtures/m_adam_heating_off_schedule/data.json @@ -16,7 +16,7 @@ "dev_class": "heater_central", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 37.0, @@ -28,7 +28,7 @@ "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "off", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 0.0 } diff --git a/fixtures/m_adam_jip/data.json b/fixtures/m_adam_jip/data.json index fd2ccd4dc..28867a99d 100644 --- a/fixtures/m_adam_jip/data.json +++ b/fixtures/m_adam_jip/data.json @@ -400,10 +400,10 @@ "upper_bound": 90.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 37.3, diff --git a/fixtures/m_anna_heatpump_cooling/data.json b/fixtures/m_anna_heatpump_cooling/data.json index 44729c758..018610533 100644 --- a/fixtures/m_anna_heatpump_cooling/data.json +++ b/fixtures/m_anna_heatpump_cooling/data.json @@ -36,10 +36,10 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 41.5, diff --git a/fixtures/m_anna_heatpump_idle/data.json b/fixtures/m_anna_heatpump_idle/data.json index a3656fac6..2578a20a0 100644 --- a/fixtures/m_anna_heatpump_idle/data.json +++ b/fixtures/m_anna_heatpump_idle/data.json @@ -36,10 +36,10 @@ "upper_bound": 100.0 }, "dev_class": "heater_central", - "dhw_mode": "off", + "dhw_mode": "eco", "dhw_modes": [ "comfort", - "off" + "eco" ], "dhw_temperature": { "current": 46.3, From 531bc14d541bf3d2e1c9d0224d02f14331c39d50 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 18:09:34 +0200 Subject: [PATCH 163/371] Rename test-function to tinker_actuator_temp() --- tests/test_init.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_init.py b/tests/test_init.py index db3790005..b7947ba4a 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -910,9 +910,9 @@ async def tinker_regulation_mode(api, unhappy=False): return tinker_reg_mode_passed @staticmethod - async def tinker_max_boiler_temp(api, unhappy=False): - """Change max boiler temp setpoint to test functionality.""" - tinker_max_boiler_temp_passed = False + async def tinker_actuator_temp(api, unhappy=False): + """Change actuator temperature setpoint to test functionality.""" + tinker_actuator_passed = False new_temp = 60.0 _LOGGER.info("- Adjusting temperature to %s", new_temp) for test in [ @@ -923,11 +923,11 @@ async def tinker_max_boiler_temp(api, unhappy=False): _LOGGER.info(" + for %s", test) try: await api.set_number("dummy", test, new_temp) - _LOGGER.info(" + tinker_max_boiler_temp worked as intended") - tinker_max_boiler_temp_passed = True + _LOGGER.info(" + tinker_actuator_temp worked as intended") + tinker_actuator_passed = True except pw_exceptions.PlugwiseError: - _LOGGER.info(" + tinker_max_boiler_temp failed as intended") - tinker_max_boiler_temp_passed = False + _LOGGER.info(" + tinker_actuator_temp failed as intended") + tinker_actuator_passed = False except ( pw_exceptions.ConnectionFailedError ): # leave for-loop at connect-error @@ -938,7 +938,7 @@ async def tinker_max_boiler_temp(api, unhappy=False): _LOGGER.info(" - succeeded unexpectedly for some reason") return False - return tinker_max_boiler_temp_passed + return tinker_actuator_passed @staticmethod async def tinker_temp_offset(api, dev_id, unhappy=False): From f221f945178fba5e5f546cbcdc230b1bbec01bb3 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 18:10:57 +0200 Subject: [PATCH 164/371] Rename function name in test cases --- tests/test_adam.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index fd7a471f8..fe812941c 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -149,7 +149,7 @@ async def test_connect_adam_plus_anna_new(self): tinkered = await self.tinker_regulation_mode(api) assert not tinkered - tinkered = await self.tinker_max_boiler_temp(api) + tinkered = await self.tinker_actuator_temp(api) assert not tinkered assert not await self.tinker_zone_profile( @@ -191,7 +191,7 @@ async def test_connect_adam_plus_anna_new(self): server, api, client = await self.connect_wrapper(raise_timeout=True) await self.device_test(api, "2023-12-17 00:00:01", testdata, skip_testing=True) - tinkered = await self.tinker_max_boiler_temp(api, unhappy=True) + tinkered = await self.tinker_actuator_temp(api, unhappy=True) assert tinkered tinkered = await self.tinker_gateway_mode(api, unhappy=True) @@ -282,7 +282,7 @@ async def test_connect_adam_zone_per_device(self): ) assert result - tinkered = await self.tinker_max_boiler_temp(api, unhappy=True) + tinkered = await self.tinker_actuator_temp(api, unhappy=True) assert not tinkered try: From 26563ea22e0abae741d48045eab1fb2d89641c40 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 18:17:01 +0200 Subject: [PATCH 165/371] Tinker_actuator_temp(): update test strings --- tests/test_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_init.py b/tests/test_init.py index b7947ba4a..04ca7f426 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -916,8 +916,8 @@ async def tinker_actuator_temp(api, unhappy=False): new_temp = 60.0 _LOGGER.info("- Adjusting temperature to %s", new_temp) for test in [ - "maximum_boiler_temperature", - "max_dhw_temperature", + "boiler_temperature", + "dhw_temperature", "bogus_temperature", ]: _LOGGER.info(" + for %s", test) From d5109a153a5b0894fec2a537d56faab22eb9d30f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 18:19:56 +0200 Subject: [PATCH 166/371] Update set_number(), add case for boiler_temperature --- plugwise/smile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugwise/smile.py b/plugwise/smile.py index c876d585c..0d394d2d0 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -175,6 +175,8 @@ async def set_number( case "temperature_offset": await self.set_offset(dev_id, temperature) return + case "boiler_temperature": + key = "maximum_boiler_temperature" case "dhw_temperature": key = "domestic_hot_water_setpoint" From a6152067a39aa6bb4780d40a0d077206777ffedc Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 18:30:12 +0200 Subject: [PATCH 167/371] Add tinker_actuator_temp test for adam_jip --- tests/test_adam.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_adam.py b/tests/test_adam.py index fe812941c..f34b15773 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -466,5 +466,8 @@ async def test_adam_plus_jip(self): ) assert not tinkered + tinkered = await self.tinker_actuator_temp(api) + assert not tinkered + await api.close_connection() await self.disconnect(server, client) From 5c194c67d42e0f98bc5b6d8b3b794acbd6ef9c94 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 18:35:09 +0200 Subject: [PATCH 168/371] Update CHANGELOG --- CHANGELOG.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab9c0b3b0..729e562fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,8 @@ # Changelog -## Ongoing - +- Improve on v1.12.0 update by outputting dedicated boiler_ and dhw_temperature dicts with current-key added. Rename dhw_mode off to eco for standard cv-heaters. - Add PEP 740 digital attestations (workaround until included in `uv publish`), pin GitHub acions including our own from gh-actions, via PR [#891](https://github.com/plugwise/python-plugwise/pull/891) - Solve aiohttp BasicAuth deprecation via PR [#890](https://github.com/plugwise/python-plugwise/pull/890) - ## v1.12.0 - Replace the DHW-comfort-mode switch by a DHW mode selector to match the new HA select or water_heater platform updates, via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) From fa766697f11b7a61ac383d7a58841ed4808f2441 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 22 Jun 2026 19:22:50 +0200 Subject: [PATCH 169/371] Clean up legacy-helper.py as suggested --- plugwise/legacy/helper.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugwise/legacy/helper.py b/plugwise/legacy/helper.py index b0c4668e5..43734fc74 100644 --- a/plugwise/legacy/helper.py +++ b/plugwise/legacy/helper.py @@ -273,7 +273,7 @@ def _get_measurement_data(self, entity_id: str, entity: GwEntityData) -> None: self._get_lock_state(appliance, data, self._stretch_v2) if appliance.find("type").text in ACTUATOR_CLASSES: - self._get_actuator_functionalities(appliance, entity, data) + self._get_actuator_functionalities(appliance, data) # Anna: the Smile outdoor_temperature is present in the Home location # For some Anna's LOCATIONS is empty, falling back to domain_objects! @@ -341,9 +341,7 @@ def _appliance_measurements( self._count = count_data_items(self._count, data) - def _get_actuator_functionalities( - self, xml: etree.Element, entity: GwEntityData, data: GwEntityData - ) -> None: + def _get_actuator_functionalities(self, xml: etree.Element, data: GwEntityData) -> None: """Helper-function for _get_measurement_data().""" for item in ACTIVE_ACTUATORS: temp_dict: ActuatorData = {} From 159b22d2d0f7729594364eaad7c70b4c52e967c5 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 4 Jul 2026 18:55:55 +0200 Subject: [PATCH 170/371] Update CHANGELOG, bump version to v1.13.0 --- CHANGELOG.md | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 729e562fc..583bf65db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog +## v1.13.0 + - Improve on v1.12.0 update by outputting dedicated boiler_ and dhw_temperature dicts with current-key added. Rename dhw_mode off to eco for standard cv-heaters. + Via PR [#888](https://github.com/plugwise/python-plugwise/pull/888) - Add PEP 740 digital attestations (workaround until included in `uv publish`), pin GitHub acions including our own from gh-actions, via PR [#891](https://github.com/plugwise/python-plugwise/pull/891) - Solve aiohttp BasicAuth deprecation via PR [#890](https://github.com/plugwise/python-plugwise/pull/890) + ## v1.12.0 - Replace the DHW-comfort-mode switch by a DHW mode selector to match the new HA select or water_heater platform updates, via PR [#883](https://github.com/plugwise/python-plugwise/pull/883) diff --git a/pyproject.toml b/pyproject.toml index c4b0ded55..327ba9a8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "plugwise" -version = "1.12.0" +version = "1.13.0" license = "MIT" description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3." readme = "README.md" From d2a92e52ff0246c35f000115253a5dcf0727c511 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 02:56:31 +0000 Subject: [PATCH 171/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.21 (#892) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e39899b78..8d07739b8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.20 + rev: v0.15.21 hooks: - id: ruff name: "Ruff check" From c9cc5c60c0a6356972fe57685e0ecf472a97936f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 10 Jul 2026 19:31:21 +0200 Subject: [PATCH 172/371] Also create boiler_temperature dict for legacy Anna --- plugwise/legacy/helper.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugwise/legacy/helper.py b/plugwise/legacy/helper.py index 43734fc74..0e6244a81 100644 --- a/plugwise/legacy/helper.py +++ b/plugwise/legacy/helper.py @@ -364,6 +364,12 @@ def _get_actuator_functionalities(self, xml: etree.Element, data: GwEntityData) self._count += 1 if temp_dict: + if item == "maximum_boiler_temperature": + item = "boiler_temperature" + if "water_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["water_temperature"] + data["sensors"].pop("water_temperature") + act_item = cast(ActuatorType, item) data[act_item] = temp_dict From b201162b926c5e3fe01f4cd886458e87b7ead8a9 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 10 Jul 2026 19:33:48 +0200 Subject: [PATCH 173/371] Save updated test-jsons, ruffed --- fixtures/legacy_anna/data.json | 10 +++++----- fixtures/legacy_anna_2/data.json | 10 +++++----- plugwise/legacy/helper.py | 4 +++- tests/data/anna/legacy_anna.json | 18 ++++++++++++------ tests/data/anna/legacy_anna_2.json | 23 ++++++++++++++++------- 5 files changed, 41 insertions(+), 24 deletions(-) diff --git a/fixtures/legacy_anna/data.json b/fixtures/legacy_anna/data.json index f4a30b8fa..c0adfe8f3 100644 --- a/fixtures/legacy_anna/data.json +++ b/fixtures/legacy_anna/data.json @@ -13,14 +13,15 @@ "flame_state": true, "heating_state": true }, - "dev_class": "heater_central", - "location": "0000aaaa0000aaaa0000aaaa0000aa00", - "maximum_boiler_temperature": { + "boiler_temperature": { + "current": 23.6, "lower_bound": 50.0, "resolution": 1.0, "setpoint": 50.0, "upper_bound": 90.0 }, + "dev_class": "heater_central", + "location": "0000aaaa0000aaaa0000aaaa0000aa00", "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -28,8 +29,7 @@ "intended_boiler_temperature": 17.0, "modulation_level": 0.0, "return_temperature": 21.7, - "water_pressure": 1.2, - "water_temperature": 23.6 + "water_pressure": 1.2 }, "vendor": "Bosch Thermotechniek B.V." }, diff --git a/fixtures/legacy_anna_2/data.json b/fixtures/legacy_anna_2/data.json index bb28848a9..635756ecf 100644 --- a/fixtures/legacy_anna_2/data.json +++ b/fixtures/legacy_anna_2/data.json @@ -51,14 +51,15 @@ "flame_state": false, "heating_state": false }, - "dev_class": "heater_central", - "location": "be81e3f8275b4129852c4d8d550ae2eb", - "maximum_boiler_temperature": { + "boiler_temperature": { + "current": 54.0, "lower_bound": 50.0, "resolution": 1.0, "setpoint": 70.0, "upper_bound": 90.0 }, + "dev_class": "heater_central", + "location": "be81e3f8275b4129852c4d8d550ae2eb", "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -66,8 +67,7 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 0.0, - "water_pressure": 1.7, - "water_temperature": 54.0 + "water_pressure": 1.7 } } } diff --git a/plugwise/legacy/helper.py b/plugwise/legacy/helper.py index 0e6244a81..2c9e60bff 100644 --- a/plugwise/legacy/helper.py +++ b/plugwise/legacy/helper.py @@ -341,7 +341,9 @@ def _appliance_measurements( self._count = count_data_items(self._count, data) - def _get_actuator_functionalities(self, xml: etree.Element, data: GwEntityData) -> None: + def _get_actuator_functionalities( + self, xml: etree.Element, data: GwEntityData + ) -> None: """Helper-function for _get_measurement_data().""" for item in ACTIVE_ACTUATORS: temp_dict: ActuatorData = {} diff --git a/tests/data/anna/legacy_anna.json b/tests/data/anna/legacy_anna.json index 75c12a4c8..c0adfe8f3 100644 --- a/tests/data/anna/legacy_anna.json +++ b/tests/data/anna/legacy_anna.json @@ -13,14 +13,15 @@ "flame_state": true, "heating_state": true }, - "dev_class": "heater_central", - "location": "0000aaaa0000aaaa0000aaaa0000aa00", - "maximum_boiler_temperature": { + "boiler_temperature": { + "current": 23.6, "lower_bound": 50.0, "resolution": 1.0, "setpoint": 50.0, "upper_bound": 90.0 }, + "dev_class": "heater_central", + "location": "0000aaaa0000aaaa0000aaaa0000aa00", "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -28,8 +29,7 @@ "intended_boiler_temperature": 17.0, "modulation_level": 0.0, "return_temperature": 21.7, - "water_pressure": 1.2, - "water_temperature": 23.6 + "water_pressure": 1.2 }, "vendor": "Bosch Thermotechniek B.V." }, @@ -44,7 +44,13 @@ "location": "0000aaaa0000aaaa0000aaaa0000aa00", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["away", "vacation", "asleep", "home", "no_frost"], + "preset_modes": [ + "away", + "vacation", + "asleep", + "home", + "no_frost" + ], "select_schedule": null, "sensors": { "illuminance": 150.8, diff --git a/tests/data/anna/legacy_anna_2.json b/tests/data/anna/legacy_anna_2.json index 5f1ef01f9..635756ecf 100644 --- a/tests/data/anna/legacy_anna_2.json +++ b/tests/data/anna/legacy_anna_2.json @@ -1,7 +1,10 @@ { "9e7377867dc24e51b8098a5ba02bd89d": { "active_preset": null, - "available_schedules": ["Thermostat schedule", "off"], + "available_schedules": [ + "Thermostat schedule", + "off" + ], "climate_mode": "heat", "control_state": "idle", "dev_class": "thermostat", @@ -10,7 +13,13 @@ "location": "be81e3f8275b4129852c4d8d550ae2eb", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["vacation", "away", "no_frost", "home", "asleep"], + "preset_modes": [ + "vacation", + "away", + "no_frost", + "home", + "asleep" + ], "select_schedule": "off", "sensors": { "illuminance": 19.5, @@ -42,14 +51,15 @@ "flame_state": false, "heating_state": false }, - "dev_class": "heater_central", - "location": "be81e3f8275b4129852c4d8d550ae2eb", - "maximum_boiler_temperature": { + "boiler_temperature": { + "current": 54.0, "lower_bound": 50.0, "resolution": 1.0, "setpoint": 70.0, "upper_bound": 90.0 }, + "dev_class": "heater_central", + "location": "be81e3f8275b4129852c4d8d550ae2eb", "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -57,8 +67,7 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 0.0, - "water_pressure": 1.7, - "water_temperature": 54.0 + "water_pressure": 1.7 } } } From 43f7da08c0c72f5a979f62a29a3c3ea839c7fbbc Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 10 Jul 2026 19:39:02 +0200 Subject: [PATCH 174/371] Update CHANGELOG --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 583bf65db..f394c3b9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Ongoing + +- Implement dedicated boiler_temperature dict for legacy Anna + ## v1.13.0 - Improve on v1.12.0 update by outputting dedicated boiler_ and dhw_temperature dicts with current-key added. Rename dhw_mode off to eco for standard cv-heaters. From ae165f4693e720cebb61ae1633bfb554cdc1b3e3 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 10 Jul 2026 19:47:07 +0200 Subject: [PATCH 175/371] Break out _create_special_dicts() as common function --- plugwise/common.py | 30 ++++++++++++++++++++++++++++++ plugwise/helper.py | 29 ----------------------------- plugwise/legacy/helper.py | 7 +------ 3 files changed, 31 insertions(+), 35 deletions(-) diff --git a/plugwise/common.py b/plugwise/common.py index 0c36be74f..18c9d271d 100644 --- a/plugwise/common.py +++ b/plugwise/common.py @@ -9,11 +9,13 @@ from plugwise.constants import ( ANNA, + DHW_SETPOINT, GROUP_TYPES, NONE, PRIORITY_DEVICE_CLASSES, SPECIAL_PLUG_TYPES, SWITCH_GROUP_TYPES, + ActuatorData, ApplianceType, GwEntityData, ModuleData, @@ -289,3 +291,31 @@ def _get_module_data( break return module_data + + def _create_special_dicts( + self, item: str, data: GwEntityData, temp_dict: ActuatorData + ) -> tuple[str, ActuatorData]: + """Create dhw_temperature and boiler_temperature dicts. + + The initial item-names are updated and a current key is added. + Also, the copied sensor data is removed. + """ + if item == DHW_SETPOINT: + item = "dhw_temperature" + if DHW_SETPOINT in data["sensors"]: + data["sensors"].pop(DHW_SETPOINT) + self._count -= 1 + if "dhw_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["dhw_temperature"] + data["sensors"].pop("dhw_temperature") + elif "water_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["water_temperature"] + self._count += 1 + + if item == "maximum_boiler_temperature": + item = "boiler_temperature" + if "water_temperature" in data["sensors"]: + temp_dict["current"] = data["sensors"]["water_temperature"] + data["sensors"].pop("water_temperature") + + return item, temp_dict diff --git a/plugwise/helper.py b/plugwise/helper.py index e9b168458..09c377d92 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -18,7 +18,6 @@ ATTR_NAME, DATA, DEVICE_MEASUREMENTS, - DHW_SETPOINT, DOMAIN_OBJECTS, ENERGY_WATT_HOUR, GROUP_MEASUREMENTS, @@ -587,34 +586,6 @@ def _get_actuator_functionalities( act_item = cast(ActuatorType, item) data[act_item] = temp_dict - def _create_special_dicts( - self, item: str, data: GwEntityData, temp_dict: ActuatorData - ) -> tuple[str, ActuatorData]: - """Create dhw_temperature and boiler_temperature dicts. - - The initial item-names are updated and a current key is added. - Also, the copied sensor data is removed. - """ - if item == DHW_SETPOINT: - item = "dhw_temperature" - if DHW_SETPOINT in data["sensors"]: - data["sensors"].pop(DHW_SETPOINT) - self._count -= 1 - if "dhw_temperature" in data["sensors"]: - temp_dict["current"] = data["sensors"]["dhw_temperature"] - data["sensors"].pop("dhw_temperature") - elif "water_temperature" in data["sensors"]: - temp_dict["current"] = data["sensors"]["water_temperature"] - self._count += 1 - - if item == "maximum_boiler_temperature": - item = "boiler_temperature" - if "water_temperature" in data["sensors"]: - temp_dict["current"] = data["sensors"]["water_temperature"] - data["sensors"].pop("water_temperature") - - return item, temp_dict - def _get_actuator_mode( self, appliance: etree.Element, entity_id: str, key: str ) -> str | None: diff --git a/plugwise/legacy/helper.py b/plugwise/legacy/helper.py index 2c9e60bff..9d6382edf 100644 --- a/plugwise/legacy/helper.py +++ b/plugwise/legacy/helper.py @@ -366,12 +366,7 @@ def _get_actuator_functionalities( self._count += 1 if temp_dict: - if item == "maximum_boiler_temperature": - item = "boiler_temperature" - if "water_temperature" in data["sensors"]: - temp_dict["current"] = data["sensors"]["water_temperature"] - data["sensors"].pop("water_temperature") - + item, temp_dict = self._create_special_dicts(item, data, temp_dict) act_item = cast(ActuatorType, item) data[act_item] = temp_dict From bdd40140e01c536e0815cfe818d4a1c157eac130 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 10 Jul 2026 19:50:33 +0200 Subject: [PATCH 176/371] Update CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f394c3b9c..4647a6895 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Ongoing -- Implement dedicated boiler_temperature dict for legacy Anna +- Implement dedicated boiler_temperature dict for legacy Anna via PR [#893](https://github.com/plugwise/python-plugwise/pull/893) ## v1.13.0 From a53b02af88ac2e7858aff6105aa78fd542f7b14d Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 10 Jul 2026 19:51:46 +0200 Subject: [PATCH 177/371] Set to v1.13.1 release version --- CHANGELOG.md | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4647a6895..191a82937 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Ongoing +## v1.13.1 - Implement dedicated boiler_temperature dict for legacy Anna via PR [#893](https://github.com/plugwise/python-plugwise/pull/893) diff --git a/pyproject.toml b/pyproject.toml index 327ba9a8a..892bbf11e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "plugwise" -version = "1.13.0" +version = "1.13.1" license = "MIT" description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3." readme = "README.md" From aef6e392a2bcf8fb766e095973892efa76396181 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 12 Jul 2026 04:53:21 +0000 Subject: [PATCH 178/371] Update pre-commit hook jackdewinter/pymarkdown to v0.9.39 (#894) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d07739b8..05f7f3cbb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -112,7 +112,7 @@ repos: language: script pass_filenames: false - repo: https://github.com/jackdewinter/pymarkdown - rev: v0.9.38 + rev: v0.9.39 hooks: - id: pymarkdown name: MarkDown Lint From b18369a55ee27b24720d90b63413faa168cd043a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 08:43:14 +0200 Subject: [PATCH 179/371] Partly revert changes in constants --- plugwise/constants.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugwise/constants.py b/plugwise/constants.py index a5cfac2da..7cc1d1617 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -257,10 +257,9 @@ "zone_thermostat", ) ActuatorType = Literal[ - "boiler_temperature", - "dhw_temperature", "domestic_hot_water_setpoint", "maximum_boiler_temperature", + "max_dhw_temperature", "temperature_offset", "thermostat", ] @@ -382,13 +381,13 @@ "c_heating_state", "thermostat_supports_cooling", ] - SPECIALS: Final[tuple[str, ...]] = get_args(SpecialType) SPECIAL_FORMAT: Final[tuple[str, ...]] = (ENERGY_KILO_WATT_HOUR, VOLUME_CUBIC_METERS) SwitchType = Literal[ "cooling_ena_switch", + "dhw_cm_switch", "lock", "relay", ] @@ -408,6 +407,11 @@ "cooling_ena_switch", "dhw_cm_switch", ] +TOGGLES: Final[dict[str, ToggleNameType]] = { + "cooling_enabled": "cooling_ena_switch", + "domestic_hot_water_comfort_mode": "dhw_cm_switch", +} + ZONE_THERMOSTATS: Final[tuple[str, ...]] = ( "thermostat", "thermostatic_radiator_valve", @@ -588,8 +592,7 @@ class GwEntityData(TypedDict, total=False): # Dict-types binary_sensors: SmileBinarySensors - boiler_temperature: ActuatorData - dhw_temperature: ActuatorData + max_dhw_temperatureL ActuatorData maximum_boiler_temperature: ActuatorData sensors: SmileSensors switches: SmileSwitches From a62d01ac416832a2f2b17b867988e661561424d5 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 09:04:17 +0200 Subject: [PATCH 180/371] Partly revert changes in helper.py --- plugwise/helper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 09c377d92..17c65b029 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -504,6 +504,8 @@ def _get_toggle_state( if xml.find("type").text == "heater_central": locator = f"./actuator_functionalities/toggle_functionality[type='{toggle}']/state" if (state := xml.find(locator)) is not None: + data["switches"][name] = state.text == "on" + self._count += 1 match toggle: case "cooling_enabled": data["switches"][name] = state.text == "on" @@ -534,9 +536,9 @@ def _get_actuator_functionalities( Add the resulting dict(s) to the entity's data. """ for item in ACTIVE_ACTUATORS: - # Skip boiler_ and dhw_temperature, not initially valid, + # Skip max_dhw_temperature, not initially valid, # skip thermostat for all but zones with thermostats - if item in ("boiler_temperature", "dhw_temperature") or ( + if item == "max_dhw_temperature" or ( item == "thermostat" and ( entity["dev_class"] != "climate" From 0d2bd995f8399be8fcb55c3d5c39bd3651bc0b2f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 09:06:48 +0200 Subject: [PATCH 181/371] Adapt/revert _create_special_dicts() function --- plugwise/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugwise/common.py b/plugwise/common.py index 18c9d271d..51a2fe6b9 100644 --- a/plugwise/common.py +++ b/plugwise/common.py @@ -301,7 +301,7 @@ def _create_special_dicts( Also, the copied sensor data is removed. """ if item == DHW_SETPOINT: - item = "dhw_temperature" + item = "max_dhw_temperature" if DHW_SETPOINT in data["sensors"]: data["sensors"].pop(DHW_SETPOINT) self._count -= 1 @@ -313,9 +313,7 @@ def _create_special_dicts( self._count += 1 if item == "maximum_boiler_temperature": - item = "boiler_temperature" if "water_temperature" in data["sensors"]: temp_dict["current"] = data["sensors"]["water_temperature"] - data["sensors"].pop("water_temperature") return item, temp_dict From 1fdfc526b20e44a5dc0ee4cee10e2744e921812f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 09:10:12 +0200 Subject: [PATCH 182/371] Revert some changes in legacy helper.py --- plugwise/legacy/helper.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugwise/legacy/helper.py b/plugwise/legacy/helper.py index 9d6382edf..ab6f55ad1 100644 --- a/plugwise/legacy/helper.py +++ b/plugwise/legacy/helper.py @@ -342,10 +342,20 @@ def _appliance_measurements( self._count = count_data_items(self._count, data) def _get_actuator_functionalities( - self, xml: etree.Element, data: GwEntityData + self, + xml: etree.Element, + data: GwEntityData, + entity: GwEntityData, ) -> None: """Helper-function for _get_measurement_data().""" for item in ACTIVE_ACTUATORS: + # Skip max_dhw_temperature, not initially valid, + # skip thermostat for thermo_sensors + if item == "max_dhw_temperature" or ( + item == "thermostat" and entity["dev_class"] == "thermo_sensor" + ): + continue + temp_dict: ActuatorData = {} functionality = "thermostat_functionality" From a9df065366a2264bca54a39b9ea26bb603c9a4cc Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 09:24:25 +0200 Subject: [PATCH 183/371] Partly revert changes in smile.py --- plugwise/smile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 0d394d2d0..4442d41a3 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -175,9 +175,7 @@ async def set_number( case "temperature_offset": await self.set_offset(dev_id, temperature) return - case "boiler_temperature": - key = "maximum_boiler_temperature" - case "dhw_temperature": + case "max_dhw_temperature": key = "domestic_hot_water_setpoint" temp = str(temperature) From 8a896eb8c868efa478769d694a7cb96e8972bf18 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 09:25:56 +0200 Subject: [PATCH 184/371] Fix typo --- plugwise/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/constants.py b/plugwise/constants.py index 7cc1d1617..327862ae3 100644 --- a/plugwise/constants.py +++ b/plugwise/constants.py @@ -592,7 +592,7 @@ class GwEntityData(TypedDict, total=False): # Dict-types binary_sensors: SmileBinarySensors - max_dhw_temperatureL ActuatorData + max_dhw_temperature: ActuatorData maximum_boiler_temperature: ActuatorData sensors: SmileSensors switches: SmileSwitches From 4a016d8491b3b92a23c3c967fe59e377abca593f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 09:30:28 +0200 Subject: [PATCH 185/371] More reverts in helper.py --- plugwise/helper.py | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index 17c65b029..350e4ab77 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -31,6 +31,7 @@ TEMP_CELSIUS, THERMO_MATCHING, THERMOSTAT_CLASSES, + TOGGLES, UOM, ZONE_MEASUREMENTS, ActuatorData, @@ -240,7 +241,6 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch appl := self._appl_heater_central_info(appl, appliance, False) ): # False means non-legacy entity return Munch() - self._collect_dhw_modes(appliance) return appl case _ as s if s.endswith("_plug"): @@ -262,18 +262,6 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch case _: # pragma: no cover return Munch() - def _collect_dhw_modes(self, appliance: etree.Element) -> None: - """Collect the DHW modes.""" - # Collect the Loria dhw modes - self._dhw_allowed_modes = self._get_appl_actuator_modes( - appliance, "domestic_hot_water_mode_control_functionality" - ) - # Determine the dhw modes from the domestic_hot_water_comfort_mode toggle - if not self._dhw_allowed_modes: - self._get_toggle_state( - appliance, "domestic_hot_water_comfort_mode", "dhw_cm_switch", {} - ) - def _appl_gateway_info(self, appl: Munch, appliance: etree.Element) -> Munch: """Helper-function for _appliance_info_finder().""" self._gateway_id = appl.entity_id @@ -417,13 +405,12 @@ def _collect_appliance_data( appliance := self._domain_objects.find(f'./appliance[@id="{entity_id}"]') ) is not None: # Collect the cooling enabled toggle state - self._get_toggle_state( - appliance, "cooling_enabled", "cooling_ena_switch", data - ) - self._appliance_measurements(appliance, data, measurements) self._get_lock_state(appliance, data) + for toggle, name in TOGGLES.items(): + self._get_toggle_state(appliance, toggle, name, data) + if appliance.find("type").text in ACTUATOR_CLASSES: self._get_actuator_functionalities(appliance, entity, data) From 8c9abde6187fd18c59c83c08ba16ea26c3c6afa9 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 09:34:24 +0200 Subject: [PATCH 186/371] Init _dhw_allowed_modes --- plugwise/helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugwise/helper.py b/plugwise/helper.py index 350e4ab77..952ca6bd0 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -86,6 +86,7 @@ def __init__(self) -> None: super().__init__() self._endpoint: str self._elga: bool + self._dhw_allowed_modes: list[str] | None = None self._is_thermostat: bool self._loc_data: dict[str, ThermoLoc] self._schedule_old_states: dict[str, dict[str, str]] From 7dcf4306b8ab4cea9510a5323aaf4f770b2164ff Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 09:40:14 +0200 Subject: [PATCH 187/371] Updated test-json --- tests/data/adam/adam_bad_thermostat.json | 29 ++++++++++++------------ tests/data/adam/adam_plus_anna_new.json | 17 +++++++------- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index 4b762d7e5..1e86fc1b5 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -6,27 +6,22 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 20.9, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 38.0, - "upper_bound": 45.0 - }, "dev_class": "heater_central", - "dhw_mode": "eco", - "dhw_modes": [ - "comfort", - "eco" - ], - "dhw_temperature": { + "location": "856285a783f24bf4b2573c8bc510eabf", + "max_dhw_temperature": { "current": 49.9, "lower_bound": 0.0, "resolution": 1.0, "setpoint": 50.0, "upper_bound": 100.0 }, - "location": "856285a783f24bf4b2573c8bc510eabf", + "maximum_boiler_temperature": { + "current": 20.9, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 38.0, + "upper_bound": 45.0 + }, "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", @@ -34,7 +29,11 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.6, - "return_temperature": 33.0 + "return_temperature": 33.0, + "water_temperature": 20.9 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "WeHeat" }, diff --git a/tests/data/adam/adam_plus_anna_new.json b/tests/data/adam/adam_plus_anna_new.json index 1f0aa4196..d34703ec3 100644 --- a/tests/data/adam/adam_plus_anna_new.json +++ b/tests/data/adam/adam_plus_anna_new.json @@ -6,24 +6,23 @@ "flame_state": true, "heating_state": true }, - "boiler_temperature": { + "dev_class": "heater_central", + "location": "bc93488efab249e5bc54fd7e175a6f91", + "maximum_boiler_temperature": { "current": 43.0, "lower_bound": 25.0, "resolution": 0.01, "setpoint": 50.0, "upper_bound": 95.0 }, - "dev_class": "heater_central", - "dhw_modes": [ - "comfort", - "eco" - ], - "location": "bc93488efab249e5bc54fd7e175a6f91", "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "eco", "sensors": { - "intended_boiler_temperature": 22.5 + "intended_boiler_temperature": 22.5, + "water_temperature": 43.0 + }, + "switches": { + "dhw_cm_switch": false } }, "10016900610d4c7481df78c89606ef22": { From 0151395f44c08515349884481d7e08f7d5ecadc0 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 13:02:00 +0200 Subject: [PATCH 188/371] Don't remove _collect_dhw_modes() --- plugwise/helper.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugwise/helper.py b/plugwise/helper.py index 952ca6bd0..3ced202c7 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -242,6 +242,7 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch appl := self._appl_heater_central_info(appl, appliance, False) ): # False means non-legacy entity return Munch() + self._collect_dhw_modes(appliance) return appl case _ as s if s.endswith("_plug"): @@ -263,6 +264,18 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch case _: # pragma: no cover return Munch() + def _collect_dhw_modes(self, appliance: etree.Element) -> None: + """Collect the DHW modes.""" + # Collect the Loria dhw modes + self._dhw_allowed_modes = self._get_appl_actuator_modes( + appliance, "domestic_hot_water_mode_control_functionality" + ) + # Determine the dhw modes from the domestic_hot_water_comfort_mode toggle + if not self._dhw_allowed_modes: + self._get_toggle_state( + appliance, "domestic_hot_water_comfort_mode", "dhw_cm_switch", {} + ) + def _appl_gateway_info(self, appl: Munch, appliance: etree.Element) -> Munch: """Helper-function for _appliance_info_finder().""" self._gateway_id = appl.entity_id From 2b491429e0df5e383bca634c7437a83878b8e25c Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 13:06:20 +0200 Subject: [PATCH 189/371] Add guarding for where switches dict is not yet defined --- plugwise/helper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugwise/helper.py b/plugwise/helper.py index 3ced202c7..f3a0febb2 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -505,6 +505,9 @@ def _get_toggle_state( if xml.find("type").text == "heater_central": locator = f"./actuator_functionalities/toggle_functionality[type='{toggle}']/state" if (state := xml.find(locator)) is not None: + if "switches" not in data: + return + data["switches"][name] = state.text == "on" self._count += 1 match toggle: From a94ce70b1556b05ef6d842598f7efbb113dc0db5 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 13:12:53 +0200 Subject: [PATCH 190/371] Correct _get_toggle_state() --- plugwise/helper.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/plugwise/helper.py b/plugwise/helper.py index f3a0febb2..aaadded44 100644 --- a/plugwise/helper.py +++ b/plugwise/helper.py @@ -505,16 +505,11 @@ def _get_toggle_state( if xml.find("type").text == "heater_central": locator = f"./actuator_functionalities/toggle_functionality[type='{toggle}']/state" if (state := xml.find(locator)) is not None: - if "switches" not in data: - return - - data["switches"][name] = state.text == "on" - self._count += 1 - match toggle: - case "cooling_enabled": - data["switches"][name] = state.text == "on" - case "domestic_hot_water_comfort_mode": - self._dhw_allowed_modes = ["comfort", "eco"] + if "switches" in data: + data["switches"][name] = state.text == "on" + self._count += 1 + if toggle == "domestic_hot_water_comfort_mode": + self._dhw_allowed_modes = ["comfort", "eco"] def _get_plugwise_notifications(self) -> None: """Collect the Plugwise notifications.""" From 077a1ba683a90b327382be9c235d9aefa070bb7f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 13:27:40 +0200 Subject: [PATCH 191/371] Correct key related to replacing select_dhw_mode --- plugwise/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/data.py b/plugwise/data.py index 6c4df088d..3dfc293d0 100644 --- a/plugwise/data.py +++ b/plugwise/data.py @@ -80,7 +80,7 @@ def _update_gw_entities(self) -> None: # Replace select_dhw_mode with dhw_mode when applicable if ( - "dhw_temperature" in entity + "max_dhw_temperature" in entity and (mode := entity.get("select_dhw_mode")) is not None ): entity.pop("select_dhw_mode") From 9bc554781f304d891f2671d7f49157eb785f7e8f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 13:31:43 +0200 Subject: [PATCH 192/371] Update test-jsons --- tests/data/adam/adam_bad_thermostat.json | 5 +++++ tests/data/adam/adam_plus_anna_new.json | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index 1e86fc1b5..9c768485e 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -7,6 +7,11 @@ "heating_state": false }, "dev_class": "heater_central", + "dhw_mode": "eco", + "dhw_modes": [ + "comfort", + "eco" + ], "location": "856285a783f24bf4b2573c8bc510eabf", "max_dhw_temperature": { "current": 49.9, diff --git a/tests/data/adam/adam_plus_anna_new.json b/tests/data/adam/adam_plus_anna_new.json index d34703ec3..0dfd3b176 100644 --- a/tests/data/adam/adam_plus_anna_new.json +++ b/tests/data/adam/adam_plus_anna_new.json @@ -7,6 +7,10 @@ "heating_state": true }, "dev_class": "heater_central", + "dhw_modes": [ + "comfort", + "eco" + ], "location": "bc93488efab249e5bc54fd7e175a6f91", "maximum_boiler_temperature": { "current": 43.0, @@ -17,6 +21,7 @@ }, "model": "Generic heater", "name": "OpenTherm", + "select_dhw_mode": "eco", "sensors": { "intended_boiler_temperature": 22.5, "water_temperature": 43.0 From 85d2da73c09f335532cda67fd6dc5db870e299b1 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:28:15 +0200 Subject: [PATCH 193/371] Add missing _couht update --- plugwise/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugwise/common.py b/plugwise/common.py index 51a2fe6b9..49c735401 100644 --- a/plugwise/common.py +++ b/plugwise/common.py @@ -315,5 +315,6 @@ def _create_special_dicts( if item == "maximum_boiler_temperature": if "water_temperature" in data["sensors"]: temp_dict["current"] = data["sensors"]["water_temperature"] + self._count += 1 return item, temp_dict From 3e350db1709e53184b53cde7cd433bf3b116ff33 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:29:40 +0200 Subject: [PATCH 194/371] Update entity_items count --- tests/test_adam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index f34b15773..85f234557 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -47,7 +47,7 @@ async def test_connect_adam_plus_anna_new(self): test_items = await self.device_test(api, "2025-10-12 00:00:01", testdata) assert api.gateway_id == "da224107914542988a88561b4452b0f6" - assert self.entity_items == 232 + assert self.entity_items == 234 assert test_items == self.entity_items assert self.entity_list == [ "da224107914542988a88561b4452b0f6", From b03a655c56c134916a6b564c26fad8c183e0c58f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:31:26 +0200 Subject: [PATCH 195/371] Revert test-name-changes in tinker_actuator_temp() --- tests/test_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_init.py b/tests/test_init.py index 04ca7f426..b7947ba4a 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -916,8 +916,8 @@ async def tinker_actuator_temp(api, unhappy=False): new_temp = 60.0 _LOGGER.info("- Adjusting temperature to %s", new_temp) for test in [ - "boiler_temperature", - "dhw_temperature", + "maximum_boiler_temperature", + "max_dhw_temperature", "bogus_temperature", ]: _LOGGER.info(" + for %s", test) From 29271aaee29f401a395f8f6a16c133923347c49d Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:32:45 +0200 Subject: [PATCH 196/371] Update test-jsons --- tests/data/adam/adam_heatpump_cooling.json | 24 +++++++++++-------- .../adam_plus_anna_new_regulation_off.json | 20 +++++++++------- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index 19322a002..b75f0fe4d 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -54,27 +54,27 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 24.5, - "lower_bound": 7.0, - "resolution": 0.01, - "setpoint": 35.0, - "upper_bound": 50.0 - }, "dev_class": "heater_central", "dhw_mode": "comfort", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "eedadcb297564f1483faa509179aebed", + "max_dhw_temperature": { "current": 63.5, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 65.0 }, - "location": "eedadcb297564f1483faa509179aebed", + "maximum_boiler_temperature": { + "current": 24.5, + "lower_bound": 7.0, + "resolution": 0.01, + "setpoint": 35.0, + "upper_bound": 50.0 + }, "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", @@ -83,7 +83,11 @@ "modulation_level": 0.0, "outdoor_air_temperature": 13.5, "return_temperature": 24.9, - "water_pressure": 2.0 + "water_pressure": 2.0, + "water_temperature": 24.5 + }, + "switches": { + "dhw_cm_switch": true }, "vendor": "Remeha B.V." }, diff --git a/tests/data/adam/adam_plus_anna_new_regulation_off.json b/tests/data/adam/adam_plus_anna_new_regulation_off.json index 5ec7da839..e65b01c34 100644 --- a/tests/data/adam/adam_plus_anna_new_regulation_off.json +++ b/tests/data/adam/adam_plus_anna_new_regulation_off.json @@ -6,24 +6,28 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 30.0, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "bc93488efab249e5bc54fd7e175a6f91", + "maximum_boiler_temperature": { + "current": 30.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "eco", "sensors": { - "intended_boiler_temperature": 0.0 + "intended_boiler_temperature": 0.0, + "water_temperature": 30.0 + }, + "switches": { + "dhw_cm_switch": false } }, "10016900610d4c7481df78c89606ef22": { From 3eb9bb51598db5a7856b6d99f886d96d62c6f6c2 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:38:15 +0200 Subject: [PATCH 197/371] Update entity_items count --- tests/test_adam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index 85f234557..2cfd1e5ab 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -351,7 +351,7 @@ async def test_adam_heatpump_cooling(self): server, api, client = await self.connect_wrapper() test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) - assert self.entity_items == 540 + assert self.entity_items == 542 assert test_items == self.entity_items assert self.cooling_present assert self._cooling_enabled From 77ac69d07d9c852b91dcaa245010b35611ad0d4c Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:39:33 +0200 Subject: [PATCH 198/371] Update test-json --- .../adam_onoff_cooling_fake_firmware.json | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/data/adam/adam_onoff_cooling_fake_firmware.json b/tests/data/adam/adam_onoff_cooling_fake_firmware.json index cc40f41f5..a674140d2 100644 --- a/tests/data/adam/adam_onoff_cooling_fake_firmware.json +++ b/tests/data/adam/adam_onoff_cooling_fake_firmware.json @@ -7,27 +7,27 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 24.5, - "lower_bound": 7.0, - "resolution": 0.01, - "setpoint": 35.0, - "upper_bound": 50.0 - }, "dev_class": "heater_central", "dhw_mode": "comfort", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "eedadcb297564f1483faa509179aebed", + "max_dhw_temperature": { "current": 63.5, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 65.0 }, - "location": "eedadcb297564f1483faa509179aebed", + "maximum_boiler_temperature": { + "current": 24.5, + "lower_bound": 7.0, + "resolution": 0.01, + "setpoint": 35.0, + "upper_bound": 50.0 + }, "model": "Unknown", "name": "OnOff", "sensors": { @@ -35,7 +35,11 @@ "modulation_level": 0.0, "outdoor_air_temperature": 13.5, "return_temperature": 24.9, - "water_pressure": 2.0 + "water_pressure": 2.0, + "water_temperature": 24.5 + }, + "switches": { + "dhw_cm_switch": true } }, "7d97fc3117784cfdafe347bcedcbbbcb": { From ed900b9d899dcde3defa09048948915eea8d674a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:40:48 +0200 Subject: [PATCH 199/371] Update entity_items count --- tests/test_adam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index 2cfd1e5ab..f5d727458 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -375,7 +375,7 @@ async def test_connect_adam_onoff_cooling_fake_firmware(self): ) test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) - assert self.entity_items == 71 + assert self.entity_items == 73 assert test_items == self.entity_items assert self.cooling_present # assert self._cooling_enabled - no cooling_enabled indication present From a0174e2857313886716f2e19b2a4d87b59d9fa0a Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:42:06 +0200 Subject: [PATCH 200/371] Update test-json --- tests/data/adam/adam_plus_anna.json | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/data/adam/adam_plus_anna.json b/tests/data/adam/adam_plus_anna.json index 82e620915..69974cd49 100644 --- a/tests/data/adam/adam_plus_anna.json +++ b/tests/data/adam/adam_plus_anna.json @@ -44,24 +44,28 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 48.0, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 80.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "07d618f0bb80412687f065b8698ce3e7", + "maximum_boiler_temperature": { + "current": 48.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 80.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "eco", "sensors": { - "intended_boiler_temperature": 0.0 + "intended_boiler_temperature": 0.0, + "water_temperature": 48.0 + }, + "switches": { + "dhw_cm_switch": false } }, "aa6b0002df0a46e1b1eb94beb61eddfe": { From 5bf90abced067523405007d9dd2e599e0d365be9 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:43:46 +0200 Subject: [PATCH 201/371] Update entity_items count --- tests/test_adam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index f5d727458..564407a53 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -400,7 +400,7 @@ async def test_connect_adam_plus_anna(self): test_items = await self.device_test(api, "2020-03-22 00:00:01", testdata) assert api.gateway_id == "b128b4bbbd1f47e9bf4d756e8fb5ee94" - assert self.entity_items == 83 + assert self.entity_items == 85 assert test_items == self.entity_items assert "6fb89e35caeb4b1cb275184895202d84" in self.notifications From 7ff4407d2cb1a34a16c0e09451f676cd59b3b482 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:45:26 +0200 Subject: [PATCH 202/371] Update test-json --- tests/data/adam/adam_jip.json | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/data/adam/adam_jip.json b/tests/data/adam/adam_jip.json index 8145751c2..fe1b373b9 100644 --- a/tests/data/adam/adam_jip.json +++ b/tests/data/adam/adam_jip.json @@ -393,27 +393,27 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 37.3, - "lower_bound": 20.0, - "resolution": 0.01, - "setpoint": 90.0, - "upper_bound": 90.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "9e4433a9d69f40b3aefd15e74395eaec", + "max_dhw_temperature": { "current": 37.3, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "9e4433a9d69f40b3aefd15e74395eaec", + "maximum_boiler_temperature": { + "current": 37.3, + "lower_bound": 20.0, + "resolution": 0.01, + "setpoint": 90.0, + "upper_bound": 90.0 + }, "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", @@ -421,7 +421,11 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 37.1, - "water_pressure": 1.4 + "water_pressure": 1.4, + "water_temperature": 37.3 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Remeha B.V." }, From 0fb615d4c319fe4d478f7ecaeefd4b8f876fb844 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sat, 11 Jul 2026 19:46:24 +0200 Subject: [PATCH 203/371] Update entity_items count --- tests/test_adam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index 564407a53..a1270b39f 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -441,7 +441,7 @@ async def test_adam_plus_jip(self): test_items = await self.device_test(api, "2021-06-20 00:00:01", testdata) assert api.gateway_id == "b5c2386c6f6342669e50fe49dd05b188" - assert self.entity_items == 271 + assert self.entity_items == 273 assert test_items == self.entity_items # Negative test From ea6d5f0366ca944dfe21a12e205931494abf6d88 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 15:06:29 +0200 Subject: [PATCH 204/371] Update test-jsons --- fixtures/adam_bad_thermostat/data.json | 24 ++++---- fixtures/adam_heatpump_cooling/data.json | 24 ++++---- fixtures/adam_jip/data.json | 24 ++++---- .../data.json | 24 ++++---- fixtures/adam_plus_anna/data.json | 20 ++++--- fixtures/adam_plus_anna_new/data.json | 20 ++++--- .../data.json | 20 ++++--- fixtures/anna_elga_2/data.json | 3 + fixtures/anna_elga_2_cooling/data.json | 20 ++++--- fixtures/anna_elga_2_schedule_off/data.json | 20 ++++--- fixtures/anna_elga_no_cooling/data.json | 24 ++++---- fixtures/anna_heatpump_cooling/data.json | 20 ++++--- .../data.json | 20 ++++--- fixtures/anna_heatpump_heating/data.json | 24 ++++---- fixtures/anna_loria_cooling_active/data.json | 24 ++++---- fixtures/anna_loria_driessens/data.json | 24 ++++---- fixtures/anna_loria_heating_idle/data.json | 24 ++++---- fixtures/anna_p1/data.json | 3 + fixtures/anna_v4/data.json | 24 ++++---- fixtures/anna_v4_dhw/data.json | 24 ++++---- fixtures/anna_v4_no_tag/data.json | 24 ++++---- tests/data/anna/anna_elga_2.json | 16 +++++- tests/data/anna/anna_elga_2_cooling.json | 20 ++++--- .../anna_elga_2_cooling_UPDATED_DATA.json | 22 ++++--- tests/data/anna/anna_elga_2_schedule_off.json | 20 ++++--- tests/data/anna/anna_elga_no_cooling.json | 24 ++++---- tests/data/anna/anna_heatpump_cooling.json | 20 ++++--- .../anna_heatpump_cooling_fake_firmware.json | 20 ++++--- tests/data/anna/anna_heatpump_heating.json | 24 ++++---- .../anna_heatpump_heating_UPDATED_DATA.json | 17 +++--- .../data/anna/anna_loria_cooling_active.json | 24 ++++---- tests/data/anna/anna_loria_driessens.json | 24 ++++---- tests/data/anna/anna_loria_heating_idle.json | 24 ++++---- tests/data/anna/anna_p1.json | 57 ++++++++++++------- tests/data/anna/anna_v4.json | 24 ++++---- tests/data/anna/anna_v4_UPDATED_DATA.json | 21 +++---- tests/data/anna/anna_v4_dhw.json | 24 ++++---- tests/data/anna/anna_v4_no_tag.json | 24 ++++---- .../data/anna/anna_without_boiler_fw441.json | 14 ++++- 39 files changed, 508 insertions(+), 345 deletions(-) diff --git a/fixtures/adam_bad_thermostat/data.json b/fixtures/adam_bad_thermostat/data.json index 4b762d7e5..9c768485e 100644 --- a/fixtures/adam_bad_thermostat/data.json +++ b/fixtures/adam_bad_thermostat/data.json @@ -6,27 +6,27 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 20.9, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 38.0, - "upper_bound": 45.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "856285a783f24bf4b2573c8bc510eabf", + "max_dhw_temperature": { "current": 49.9, "lower_bound": 0.0, "resolution": 1.0, "setpoint": 50.0, "upper_bound": 100.0 }, - "location": "856285a783f24bf4b2573c8bc510eabf", + "maximum_boiler_temperature": { + "current": 20.9, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 38.0, + "upper_bound": 45.0 + }, "model": "Generic heater", "model_id": "1.1", "name": "OpenTherm", @@ -34,7 +34,11 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.6, - "return_temperature": 33.0 + "return_temperature": 33.0, + "water_temperature": 20.9 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "WeHeat" }, diff --git a/fixtures/adam_heatpump_cooling/data.json b/fixtures/adam_heatpump_cooling/data.json index 19322a002..b75f0fe4d 100644 --- a/fixtures/adam_heatpump_cooling/data.json +++ b/fixtures/adam_heatpump_cooling/data.json @@ -54,27 +54,27 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 24.5, - "lower_bound": 7.0, - "resolution": 0.01, - "setpoint": 35.0, - "upper_bound": 50.0 - }, "dev_class": "heater_central", "dhw_mode": "comfort", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "eedadcb297564f1483faa509179aebed", + "max_dhw_temperature": { "current": 63.5, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 65.0 }, - "location": "eedadcb297564f1483faa509179aebed", + "maximum_boiler_temperature": { + "current": 24.5, + "lower_bound": 7.0, + "resolution": 0.01, + "setpoint": 35.0, + "upper_bound": 50.0 + }, "model": "Generic heater/cooler", "model_id": "17.1", "name": "OpenTherm", @@ -83,7 +83,11 @@ "modulation_level": 0.0, "outdoor_air_temperature": 13.5, "return_temperature": 24.9, - "water_pressure": 2.0 + "water_pressure": 2.0, + "water_temperature": 24.5 + }, + "switches": { + "dhw_cm_switch": true }, "vendor": "Remeha B.V." }, diff --git a/fixtures/adam_jip/data.json b/fixtures/adam_jip/data.json index 8145751c2..fe1b373b9 100644 --- a/fixtures/adam_jip/data.json +++ b/fixtures/adam_jip/data.json @@ -393,27 +393,27 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 37.3, - "lower_bound": 20.0, - "resolution": 0.01, - "setpoint": 90.0, - "upper_bound": 90.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "9e4433a9d69f40b3aefd15e74395eaec", + "max_dhw_temperature": { "current": 37.3, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "9e4433a9d69f40b3aefd15e74395eaec", + "maximum_boiler_temperature": { + "current": 37.3, + "lower_bound": 20.0, + "resolution": 0.01, + "setpoint": 90.0, + "upper_bound": 90.0 + }, "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", @@ -421,7 +421,11 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 37.1, - "water_pressure": 1.4 + "water_pressure": 1.4, + "water_temperature": 37.3 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Remeha B.V." }, diff --git a/fixtures/adam_onoff_cooling_fake_firmware/data.json b/fixtures/adam_onoff_cooling_fake_firmware/data.json index cc40f41f5..a674140d2 100644 --- a/fixtures/adam_onoff_cooling_fake_firmware/data.json +++ b/fixtures/adam_onoff_cooling_fake_firmware/data.json @@ -7,27 +7,27 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 24.5, - "lower_bound": 7.0, - "resolution": 0.01, - "setpoint": 35.0, - "upper_bound": 50.0 - }, "dev_class": "heater_central", "dhw_mode": "comfort", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "eedadcb297564f1483faa509179aebed", + "max_dhw_temperature": { "current": 63.5, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 65.0 }, - "location": "eedadcb297564f1483faa509179aebed", + "maximum_boiler_temperature": { + "current": 24.5, + "lower_bound": 7.0, + "resolution": 0.01, + "setpoint": 35.0, + "upper_bound": 50.0 + }, "model": "Unknown", "name": "OnOff", "sensors": { @@ -35,7 +35,11 @@ "modulation_level": 0.0, "outdoor_air_temperature": 13.5, "return_temperature": 24.9, - "water_pressure": 2.0 + "water_pressure": 2.0, + "water_temperature": 24.5 + }, + "switches": { + "dhw_cm_switch": true } }, "7d97fc3117784cfdafe347bcedcbbbcb": { diff --git a/fixtures/adam_plus_anna/data.json b/fixtures/adam_plus_anna/data.json index 82e620915..69974cd49 100644 --- a/fixtures/adam_plus_anna/data.json +++ b/fixtures/adam_plus_anna/data.json @@ -44,24 +44,28 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 48.0, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 80.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "07d618f0bb80412687f065b8698ce3e7", + "maximum_boiler_temperature": { + "current": 48.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 80.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "eco", "sensors": { - "intended_boiler_temperature": 0.0 + "intended_boiler_temperature": 0.0, + "water_temperature": 48.0 + }, + "switches": { + "dhw_cm_switch": false } }, "aa6b0002df0a46e1b1eb94beb61eddfe": { diff --git a/fixtures/adam_plus_anna_new/data.json b/fixtures/adam_plus_anna_new/data.json index 1f0aa4196..0dfd3b176 100644 --- a/fixtures/adam_plus_anna_new/data.json +++ b/fixtures/adam_plus_anna_new/data.json @@ -6,24 +6,28 @@ "flame_state": true, "heating_state": true }, - "boiler_temperature": { - "current": 43.0, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "bc93488efab249e5bc54fd7e175a6f91", + "maximum_boiler_temperature": { + "current": 43.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "eco", "sensors": { - "intended_boiler_temperature": 22.5 + "intended_boiler_temperature": 22.5, + "water_temperature": 43.0 + }, + "switches": { + "dhw_cm_switch": false } }, "10016900610d4c7481df78c89606ef22": { diff --git a/fixtures/adam_plus_anna_new_regulation_off/data.json b/fixtures/adam_plus_anna_new_regulation_off/data.json index 5ec7da839..e65b01c34 100644 --- a/fixtures/adam_plus_anna_new_regulation_off/data.json +++ b/fixtures/adam_plus_anna_new_regulation_off/data.json @@ -6,24 +6,28 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 30.0, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "bc93488efab249e5bc54fd7e175a6f91", + "maximum_boiler_temperature": { + "current": 30.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "eco", "sensors": { - "intended_boiler_temperature": 0.0 + "intended_boiler_temperature": 0.0, + "water_temperature": 30.0 + }, + "switches": { + "dhw_cm_switch": false } }, "10016900610d4c7481df78c89606ef22": { diff --git a/fixtures/anna_elga_2/data.json b/fixtures/anna_elga_2/data.json index 97e69f202..5d04e4343 100644 --- a/fixtures/anna_elga_2/data.json +++ b/fixtures/anna_elga_2/data.json @@ -28,6 +28,9 @@ "water_pressure": 0.5, "water_temperature": 42.6 }, + "switches": { + "dhw_cm_switch": false + }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { diff --git a/fixtures/anna_elga_2_cooling/data.json b/fixtures/anna_elga_2_cooling/data.json index e1d3b007d..2ac1fc32a 100644 --- a/fixtures/anna_elga_2_cooling/data.json +++ b/fixtures/anna_elga_2_cooling/data.json @@ -10,19 +10,19 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 22.8, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", + "maximum_boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", @@ -32,7 +32,11 @@ "modulation_level": 0.0, "outdoor_air_temperature": 30.0, "return_temperature": 23.4, - "water_pressure": 0.5 + "water_pressure": 0.5, + "water_temperature": 22.8 + }, + "switches": { + "dhw_cm_switch": true }, "vendor": "Techneco" }, diff --git a/fixtures/anna_elga_2_schedule_off/data.json b/fixtures/anna_elga_2_schedule_off/data.json index 02e11d02e..c8acc282a 100644 --- a/fixtures/anna_elga_2_schedule_off/data.json +++ b/fixtures/anna_elga_2_schedule_off/data.json @@ -10,19 +10,19 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 22.8, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", + "maximum_boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", @@ -32,7 +32,11 @@ "modulation_level": 0.0, "outdoor_air_temperature": 13.0, "return_temperature": 23.4, - "water_pressure": 0.5 + "water_pressure": 0.5, + "water_temperature": 22.8 + }, + "switches": { + "dhw_cm_switch": true }, "vendor": "Techneco" }, diff --git a/fixtures/anna_elga_no_cooling/data.json b/fixtures/anna_elga_no_cooling/data.json index dfb5d15c1..08666fb01 100644 --- a/fixtures/anna_elga_no_cooling/data.json +++ b/fixtures/anna_elga_no_cooling/data.json @@ -26,27 +26,27 @@ "heating_state": true, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 29.1, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "a57efe5f145f498c9be62a9b63626fbf", + "max_dhw_temperature": { "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -54,7 +54,11 @@ "modulation_level": 52, "outdoor_air_temperature": 3.0, "return_temperature": 25.1, - "water_pressure": 1.57 + "water_pressure": 1.57, + "water_temperature": 29.1 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, diff --git a/fixtures/anna_heatpump_cooling/data.json b/fixtures/anna_heatpump_cooling/data.json index 6c3cf8b7d..ed73c1a36 100644 --- a/fixtures/anna_heatpump_cooling/data.json +++ b/fixtures/anna_heatpump_cooling/data.json @@ -28,19 +28,19 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 24.7, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 24.7, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "eco", @@ -51,7 +51,11 @@ "modulation_level": 40, "outdoor_air_temperature": 22.0, "return_temperature": 23.8, - "water_pressure": 1.61 + "water_pressure": 1.61, + "water_temperature": 24.7 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, diff --git a/fixtures/anna_heatpump_cooling_fake_firmware/data.json b/fixtures/anna_heatpump_cooling_fake_firmware/data.json index 2289796f1..885453d9e 100644 --- a/fixtures/anna_heatpump_cooling_fake_firmware/data.json +++ b/fixtures/anna_heatpump_cooling_fake_firmware/data.json @@ -28,19 +28,19 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 24.7, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 24.7, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "eco", @@ -51,7 +51,11 @@ "modulation_level": 100, "outdoor_air_temperature": 22.0, "return_temperature": 23.8, - "water_pressure": 1.61 + "water_pressure": 1.61, + "water_temperature": 24.7 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, diff --git a/fixtures/anna_heatpump_heating/data.json b/fixtures/anna_heatpump_heating/data.json index 53b710551..12db9c1f6 100644 --- a/fixtures/anna_heatpump_heating/data.json +++ b/fixtures/anna_heatpump_heating/data.json @@ -28,27 +28,27 @@ "heating_state": true, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 29.1, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "a57efe5f145f498c9be62a9b63626fbf", + "max_dhw_temperature": { "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { @@ -56,7 +56,11 @@ "modulation_level": 52, "outdoor_air_temperature": 3.0, "return_temperature": 25.1, - "water_pressure": 1.57 + "water_pressure": 1.57, + "water_temperature": 29.1 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, diff --git a/fixtures/anna_loria_cooling_active/data.json b/fixtures/anna_loria_cooling_active/data.json index 13c3b2432..d690d1fec 100644 --- a/fixtures/anna_loria_cooling_active/data.json +++ b/fixtures/anna_loria_cooling_active/data.json @@ -70,13 +70,6 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 25.3, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 40.0, - "upper_bound": 45.0 - }, "dev_class": "heater_central", "dhw_mode": "auto", "dhw_modes": [ @@ -86,14 +79,21 @@ "eco", "comfort" ], - "dhw_temperature": { + "location": "674b657c138a41a291d315d7471deb06", + "max_dhw_temperature": { "current": 52.9, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "674b657c138a41a291d315d7471deb06", + "maximum_boiler_temperature": { + "current": 25.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 40.0, + "upper_bound": 45.0 + }, "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", @@ -101,10 +101,12 @@ "intended_boiler_temperature": 0.0, "modulation_level": 100, "outdoor_air_temperature": 17.2, - "return_temperature": 26.3 + "return_temperature": 26.3, + "water_temperature": 25.3 }, "switches": { - "cooling_ena_switch": true + "cooling_ena_switch": true, + "dhw_cm_switch": true }, "vendor": "Atlantic" } diff --git a/fixtures/anna_loria_driessens/data.json b/fixtures/anna_loria_driessens/data.json index 96e480c17..a1eb54217 100644 --- a/fixtures/anna_loria_driessens/data.json +++ b/fixtures/anna_loria_driessens/data.json @@ -72,13 +72,6 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 23.3, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 45.0, - "upper_bound": 45.0 - }, "dev_class": "heater_central", "dhw_mode": "auto", "dhw_modes": [ @@ -88,14 +81,21 @@ "boost", "auto" ], - "dhw_temperature": { + "location": "82c15f65c9bf44c592d69e16139355e3", + "max_dhw_temperature": { "current": 49.5, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "82c15f65c9bf44c592d69e16139355e3", + "maximum_boiler_temperature": { + "current": 23.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 45.0, + "upper_bound": 45.0 + }, "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", @@ -103,10 +103,12 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 7.5, - "return_temperature": 23.0 + "return_temperature": 23.0, + "water_temperature": 23.3 }, "switches": { - "cooling_ena_switch": false + "cooling_ena_switch": false, + "dhw_cm_switch": true }, "vendor": "Atlantic" } diff --git a/fixtures/anna_loria_heating_idle/data.json b/fixtures/anna_loria_heating_idle/data.json index 00fe5ba07..c3bd260c4 100644 --- a/fixtures/anna_loria_heating_idle/data.json +++ b/fixtures/anna_loria_heating_idle/data.json @@ -70,13 +70,6 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 25.3, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 40.0, - "upper_bound": 45.0 - }, "dev_class": "heater_central", "dhw_mode": "auto", "dhw_modes": [ @@ -86,14 +79,21 @@ "eco", "comfort" ], - "dhw_temperature": { + "location": "674b657c138a41a291d315d7471deb06", + "max_dhw_temperature": { "current": 52.9, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "674b657c138a41a291d315d7471deb06", + "maximum_boiler_temperature": { + "current": 25.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 40.0, + "upper_bound": 45.0 + }, "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", @@ -101,10 +101,12 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 17.2, - "return_temperature": 26.3 + "return_temperature": 26.3, + "water_temperature": 25.3 }, "switches": { - "cooling_ena_switch": false + "cooling_ena_switch": false, + "dhw_cm_switch": true }, "vendor": "Atlantic" } diff --git a/fixtures/anna_p1/data.json b/fixtures/anna_p1/data.json index 4a7f5aa03..0f288e0d2 100644 --- a/fixtures/anna_p1/data.json +++ b/fixtures/anna_p1/data.json @@ -63,6 +63,9 @@ "water_pressure": 6.0, "water_temperature": 35.0 }, + "switches": { + "dhw_cm_switch": true + }, "vendor": "Intergas" }, "53130847be2f436cb946b78dedb9053a": { diff --git a/fixtures/anna_v4/data.json b/fixtures/anna_v4/data.json index cecb3e0a8..4b6f1ecd0 100644 --- a/fixtures/anna_v4/data.json +++ b/fixtures/anna_v4/data.json @@ -66,27 +66,27 @@ "flame_state": false, "heating_state": true }, - "boiler_temperature": { - "current": 45.0, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "max_dhw_temperature": { "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "maximum_boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", @@ -94,7 +94,11 @@ "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2 + "water_pressure": 2.2, + "water_temperature": 45.0 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Bosch Thermotechniek B.V." } diff --git a/fixtures/anna_v4_dhw/data.json b/fixtures/anna_v4_dhw/data.json index 01c6bb25d..4932d2034 100644 --- a/fixtures/anna_v4_dhw/data.json +++ b/fixtures/anna_v4_dhw/data.json @@ -66,27 +66,27 @@ "flame_state": true, "heating_state": false }, - "boiler_temperature": { - "current": 45.0, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "max_dhw_temperature": { "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "maximum_boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", @@ -94,7 +94,11 @@ "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2 + "water_pressure": 2.2, + "water_temperature": 45.0 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Bosch Thermotechniek B.V." } diff --git a/fixtures/anna_v4_no_tag/data.json b/fixtures/anna_v4_no_tag/data.json index c9ea37dca..419675ca5 100644 --- a/fixtures/anna_v4_no_tag/data.json +++ b/fixtures/anna_v4_no_tag/data.json @@ -66,27 +66,27 @@ "flame_state": false, "heating_state": true }, - "boiler_temperature": { - "current": 45.0, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "max_dhw_temperature": { "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "maximum_boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", @@ -94,7 +94,11 @@ "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2 + "water_pressure": 2.2, + "water_temperature": 45.0 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Bosch Thermotechniek B.V." } diff --git a/tests/data/anna/anna_elga_2.json b/tests/data/anna/anna_elga_2.json index 71edd600e..5d04e4343 100644 --- a/tests/data/anna/anna_elga_2.json +++ b/tests/data/anna/anna_elga_2.json @@ -28,11 +28,17 @@ "water_pressure": 0.5, "water_temperature": 42.6 }, + "switches": { + "dhw_cm_switch": false + }, "vendor": "Techneco" }, "ebd90df1ab334565b5895f37590ccff4": { "active_preset": "home", - "available_schedules": ["Thermostat schedule", "off"], + "available_schedules": [ + "Thermostat schedule", + "off" + ], "climate_mode": "auto", "control_state": "heating", "dev_class": "thermostat", @@ -41,7 +47,13 @@ "location": "d3ce834534114348be628b61b26d9220", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["away", "no_frost", "vacation", "home", "asleep"], + "preset_modes": [ + "away", + "no_frost", + "vacation", + "home", + "asleep" + ], "select_schedule": "Thermostat schedule", "sensors": { "cooling_activation_outdoor_temperature": 24.0, diff --git a/tests/data/anna/anna_elga_2_cooling.json b/tests/data/anna/anna_elga_2_cooling.json index e1d3b007d..2ac1fc32a 100644 --- a/tests/data/anna/anna_elga_2_cooling.json +++ b/tests/data/anna/anna_elga_2_cooling.json @@ -10,19 +10,19 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 22.8, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", + "maximum_boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", @@ -32,7 +32,11 @@ "modulation_level": 0.0, "outdoor_air_temperature": 30.0, "return_temperature": 23.4, - "water_pressure": 0.5 + "water_pressure": 0.5, + "water_temperature": 22.8 + }, + "switches": { + "dhw_cm_switch": true }, "vendor": "Techneco" }, diff --git a/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json b/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json index 70ab678d7..892ab5959 100644 --- a/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json +++ b/tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json @@ -10,29 +10,33 @@ "heating_state": true, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 22.8, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", - + "maximum_boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", "sensors": { + "domestic_hot_water_setpoint": 60.0, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 3.0, "return_temperature": 23.4, - "water_pressure": 0.5 + "water_pressure": 0.5, + "water_temperature": 22.8 + }, + "switches": { + "dhw_cm_switch": true }, "vendor": "Techneco" }, diff --git a/tests/data/anna/anna_elga_2_schedule_off.json b/tests/data/anna/anna_elga_2_schedule_off.json index 02e11d02e..c8acc282a 100644 --- a/tests/data/anna/anna_elga_2_schedule_off.json +++ b/tests/data/anna/anna_elga_2_schedule_off.json @@ -10,19 +10,19 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 22.8, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "d34dfe6ab90b410c98068e75de3eb631", + "maximum_boiler_temperature": { + "current": 22.8, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "comfort", @@ -32,7 +32,11 @@ "modulation_level": 0.0, "outdoor_air_temperature": 13.0, "return_temperature": 23.4, - "water_pressure": 0.5 + "water_pressure": 0.5, + "water_temperature": 22.8 + }, + "switches": { + "dhw_cm_switch": true }, "vendor": "Techneco" }, diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index dfb5d15c1..08666fb01 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -26,27 +26,27 @@ "heating_state": true, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 29.1, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "a57efe5f145f498c9be62a9b63626fbf", + "max_dhw_temperature": { "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -54,7 +54,11 @@ "modulation_level": 52, "outdoor_air_temperature": 3.0, "return_temperature": 25.1, - "water_pressure": 1.57 + "water_pressure": 1.57, + "water_temperature": 29.1 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, diff --git a/tests/data/anna/anna_heatpump_cooling.json b/tests/data/anna/anna_heatpump_cooling.json index 6c3cf8b7d..ed73c1a36 100644 --- a/tests/data/anna/anna_heatpump_cooling.json +++ b/tests/data/anna/anna_heatpump_cooling.json @@ -28,19 +28,19 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 24.7, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 24.7, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "eco", @@ -51,7 +51,11 @@ "modulation_level": 40, "outdoor_air_temperature": 22.0, "return_temperature": 23.8, - "water_pressure": 1.61 + "water_pressure": 1.61, + "water_temperature": 24.7 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, diff --git a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json index 2289796f1..885453d9e 100644 --- a/tests/data/anna/anna_heatpump_cooling_fake_firmware.json +++ b/tests/data/anna/anna_heatpump_cooling_fake_firmware.json @@ -28,19 +28,19 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 24.7, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 24.7, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "eco", @@ -51,7 +51,11 @@ "modulation_level": 100, "outdoor_air_temperature": 22.0, "return_temperature": 23.8, - "water_pressure": 1.61 + "water_pressure": 1.61, + "water_temperature": 24.7 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, diff --git a/tests/data/anna/anna_heatpump_heating.json b/tests/data/anna/anna_heatpump_heating.json index 53b710551..12db9c1f6 100644 --- a/tests/data/anna/anna_heatpump_heating.json +++ b/tests/data/anna/anna_heatpump_heating.json @@ -28,27 +28,27 @@ "heating_state": true, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 29.1, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "a57efe5f145f498c9be62a9b63626fbf", + "max_dhw_temperature": { "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 29.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { @@ -56,7 +56,11 @@ "modulation_level": 52, "outdoor_air_temperature": 3.0, "return_temperature": 25.1, - "water_pressure": 1.57 + "water_pressure": 1.57, + "water_temperature": 29.1 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, diff --git a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json index 94995038b..9d1cce51a 100644 --- a/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json +++ b/tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json @@ -10,19 +10,19 @@ "secondary_boiler_state": false, "flame_state": false }, - "boiler_temperature": { - "current": 29.1, - "setpoint": 60.0, - "lower_bound": 0.0, - "upper_bound": 100.0, - "resolution": 1.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 29.1, + "setpoint": 60.0, + "lower_bound": 0.0, + "upper_bound": 100.0, + "resolution": 1.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "select_dhw_mode": "eco", @@ -34,6 +34,9 @@ "outdoor_air_temperature": 3.0 }, + "switches": { + "dhw_cm_switch": false + }, "vendor": "Techneco" } } diff --git a/tests/data/anna/anna_loria_cooling_active.json b/tests/data/anna/anna_loria_cooling_active.json index 13c3b2432..d690d1fec 100644 --- a/tests/data/anna/anna_loria_cooling_active.json +++ b/tests/data/anna/anna_loria_cooling_active.json @@ -70,13 +70,6 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 25.3, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 40.0, - "upper_bound": 45.0 - }, "dev_class": "heater_central", "dhw_mode": "auto", "dhw_modes": [ @@ -86,14 +79,21 @@ "eco", "comfort" ], - "dhw_temperature": { + "location": "674b657c138a41a291d315d7471deb06", + "max_dhw_temperature": { "current": 52.9, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "674b657c138a41a291d315d7471deb06", + "maximum_boiler_temperature": { + "current": 25.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 40.0, + "upper_bound": 45.0 + }, "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", @@ -101,10 +101,12 @@ "intended_boiler_temperature": 0.0, "modulation_level": 100, "outdoor_air_temperature": 17.2, - "return_temperature": 26.3 + "return_temperature": 26.3, + "water_temperature": 25.3 }, "switches": { - "cooling_ena_switch": true + "cooling_ena_switch": true, + "dhw_cm_switch": true }, "vendor": "Atlantic" } diff --git a/tests/data/anna/anna_loria_driessens.json b/tests/data/anna/anna_loria_driessens.json index 96e480c17..a1eb54217 100644 --- a/tests/data/anna/anna_loria_driessens.json +++ b/tests/data/anna/anna_loria_driessens.json @@ -72,13 +72,6 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 23.3, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 45.0, - "upper_bound": 45.0 - }, "dev_class": "heater_central", "dhw_mode": "auto", "dhw_modes": [ @@ -88,14 +81,21 @@ "boost", "auto" ], - "dhw_temperature": { + "location": "82c15f65c9bf44c592d69e16139355e3", + "max_dhw_temperature": { "current": 49.5, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "82c15f65c9bf44c592d69e16139355e3", + "maximum_boiler_temperature": { + "current": 23.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 45.0, + "upper_bound": 45.0 + }, "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", @@ -103,10 +103,12 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 7.5, - "return_temperature": 23.0 + "return_temperature": 23.0, + "water_temperature": 23.3 }, "switches": { - "cooling_ena_switch": false + "cooling_ena_switch": false, + "dhw_cm_switch": true }, "vendor": "Atlantic" } diff --git a/tests/data/anna/anna_loria_heating_idle.json b/tests/data/anna/anna_loria_heating_idle.json index 00fe5ba07..c3bd260c4 100644 --- a/tests/data/anna/anna_loria_heating_idle.json +++ b/tests/data/anna/anna_loria_heating_idle.json @@ -70,13 +70,6 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 25.3, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 40.0, - "upper_bound": 45.0 - }, "dev_class": "heater_central", "dhw_mode": "auto", "dhw_modes": [ @@ -86,14 +79,21 @@ "eco", "comfort" ], - "dhw_temperature": { + "location": "674b657c138a41a291d315d7471deb06", + "max_dhw_temperature": { "current": 52.9, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "674b657c138a41a291d315d7471deb06", + "maximum_boiler_temperature": { + "current": 25.3, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 40.0, + "upper_bound": 45.0 + }, "model": "Generic heater/cooler", "model_id": "173", "name": "OpenTherm", @@ -101,10 +101,12 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 17.2, - "return_temperature": 26.3 + "return_temperature": 26.3, + "water_temperature": 25.3 }, "switches": { - "cooling_ena_switch": false + "cooling_ena_switch": false, + "dhw_cm_switch": true }, "vendor": "Atlantic" } diff --git a/tests/data/anna/anna_p1.json b/tests/data/anna/anna_p1.json index a2206b942..0f288e0d2 100644 --- a/tests/data/anna/anna_p1.json +++ b/tests/data/anna/anna_p1.json @@ -1,7 +1,10 @@ { "1e5e55b958ac445583602f767cb45942": { "active_preset": "home", - "available_schedules": ["Thermostat schedule", "off"], + "available_schedules": [ + "Thermostat schedule", + "off" + ], "climate_mode": "heat", "control_state": "idle", "dev_class": "thermostat", @@ -10,7 +13,13 @@ "location": "5b13651d79c4454684fd268850b1bff8", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": [ + "home", + "asleep", + "away", + "vacation", + "no_frost" + ], "select_schedule": "off", "sensors": { "illuminance": 2.0, @@ -39,7 +48,10 @@ "heating_state": false }, "dev_class": "heater_central", - "dhw_modes": ["comfort", "eco"], + "dhw_modes": [ + "comfort", + "eco" + ], "location": "da7be222ab3b420c927f3e49fade0304", "model": "Generic heater", "model_id": "HR24", @@ -51,8 +63,29 @@ "water_pressure": 6.0, "water_temperature": 35.0 }, + "switches": { + "dhw_cm_switch": true + }, "vendor": "Intergas" }, + "53130847be2f436cb946b78dedb9053a": { + "binary_sensors": { + "plugwise_notification": false + }, + "dev_class": "gateway", + "firmware": "4.4.4", + "hardware": "AME Smile 2.0 board", + "location": "da7be222ab3b420c927f3e49fade0304", + "mac_address": "C493000ABCD", + "model": "Gateway", + "model_id": "smile_thermo", + "name": "Smile Anna P1", + "notifications": {}, + "sensors": { + "outdoor_temperature": 11.8 + }, + "vendor": "Plugwise" + }, "da7be222ab3b420c927f3e49fade0304": { "available": true, "dev_class": "smartmeter", @@ -81,23 +114,5 @@ "voltage_phase_one": 234.6 }, "vendor": "SAGEM" - }, - "53130847be2f436cb946b78dedb9053a": { - "binary_sensors": { - "plugwise_notification": false - }, - "dev_class": "gateway", - "firmware": "4.4.4", - "hardware": "AME Smile 2.0 board", - "location": "da7be222ab3b420c927f3e49fade0304", - "mac_address": "C493000ABCD", - "model": "Gateway", - "model_id": "smile_thermo", - "name": "Smile Anna P1", - "notifications": {}, - "sensors": { - "outdoor_temperature": 11.8 - }, - "vendor": "Plugwise" } } diff --git a/tests/data/anna/anna_v4.json b/tests/data/anna/anna_v4.json index cecb3e0a8..4b6f1ecd0 100644 --- a/tests/data/anna/anna_v4.json +++ b/tests/data/anna/anna_v4.json @@ -66,27 +66,27 @@ "flame_state": false, "heating_state": true }, - "boiler_temperature": { - "current": 45.0, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "max_dhw_temperature": { "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "maximum_boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", @@ -94,7 +94,11 @@ "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2 + "water_pressure": 2.2, + "water_temperature": 45.0 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Bosch Thermotechniek B.V." } diff --git a/tests/data/anna/anna_v4_UPDATED_DATA.json b/tests/data/anna/anna_v4_UPDATED_DATA.json index 4cd8fdda5..ac5cdaff1 100644 --- a/tests/data/anna/anna_v4_UPDATED_DATA.json +++ b/tests/data/anna/anna_v4_UPDATED_DATA.json @@ -1,31 +1,32 @@ { "cd0e6156b1f04d5f952349ffbe397481": { - "boiler_temperature": { + "dhw_mode": "comfort", + "dhw_modes": ["comfort", "eco"], + "binary_sensors": { + "dhw_state": false, + "heating_state": false, + "flame_state": false + }, + "maximum_boiler_temperature": { "current": 51.0, "setpoint": 69.0, "lower_bound": 0.0, "upper_bound": 100.0, "resolution": 1.0 }, - "dhw_mode": "comfort", - "dhw_modes": ["comfort", "eco"], - "dhw_temperature": { + "max_dhw_temperature": { "current": 51.0, "setpoint": 59.0, "lower_bound": 30.0, "upper_bound": 60.0, "resolution": 0.01 }, - "binary_sensors": { - "dhw_state": false, - "heating_state": false, - "flame_state": false - }, "sensors": { "intended_boiler_temperature": 0.0, "modulation_level": 0, "return_temperature": 41.0, - "water_pressure": 2.1 + "water_pressure": 2.1, + "water_temperature": 51.0 } }, "01b85360fdd243d0aaad4d6ac2a5ba7e": { diff --git a/tests/data/anna/anna_v4_dhw.json b/tests/data/anna/anna_v4_dhw.json index 01c6bb25d..4932d2034 100644 --- a/tests/data/anna/anna_v4_dhw.json +++ b/tests/data/anna/anna_v4_dhw.json @@ -66,27 +66,27 @@ "flame_state": true, "heating_state": false }, - "boiler_temperature": { - "current": 45.0, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "max_dhw_temperature": { "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "maximum_boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", @@ -94,7 +94,11 @@ "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2 + "water_pressure": 2.2, + "water_temperature": 45.0 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Bosch Thermotechniek B.V." } diff --git a/tests/data/anna/anna_v4_no_tag.json b/tests/data/anna/anna_v4_no_tag.json index c9ea37dca..419675ca5 100644 --- a/tests/data/anna/anna_v4_no_tag.json +++ b/tests/data/anna/anna_v4_no_tag.json @@ -66,27 +66,27 @@ "flame_state": false, "heating_state": true }, - "boiler_temperature": { - "current": 45.0, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 70.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "max_dhw_temperature": { "current": 45.0, "lower_bound": 30.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "94c107dc6ac84ed98e9f68c0dd06bf71", + "maximum_boiler_temperature": { + "current": 45.0, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 70.0, + "upper_bound": 100.0 + }, "model": "Generic heater", "model_id": "2.32", "name": "OpenTherm", @@ -94,7 +94,11 @@ "intended_boiler_temperature": 39.9, "modulation_level": 0.0, "return_temperature": 32.0, - "water_pressure": 2.2 + "water_pressure": 2.2, + "water_temperature": 45.0 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Bosch Thermotechniek B.V." } diff --git a/tests/data/anna/anna_without_boiler_fw441.json b/tests/data/anna/anna_without_boiler_fw441.json index 7e0b7cc4f..7cc9eaff3 100644 --- a/tests/data/anna/anna_without_boiler_fw441.json +++ b/tests/data/anna/anna_without_boiler_fw441.json @@ -1,7 +1,11 @@ { "7ffbb3ab4b6c4ab2915d7510f7bf8fe9": { "active_preset": "home", - "available_schedules": ["Test", "Normaal", "off"], + "available_schedules": [ + "Test", + "Normaal", + "off" + ], "climate_mode": "auto", "control_state": "idle", "dev_class": "thermostat", @@ -10,7 +14,13 @@ "location": "c34c6864216446528e95d88985e714cc", "model": "ThermoTouch", "name": "Anna", - "preset_modes": ["no_frost", "asleep", "away", "vacation", "home"], + "preset_modes": [ + "no_frost", + "asleep", + "away", + "vacation", + "home" + ], "select_schedule": "Normaal", "sensors": { "illuminance": 0.25, From 77ab0c541ec888fcf305a874f7a415a7b5531e2f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 15:10:36 +0200 Subject: [PATCH 205/371] Update entity_items count --- tests/test_anna.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/test_anna.py b/tests/test_anna.py index 4e47fe965..f702f8b0b 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -29,7 +29,7 @@ async def test_connect_anna_v4(self): await self.device_test(api, "2020-04-05 00:00:01", testdata) assert api.gateway_id == "0466eae8520144c78afb29628384edeb" - assert self.entity_items == 62 + assert self.entity_items == 64 assert not self.notifications assert not self.cooling_present @@ -101,7 +101,7 @@ async def test_connect_anna_v4_dhw(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata) - assert self.entity_items == 62 + assert self.entity_items == 64 assert not self.notifications result = await self.tinker_thermostat( @@ -130,7 +130,7 @@ async def test_connect_anna_v4_no_tag(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata) - assert self.entity_items == 62 + assert self.entity_items == 64 result = await self.tinker_thermostat( api, @@ -186,7 +186,7 @@ async def test_connect_anna_heatpump_heating(self): await self.device_test(api, "2020-04-12 00:00:01", testdata) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - assert self.entity_items == 70 + assert self.entity_items == 72 assert not self.notifications assert self.cooling_present assert not self._cooling_enabled @@ -216,7 +216,7 @@ async def test_connect_anna_heatpump_heating(self): await self.device_test( api, "2020-04-13 00:00:01", testdata_updated, initialize=False ) - assert self.entity_items == 67 + assert self.entity_items == 69 await api.close_connection() await self.disconnect(server, client) @@ -241,7 +241,7 @@ async def test_connect_anna_heatpump_cooling(self): ) await self.device_test(api, "2020-04-19 00:00:01", testdata) - assert self.entity_items == 67 + assert self.entity_items == 69 assert self.cooling_present assert not self.notifications @@ -287,7 +287,7 @@ async def test_connect_anna_heatpump_cooling_fake_firmware(self): ) await self.device_test(api, "2020-04-19 00:00:01", testdata) - assert self.entity_items == 67 + assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled assert self._cooling_active @@ -313,7 +313,7 @@ async def test_connect_anna_elga_no_cooling(self): await self.device_test(api, "2020-04-12 00:00:01", testdata) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - assert self.entity_items == 66 + assert self.entity_items == 68 assert not self.notifications assert not self.cooling_present @@ -336,7 +336,7 @@ async def test_connect_anna_elga_2(self): ) await self.device_test(api, "2022-03-13 00:00:01", testdata) - assert self.entity_items == 62 + assert self.entity_items == 63 assert api.gateway_id == "fb49af122f6e4b0f91267e1cf7666d6f" assert self.cooling_present assert not self._cooling_enabled @@ -356,7 +356,7 @@ async def test_connect_anna_elga_2_schedule_off(self): await self.device_test(api, "2022-03-13 00:00:01", testdata) assert not self._cooling_enabled - assert self.entity_items == 66 + assert self.entity_items == 68 result = await self.tinker_thermostat( api, @@ -387,7 +387,7 @@ async def test_connect_anna_elga_2_cooling(self): ) await self.device_test(api, "2022-03-10 00:00:01", testdata) - assert self.entity_items == 66 + assert self.entity_items == 68 assert not self.notifications assert self.cooling_present @@ -440,7 +440,7 @@ async def test_connect_anna_loria_heating_idle(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata) - assert self.entity_items == 67 + assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -509,7 +509,7 @@ async def test_connect_anna_loria_cooling_active(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata) - assert self.entity_items == 67 + assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled @@ -532,7 +532,7 @@ async def test_connect_anna_loria_driessens(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata) - assert self.entity_items == 67 + assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -555,7 +555,7 @@ async def test_connect_anna_p1(self): ) await self.device_test(api, "2025-11-02 00:00:01", testdata) - assert self.entity_items == 77 + assert self.entity_items == 78 await api.close_connection() await self.disconnect(server, client) From a003289664eb0e1bffdc9e125fedf09033cfaccf Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 15:16:12 +0200 Subject: [PATCH 206/371] Add missing argument --- plugwise/legacy/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/legacy/helper.py b/plugwise/legacy/helper.py index ab6f55ad1..ee92fe7d9 100644 --- a/plugwise/legacy/helper.py +++ b/plugwise/legacy/helper.py @@ -273,7 +273,7 @@ def _get_measurement_data(self, entity_id: str, entity: GwEntityData) -> None: self._get_lock_state(appliance, data, self._stretch_v2) if appliance.find("type").text in ACTUATOR_CLASSES: - self._get_actuator_functionalities(appliance, data) + self._get_actuator_functionalities(appliance, data, entity) # Anna: the Smile outdoor_temperature is present in the Home location # For some Anna's LOCATIONS is empty, falling back to domain_objects! From cebbaca6018110221fea6b1a8e6c94b2145deecd Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 15:17:18 +0200 Subject: [PATCH 207/371] Update test-json --- tests/data/anna/legacy_anna.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/data/anna/legacy_anna.json b/tests/data/anna/legacy_anna.json index c0adfe8f3..c38e6f0a2 100644 --- a/tests/data/anna/legacy_anna.json +++ b/tests/data/anna/legacy_anna.json @@ -13,15 +13,15 @@ "flame_state": true, "heating_state": true }, - "boiler_temperature": { + "dev_class": "heater_central", + "location": "0000aaaa0000aaaa0000aaaa0000aa00", + "maximum_boiler_temperature": { "current": 23.6, "lower_bound": 50.0, "resolution": 1.0, "setpoint": 50.0, "upper_bound": 90.0 }, - "dev_class": "heater_central", - "location": "0000aaaa0000aaaa0000aaaa0000aa00", "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -29,7 +29,8 @@ "intended_boiler_temperature": 17.0, "modulation_level": 0.0, "return_temperature": 21.7, - "water_pressure": 1.2 + "water_pressure": 1.2, + "water_temperature": 23.6 }, "vendor": "Bosch Thermotechniek B.V." }, From a43b658245509e0d6ac3a89dedea7ce89d450580 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 15:18:39 +0200 Subject: [PATCH 208/371] Update entity_items counts --- fixtures/legacy_anna/data.json | 9 +++++---- tests/test_legacy_anna.py | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/fixtures/legacy_anna/data.json b/fixtures/legacy_anna/data.json index c0adfe8f3..c38e6f0a2 100644 --- a/fixtures/legacy_anna/data.json +++ b/fixtures/legacy_anna/data.json @@ -13,15 +13,15 @@ "flame_state": true, "heating_state": true }, - "boiler_temperature": { + "dev_class": "heater_central", + "location": "0000aaaa0000aaaa0000aaaa0000aa00", + "maximum_boiler_temperature": { "current": 23.6, "lower_bound": 50.0, "resolution": 1.0, "setpoint": 50.0, "upper_bound": 90.0 }, - "dev_class": "heater_central", - "location": "0000aaaa0000aaaa0000aaaa0000aa00", "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -29,7 +29,8 @@ "intended_boiler_temperature": 17.0, "modulation_level": 0.0, "return_temperature": 21.7, - "water_pressure": 1.2 + "water_pressure": 1.2, + "water_temperature": 23.6 }, "vendor": "Bosch Thermotechniek B.V." }, diff --git a/tests/test_legacy_anna.py b/tests/test_legacy_anna.py index bf12e143c..4690a6fb7 100644 --- a/tests/test_legacy_anna.py +++ b/tests/test_legacy_anna.py @@ -30,7 +30,7 @@ async def test_connect_legacy_anna(self): await self.device_test(api, "2020-03-22 00:00:01", testdata) assert api.gateway_id == "0000aaaa0000aaaa0000aaaa0000aa00" - assert self.entity_items == 44 + assert self.entity_items == 45 assert not api.reboot result = await self.tinker_legacy_thermostat(api, schedule_on=False) @@ -65,7 +65,7 @@ async def test_connect_legacy_anna_2(self): await self.device_test(api, "2020-05-03 00:00:01", testdata) assert api.gateway_id == "be81e3f8275b4129852c4d8d550ae2eb" - assert self.entity_items == 44 + assert self.entity_items == 45 result = await self.tinker_legacy_thermostat(api) assert result From 57cd4645d902530e29b48073ea26d4a0f0cb96aa Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 15:19:30 +0200 Subject: [PATCH 209/371] Update test-json --- tests/data/anna/legacy_anna_2.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/data/anna/legacy_anna_2.json b/tests/data/anna/legacy_anna_2.json index 635756ecf..160911444 100644 --- a/tests/data/anna/legacy_anna_2.json +++ b/tests/data/anna/legacy_anna_2.json @@ -51,15 +51,15 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { + "dev_class": "heater_central", + "location": "be81e3f8275b4129852c4d8d550ae2eb", + "maximum_boiler_temperature": { "current": 54.0, "lower_bound": 50.0, "resolution": 1.0, "setpoint": 70.0, "upper_bound": 90.0 }, - "dev_class": "heater_central", - "location": "be81e3f8275b4129852c4d8d550ae2eb", "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -67,7 +67,8 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 0.0, - "water_pressure": 1.7 + "water_pressure": 1.7, + "water_temperature": 54.0 } } } From e6da846a434cfc4867a2d3b5a9f1707bb10fa5f8 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 15:21:54 +0200 Subject: [PATCH 210/371] Mypy fix --- plugwise/smile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 4442d41a3..5f5235d7f 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -261,7 +261,7 @@ async def set_dhw_mode( - 2 modes, comfort and off, representing the dhw comfort mode on and off switch states, - and the 5 modes available on the Loria. """ - if mode not in self._dhw_allowed_modes: + if self._dhw_allowed_modes is not None and mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") match length: From 12c0bafbca44b1b2de211a4f89d1834b949cc9b5 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 15:24:33 +0200 Subject: [PATCH 211/371] Fix manual fixtures script --- scripts/manual_fixtures.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index 5149001c9..f9cb11d99 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -127,7 +127,7 @@ def json_writer(manual_name: str, output: dict) -> None: m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["binary_sensors"]["flame_state"] = ( False ) -m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["boiler_temperature"]["current"] = 19.0 +m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["maximum_boiler_temperature"]["current"] = 19.0 m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["sensors"][ "intended_boiler_temperature" ] = 17.5 @@ -182,11 +182,11 @@ def json_writer(manual_name: str, output: dict) -> None: m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["binary_sensors"]["flame_state"] = ( False ) -m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["boiler_temperature"]["current"] = 37.0 +m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["maximum_boiler_temperature"]["current"] = 37.0 m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["sensors"][ "intended_boiler_temperature" ] = 38.1 -m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["dhw_temperature"] = { +m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["max_dhw_temperature"] = { "current": 37.0, "setpoint": 60.0, "lower_bound": 40.0, @@ -244,8 +244,8 @@ def json_writer(manual_name: str, output: dict) -> None: "cooling_state" ] = True -m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["boiler_temperature"]["current"] = 22.7 -m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["dhw_temperature"]["current"] = 41.5 +m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["maximum_boiler_temperature"]["current"] = 22.7 +m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["max_dhw_temperature"]["current"] = 41.5 m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ "intended_boiler_temperature" ] = 0.0 @@ -297,8 +297,8 @@ def json_writer(manual_name: str, output: dict) -> None: "cooling_state" ] = False -m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["boiler_temperature"]["current"] = 19.1 -m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["dhw_temperature"]["current"] = 46.3 +m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["maximum_boiler_temperature"]["current"] = 19.1 +m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["max_dhw_temperature"]["current"] = 46.3 m_anna_heatpump_idle["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ "intended_boiler_temperature" ] = 18.0 From 828f39de099ca93e0a3a63d0fd3afa7b23dde08b Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 17:56:52 +0200 Subject: [PATCH 212/371] Save updated fixture --- fixtures/legacy_anna_2/data.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fixtures/legacy_anna_2/data.json b/fixtures/legacy_anna_2/data.json index 635756ecf..160911444 100644 --- a/fixtures/legacy_anna_2/data.json +++ b/fixtures/legacy_anna_2/data.json @@ -51,15 +51,15 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { + "dev_class": "heater_central", + "location": "be81e3f8275b4129852c4d8d550ae2eb", + "maximum_boiler_temperature": { "current": 54.0, "lower_bound": 50.0, "resolution": 1.0, "setpoint": 70.0, "upper_bound": 90.0 }, - "dev_class": "heater_central", - "location": "be81e3f8275b4129852c4d8d550ae2eb", "model": "Generic heater", "name": "OpenTherm", "sensors": { @@ -67,7 +67,8 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 0.0, - "water_pressure": 1.7 + "water_pressure": 1.7, + "water_temperature": 54.0 } } } From fc7ff85e095159878c4a26832916026316f7b742 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 18:14:53 +0200 Subject: [PATCH 213/371] Update m_adam_heating --- scripts/manual_fixtures.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index f9cb11d99..cd467a2c5 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -193,6 +193,9 @@ def json_writer(manual_name: str, output: dict) -> None: "upper_bound": 60.0, "resolution": 0.01, } +dhw_mode = m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["select_dhw_mode"] +m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["dhw_mode"] = dhw_mode +m_adam_heating["056ee145a816487eaa69243c3280f8bf"].pop("select_dhw_mode") json_writer("m_adam_heating", m_adam_heating) From d78ea9e7a6fdc70025dda84fe10a283462db8974 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 18:17:51 +0200 Subject: [PATCH 214/371] Save updated manual fixtures --- fixtures/m_adam_cooling/data.json | 20 ++++++++------ fixtures/m_adam_heating/data.json | 26 +++++++++++-------- .../m_adam_heating_off_schedule/data.json | 26 +++++++++++-------- fixtures/m_adam_jip/data.json | 24 ++++++++++------- fixtures/m_anna_heatpump_cooling/data.json | 24 ++++++++++------- fixtures/m_anna_heatpump_idle/data.json | 24 ++++++++++------- 6 files changed, 84 insertions(+), 60 deletions(-) diff --git a/fixtures/m_adam_cooling/data.json b/fixtures/m_adam_cooling/data.json index 6aaec3e90..da02a5282 100644 --- a/fixtures/m_adam_cooling/data.json +++ b/fixtures/m_adam_cooling/data.json @@ -7,24 +7,28 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 19.0, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "dev_class": "heater_central", "dhw_modes": [ "comfort", "eco" ], "location": "bc93488efab249e5bc54fd7e175a6f91", + "maximum_boiler_temperature": { + "current": 19.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "model": "Generic heater", "name": "OpenTherm", "select_dhw_mode": "eco", "sensors": { - "intended_boiler_temperature": 17.5 + "intended_boiler_temperature": 17.5, + "water_temperature": 43.0 + }, + "switches": { + "dhw_cm_switch": false } }, "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { diff --git a/fixtures/m_adam_heating/data.json b/fixtures/m_adam_heating/data.json index ad2fb4df1..ff886503f 100644 --- a/fixtures/m_adam_heating/data.json +++ b/fixtures/m_adam_heating/data.json @@ -6,31 +6,35 @@ "flame_state": false, "heating_state": true }, - "boiler_temperature": { - "current": 37.0, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "dev_class": "heater_central", + "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "bc93488efab249e5bc54fd7e175a6f91", + "max_dhw_temperature": { "current": 37.0, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "bc93488efab249e5bc54fd7e175a6f91", + "maximum_boiler_temperature": { + "current": 37.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "eco", "sensors": { - "intended_boiler_temperature": 38.1 + "intended_boiler_temperature": 38.1, + "water_temperature": 43.0 + }, + "switches": { + "dhw_cm_switch": false } }, "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { diff --git a/fixtures/m_adam_heating_off_schedule/data.json b/fixtures/m_adam_heating_off_schedule/data.json index 9b2b1b245..d4680bb43 100644 --- a/fixtures/m_adam_heating_off_schedule/data.json +++ b/fixtures/m_adam_heating_off_schedule/data.json @@ -6,31 +6,35 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 37.0, - "lower_bound": 25.0, - "resolution": 0.01, - "setpoint": 50.0, - "upper_bound": 95.0 - }, "dev_class": "heater_central", + "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "bc93488efab249e5bc54fd7e175a6f91", + "max_dhw_temperature": { "current": 37.0, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "bc93488efab249e5bc54fd7e175a6f91", + "maximum_boiler_temperature": { + "current": 37.0, + "lower_bound": 25.0, + "resolution": 0.01, + "setpoint": 50.0, + "upper_bound": 95.0 + }, "model": "Generic heater", "name": "OpenTherm", - "select_dhw_mode": "eco", "sensors": { - "intended_boiler_temperature": 0.0 + "intended_boiler_temperature": 0.0, + "water_temperature": 43.0 + }, + "switches": { + "dhw_cm_switch": false } }, "14df5c4dc8cb4ba69f9d1ac0eaf7c5c6": { diff --git a/fixtures/m_adam_jip/data.json b/fixtures/m_adam_jip/data.json index 28867a99d..fafc3cb2a 100644 --- a/fixtures/m_adam_jip/data.json +++ b/fixtures/m_adam_jip/data.json @@ -392,27 +392,27 @@ "flame_state": false, "heating_state": false }, - "boiler_temperature": { - "current": 37.3, - "lower_bound": 20.0, - "resolution": 0.01, - "setpoint": 90.0, - "upper_bound": 90.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "9e4433a9d69f40b3aefd15e74395eaec", + "max_dhw_temperature": { "current": 37.3, "lower_bound": 40.0, "resolution": 0.01, "setpoint": 60.0, "upper_bound": 60.0 }, - "location": "9e4433a9d69f40b3aefd15e74395eaec", + "maximum_boiler_temperature": { + "current": 37.3, + "lower_bound": 20.0, + "resolution": 0.01, + "setpoint": 90.0, + "upper_bound": 90.0 + }, "model": "Generic heater", "model_id": "10.20", "name": "OpenTherm", @@ -420,7 +420,11 @@ "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "return_temperature": 37.1, - "water_pressure": 1.4 + "water_pressure": 1.4, + "water_temperature": 37.3 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Remeha B.V." }, diff --git a/fixtures/m_anna_heatpump_cooling/data.json b/fixtures/m_anna_heatpump_cooling/data.json index 018610533..0c846804d 100644 --- a/fixtures/m_anna_heatpump_cooling/data.json +++ b/fixtures/m_anna_heatpump_cooling/data.json @@ -28,27 +28,27 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 22.7, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "a57efe5f145f498c9be62a9b63626fbf", + "max_dhw_temperature": { "current": 41.5, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 22.7, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { @@ -56,7 +56,11 @@ "modulation_level": 40, "outdoor_air_temperature": 28.0, "return_temperature": 23.8, - "water_pressure": 1.57 + "water_pressure": 1.57, + "water_temperature": 29.1 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, diff --git a/fixtures/m_anna_heatpump_idle/data.json b/fixtures/m_anna_heatpump_idle/data.json index 2578a20a0..329e502b3 100644 --- a/fixtures/m_anna_heatpump_idle/data.json +++ b/fixtures/m_anna_heatpump_idle/data.json @@ -28,27 +28,27 @@ "heating_state": false, "secondary_boiler_state": false }, - "boiler_temperature": { - "current": 19.1, - "lower_bound": 0.0, - "resolution": 1.0, - "setpoint": 60.0, - "upper_bound": 100.0 - }, "dev_class": "heater_central", "dhw_mode": "eco", "dhw_modes": [ "comfort", "eco" ], - "dhw_temperature": { + "location": "a57efe5f145f498c9be62a9b63626fbf", + "max_dhw_temperature": { "current": 46.3, "lower_bound": 35.0, "resolution": 0.01, "setpoint": 53.0, "upper_bound": 60.0 }, - "location": "a57efe5f145f498c9be62a9b63626fbf", + "maximum_boiler_temperature": { + "current": 19.1, + "lower_bound": 0.0, + "resolution": 1.0, + "setpoint": 60.0, + "upper_bound": 100.0 + }, "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { @@ -56,7 +56,11 @@ "modulation_level": 0, "outdoor_air_temperature": 28.2, "return_temperature": 22.0, - "water_pressure": 1.57 + "water_pressure": 1.57, + "water_temperature": 29.1 + }, + "switches": { + "dhw_cm_switch": false }, "vendor": "Techneco" }, From 51f0d0f2f442a453b7f739316959705e4506b249 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 18:23:25 +0200 Subject: [PATCH 215/371] Shorten guard --- plugwise/smile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 5f5235d7f..39deea4ce 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -261,7 +261,7 @@ async def set_dhw_mode( - 2 modes, comfort and off, representing the dhw comfort mode on and off switch states, - and the 5 modes available on the Loria. """ - if self._dhw_allowed_modes is not None and mode not in self._dhw_allowed_modes: + if self._dhw_allowed_modes and mode not in self._dhw_allowed_modes: raise PlugwiseError("Plugwise: invalid dhw mode.") match length: From 76c0b3618dd1be857043578925f219d5b147949c Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 18:39:57 +0200 Subject: [PATCH 216/371] Update CHANGELOG --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 191a82937..81f77b84d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## v1.14.0 + +- Include both old and new entities for a step-wise introduction of water_heaters in HA via PR [#895](https://github.com/plugwise/python-plugwise/pull/895): + - Keep the `dhw_cm_switch` and add the `dhw_modes list` and the `select_dhw_mode` string that will replace the `dhw_cm_switch` in the future + - `dhw_cm_switch` = `on` --> `select_dhw_mode` = `comfort`, `dhw_cm_switch` = `off` --> `select_dhw_mode` = `eco` + - Add a `current` (`temperature`) key to the `maximum_boiler_temperature` and `max_dhw_temperature` dicts + ## v1.13.1 - Implement dedicated boiler_temperature dict for legacy Anna via PR [#893](https://github.com/plugwise/python-plugwise/pull/893) From 5f0925bf2e7346fb4c2e1eaf507d42a57cf59588 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 18:40:33 +0200 Subject: [PATCH 217/371] Bump version to v1.14.0a0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 892bbf11e..eb37a14bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "plugwise" -version = "1.13.1" +version = "1.14.0a0" license = "MIT" description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3." readme = "README.md" From bd6ee0891b8d88fe352b93718a49d7ba552df584 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 18:43:16 +0200 Subject: [PATCH 218/371] One more update for m_adam_heating, as suggested --- scripts/manual_fixtures.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index cd467a2c5..a62d9cf3b 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -186,6 +186,9 @@ def json_writer(manual_name: str, output: dict) -> None: m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["sensors"][ "intended_boiler_temperature" ] = 38.1 +m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["sensors"][ + "water_temperature" +] = 37.0 m_adam_heating["056ee145a816487eaa69243c3280f8bf"]["max_dhw_temperature"] = { "current": 37.0, "setpoint": 60.0, From 5a41fa6484cc919d645fe60b4b6046ded62dfa2f Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 18:44:54 +0200 Subject: [PATCH 219/371] Save updated manual fixtures --- fixtures/m_adam_heating/data.json | 2 +- fixtures/m_adam_heating_off_schedule/data.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fixtures/m_adam_heating/data.json b/fixtures/m_adam_heating/data.json index ff886503f..719e9f212 100644 --- a/fixtures/m_adam_heating/data.json +++ b/fixtures/m_adam_heating/data.json @@ -31,7 +31,7 @@ "name": "OpenTherm", "sensors": { "intended_boiler_temperature": 38.1, - "water_temperature": 43.0 + "water_temperature": 37.0 }, "switches": { "dhw_cm_switch": false diff --git a/fixtures/m_adam_heating_off_schedule/data.json b/fixtures/m_adam_heating_off_schedule/data.json index d4680bb43..fb9db1939 100644 --- a/fixtures/m_adam_heating_off_schedule/data.json +++ b/fixtures/m_adam_heating_off_schedule/data.json @@ -31,7 +31,7 @@ "name": "OpenTherm", "sensors": { "intended_boiler_temperature": 0.0, - "water_temperature": 43.0 + "water_temperature": 37.0 }, "switches": { "dhw_cm_switch": false From 95aeccfe2f63ad71dce20c8e1022b01d5926d675 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Sun, 12 Jul 2026 18:50:58 +0200 Subject: [PATCH 220/371] Update docstring as suggested, keep the dhw_temperature sensor for now --- plugwise/common.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugwise/common.py b/plugwise/common.py index 49c735401..2c784b187 100644 --- a/plugwise/common.py +++ b/plugwise/common.py @@ -295,19 +295,16 @@ def _get_module_data( def _create_special_dicts( self, item: str, data: GwEntityData, temp_dict: ActuatorData ) -> tuple[str, ActuatorData]: - """Create dhw_temperature and boiler_temperature dicts. - - The initial item-names are updated and a current key is added. - Also, the copied sensor data is removed. - """ + """Update the max_dhw_temperature and maximum_boiler_temperature dicts with a current key.""" if item == DHW_SETPOINT: item = "max_dhw_temperature" if DHW_SETPOINT in data["sensors"]: data["sensors"].pop(DHW_SETPOINT) self._count -= 1 + # Use dhw_temperature when available, otherwise use water_temperature if "dhw_temperature" in data["sensors"]: temp_dict["current"] = data["sensors"]["dhw_temperature"] - data["sensors"].pop("dhw_temperature") + self._count += 1 elif "water_temperature" in data["sensors"]: temp_dict["current"] = data["sensors"]["water_temperature"] self._count += 1 From 9a20b573c10fd7802706b66e1061c261df0fa9ba Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 08:03:17 +0200 Subject: [PATCH 221/371] Enable skip_testing --- tests/test_adam.py | 18 +++++++++--------- tests/test_anna.py | 32 ++++++++++++++++---------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index a1270b39f..d03404020 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -23,7 +23,7 @@ async def test_connect_adam_bad_thermostat(self, caplog): testdata = await self.load_testdata(SMILE_TYPE, self.smile_setup) server, api, client = await self.connect_wrapper(raise_timeout=True) - await self.device_test(api, "2023-12-17 00:00:01", testdata) + await self.device_test(api, "2023-12-17 00:00:01", testdata, skip_testing=True) assert "Thermostat data in Zone" in caplog.text await api.close_connection() @@ -45,7 +45,7 @@ async def test_connect_adam_plus_anna_new(self): smile_version="3.9.0", ) - test_items = await self.device_test(api, "2025-10-12 00:00:01", testdata) + test_items = await self.device_test(api, "2025-10-12 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "da224107914542988a88561b4452b0f6" assert self.entity_items == 234 assert test_items == self.entity_items @@ -218,7 +218,7 @@ async def test_connect_adam_plus_anna_new_regulation_off(self): server, api, client = await self.connect_wrapper() assert api.smile.hostname == "smile000000" - await self.device_test(api, "2023-12-17 00:00:01", testdata) + await self.device_test(api, "2023-12-17 00:00:01", testdata, skip_testing=True) await api.close_connection() await self.disconnect(server, client) @@ -238,7 +238,7 @@ async def test_connect_adam_zone_per_device(self): smile_version="3.0.15", ) - test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata) + test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "fe799307f1624099878210aa0b9f1475" assert self.entity_items == 386 assert test_items == self.entity_items @@ -313,7 +313,7 @@ async def test_connect_adam_multiple_devices_per_zone(self): smile_version="3.0.15", ) - test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata) + test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) assert self.entity_items == 394 assert test_items == self.entity_items @@ -350,7 +350,7 @@ async def test_adam_heatpump_cooling(self): testdata = await self.load_testdata(SMILE_TYPE, self.smile_setup) server, api, client = await self.connect_wrapper() - test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) + test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata, skip_testing=True) assert self.entity_items == 542 assert test_items == self.entity_items assert self.cooling_present @@ -374,7 +374,7 @@ async def test_connect_adam_onoff_cooling_fake_firmware(self): smile_version=None, ) - test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) + test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata, skip_testing=True) assert self.entity_items == 73 assert test_items == self.entity_items assert self.cooling_present @@ -398,7 +398,7 @@ async def test_connect_adam_plus_anna(self): smile_version="3.0.15", ) - test_items = await self.device_test(api, "2020-03-22 00:00:01", testdata) + test_items = await self.device_test(api, "2020-03-22 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "b128b4bbbd1f47e9bf4d756e8fb5ee94" assert self.entity_items == 85 assert test_items == self.entity_items @@ -439,7 +439,7 @@ async def test_adam_plus_jip(self): testdata = await self.load_testdata(SMILE_TYPE, self.smile_setup) server, api, client = await self.connect_wrapper() - test_items = await self.device_test(api, "2021-06-20 00:00:01", testdata) + test_items = await self.device_test(api, "2021-06-20 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "b5c2386c6f6342669e50fe49dd05b188" assert self.entity_items == 273 assert test_items == self.entity_items diff --git a/tests/test_anna.py b/tests/test_anna.py index f702f8b0b..eaff34362 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -27,7 +27,7 @@ async def test_connect_anna_v4(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-05 00:00:01", testdata) + await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "0466eae8520144c78afb29628384edeb" assert self.entity_items == 64 assert not self.notifications @@ -100,7 +100,7 @@ async def test_connect_anna_v4_dhw(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-05 00:00:01", testdata) + await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) assert self.entity_items == 64 assert not self.notifications @@ -129,7 +129,7 @@ async def test_connect_anna_v4_no_tag(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-05 00:00:01", testdata) + await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) assert self.entity_items == 64 result = await self.tinker_thermostat( @@ -157,7 +157,7 @@ async def test_connect_anna_without_boiler_fw441(self): smile_version="4.4.1", ) - await self.device_test(api, "2022-05-16 00:00:01", testdata) + await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) assert self.entity_items == 41 assert not self.notifications @@ -184,7 +184,7 @@ async def test_connect_anna_heatpump_heating(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-12 00:00:01", testdata) + await self.device_test(api, "2020-04-12 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" assert self.entity_items == 72 assert not self.notifications @@ -240,7 +240,7 @@ async def test_connect_anna_heatpump_cooling(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-19 00:00:01", testdata) + await self.device_test(api, "2020-04-19 00:00:01", testdata, skip_testing=True) assert self.entity_items == 69 assert self.cooling_present assert not self.notifications @@ -286,7 +286,7 @@ async def test_connect_anna_heatpump_cooling_fake_firmware(self): smile_version="4.10.10", ) - await self.device_test(api, "2020-04-19 00:00:01", testdata) + await self.device_test(api, "2020-04-19 00:00:01", testdata, skip_testing=True) assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled @@ -311,7 +311,7 @@ async def test_connect_anna_elga_no_cooling(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-12 00:00:01", testdata) + await self.device_test(api, "2020-04-12 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" assert self.entity_items == 68 assert not self.notifications @@ -335,7 +335,7 @@ async def test_connect_anna_elga_2(self): smile_version="4.4.1", ) - await self.device_test(api, "2022-03-13 00:00:01", testdata) + await self.device_test(api, "2022-03-13 00:00:01", testdata, skip_testing=True) assert self.entity_items == 63 assert api.gateway_id == "fb49af122f6e4b0f91267e1cf7666d6f" assert self.cooling_present @@ -354,7 +354,7 @@ async def test_connect_anna_elga_2_schedule_off(self): server, api, client = await self.connect_wrapper() assert api.smile.hostname == "smile000000" - await self.device_test(api, "2022-03-13 00:00:01", testdata) + await self.device_test(api, "2022-03-13 00:00:01", testdata, skip_testing=True) assert not self._cooling_enabled assert self.entity_items == 68 @@ -386,7 +386,7 @@ async def test_connect_anna_elga_2_cooling(self): smile_version="4.2.1", ) - await self.device_test(api, "2022-03-10 00:00:01", testdata) + await self.device_test(api, "2022-03-10 00:00:01", testdata, skip_testing=True) assert self.entity_items == 68 assert not self.notifications @@ -439,7 +439,7 @@ async def test_connect_anna_loria_heating_idle(self): smile_version=None, ) - await self.device_test(api, "2022-05-16 00:00:01", testdata) + await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -508,7 +508,7 @@ async def test_connect_anna_loria_cooling_active(self): smile_version=None, ) - await self.device_test(api, "2022-05-16 00:00:01", testdata) + await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled @@ -531,7 +531,7 @@ async def test_connect_anna_loria_driessens(self): smile_version=None, ) - await self.device_test(api, "2022-05-16 00:00:01", testdata) + await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -554,7 +554,7 @@ async def test_connect_anna_p1(self): smile_version=None, ) - await self.device_test(api, "2025-11-02 00:00:01", testdata) + await self.device_test(api, "2025-11-02 00:00:01", testdata, skip_testing=True) assert self.entity_items == 78 await api.close_connection() @@ -575,7 +575,7 @@ async def test_connect_anna_v4_no_modules(self): smile_version=None, ) - await self.device_test(api, "2022-05-16 00:00:01", testdata) + await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) assert self.entity_items == 12 await api.close_connection() From 2dba7921ae3d80c6ff61c654de31e2871b5af4d9 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 08:05:22 +0200 Subject: [PATCH 222/371] Disable entity_items count --- tests/test_adam.py | 28 ++++++++++++++-------------- tests/test_anna.py | 34 +++++++++++++++++----------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index d03404020..70f80e5e8 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -47,8 +47,8 @@ async def test_connect_adam_plus_anna_new(self): test_items = await self.device_test(api, "2025-10-12 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "da224107914542988a88561b4452b0f6" - assert self.entity_items == 234 - assert test_items == self.entity_items + # assert self.entity_items == 234 + # assert test_items == self.entity_items assert self.entity_list == [ "da224107914542988a88561b4452b0f6", "056ee145a816487eaa69243c3280f8bf", @@ -240,8 +240,8 @@ async def test_connect_adam_zone_per_device(self): test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "fe799307f1624099878210aa0b9f1475" - assert self.entity_items == 386 - assert test_items == self.entity_items + # assert self.entity_items == 386 + # assert test_items == self.entity_items assert "af82e4ccf9c548528166d38e560662a4" in self.notifications await api.delete_notification() @@ -314,8 +314,8 @@ async def test_connect_adam_multiple_devices_per_zone(self): ) test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 394 - assert test_items == self.entity_items + # assert self.entity_items == 394 + # assert test_items == self.entity_items assert "af82e4ccf9c548528166d38e560662a4" in self.notifications @@ -351,8 +351,8 @@ async def test_adam_heatpump_cooling(self): server, api, client = await self.connect_wrapper() test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 542 - assert test_items == self.entity_items + # assert self.entity_items == 542 + # assert test_items == self.entity_items assert self.cooling_present assert self._cooling_enabled @@ -375,8 +375,8 @@ async def test_connect_adam_onoff_cooling_fake_firmware(self): ) test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 73 - assert test_items == self.entity_items + # assert self.entity_items == 73 + # assert test_items == self.entity_items assert self.cooling_present # assert self._cooling_enabled - no cooling_enabled indication present @@ -400,8 +400,8 @@ async def test_connect_adam_plus_anna(self): test_items = await self.device_test(api, "2020-03-22 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "b128b4bbbd1f47e9bf4d756e8fb5ee94" - assert self.entity_items == 85 - assert test_items == self.entity_items + # assert self.entity_items == 85 + # assert test_items == self.entity_items assert "6fb89e35caeb4b1cb275184895202d84" in self.notifications result = await self.tinker_thermostat( @@ -441,8 +441,8 @@ async def test_adam_plus_jip(self): test_items = await self.device_test(api, "2021-06-20 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "b5c2386c6f6342669e50fe49dd05b188" - assert self.entity_items == 273 - assert test_items == self.entity_items + # assert self.entity_items == 273 + # assert test_items == self.entity_items # Negative test result = await self.tinker_thermostat( diff --git a/tests/test_anna.py b/tests/test_anna.py index eaff34362..daa3663d4 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -29,7 +29,7 @@ async def test_connect_anna_v4(self): await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "0466eae8520144c78afb29628384edeb" - assert self.entity_items == 64 + # assert self.entity_items == 64 assert not self.notifications assert not self.cooling_present @@ -101,7 +101,7 @@ async def test_connect_anna_v4_dhw(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 64 + # assert self.entity_items == 64 assert not self.notifications result = await self.tinker_thermostat( @@ -130,7 +130,7 @@ async def test_connect_anna_v4_no_tag(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 64 + # assert self.entity_items == 64 result = await self.tinker_thermostat( api, @@ -158,7 +158,7 @@ async def test_connect_anna_without_boiler_fw441(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 41 + # assert self.entity_items == 41 assert not self.notifications result = await self.tinker_thermostat( @@ -186,7 +186,7 @@ async def test_connect_anna_heatpump_heating(self): await self.device_test(api, "2020-04-12 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - assert self.entity_items == 72 + # assert self.entity_items == 72 assert not self.notifications assert self.cooling_present assert not self._cooling_enabled @@ -216,7 +216,7 @@ async def test_connect_anna_heatpump_heating(self): await self.device_test( api, "2020-04-13 00:00:01", testdata_updated, initialize=False ) - assert self.entity_items == 69 + # assert self.entity_items == 69 await api.close_connection() await self.disconnect(server, client) @@ -241,7 +241,7 @@ async def test_connect_anna_heatpump_cooling(self): ) await self.device_test(api, "2020-04-19 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 69 + # assert self.entity_items == 69 assert self.cooling_present assert not self.notifications @@ -287,7 +287,7 @@ async def test_connect_anna_heatpump_cooling_fake_firmware(self): ) await self.device_test(api, "2020-04-19 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 69 + # assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled assert self._cooling_active @@ -313,7 +313,7 @@ async def test_connect_anna_elga_no_cooling(self): await self.device_test(api, "2020-04-12 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - assert self.entity_items == 68 + # assert self.entity_items == 68 assert not self.notifications assert not self.cooling_present @@ -336,7 +336,7 @@ async def test_connect_anna_elga_2(self): ) await self.device_test(api, "2022-03-13 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 63 + # assert self.entity_items == 63 assert api.gateway_id == "fb49af122f6e4b0f91267e1cf7666d6f" assert self.cooling_present assert not self._cooling_enabled @@ -356,7 +356,7 @@ async def test_connect_anna_elga_2_schedule_off(self): await self.device_test(api, "2022-03-13 00:00:01", testdata, skip_testing=True) assert not self._cooling_enabled - assert self.entity_items == 68 + # assert self.entity_items == 68 result = await self.tinker_thermostat( api, @@ -387,7 +387,7 @@ async def test_connect_anna_elga_2_cooling(self): ) await self.device_test(api, "2022-03-10 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 68 + # assert self.entity_items == 68 assert not self.notifications assert self.cooling_present @@ -440,7 +440,7 @@ async def test_connect_anna_loria_heating_idle(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 69 + # assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -509,7 +509,7 @@ async def test_connect_anna_loria_cooling_active(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 69 + # assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled @@ -532,7 +532,7 @@ async def test_connect_anna_loria_driessens(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 69 + # assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -555,7 +555,7 @@ async def test_connect_anna_p1(self): ) await self.device_test(api, "2025-11-02 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 78 + # assert self.entity_items == 78 await api.close_connection() await self.disconnect(server, client) @@ -576,7 +576,7 @@ async def test_connect_anna_v4_no_modules(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - assert self.entity_items == 12 + # assert self.entity_items == 12 await api.close_connection() await self.disconnect(server, client) From 18d9f5fe1070fd517eb70f0cc62ff6c605983c04 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 08:19:24 +0200 Subject: [PATCH 223/371] Save updated test-jsons --- tests/data/adam/adam_bad_thermostat.json | 1 + tests/data/adam/adam_heatpump_cooling.json | 1 + tests/data/adam/adam_onoff_cooling_fake_firmware.json | 1 + tests/data/anna/anna_elga_no_cooling.json | 1 + tests/data/anna/anna_heatpump_heating.json | 1 + tests/data/anna/anna_loria_cooling_active.json | 1 + tests/data/anna/anna_loria_driessens.json | 1 + tests/data/anna/anna_loria_heating_idle.json | 1 + 8 files changed, 8 insertions(+) diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index 9c768485e..1f1554832 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -31,6 +31,7 @@ "model_id": "1.1", "name": "OpenTherm", "sensors": { + "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.6, diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index b75f0fe4d..7e0c0f849 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -79,6 +79,7 @@ "model_id": "17.1", "name": "OpenTherm", "sensors": { + "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, diff --git a/tests/data/adam/adam_onoff_cooling_fake_firmware.json b/tests/data/adam/adam_onoff_cooling_fake_firmware.json index a674140d2..f0100393d 100644 --- a/tests/data/adam/adam_onoff_cooling_fake_firmware.json +++ b/tests/data/adam/adam_onoff_cooling_fake_firmware.json @@ -31,6 +31,7 @@ "model": "Unknown", "name": "OnOff", "sensors": { + "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index 08666fb01..8f7a49383 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -50,6 +50,7 @@ "model": "Generic heater", "name": "OpenTherm", "sensors": { + "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, diff --git a/tests/data/anna/anna_heatpump_heating.json b/tests/data/anna/anna_heatpump_heating.json index 12db9c1f6..91040f4d4 100644 --- a/tests/data/anna/anna_heatpump_heating.json +++ b/tests/data/anna/anna_heatpump_heating.json @@ -52,6 +52,7 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { + "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, diff --git a/tests/data/anna/anna_loria_cooling_active.json b/tests/data/anna/anna_loria_cooling_active.json index d690d1fec..db44a078b 100644 --- a/tests/data/anna/anna_loria_cooling_active.json +++ b/tests/data/anna/anna_loria_cooling_active.json @@ -98,6 +98,7 @@ "model_id": "173", "name": "OpenTherm", "sensors": { + "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 100, "outdoor_air_temperature": 17.2, diff --git a/tests/data/anna/anna_loria_driessens.json b/tests/data/anna/anna_loria_driessens.json index a1eb54217..07db02be6 100644 --- a/tests/data/anna/anna_loria_driessens.json +++ b/tests/data/anna/anna_loria_driessens.json @@ -100,6 +100,7 @@ "model_id": "173", "name": "OpenTherm", "sensors": { + "dhw_temperature": 49.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 7.5, diff --git a/tests/data/anna/anna_loria_heating_idle.json b/tests/data/anna/anna_loria_heating_idle.json index c3bd260c4..d21b672c4 100644 --- a/tests/data/anna/anna_loria_heating_idle.json +++ b/tests/data/anna/anna_loria_heating_idle.json @@ -98,6 +98,7 @@ "model_id": "173", "name": "OpenTherm", "sensors": { + "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 17.2, From b5d095f3e3d7d5f5ae8256cbc7f55dd8229361fa Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 08:20:23 +0200 Subject: [PATCH 224/371] Revert "Save updated test-jsons" This reverts commit 18d9f5fe1070fd517eb70f0cc62ff6c605983c04. --- tests/data/adam/adam_bad_thermostat.json | 1 - tests/data/adam/adam_heatpump_cooling.json | 1 - tests/data/adam/adam_onoff_cooling_fake_firmware.json | 1 - tests/data/anna/anna_elga_no_cooling.json | 1 - tests/data/anna/anna_heatpump_heating.json | 1 - tests/data/anna/anna_loria_cooling_active.json | 1 - tests/data/anna/anna_loria_driessens.json | 1 - tests/data/anna/anna_loria_heating_idle.json | 1 - 8 files changed, 8 deletions(-) diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index 1f1554832..9c768485e 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -31,7 +31,6 @@ "model_id": "1.1", "name": "OpenTherm", "sensors": { - "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.6, diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index 7e0c0f849..b75f0fe4d 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -79,7 +79,6 @@ "model_id": "17.1", "name": "OpenTherm", "sensors": { - "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, diff --git a/tests/data/adam/adam_onoff_cooling_fake_firmware.json b/tests/data/adam/adam_onoff_cooling_fake_firmware.json index f0100393d..a674140d2 100644 --- a/tests/data/adam/adam_onoff_cooling_fake_firmware.json +++ b/tests/data/adam/adam_onoff_cooling_fake_firmware.json @@ -31,7 +31,6 @@ "model": "Unknown", "name": "OnOff", "sensors": { - "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index 8f7a49383..08666fb01 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -50,7 +50,6 @@ "model": "Generic heater", "name": "OpenTherm", "sensors": { - "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, diff --git a/tests/data/anna/anna_heatpump_heating.json b/tests/data/anna/anna_heatpump_heating.json index 91040f4d4..12db9c1f6 100644 --- a/tests/data/anna/anna_heatpump_heating.json +++ b/tests/data/anna/anna_heatpump_heating.json @@ -52,7 +52,6 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { - "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, diff --git a/tests/data/anna/anna_loria_cooling_active.json b/tests/data/anna/anna_loria_cooling_active.json index db44a078b..d690d1fec 100644 --- a/tests/data/anna/anna_loria_cooling_active.json +++ b/tests/data/anna/anna_loria_cooling_active.json @@ -98,7 +98,6 @@ "model_id": "173", "name": "OpenTherm", "sensors": { - "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 100, "outdoor_air_temperature": 17.2, diff --git a/tests/data/anna/anna_loria_driessens.json b/tests/data/anna/anna_loria_driessens.json index 07db02be6..a1eb54217 100644 --- a/tests/data/anna/anna_loria_driessens.json +++ b/tests/data/anna/anna_loria_driessens.json @@ -100,7 +100,6 @@ "model_id": "173", "name": "OpenTherm", "sensors": { - "dhw_temperature": 49.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 7.5, diff --git a/tests/data/anna/anna_loria_heating_idle.json b/tests/data/anna/anna_loria_heating_idle.json index d21b672c4..c3bd260c4 100644 --- a/tests/data/anna/anna_loria_heating_idle.json +++ b/tests/data/anna/anna_loria_heating_idle.json @@ -98,7 +98,6 @@ "model_id": "173", "name": "OpenTherm", "sensors": { - "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 17.2, From 8389faa565ecc22d8953c602715969f525478518 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 08:20:31 +0200 Subject: [PATCH 225/371] Revert "Disable entity_items count" This reverts commit 2dba7921ae3d80c6ff61c654de31e2871b5af4d9. --- tests/test_adam.py | 28 ++++++++++++++-------------- tests/test_anna.py | 34 +++++++++++++++++----------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index 70f80e5e8..d03404020 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -47,8 +47,8 @@ async def test_connect_adam_plus_anna_new(self): test_items = await self.device_test(api, "2025-10-12 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "da224107914542988a88561b4452b0f6" - # assert self.entity_items == 234 - # assert test_items == self.entity_items + assert self.entity_items == 234 + assert test_items == self.entity_items assert self.entity_list == [ "da224107914542988a88561b4452b0f6", "056ee145a816487eaa69243c3280f8bf", @@ -240,8 +240,8 @@ async def test_connect_adam_zone_per_device(self): test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "fe799307f1624099878210aa0b9f1475" - # assert self.entity_items == 386 - # assert test_items == self.entity_items + assert self.entity_items == 386 + assert test_items == self.entity_items assert "af82e4ccf9c548528166d38e560662a4" in self.notifications await api.delete_notification() @@ -314,8 +314,8 @@ async def test_connect_adam_multiple_devices_per_zone(self): ) test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 394 - # assert test_items == self.entity_items + assert self.entity_items == 394 + assert test_items == self.entity_items assert "af82e4ccf9c548528166d38e560662a4" in self.notifications @@ -351,8 +351,8 @@ async def test_adam_heatpump_cooling(self): server, api, client = await self.connect_wrapper() test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 542 - # assert test_items == self.entity_items + assert self.entity_items == 542 + assert test_items == self.entity_items assert self.cooling_present assert self._cooling_enabled @@ -375,8 +375,8 @@ async def test_connect_adam_onoff_cooling_fake_firmware(self): ) test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 73 - # assert test_items == self.entity_items + assert self.entity_items == 73 + assert test_items == self.entity_items assert self.cooling_present # assert self._cooling_enabled - no cooling_enabled indication present @@ -400,8 +400,8 @@ async def test_connect_adam_plus_anna(self): test_items = await self.device_test(api, "2020-03-22 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "b128b4bbbd1f47e9bf4d756e8fb5ee94" - # assert self.entity_items == 85 - # assert test_items == self.entity_items + assert self.entity_items == 85 + assert test_items == self.entity_items assert "6fb89e35caeb4b1cb275184895202d84" in self.notifications result = await self.tinker_thermostat( @@ -441,8 +441,8 @@ async def test_adam_plus_jip(self): test_items = await self.device_test(api, "2021-06-20 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "b5c2386c6f6342669e50fe49dd05b188" - # assert self.entity_items == 273 - # assert test_items == self.entity_items + assert self.entity_items == 273 + assert test_items == self.entity_items # Negative test result = await self.tinker_thermostat( diff --git a/tests/test_anna.py b/tests/test_anna.py index daa3663d4..eaff34362 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -29,7 +29,7 @@ async def test_connect_anna_v4(self): await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "0466eae8520144c78afb29628384edeb" - # assert self.entity_items == 64 + assert self.entity_items == 64 assert not self.notifications assert not self.cooling_present @@ -101,7 +101,7 @@ async def test_connect_anna_v4_dhw(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 64 + assert self.entity_items == 64 assert not self.notifications result = await self.tinker_thermostat( @@ -130,7 +130,7 @@ async def test_connect_anna_v4_no_tag(self): ) await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 64 + assert self.entity_items == 64 result = await self.tinker_thermostat( api, @@ -158,7 +158,7 @@ async def test_connect_anna_without_boiler_fw441(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 41 + assert self.entity_items == 41 assert not self.notifications result = await self.tinker_thermostat( @@ -186,7 +186,7 @@ async def test_connect_anna_heatpump_heating(self): await self.device_test(api, "2020-04-12 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - # assert self.entity_items == 72 + assert self.entity_items == 72 assert not self.notifications assert self.cooling_present assert not self._cooling_enabled @@ -216,7 +216,7 @@ async def test_connect_anna_heatpump_heating(self): await self.device_test( api, "2020-04-13 00:00:01", testdata_updated, initialize=False ) - # assert self.entity_items == 69 + assert self.entity_items == 69 await api.close_connection() await self.disconnect(server, client) @@ -241,7 +241,7 @@ async def test_connect_anna_heatpump_cooling(self): ) await self.device_test(api, "2020-04-19 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 69 + assert self.entity_items == 69 assert self.cooling_present assert not self.notifications @@ -287,7 +287,7 @@ async def test_connect_anna_heatpump_cooling_fake_firmware(self): ) await self.device_test(api, "2020-04-19 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 69 + assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled assert self._cooling_active @@ -313,7 +313,7 @@ async def test_connect_anna_elga_no_cooling(self): await self.device_test(api, "2020-04-12 00:00:01", testdata, skip_testing=True) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - # assert self.entity_items == 68 + assert self.entity_items == 68 assert not self.notifications assert not self.cooling_present @@ -336,7 +336,7 @@ async def test_connect_anna_elga_2(self): ) await self.device_test(api, "2022-03-13 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 63 + assert self.entity_items == 63 assert api.gateway_id == "fb49af122f6e4b0f91267e1cf7666d6f" assert self.cooling_present assert not self._cooling_enabled @@ -356,7 +356,7 @@ async def test_connect_anna_elga_2_schedule_off(self): await self.device_test(api, "2022-03-13 00:00:01", testdata, skip_testing=True) assert not self._cooling_enabled - # assert self.entity_items == 68 + assert self.entity_items == 68 result = await self.tinker_thermostat( api, @@ -387,7 +387,7 @@ async def test_connect_anna_elga_2_cooling(self): ) await self.device_test(api, "2022-03-10 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 68 + assert self.entity_items == 68 assert not self.notifications assert self.cooling_present @@ -440,7 +440,7 @@ async def test_connect_anna_loria_heating_idle(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 69 + assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -509,7 +509,7 @@ async def test_connect_anna_loria_cooling_active(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 69 + assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled @@ -532,7 +532,7 @@ async def test_connect_anna_loria_driessens(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 69 + assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -555,7 +555,7 @@ async def test_connect_anna_p1(self): ) await self.device_test(api, "2025-11-02 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 78 + assert self.entity_items == 78 await api.close_connection() await self.disconnect(server, client) @@ -576,7 +576,7 @@ async def test_connect_anna_v4_no_modules(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) - # assert self.entity_items == 12 + assert self.entity_items == 12 await api.close_connection() await self.disconnect(server, client) From a4c4dcbc85c199d7c67b2e350f19ade4bed5af96 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 08:20:39 +0200 Subject: [PATCH 226/371] Revert "Enable skip_testing" This reverts commit 9a20b573c10fd7802706b66e1061c261df0fa9ba. --- tests/test_adam.py | 18 +++++++++--------- tests/test_anna.py | 32 ++++++++++++++++---------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index d03404020..a1270b39f 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -23,7 +23,7 @@ async def test_connect_adam_bad_thermostat(self, caplog): testdata = await self.load_testdata(SMILE_TYPE, self.smile_setup) server, api, client = await self.connect_wrapper(raise_timeout=True) - await self.device_test(api, "2023-12-17 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2023-12-17 00:00:01", testdata) assert "Thermostat data in Zone" in caplog.text await api.close_connection() @@ -45,7 +45,7 @@ async def test_connect_adam_plus_anna_new(self): smile_version="3.9.0", ) - test_items = await self.device_test(api, "2025-10-12 00:00:01", testdata, skip_testing=True) + test_items = await self.device_test(api, "2025-10-12 00:00:01", testdata) assert api.gateway_id == "da224107914542988a88561b4452b0f6" assert self.entity_items == 234 assert test_items == self.entity_items @@ -218,7 +218,7 @@ async def test_connect_adam_plus_anna_new_regulation_off(self): server, api, client = await self.connect_wrapper() assert api.smile.hostname == "smile000000" - await self.device_test(api, "2023-12-17 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2023-12-17 00:00:01", testdata) await api.close_connection() await self.disconnect(server, client) @@ -238,7 +238,7 @@ async def test_connect_adam_zone_per_device(self): smile_version="3.0.15", ) - test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) + test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata) assert api.gateway_id == "fe799307f1624099878210aa0b9f1475" assert self.entity_items == 386 assert test_items == self.entity_items @@ -313,7 +313,7 @@ async def test_connect_adam_multiple_devices_per_zone(self): smile_version="3.0.15", ) - test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) + test_items = await self.device_test(api, "2022-05-16 00:00:01", testdata) assert self.entity_items == 394 assert test_items == self.entity_items @@ -350,7 +350,7 @@ async def test_adam_heatpump_cooling(self): testdata = await self.load_testdata(SMILE_TYPE, self.smile_setup) server, api, client = await self.connect_wrapper() - test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata, skip_testing=True) + test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) assert self.entity_items == 542 assert test_items == self.entity_items assert self.cooling_present @@ -374,7 +374,7 @@ async def test_connect_adam_onoff_cooling_fake_firmware(self): smile_version=None, ) - test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata, skip_testing=True) + test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) assert self.entity_items == 73 assert test_items == self.entity_items assert self.cooling_present @@ -398,7 +398,7 @@ async def test_connect_adam_plus_anna(self): smile_version="3.0.15", ) - test_items = await self.device_test(api, "2020-03-22 00:00:01", testdata, skip_testing=True) + test_items = await self.device_test(api, "2020-03-22 00:00:01", testdata) assert api.gateway_id == "b128b4bbbd1f47e9bf4d756e8fb5ee94" assert self.entity_items == 85 assert test_items == self.entity_items @@ -439,7 +439,7 @@ async def test_adam_plus_jip(self): testdata = await self.load_testdata(SMILE_TYPE, self.smile_setup) server, api, client = await self.connect_wrapper() - test_items = await self.device_test(api, "2021-06-20 00:00:01", testdata, skip_testing=True) + test_items = await self.device_test(api, "2021-06-20 00:00:01", testdata) assert api.gateway_id == "b5c2386c6f6342669e50fe49dd05b188" assert self.entity_items == 273 assert test_items == self.entity_items diff --git a/tests/test_anna.py b/tests/test_anna.py index eaff34362..f702f8b0b 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -27,7 +27,7 @@ async def test_connect_anna_v4(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2020-04-05 00:00:01", testdata) assert api.gateway_id == "0466eae8520144c78afb29628384edeb" assert self.entity_items == 64 assert not self.notifications @@ -100,7 +100,7 @@ async def test_connect_anna_v4_dhw(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2020-04-05 00:00:01", testdata) assert self.entity_items == 64 assert not self.notifications @@ -129,7 +129,7 @@ async def test_connect_anna_v4_no_tag(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-05 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2020-04-05 00:00:01", testdata) assert self.entity_items == 64 result = await self.tinker_thermostat( @@ -157,7 +157,7 @@ async def test_connect_anna_without_boiler_fw441(self): smile_version="4.4.1", ) - await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2022-05-16 00:00:01", testdata) assert self.entity_items == 41 assert not self.notifications @@ -184,7 +184,7 @@ async def test_connect_anna_heatpump_heating(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-12 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2020-04-12 00:00:01", testdata) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" assert self.entity_items == 72 assert not self.notifications @@ -240,7 +240,7 @@ async def test_connect_anna_heatpump_cooling(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-19 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2020-04-19 00:00:01", testdata) assert self.entity_items == 69 assert self.cooling_present assert not self.notifications @@ -286,7 +286,7 @@ async def test_connect_anna_heatpump_cooling_fake_firmware(self): smile_version="4.10.10", ) - await self.device_test(api, "2020-04-19 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2020-04-19 00:00:01", testdata) assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled @@ -311,7 +311,7 @@ async def test_connect_anna_elga_no_cooling(self): smile_version="4.0.15", ) - await self.device_test(api, "2020-04-12 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2020-04-12 00:00:01", testdata) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" assert self.entity_items == 68 assert not self.notifications @@ -335,7 +335,7 @@ async def test_connect_anna_elga_2(self): smile_version="4.4.1", ) - await self.device_test(api, "2022-03-13 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2022-03-13 00:00:01", testdata) assert self.entity_items == 63 assert api.gateway_id == "fb49af122f6e4b0f91267e1cf7666d6f" assert self.cooling_present @@ -354,7 +354,7 @@ async def test_connect_anna_elga_2_schedule_off(self): server, api, client = await self.connect_wrapper() assert api.smile.hostname == "smile000000" - await self.device_test(api, "2022-03-13 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2022-03-13 00:00:01", testdata) assert not self._cooling_enabled assert self.entity_items == 68 @@ -386,7 +386,7 @@ async def test_connect_anna_elga_2_cooling(self): smile_version="4.2.1", ) - await self.device_test(api, "2022-03-10 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2022-03-10 00:00:01", testdata) assert self.entity_items == 68 assert not self.notifications @@ -439,7 +439,7 @@ async def test_connect_anna_loria_heating_idle(self): smile_version=None, ) - await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2022-05-16 00:00:01", testdata) assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -508,7 +508,7 @@ async def test_connect_anna_loria_cooling_active(self): smile_version=None, ) - await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2022-05-16 00:00:01", testdata) assert self.entity_items == 69 assert self.cooling_present assert self._cooling_enabled @@ -531,7 +531,7 @@ async def test_connect_anna_loria_driessens(self): smile_version=None, ) - await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2022-05-16 00:00:01", testdata) assert self.entity_items == 69 assert self.cooling_present assert not self._cooling_enabled @@ -554,7 +554,7 @@ async def test_connect_anna_p1(self): smile_version=None, ) - await self.device_test(api, "2025-11-02 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2025-11-02 00:00:01", testdata) assert self.entity_items == 78 await api.close_connection() @@ -575,7 +575,7 @@ async def test_connect_anna_v4_no_modules(self): smile_version=None, ) - await self.device_test(api, "2022-05-16 00:00:01", testdata, skip_testing=True) + await self.device_test(api, "2022-05-16 00:00:01", testdata) assert self.entity_items == 12 await api.close_connection() From 8687ae202254081c76efca4396752ca380bc23b0 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 08:25:45 +0200 Subject: [PATCH 227/371] Update entity_items counts --- tests/test_adam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adam.py b/tests/test_adam.py index a1270b39f..6c483d14d 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -351,7 +351,7 @@ async def test_adam_heatpump_cooling(self): server, api, client = await self.connect_wrapper() test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) - assert self.entity_items == 542 + assert self.entity_items == 543 assert test_items == self.entity_items assert self.cooling_present assert self._cooling_enabled From 8fc17a06e65a87085c9e8c8c48d0a56b31fff67b Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 08:29:26 +0200 Subject: [PATCH 228/371] Save updated test-jsons --- tests/data/adam/adam_bad_thermostat.json | 1 + tests/data/adam/adam_heatpump_cooling.json | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/data/adam/adam_bad_thermostat.json b/tests/data/adam/adam_bad_thermostat.json index 9c768485e..1f1554832 100644 --- a/tests/data/adam/adam_bad_thermostat.json +++ b/tests/data/adam/adam_bad_thermostat.json @@ -31,6 +31,7 @@ "model_id": "1.1", "name": "OpenTherm", "sensors": { + "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.6, diff --git a/tests/data/adam/adam_heatpump_cooling.json b/tests/data/adam/adam_heatpump_cooling.json index b75f0fe4d..7e0c0f849 100644 --- a/tests/data/adam/adam_heatpump_cooling.json +++ b/tests/data/adam/adam_heatpump_cooling.json @@ -79,6 +79,7 @@ "model_id": "17.1", "name": "OpenTherm", "sensors": { + "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, From 546ec3308e7ebbb2ee6b6c1bea84a295ccfb8ce8 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 18:45:41 +0200 Subject: [PATCH 229/371] Save various updates --- fixtures/adam_bad_thermostat/data.json | 1 + fixtures/adam_heatpump_cooling/data.json | 1 + fixtures/adam_onoff_cooling_fake_firmware/data.json | 1 + fixtures/anna_elga_no_cooling/data.json | 1 + fixtures/anna_heatpump_heating/data.json | 1 + fixtures/anna_loria_cooling_active/data.json | 1 + fixtures/anna_loria_driessens/data.json | 1 + fixtures/anna_loria_heating_idle/data.json | 1 + fixtures/m_anna_heatpump_cooling/data.json | 1 + fixtures/m_anna_heatpump_idle/data.json | 1 + tests/data/adam/adam_onoff_cooling_fake_firmware.json | 1 + tests/data/anna/anna_elga_no_cooling.json | 1 + tests/data/anna/anna_heatpump_heating.json | 1 + tests/data/anna/anna_loria_cooling_active.json | 1 + tests/data/anna/anna_loria_driessens.json | 1 + tests/data/anna/anna_loria_heating_idle.json | 1 + tests/test_adam.py | 2 +- tests/test_anna.py | 10 +++++----- 18 files changed, 22 insertions(+), 6 deletions(-) diff --git a/fixtures/adam_bad_thermostat/data.json b/fixtures/adam_bad_thermostat/data.json index 9c768485e..1f1554832 100644 --- a/fixtures/adam_bad_thermostat/data.json +++ b/fixtures/adam_bad_thermostat/data.json @@ -31,6 +31,7 @@ "model_id": "1.1", "name": "OpenTherm", "sensors": { + "dhw_temperature": 49.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.6, diff --git a/fixtures/adam_heatpump_cooling/data.json b/fixtures/adam_heatpump_cooling/data.json index b75f0fe4d..7e0c0f849 100644 --- a/fixtures/adam_heatpump_cooling/data.json +++ b/fixtures/adam_heatpump_cooling/data.json @@ -79,6 +79,7 @@ "model_id": "17.1", "name": "OpenTherm", "sensors": { + "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, diff --git a/fixtures/adam_onoff_cooling_fake_firmware/data.json b/fixtures/adam_onoff_cooling_fake_firmware/data.json index a674140d2..f0100393d 100644 --- a/fixtures/adam_onoff_cooling_fake_firmware/data.json +++ b/fixtures/adam_onoff_cooling_fake_firmware/data.json @@ -31,6 +31,7 @@ "model": "Unknown", "name": "OnOff", "sensors": { + "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, diff --git a/fixtures/anna_elga_no_cooling/data.json b/fixtures/anna_elga_no_cooling/data.json index 08666fb01..8f7a49383 100644 --- a/fixtures/anna_elga_no_cooling/data.json +++ b/fixtures/anna_elga_no_cooling/data.json @@ -50,6 +50,7 @@ "model": "Generic heater", "name": "OpenTherm", "sensors": { + "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, diff --git a/fixtures/anna_heatpump_heating/data.json b/fixtures/anna_heatpump_heating/data.json index 12db9c1f6..91040f4d4 100644 --- a/fixtures/anna_heatpump_heating/data.json +++ b/fixtures/anna_heatpump_heating/data.json @@ -52,6 +52,7 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { + "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, diff --git a/fixtures/anna_loria_cooling_active/data.json b/fixtures/anna_loria_cooling_active/data.json index d690d1fec..db44a078b 100644 --- a/fixtures/anna_loria_cooling_active/data.json +++ b/fixtures/anna_loria_cooling_active/data.json @@ -98,6 +98,7 @@ "model_id": "173", "name": "OpenTherm", "sensors": { + "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 100, "outdoor_air_temperature": 17.2, diff --git a/fixtures/anna_loria_driessens/data.json b/fixtures/anna_loria_driessens/data.json index a1eb54217..07db02be6 100644 --- a/fixtures/anna_loria_driessens/data.json +++ b/fixtures/anna_loria_driessens/data.json @@ -100,6 +100,7 @@ "model_id": "173", "name": "OpenTherm", "sensors": { + "dhw_temperature": 49.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 7.5, diff --git a/fixtures/anna_loria_heating_idle/data.json b/fixtures/anna_loria_heating_idle/data.json index c3bd260c4..d21b672c4 100644 --- a/fixtures/anna_loria_heating_idle/data.json +++ b/fixtures/anna_loria_heating_idle/data.json @@ -98,6 +98,7 @@ "model_id": "173", "name": "OpenTherm", "sensors": { + "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 17.2, diff --git a/fixtures/m_anna_heatpump_cooling/data.json b/fixtures/m_anna_heatpump_cooling/data.json index 0c846804d..2caf94cca 100644 --- a/fixtures/m_anna_heatpump_cooling/data.json +++ b/fixtures/m_anna_heatpump_cooling/data.json @@ -52,6 +52,7 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { + "dhw_temperature": 46.3, "intended_boiler_temperature": 0.0, "modulation_level": 40, "outdoor_air_temperature": 28.0, diff --git a/fixtures/m_anna_heatpump_idle/data.json b/fixtures/m_anna_heatpump_idle/data.json index 329e502b3..c41b5b7d7 100644 --- a/fixtures/m_anna_heatpump_idle/data.json +++ b/fixtures/m_anna_heatpump_idle/data.json @@ -52,6 +52,7 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { + "dhw_temperature": 46.3, "intended_boiler_temperature": 18.0, "modulation_level": 0, "outdoor_air_temperature": 28.2, diff --git a/tests/data/adam/adam_onoff_cooling_fake_firmware.json b/tests/data/adam/adam_onoff_cooling_fake_firmware.json index a674140d2..f0100393d 100644 --- a/tests/data/adam/adam_onoff_cooling_fake_firmware.json +++ b/tests/data/adam/adam_onoff_cooling_fake_firmware.json @@ -31,6 +31,7 @@ "model": "Unknown", "name": "OnOff", "sensors": { + "dhw_temperature": 63.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 13.5, diff --git a/tests/data/anna/anna_elga_no_cooling.json b/tests/data/anna/anna_elga_no_cooling.json index 08666fb01..8f7a49383 100644 --- a/tests/data/anna/anna_elga_no_cooling.json +++ b/tests/data/anna/anna_elga_no_cooling.json @@ -50,6 +50,7 @@ "model": "Generic heater", "name": "OpenTherm", "sensors": { + "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, diff --git a/tests/data/anna/anna_heatpump_heating.json b/tests/data/anna/anna_heatpump_heating.json index 12db9c1f6..91040f4d4 100644 --- a/tests/data/anna/anna_heatpump_heating.json +++ b/tests/data/anna/anna_heatpump_heating.json @@ -52,6 +52,7 @@ "model": "Generic heater/cooler", "name": "OpenTherm", "sensors": { + "dhw_temperature": 46.3, "intended_boiler_temperature": 35.0, "modulation_level": 52, "outdoor_air_temperature": 3.0, diff --git a/tests/data/anna/anna_loria_cooling_active.json b/tests/data/anna/anna_loria_cooling_active.json index d690d1fec..db44a078b 100644 --- a/tests/data/anna/anna_loria_cooling_active.json +++ b/tests/data/anna/anna_loria_cooling_active.json @@ -98,6 +98,7 @@ "model_id": "173", "name": "OpenTherm", "sensors": { + "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 100, "outdoor_air_temperature": 17.2, diff --git a/tests/data/anna/anna_loria_driessens.json b/tests/data/anna/anna_loria_driessens.json index a1eb54217..07db02be6 100644 --- a/tests/data/anna/anna_loria_driessens.json +++ b/tests/data/anna/anna_loria_driessens.json @@ -100,6 +100,7 @@ "model_id": "173", "name": "OpenTherm", "sensors": { + "dhw_temperature": 49.5, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 7.5, diff --git a/tests/data/anna/anna_loria_heating_idle.json b/tests/data/anna/anna_loria_heating_idle.json index c3bd260c4..d21b672c4 100644 --- a/tests/data/anna/anna_loria_heating_idle.json +++ b/tests/data/anna/anna_loria_heating_idle.json @@ -98,6 +98,7 @@ "model_id": "173", "name": "OpenTherm", "sensors": { + "dhw_temperature": 52.9, "intended_boiler_temperature": 0.0, "modulation_level": 0.0, "outdoor_air_temperature": 17.2, diff --git a/tests/test_adam.py b/tests/test_adam.py index 6c483d14d..bb32bf2a8 100644 --- a/tests/test_adam.py +++ b/tests/test_adam.py @@ -375,7 +375,7 @@ async def test_connect_adam_onoff_cooling_fake_firmware(self): ) test_items = await self.device_test(api, "2022-01-02 00:00:01", testdata) - assert self.entity_items == 73 + assert self.entity_items == 74 assert test_items == self.entity_items assert self.cooling_present # assert self._cooling_enabled - no cooling_enabled indication present diff --git a/tests/test_anna.py b/tests/test_anna.py index f702f8b0b..ff390da68 100644 --- a/tests/test_anna.py +++ b/tests/test_anna.py @@ -186,7 +186,7 @@ async def test_connect_anna_heatpump_heating(self): await self.device_test(api, "2020-04-12 00:00:01", testdata) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - assert self.entity_items == 72 + assert self.entity_items == 73 assert not self.notifications assert self.cooling_present assert not self._cooling_enabled @@ -313,7 +313,7 @@ async def test_connect_anna_elga_no_cooling(self): await self.device_test(api, "2020-04-12 00:00:01", testdata) assert api.gateway_id == "015ae9ea3f964e668e490fa39da3870b" - assert self.entity_items == 68 + assert self.entity_items == 69 assert not self.notifications assert not self.cooling_present @@ -440,7 +440,7 @@ async def test_connect_anna_loria_heating_idle(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata) - assert self.entity_items == 69 + assert self.entity_items == 70 assert self.cooling_present assert not self._cooling_enabled @@ -509,7 +509,7 @@ async def test_connect_anna_loria_cooling_active(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata) - assert self.entity_items == 69 + assert self.entity_items == 70 assert self.cooling_present assert self._cooling_enabled @@ -532,7 +532,7 @@ async def test_connect_anna_loria_driessens(self): ) await self.device_test(api, "2022-05-16 00:00:01", testdata) - assert self.entity_items == 69 + assert self.entity_items == 70 assert self.cooling_present assert not self._cooling_enabled From f877fc5419be8fee1614761f02898dae0864c71d Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 19:15:34 +0200 Subject: [PATCH 230/371] Set to v1.14.0 release-version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index eb37a14bc..ff5146d20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "plugwise" -version = "1.14.0a0" +version = "1.14.0" license = "MIT" description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3." readme = "README.md" From 8be4417dfd7ef986252cc4525a2a09982a121ff1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 06:02:14 +0000 Subject: [PATCH 231/371] Update pre-commit hook codespell-project/codespell to v2.4.3 (#896) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 05f7f3cbb..573df4b2f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: name: "Check Py upgrade" args: [--py311-plus] - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell name: "Check Code Spelling" From 25bd29b904ecfb370e3e08026b37b6f26072794f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 01:01:06 +0000 Subject: [PATCH 232/371] Update pre-commit hook astral-sh/ruff-pre-commit to v0.15.22 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 573df4b2f..c968f8027 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.21 + rev: v0.15.22 hooks: - id: ruff name: "Ruff check" From dab4b28a25bd6f90343107e4cd2f363a6c459565 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 20:15:11 +0200 Subject: [PATCH 233/371] Correct m_adam_heating water_temperature --- scripts/manual_fixtures.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index a62d9cf3b..4c0c30b7e 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -131,6 +131,9 @@ def json_writer(manual_name: str, output: dict) -> None: m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["sensors"][ "intended_boiler_temperature" ] = 17.5 +m_adam_cooling["056ee145a816487eaa69243c3280f8bf"]["sensors"][ + "water_temperature" +] = 19.0 json_writer("m_adam_cooling", m_adam_cooling) From aebdaa9694911a43adce232c2e9406a9b572a506 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Mon, 13 Jul 2026 20:18:55 +0200 Subject: [PATCH 234/371] Correct m_anna_heatpump_cooling fixture --- scripts/manual_fixtures.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index 4c0c30b7e..fd25e76df 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -255,6 +255,9 @@ def json_writer(manual_name: str, output: dict) -> None: m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["maximum_boiler_temperature"]["current"] = 22.7 m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["max_dhw_temperature"]["current"] = 41.5 +m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ + "dhw_temperature" +] = 41.5 m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ "intended_boiler_temperature" ] = 0.0 @@ -267,6 +270,9 @@ def json_writer(manual_name: str, output: dict) -> None: m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ "outdoor_air_temperature" ] = 28.0 +m_anna_heatpump_cooling["1cbf783bb11e4a7c8a6843dee3a86927"]["sensors"][ + "water_temperature" +] = 22.7 # Go for 015a m_anna_heatpump_cooling["015ae9ea3f964e668e490fa39da3870b"]["sensors"][ From 9cf82822438249abbcd315f52ce9d64ae58383ec Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 15 Jul 2026 19:40:23 +0200 Subject: [PATCH 235/371] Optimize set_dhw_mode(), set_select(), set_schedule_state() functions --- plugwise/smile.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugwise/smile.py b/plugwise/smile.py index 39deea4ce..b1a482a3a 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -232,7 +232,7 @@ async def set_preset(self, loc_id: str, preset: str) -> None: await self.call_request(uri, method="put", data=data) async def set_select( - self, key: str, appl_or_loc_id: str, option: str, state: str | None + self, key: str, appl_or_loc_id: str, option: str, ) -> None: """Set a dhw/gateway/regulation mode or the thermostat schedule option.""" match key: @@ -247,13 +247,13 @@ async def set_select( case "select_schedule": # The schedule name corresponds to the select option # Location id is passed - await self.set_schedule_state(appl_or_loc_id, state, option) + await self.set_schedule_state(appl_or_loc_id, option) case "select_zone_profile": # Location id is passed await self.set_zone_profile(appl_or_loc_id, option) async def set_dhw_mode( - self, key: str, appl_id: str, length: int, mode: str + self, key: str, appl_id: str, mode: str, length: int ) -> None: """Set the domestic hot water mode. @@ -266,7 +266,7 @@ async def set_dhw_mode( match length: case 2: - await self.set_select(key, appl_id, mode, None) + await self.set_select(key, appl_id, mode) case _: data = ( "" @@ -344,8 +344,8 @@ async def set_zone_profile(self, loc_id: str, profile: str) -> None: async def set_schedule_state( self, loc_id: str, - new_state: str | None, name: str | None, + new_state: str | None, ) -> None: """Activate/deactivate the Schedule, with the given name, on the relevant Thermostat. From 8900a2c4be1244920c7606597574f1ffce54eae7 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 15 Jul 2026 19:47:24 +0200 Subject: [PATCH 236/371] Also optimize the legacy set-functions --- plugwise/legacy/smile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugwise/legacy/smile.py b/plugwise/legacy/smile.py index 419f2fde9..897555401 100644 --- a/plugwise/legacy/smile.py +++ b/plugwise/legacy/smile.py @@ -132,7 +132,7 @@ async def reboot_gateway(self) -> None: """Set-function placeholder for legacy devices.""" async def set_dhw_mode( - self, key: str, location: str, length: int, mode: str + self, key: str, location: str, mode: str, length: int, ) -> None: """Set-function placeholder for legacy devices.""" @@ -170,14 +170,14 @@ async def set_regulation_mode(self, mode: str) -> None: """Set-function placeholder for legacy devices.""" async def set_select( - self, key: str, loc_id: str, option: str, state: str | None + self, key: str, loc_id: str, option: str, ) -> None: """Set the thermostat schedule option.""" # schedule name corresponds to select option - await self.set_schedule_state("dummy", state, option) + await self.set_schedule_state("dummy", option) async def set_schedule_state( - self, _: str, state: str | None, name: str | None + self, _: str, name: str | None, state: str | None = None, ) -> None: """Activate/deactivate the Schedule. From 8b1c9394ba1c385c41803aafcc890dfc5c064a05 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 15 Jul 2026 19:54:41 +0200 Subject: [PATCH 237/371] Fix test set_select() call --- tests/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_init.py b/tests/test_init.py index b7947ba4a..3a1e7b408 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -744,7 +744,7 @@ async def tinker_thermostat_schedule( new_schedule = new_schedule[1:] _LOGGER.info("- Adjusting schedule to %s", f"{new_schedule}{warning}") try: - await api.set_select("select_schedule", loc_id, new_schedule, state) + await api.set_select("select_schedule", loc_id, new_schedule) tinker_schedule_passed = True _LOGGER.info(" + working as intended") except pw_exceptions.PlugwiseError: From 20fdf79b4d92a1bd0e0b690fa826863edfa6f756 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 15 Jul 2026 19:59:36 +0200 Subject: [PATCH 238/371] Update set-function in __init__.py --- plugwise/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index fe8a9470e..30fac7404 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -358,11 +358,10 @@ async def set_select( key: str, loc_id: str, option: str, - state: str | None = None, ) -> None: """Set the selected option for the applicable Select.""" try: - await self._smile_api.set_select(key, loc_id, option, state) + await self._smile_api.set_select(key, loc_id, option) except ConnectionFailedError as exc: raise ConnectionFailedError( f"Failed to set select option '{option}': {str(exc)}" @@ -371,12 +370,12 @@ async def set_select( async def set_schedule_state( self, loc_id: str, - state: str | None, name: str | None = None, + state: str | None = None ) -> None: """Activate/deactivate the Schedule, with the given name, on the relevant Thermostat.""" try: - await self._smile_api.set_schedule_state(loc_id, state, name) + await self._smile_api.set_schedule_state(loc_id, name, state) except ConnectionFailedError as exc: # pragma no cover raise ConnectionFailedError( f"Failed to set schedule state: {str(exc)}" @@ -462,12 +461,12 @@ async def set_regulation_mode(self, mode: str) -> None: ) from exc # pragma no cover async def set_dhw_mode( - self, key: str, location: str, length: int, mode: str + self, key: str, location: str, mode: str, length: int, ) -> None: """Set the domestic hot water heating regulation mode.""" try: # pragma no cover await self._smile_api.set_dhw_mode( - key, location, length, mode + key, location, mode, length, ) # pragma: no cover except ConnectionFailedError as exc: # pragma no cover raise ConnectionFailedError( From c1c9cadc290f166f390279f6fe578426396819a2 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Wed, 15 Jul 2026 20:13:21 +0200 Subject: [PATCH 239/371] Try different approach for state --- plugwise/__init__.py | 2 +- plugwise/legacy/smile.py | 6 +++--- plugwise/smile.py | 14 ++++++++------ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index 30fac7404..27c13fdde 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -371,7 +371,7 @@ async def set_schedule_state( self, loc_id: str, name: str | None = None, - state: str | None = None + state: str | None = None, ) -> None: """Activate/deactivate the Schedule, with the given name, on the relevant Thermostat.""" try: diff --git a/plugwise/legacy/smile.py b/plugwise/legacy/smile.py index 897555401..337b4a648 100644 --- a/plugwise/legacy/smile.py +++ b/plugwise/legacy/smile.py @@ -170,14 +170,14 @@ async def set_regulation_mode(self, mode: str) -> None: """Set-function placeholder for legacy devices.""" async def set_select( - self, key: str, loc_id: str, option: str, + self, key: str, loc_id: str, option: str, state: str | None = None, ) -> None: """Set the thermostat schedule option.""" # schedule name corresponds to select option - await self.set_schedule_state("dummy", option) + await self.set_schedule_state("loc_id", option, state=state) async def set_schedule_state( - self, _: str, name: str | None, state: str | None = None, + self, _: str, name: str | None = None, state: str | None = None, ) -> None: """Activate/deactivate the Schedule. diff --git a/plugwise/smile.py b/plugwise/smile.py index b1a482a3a..ca7cc9779 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -345,7 +345,7 @@ async def set_schedule_state( self, loc_id: str, name: str | None, - new_state: str | None, + state: str | None = None ) -> None: """Activate/deactivate the Schedule, with the given name, on the relevant Thermostat. @@ -353,12 +353,14 @@ async def set_schedule_state( Used in HA Core to set the hvac_mode: in practice switch between schedule on - off. """ # Input checking - if new_state not in (STATE_OFF, STATE_ON): + if state is None: + state = STATE_ON + elif state not in (STATE_OFF, STATE_ON): raise PlugwiseError("Plugwise: invalid schedule state.") # Translate selection of Off-schedule-option to disabling the active schedule if name == OFF: - new_state = STATE_OFF + state = STATE_OFF # Handle no schedule-name / schedule-off requested: find the active schedule if name is None or name == OFF: @@ -372,7 +374,7 @@ async def set_schedule_state( raise PlugwiseError("Plugwise: no schedule with this name available.") # If no state change is requested, do nothing - if new_state == self._schedule_old_states[loc_id][name]: + if state == self._schedule_old_states[loc_id][name]: return schedule_rule_id: str = next(iter(schedule_rule)) @@ -384,7 +386,7 @@ async def set_schedule_state( template_id = self._domain_objects.find(locator).get("id") template = f'