Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
bbbb02c
Change dhw_cm_switch to _dhw_allowed_modes/select_dhw_mode
bouwew Jun 8, 2026
34ca03e
Adapt comment to widened scope
bouwew Jun 9, 2026
de48b75
Move toggles collection up
bouwew Jun 9, 2026
aadfedb
Improve
bouwew Jun 9, 2026
e281ce6
Constants: add 2nd options for select_dhw_mode
bouwew Jun 9, 2026
564d902
Improve 2
bouwew Jun 9, 2026
ebd6b8a
fixup: dhw_update Python code fixed using ruff
Jun 9, 2026
64377af
Update testdata json
bouwew Jun 10, 2026
124a633
Save entity_items updates
bouwew Jun 10, 2026
eee59b7
Fix typing as suggested
bouwew Jun 10, 2026
052ffc2
Remove dhw_cm_switch from SwitchType and SmileSwitch classes
bouwew Jun 10, 2026
72dfd81
Fix item_count
bouwew Jun 12, 2026
659d968
Remove now invalid testcase
bouwew Jun 12, 2026
431b7dd
Correct test-json
bouwew Jun 12, 2026
1dfc1b8
Fix entity_items count
bouwew Jun 12, 2026
7492f2f
Save updated adam fixtures
bouwew Jun 12, 2026
0f6df7b
Save updated anna test-jsons
bouwew Jun 12, 2026
4b475f1
Update entity_items count
bouwew Jun 12, 2026
ae3f1a3
Correct test-json
bouwew Jun 12, 2026
6aeb423
Update entity_items count
bouwew Jun 12, 2026
8ae1e25
Correct test-json
bouwew Jun 12, 2026
9184e3e
Don't overwrite select_dhw_mode
bouwew Jun 13, 2026
4521707
Update entity_items count
bouwew Jun 13, 2026
fb1f945
Clean up
bouwew Jun 13, 2026
d7fe43c
Revert typing-update and adapt
bouwew Jun 13, 2026
877d7c5
Revert SmileSwitches removal
bouwew Jun 13, 2026
bb412b0
Save fixture updates
bouwew Jun 13, 2026
d4d43ee
Clean up now unused code
bouwew Jun 13, 2026
2a70469
Improve old_measurement init, as suggested
bouwew Jun 13, 2026
604e896
Solve complexity
bouwew Jun 13, 2026
4cebfc1
Ruffed
bouwew Jun 13, 2026
4a813a8
Update CHANGELOG
bouwew Jun 13, 2026
bf8d3dc
Set to v1.12.0 release-version
bouwew Jun 13, 2026
3bc032c
Fix linter issue
bouwew Jun 13, 2026
7aa12a1
Debug
bouwew Jun 13, 2026
7e90f2c
Rename select_dhw_mode to water_heater_mode for applicable systems
bouwew Jun 13, 2026
0092f19
Update relevant test-json with water_heater_mode
bouwew Jun 13, 2026
f15c0af
Save updated fixtures
bouwew Jun 13, 2026
61131ae
Clean up, add comment
bouwew Jun 13, 2026
aee1527
Back to normal test-output
bouwew Jun 13, 2026
b699131
Update constants
bouwew Jun 13, 2026
ad62171
Save updated manual fixtures
bouwew Jun 13, 2026
ce1030b
Update CHANGELOG
bouwew Jun 13, 2026
cc3a265
Implement improvement suggestion
bouwew Jun 6, 2026
f36c42b
Change `water_heater_mode` to `dhw_mode`
bouwew Jun 14, 2026
8bde080
Save updated fixtures
bouwew Jun 14, 2026
867f777
Fix comment as suggested
bouwew Jun 14, 2026
352c357
Handle changed select and water_heater setters
bouwew Jun 14, 2026
d064630
Update tinker_dhw_mode()
bouwew Jun 15, 2026
1f586a3
Adapt set_dhw_mode() functions
bouwew Jun 15, 2026
d1cda3f
Update tinker_dhw_mode() functions in test
bouwew Jun 15, 2026
37aa200
Add dhw_mode test for comfort_mode toggle
bouwew Jun 15, 2026
812510f
Ruffed
bouwew Jun 15, 2026
01f017c
Wide dhw_mode options in tinker-test
bouwew Jun 15, 2026
4a5c5e7
Update legacy set_dhw_mode() placeholder
bouwew Jun 15, 2026
0ea621d
Add select_dhw_mode testcase
bouwew Jun 15, 2026
a219f5c
Tinker_dhw_mode(): pass lenght as argument
bouwew Jun 15, 2026
a4552dc
Adapt use in test cases
bouwew Jun 15, 2026
ecc4ace
Fix typo
bouwew Jun 15, 2026
2178fc4
Use try except to manage a missing switch
bouwew Jun 16, 2026
f6580c5
Update typing
bouwew Jun 16, 2026
5ea5305
Remove double code
bouwew Jun 16, 2026
4ec51b9
Add comment for required functionality
bouwew Jun 16, 2026
f5e5af8
Adapt for both select_dhw_mode and dhw_mode options
bouwew Jun 16, 2026
f30442c
Adapt tinker_dhw_mode
bouwew Jun 16, 2026
dd49a03
Update related test cases
bouwew Jun 16, 2026
f984ac9
Line up all set_dhw_mode() functions
bouwew Jun 16, 2026
ef833bd
Clean up
bouwew Jun 16, 2026
e8f331b
Typing fixes
bouwew Jun 16, 2026
e46c74e
Fix length in test as suggested
bouwew Jun 16, 2026
197457e
Test dhw_mode off to as suggested
bouwew Jun 16, 2026
fb343b6
Improve
bouwew Jun 16, 2026
20579fb
Ruffed
bouwew Jun 16, 2026
050e6d7
Debug
bouwew Jun 16, 2026
c0dd270
Init switch_id
bouwew Jun 16, 2026
07e5bee
Debug 2
bouwew Jun 16, 2026
12f638c
Update set_switch_state() URI call for toggle, relay and lock
bouwew Jun 17, 2026
ccd331d
Also adapt _set_groupswitch_member_state()
bouwew Jun 18, 2026
5d391fb
Use the appropriate method
bouwew Jun 18, 2026
853569e
Allow POST for core/appliances
bouwew Jun 18, 2026
f335369
Rework to single if with walrus
bouwew Jun 19, 2026
621df52
Improve comments
bouwew Jun 19, 2026
94792bf
Optimize
bouwew Jun 19, 2026
d08492e
Remove debug-logger lines
bouwew Jun 19, 2026
4515b6a
Improve comments, docstring
bouwew Jun 19, 2026
235e034
fixup: dhw_update Python code fixed using ruff
Jun 19, 2026
667e26a
Update CHANGELOG
bouwew Jun 19, 2026
b17a1fc
Back to normal test-output
bouwew Jun 20, 2026
eefb304
Adapt legacy set_switch_state() output typing
bouwew Jun 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 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)

