Skip to content

Further improvement on HA water_heater related output data#888

Draft
bouwew wants to merge 38 commits into
mainfrom
water_heater_2
Draft

Further improvement on HA water_heater related output data#888
bouwew wants to merge 38 commits into
mainfrom
water_heater_2

Conversation

@bouwew

@bouwew bouwew commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Refactor

    • Reorganized boiler and DHW temperature reporting into unified structured objects that include current plus configuration bounds.
    • Updated how DHW/boiler data is derived and mapped, including related thermostat mode remapping behavior.
    • Removed the legacy water/DHW temperature sensor fields from generated payloads while retaining other water-related telemetry.
  • Tests

    • Refreshed fixture data and expected entity counts to match the new temperature representation and adjusted payload formatting.

@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@bouwew, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 4 minutes and 45 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ad14d2e3-0836-4ae5-88d1-6f3b0da3339c

📥 Commits

Reviewing files that changed from the base of the PR and between abb089b and 3f556f1.

📒 Files selected for processing (51)
  • CHANGELOG.md
  • fixtures/adam_bad_thermostat/data.json
  • fixtures/adam_heatpump_cooling/data.json
  • fixtures/adam_jip/data.json
  • fixtures/adam_onoff_cooling_fake_firmware/data.json
  • fixtures/adam_plus_anna/data.json
  • fixtures/adam_plus_anna_new/data.json
  • fixtures/adam_plus_anna_new_regulation_off/data.json
  • fixtures/anna_elga_2/data.json
  • fixtures/anna_elga_2_cooling/data.json
  • fixtures/anna_elga_2_schedule_off/data.json
  • fixtures/anna_elga_no_cooling/data.json
  • fixtures/anna_heatpump_cooling/data.json
  • fixtures/anna_heatpump_cooling_fake_firmware/data.json
  • fixtures/anna_heatpump_heating/data.json
  • fixtures/anna_p1/data.json
  • fixtures/anna_v4/data.json
  • fixtures/anna_v4_dhw/data.json
  • fixtures/anna_v4_no_tag/data.json
  • fixtures/m_adam_cooling/data.json
  • fixtures/m_adam_heating/data.json
  • fixtures/m_adam_heating_off_schedule/data.json
  • fixtures/m_adam_jip/data.json
  • fixtures/m_anna_heatpump_cooling/data.json
  • fixtures/m_anna_heatpump_idle/data.json
  • plugwise/helper.py
  • plugwise/legacy/helper.py
  • plugwise/smile.py
  • tests/data/adam/adam_bad_thermostat.json
  • tests/data/adam/adam_heatpump_cooling.json
  • tests/data/adam/adam_jip.json
  • tests/data/adam/adam_onoff_cooling_fake_firmware.json
  • tests/data/adam/adam_plus_anna.json
  • tests/data/adam/adam_plus_anna_new.json
  • tests/data/adam/adam_plus_anna_new_regulation_off.json
  • tests/data/anna/anna_elga_2.json
  • tests/data/anna/anna_elga_2_cooling.json
  • tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json
  • tests/data/anna/anna_elga_2_schedule_off.json
  • tests/data/anna/anna_elga_no_cooling.json
  • tests/data/anna/anna_heatpump_cooling.json
  • tests/data/anna/anna_heatpump_cooling_fake_firmware.json
  • tests/data/anna/anna_heatpump_heating.json
  • tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json
  • tests/data/anna/anna_p1.json
  • tests/data/anna/anna_v4.json
  • tests/data/anna/anna_v4_UPDATED_DATA.json
  • tests/data/anna/anna_v4_dhw.json
  • tests/data/anna/anna_v4_no_tag.json
  • tests/test_adam.py
  • tests/test_init.py
📝 Walkthrough

Walkthrough

Replaces the flat maximum_boiler_temperature/max_dhw_temperature actuator fields with structured boiler_temperature/dhw_temperature objects that bundle current alongside bounds, resolution, and setpoint. The water_temperature/dhw_temperature entries are removed from sensors. Type definitions, processing helpers, all raw fixtures, test data JSONs, and test assertions are updated uniformly.

Changes

Boiler/DHW Temperature Schema Consolidation