## v1.11.4

- Correct Anna P1 detection via PR [#879](https://github.com/plugwise/python-plugwise/pull/879)
Expand Down
8 changes: 5 additions & 3 deletions fixtures/adam_bad_thermostat/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"heating_state": false
},
"dev_class": "heater_central",
"dhw_mode": "off",
"dhw_modes": [
"comfort",
"off"
],
"location": "856285a783f24bf4b2573c8bc510eabf",
"max_dhw_temperature": {
"lower_bound": 0.0,
Expand All @@ -31,9 +36,6 @@
"return_temperature": 33.0,
"water_temperature": 20.9
},
"switches": {
"dhw_cm_switch": false
},
"vendor": "WeHeat"
},
"3ee6b9486cb04c258a3130fff2b144a4": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/adam_heatpump_cooling/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
"heating_state": false
},
"dev_class": "heater_central",
"dhw_mode": "comfort",
"dhw_modes": [
"comfort",
"off"
],
"location": "eedadcb297564f1483faa509179aebed",
"max_dhw_temperature": {
"lower_bound": 40.0,
Expand All @@ -80,9 +85,6 @@
"water_pressure": 2.0,
"water_temperature": 24.5
},
"switches": {
"dhw_cm_switch": true
},
"vendor": "Remeha B.V."
},
"1053c8bbf8be43c6921742b146a625f1": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/adam_jip/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@
"heating_state": false
},
"dev_class": "heater_central",
"dhw_mode": "off",
"dhw_modes": [
"comfort",
"off"
],
"location": "9e4433a9d69f40b3aefd15e74395eaec",
"max_dhw_temperature": {
"lower_bound": 40.0,
Expand All @@ -417,9 +422,6 @@
"water_pressure": 1.4,
"water_temperature": 37.3
},
"switches": {
"dhw_cm_switch": false
},
"vendor": "Remeha B.V."
},
"f61f1a2535f54f52ad006a3d18e459ca": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/adam_onoff_cooling_fake_firmware/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"heating_state": false
},
"dev_class": "heater_central",
"dhw_mode": "comfort",
"dhw_modes": [
"comfort",
"off"
],
"location": "eedadcb297564f1483faa509179aebed",
"max_dhw_temperature": {
"lower_bound": 40.0,
Expand All @@ -31,9 +36,6 @@
"return_temperature": 24.9,
"water_pressure": 2.0,
"water_temperature": 24.5
},
"switches": {
"dhw_cm_switch": true
}
},
"7d97fc3117784cfdafe347bcedcbbbcb": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/adam_plus_anna/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
"heating_state": false
},
"dev_class": "heater_central",
"dhw_modes": [
"comfort",
"off"
],
"location": "07d618f0bb80412687f065b8698ce3e7",
"maximum_boiler_temperature": {
"lower_bound": 0.0,
Expand All @@ -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": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/adam_plus_anna_new/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"heating_state": true
},
"dev_class": "heater_central",
"dhw_modes": [
"comfort",
"off"
],
"location": "bc93488efab249e5bc54fd7e175a6f91",
"maximum_boiler_temperature": {
"lower_bound": 25.0,
Expand All @@ -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": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/adam_plus_anna_new_regulation_off/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"heating_state": false
},
"dev_class": "heater_central",
"dhw_modes": [
"comfort",
"off"
],
"location": "bc93488efab249e5bc54fd7e175a6f91",
"maximum_boiler_temperature": {
"lower_bound": 25.0,
Expand All @@ -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": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/anna_elga_2/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -23,9 +28,6 @@
"water_pressure": 0.5,
"water_temperature": 42.6
},
"switches": {
"dhw_cm_switch": false
},
"vendor": "Techneco"
},
"ebd90df1ab334565b5895f37590ccff4": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/anna_elga_2_cooling/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -29,9 +34,6 @@
"water_pressure": 0.5,
"water_temperature": 22.8
},
"switches": {
"dhw_cm_switch": true
},
"vendor": "Techneco"
},
"ebd90df1ab334565b5895f37590ccff4": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/anna_elga_2_schedule_off/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -29,9 +34,6 @@
"water_pressure": 0.5,
"water_temperature": 22.8
},
"switches": {
"dhw_cm_switch": true
},
"vendor": "Techneco"
},
"ebd90df1ab334565b5895f37590ccff4": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/anna_elga_no_cooling/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"secondary_boiler_state": false
},
"dev_class": "heater_central",
"dhw_mode": "off",
"dhw_modes": [
"comfort",
"off"
],
"location": "a57efe5f145f498c9be62a9b63626fbf",
"max_dhw_temperature": {
"lower_bound": 35.0,
Expand All @@ -51,9 +56,6 @@
"water_pressure": 1.57,
"water_temperature": 29.1
},
"switches": {
"dhw_cm_switch": false
},
"vendor": "Techneco"
},
"3cb70739631c4d17a86b8b12e8a5161b": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/anna_heatpump_cooling/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -48,9 +53,6 @@
"water_pressure": 1.61,
"water_temperature": 24.7
},
"switches": {
"dhw_cm_switch": false
},
"vendor": "Techneco"
},
"3cb70739631c4d17a86b8b12e8a5161b": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/anna_heatpump_cooling_fake_firmware/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -48,9 +53,6 @@
"water_pressure": 1.61,
"water_temperature": 24.7
},
"switches": {
"dhw_cm_switch": false
},
"vendor": "Techneco"
},
"3cb70739631c4d17a86b8b12e8a5161b": {
Expand Down
8 changes: 5 additions & 3 deletions fixtures/anna_heatpump_heating/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"secondary_boiler_state": false
},
"dev_class": "heater_central",
"dhw_mode": "off",
"dhw_modes": [
"comfort",
"off"
],
"location": "a57efe5f145f498c9be62a9b63626fbf",
"max_dhw_temperature": {
"lower_bound": 35.0,
Expand All @@ -53,9 +58,6 @@
"water_pressure": 1.57,
"water_temperature": 29.1
},
"switches": {
"dhw_cm_switch": false
},
"vendor": "Techneco"
},
"3cb70739631c4d17a86b8b12e8a5161b": {
Expand Down
5 changes: 2 additions & 3 deletions fixtures/anna_loria_cooling_active/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"heating_state": false
},
"dev_class": "heater_central",
"dhw_mode": "auto",
"dhw_modes": [
"off",
"auto",
Expand All @@ -94,7 +95,6 @@
"model": "Generic heater/cooler",
"model_id": "173",
"name": "OpenTherm",
"select_dhw_mode": "auto",
"sensors": {
"dhw_temperature": 52.9,
"intended_boiler_temperature": 0.0,
Expand All @@ -104,8 +104,7 @@
"water_temperature": 25.3
},
"switches": {
"cooling_ena_switch": true,
"dhw_cm_switch": true
"cooling_ena_switch": true
},
"vendor": "Atlantic"
}
Expand Down
Loading
Loading