Layer / File(s) Summary
Type contract updates
plugwise/constants.py
ActuatorType gains boiler_temperature/dhw_temperature and drops max_dhw_temperature; ActuatorDataType gains "current"; ActuatorData TypedDict gains current: float; GwEntityData replaces max_dhw_temperature with separate boiler_temperature and dhw_temperature fields.
Processing logic
plugwise/helper.py, plugwise/legacy/helper.py, plugwise/data.py
Skip gates in _get_actuator_functionalities updated to target boiler_temperature/dhw_temperature; new _create_special_dicts helper renames maximum_boiler_temperatureboiler_temperature and DHW_SETPOINTdhw_temperature with current sourced from water_temperature/dhw_temperature sensors; legacy filter for max_dhw_temperature/thermo_sensor removed; data.py DHW mode gate updated to key on "dhw_temperature".
Raw fixture schema
fixtures/adam_\*/data.json, fixtures/anna_\*/data.json, fixtures/m_adam_\*/data.json, fixtures/m_anna_\*/data.json
All device fixture JSON files replace maximum_boiler_temperature/max_dhw_temperature with boiler_temperature/dhw_temperature objects including current, and remove water_temperature/dhw_temperature from sensors.
Test data JSON and assertions
tests/data/adam/*.json, tests/data/anna/*.json, tests/test_adam.py, tests/test_anna.py
Same boiler/DHW object consolidation applied to all test data fixtures; many single-line arrays (preset_modes, available_schedules, zone_profiles, gateway_modes, thermostats.primary/secondary) reformatted to multi-line; expected entity_items incremented (test_adam_plus_jip 270→271, three Anna v4 tests 61→62).
Manual fixture script
scripts/manual_fixtures.py
Updates generated fixture paths to place temperature values under boiler_temperature.current and dhw_temperature.current instead of sensor-level keys.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • plugwise/python-plugwise#878: Introduces fixtures/m_adam_heating_off_schedule/data.json, the same file updated in this PR with the new boiler_temperature/dhw_temperature schema.
  • plugwise/python-plugwise#883: Modifies the select_dhw_modedhw_mode remapping in plugwise/data.py, the exact same code path this PR updates to key off "dhw_temperature" instead of "max_dhw_temperature".
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main objective: refactoring temperature data representation for water heater/boiler/DHW entities by replacing flat max-bound fields with structured temperature objects that include current readings.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch water_heater_2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Jun 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e6f39c8) to head (3f556f1).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #888   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         3484      3502   +18     
=========================================
+ Hits          3484      3502   +18     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai coderabbitai Bot requested a review from CoMPaTech June 21, 2026 11:32
@coderabbitai coderabbitai Bot added the enhancement New feature or request label Jun 21, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (5)
fixtures/m_adam_heating_off_schedule/data.json (1)

9-34: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Migrate remaining legacy DHW fields in this fixture as well.

Line 22 still contains max_dhw_temperature and Line 33 still exposes sensors.water_temperature, so this fixture does not fully match the consolidated actuator contract.

Suggested fixture shape update
-    "max_dhw_temperature": {
-      "lower_bound": 40.0,
-      "resolution": 0.01,
-      "setpoint": 60.0,
-      "upper_bound": 60.0
-    },
+    "dhw_temperature": {
+      "current": 37.0,
+      "lower_bound": 40.0,
+      "resolution": 0.01,
+      "setpoint": 60.0,
+      "upper_bound": 60.0
+    },
@@
-      "water_temperature": 37.0
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@fixtures/m_adam_heating_off_schedule/data.json` around lines 9 - 34, The
fixture data.json file still contains legacy DHW fields that need to be removed
to match the consolidated actuator contract. Remove the max_dhw_temperature
object (which contains lower_bound, resolution, setpoint, and upper_bound
properties) and remove the water_temperature field from the sensors object. Keep
only the required fields that are part of the current actuator contract for the
heater_central device class.
fixtures/m_adam_heating/data.json (1)

9-34: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Complete the DHW fixture migration to the new schema.

Line 22 still uses legacy max_dhw_temperature and Line 33 still keeps sensors.water_temperature. This leaves the fixture in a mixed old/new contract state after introducing boiler_temperature.

Suggested fixture shape update
-    "max_dhw_temperature": {
-      "lower_bound": 40.0,
-      "resolution": 0.01,
-      "setpoint": 60.0,
-      "upper_bound": 60.0
-    },
+    "dhw_temperature": {
+      "current": 37.0,
+      "lower_bound": 40.0,
+      "resolution": 0.01,
+      "setpoint": 60.0,
+      "upper_bound": 60.0
+    },
@@
-      "water_temperature": 37.0
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@fixtures/m_adam_heating/data.json` around lines 9 - 34, The fixture file
fixtures/m_adam_heating/data.json is in a mixed state between old and new
schema. Remove the legacy `max_dhw_temperature` object (which spans multiple
lines around the setpoint and bounds fields) and remove the
`sensors.water_temperature` property from the sensors object to complete the
migration to the new schema that now includes boiler_temperature. This will
ensure the fixture uses only the new contract structure without mixing old and
new field definitions.
fixtures/m_anna_heatpump_cooling/data.json (1)

54-62: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Remove duplicate temperature sensors after actuator migration.

Line 55 (sensors.dhw_temperature) and Line 61 (sensors.water_temperature) still expose values that are now represented as dhw_temperature.current and boiler_temperature.current. This fixture is out of sync with the consolidated schema used in the other updated fixtures and can create conflicting test expectations.

Suggested fixture adjustment
     "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
     },
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@fixtures/m_anna_heatpump_cooling/data.json` around lines 54 - 62, The sensors
object in the fixtures contains duplicate temperature readings that conflict
with the actuator migration schema. Remove the dhw_temperature property
(currently 41.5) and the water_temperature property (currently 22.7) from the
sensors object, as these values are now properly represented through the
consolidated actuator schema as dhw_temperature.current and
boiler_temperature.current respectively. This will bring the fixture in line
with the updated schema used in other fixtures.
fixtures/m_anna_heatpump_idle/data.json (1)

44-62: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Remove duplicated legacy scalar temperature sensors after promoting to top-level objects.

Line 44 introduces dhw_temperature as the new structured object, but Lines 55 and 61 still keep legacy scalar sensors.dhw_temperature and sensors.water_temperature. This leaves this fixture in a mixed schema state versus the rest of the cohort and can skew downstream entity extraction/counts.

Suggested fixture correction
     "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
     },
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@fixtures/m_anna_heatpump_idle/data.json` around lines 44 - 62, The fixture
contains duplicate temperature sensor definitions in a mixed schema state. The
dhw_temperature and water_temperature sensors are defined both as structured
top-level objects (with properties like current, setpoint, bounds) and as legacy
scalar values nested under the sensors object. Remove the duplicate scalar
sensor entries dhw_temperature (currently 46.3) and water_temperature (currently
19.1) from the sensors object to maintain consistency with the rest of the
fixture cohort and prevent schema confusion in downstream entity extraction.
tests/data/anna/anna_heatpump_cooling.json (1)

47-50: ⚠️ Potential issue | 🟠 Major

Complete the DHW schema migration for this fixture.

The anna_heatpump_cooling.json fixture still contains legacy DHW sensor fields (dhw_temperature and domestic_hot_water_setpoint in sensors) while the equivalent anna_heatpump_heating.json has been fully migrated to the structured dhw_temperature object format. Both fixtures reference the same entity (1cbf783bb11e4a7c8a6843dee3a86927) and are actively tested. Update lines 48-49 and remove these legacy sensor fields to complete the migration.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/data/anna/anna_heatpump_cooling.json` around lines 47 - 50, The
anna_heatpump_cooling.json fixture contains legacy DHW sensor fields
(dhw_temperature and domestic_hot_water_setpoint) in the sensors object that
should be removed to match the schema migration already completed in
anna_heatpump_heating.json. Remove the dhw_temperature and
domestic_hot_water_setpoint fields from the sensors object in
anna_heatpump_cooling.json to align with the structured dhw_temperature object
format used in the heating fixture, ensuring both fixtures maintain consistent
schema structure since they reference the same entity.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@fixtures/m_adam_cooling/data.json`:
- Around line 10-16: The fixture contains conflicting temperature values:
boiler_temperature.current is set to 43.0 while sensors.water_temperature exists
separately at 19.0. To complete the schema migration, remove the standalone
sensors.water_temperature key entirely, as boiler_temperature.current is now the
consolidated representation for temperature. This ensures the fixture maintains
a single source of truth for the heater temperature value.

In `@plugwise/helper.py`:
- Around line 589-604: The set_number() function in plugwise/smile.py needs to
update its setter key remapping to handle the new actuator names being emitted
from helper.py. Currently it only remaps max_dhw_temperature, but needs to also
include remapping for the new keys dhw_temperature and boiler_temperature to
ensure proper thermostat-functionality lookup. Update the remapping logic in
set_number() to add these new actuator name mappings alongside the existing key
remappings.

---

Outside diff comments:
In `@fixtures/m_adam_heating_off_schedule/data.json`:
- Around line 9-34: The fixture data.json file still contains legacy DHW fields
that need to be removed to match the consolidated actuator contract. Remove the
max_dhw_temperature object (which contains lower_bound, resolution, setpoint,
and upper_bound properties) and remove the water_temperature field from the
sensors object. Keep only the required fields that are part of the current
actuator contract for the heater_central device class.

In `@fixtures/m_adam_heating/data.json`:
- Around line 9-34: The fixture file fixtures/m_adam_heating/data.json is in a
mixed state between old and new schema. Remove the legacy `max_dhw_temperature`
object (which spans multiple lines around the setpoint and bounds fields) and
remove the `sensors.water_temperature` property from the sensors object to
complete the migration to the new schema that now includes boiler_temperature.
This will ensure the fixture uses only the new contract structure without mixing
old and new field definitions.

In `@fixtures/m_anna_heatpump_cooling/data.json`:
- Around line 54-62: The sensors object in the fixtures contains duplicate
temperature readings that conflict with the actuator migration schema. Remove
the dhw_temperature property (currently 41.5) and the water_temperature property
(currently 22.7) from the sensors object, as these values are now properly
represented through the consolidated actuator schema as dhw_temperature.current
and boiler_temperature.current respectively. This will bring the fixture in line
with the updated schema used in other fixtures.

In `@fixtures/m_anna_heatpump_idle/data.json`:
- Around line 44-62: The fixture contains duplicate temperature sensor
definitions in a mixed schema state. The dhw_temperature and water_temperature
sensors are defined both as structured top-level objects (with properties like
current, setpoint, bounds) and as legacy scalar values nested under the sensors
object. Remove the duplicate scalar sensor entries dhw_temperature (currently
46.3) and water_temperature (currently 19.1) from the sensors object to maintain
consistency with the rest of the fixture cohort and prevent schema confusion in
downstream entity extraction.

In `@tests/data/anna/anna_heatpump_cooling.json`:
- Around line 47-50: The anna_heatpump_cooling.json fixture contains legacy DHW
sensor fields (dhw_temperature and domestic_hot_water_setpoint) in the sensors
object that should be removed to match the schema migration already completed in
anna_heatpump_heating.json. Remove the dhw_temperature and
domestic_hot_water_setpoint fields from the sensors object in
anna_heatpump_cooling.json to align with the structured dhw_temperature object
format used in the heating fixture, ensuring both fixtures maintain consistent
schema structure since they reference the same entity.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 00dae7c1-4649-48a9-a235-3d078ff131ce

📥 Commits

Reviewing files that changed from the base of the PR and between e6f39c8 and 4cf9064.

📒 Files selected for processing (53)
  • fixtures/adam_bad_thermostat/data.json
  • fixtures/adam_heatpump_cooling/data.json
  • fixtures/adam_jip/data.json
  • fixtures/adam_onoff_cooling_fake_firmware/data.json
  • fixtures/adam_plus_anna/data.json
  • fixtures/adam_plus_anna_new/data.json
  • fixtures/adam_plus_anna_new_regulation_off/data.json
  • fixtures/anna_elga_2_cooling/data.json
  • fixtures/anna_elga_2_schedule_off/data.json
  • fixtures/anna_elga_no_cooling/data.json
  • fixtures/anna_heatpump_cooling/data.json
  • fixtures/anna_heatpump_cooling_fake_firmware/data.json
  • fixtures/anna_heatpump_heating/data.json
  • fixtures/anna_loria_cooling_active/data.json
  • fixtures/anna_loria_driessens/data.json
  • fixtures/anna_loria_heating_idle/data.json
  • fixtures/anna_v4/data.json
  • fixtures/anna_v4_dhw/data.json
  • fixtures/anna_v4_no_tag/data.json
  • fixtures/m_adam_cooling/data.json
  • fixtures/m_adam_heating/data.json
  • fixtures/m_adam_heating_off_schedule/data.json
  • fixtures/m_adam_jip/data.json
  • fixtures/m_anna_heatpump_cooling/data.json
  • fixtures/m_anna_heatpump_idle/data.json
  • plugwise/constants.py
  • plugwise/data.py
  • plugwise/helper.py
  • plugwise/legacy/helper.py
  • tests/data/adam/adam_bad_thermostat.json
  • tests/data/adam/adam_heatpump_cooling.json
  • tests/data/adam/adam_jip.json
  • tests/data/adam/adam_onoff_cooling_fake_firmware.json
  • tests/data/adam/adam_plus_anna.json
  • tests/data/adam/adam_plus_anna_new.json
  • tests/data/adam/adam_plus_anna_new_regulation_off.json
  • tests/data/anna/anna_elga_2_cooling.json
  • tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json
  • tests/data/anna/anna_elga_2_schedule_off.json
  • tests/data/anna/anna_elga_no_cooling.json
  • tests/data/anna/anna_heatpump_cooling.json
  • tests/data/anna/anna_heatpump_cooling_fake_firmware.json
  • tests/data/anna/anna_heatpump_heating.json
  • tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json
  • tests/data/anna/anna_loria_cooling_active.json
  • tests/data/anna/anna_loria_driessens.json
  • tests/data/anna/anna_loria_heating_idle.json
  • tests/data/anna/anna_v4.json
  • tests/data/anna/anna_v4_UPDATED_DATA.json
  • tests/data/anna/anna_v4_dhw.json
  • tests/data/anna/anna_v4_no_tag.json
  • tests/test_adam.py
  • tests/test_anna.py
💤 Files with no reviewable changes (1)
  • plugwise/legacy/helper.py

Comment thread fixtures/m_adam_cooling/data.json
Comment thread plugwise/helper.py Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@fixtures/m_adam_heating/data.json`:
- Around line 21-27: The out-of-bounds DHW temperature values exist in four
fixture files (m_adam_heating/data.json, m_adam_heating_off_schedule/data.json,
m_adam_jip/data.json, and adam_jip/data.json) where current values fall below
lower_bound. Address this by either: (1) implementing runtime validation in the
ActuatorData class to enforce that lower_bound ≤ current ≤ upper_bound
constraints, or (2) adding documentation to these fixture files explaining that
the current values intentionally represent device warmup/coldstart states where
temperature may temporarily fall outside nominal bounds. Choose one approach and
apply it consistently across all affected fixtures.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a6ca3a1f-9710-4dc4-b9e2-24bbf2ba9342

📥 Commits

Reviewing files that changed from the base of the PR and between 4cf9064 and abb089b.

📒 Files selected for processing (7)
  • fixtures/m_adam_cooling/data.json
  • fixtures/m_adam_heating/data.json
  • fixtures/m_adam_heating_off_schedule/data.json
  • fixtures/m_anna_heatpump_cooling/data.json
  • fixtures/m_anna_heatpump_idle/data.json
  • plugwise/helper.py
  • scripts/manual_fixtures.py
🚧 Files skipped from review as they are similar to previous changes (3)
  • fixtures/m_anna_heatpump_cooling/data.json
  • fixtures/m_anna_heatpump_idle/data.json
  • plugwise/helper.py

Comment thread fixtures/m_adam_heating/data.json
@sonarqubecloud

Copy link
Copy Markdown

@bouwew bouwew deployed to testpypi June 22, 2026 17:26 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant