Skip to content

Commit 5d18ce0

Browse files
authored
Merge pull request #346 from plugwise/add_dhw_setpoint
Add domestic_hot_water_setpoint data to anna_heatpump_heating userdata, update relevant test-cases
2 parents 71979da + 96ef7e9 commit 5d18ce0

File tree

6 files changed

+37
-6
lines changed

6 files changed

+37
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Repair coverage/fix testing - #294
66
- Correct non-unique device names in adam_jip userdata
7+
- Add domestic_hot_water_setpoint data to anna_heatpump_heating userdata, update relevant test-cases
78

89
## V0.31.6: Fix domestic_hot_water_setpoint-related bug for Anna + Elga
910

fixtures/anna_heatpump_heating/all_data.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
},
2929
"dev_class": "heater_central",
3030
"location": "a57efe5f145f498c9be62a9b63626fbf",
31+
"max_dhw_temperature": {
32+
"lower_bound": 35.0,
33+
"resolution": 0.01,
34+
"setpoint": 53.0,
35+
"upper_bound": 60.0
36+
},
3137
"maximum_boiler_temperature": {
3238
"lower_bound": 0.0,
3339
"resolution": 1.0,
@@ -38,7 +44,6 @@
3844
"name": "OpenTherm",
3945
"sensors": {
4046
"dhw_temperature": 46.3,
41-
"domestic_hot_water_setpoint": 60.0,
4247
"intended_boiler_temperature": 35.0,
4348
"modulation_level": 52,
4449
"outdoor_air_temperature": 3.0,

fixtures/m_anna_heatpump_cooling/all_data.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
},
3030
"dev_class": "heater_central",
3131
"location": "a57efe5f145f498c9be62a9b63626fbf",
32+
"max_dhw_temperature": {
33+
"lower_bound": 35.0,
34+
"resolution": 0.01,
35+
"setpoint": 53.0,
36+
"upper_bound": 60.0
37+
},
3238
"maximum_boiler_temperature": {
3339
"lower_bound": 0.0,
3440
"resolution": 1.0,
@@ -39,7 +45,6 @@
3945
"name": "OpenTherm",
4046
"sensors": {
4147
"dhw_temperature": 41.5,
42-
"domestic_hot_water_setpoint": 60.0,
4348
"intended_boiler_temperature": 0.0,
4449
"modulation_level": 40,
4550
"outdoor_air_temperature": 28.0,

fixtures/m_anna_heatpump_idle/all_data.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
},
3030
"dev_class": "heater_central",
3131
"location": "a57efe5f145f498c9be62a9b63626fbf",
32+
"max_dhw_temperature": {
33+
"lower_bound": 35.0,
34+
"resolution": 0.01,
35+
"setpoint": 53.0,
36+
"upper_bound": 60.0
37+
},
3238
"maximum_boiler_temperature": {
3339
"lower_bound": 0.0,
3440
"resolution": 1.0,
@@ -39,7 +45,6 @@
3945
"name": "OpenTherm",
4046
"sensors": {
4147
"dhw_temperature": 46.3,
42-
"domestic_hot_water_setpoint": 60.0,
4348
"intended_boiler_temperature": 18.0,
4449
"modulation_level": 0,
4550
"outdoor_air_temperature": 28.2,

tests/test_smile.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ async def device_test(self, smile=pw_smile.Smile, testdata=None):
434434
tests += 1
435435
if (
436436
measure_key in bsw_list
437-
or measure_key in pw_constants.ACTUATOR_CLASSES
437+
or measure_key in pw_constants.ACTIVE_ACTUATORS
438438
):
439439
tests -= 1
440440
for key_1, val_1 in measure_assert.items():
@@ -3721,6 +3721,12 @@ async def test_connect_anna_heatpump_heating(self):
37213721
"upper_bound": 100.0,
37223722
"resolution": 1.0,
37233723
},
3724+
"max_dhw_temperature": {
3725+
"setpoint": 53.0,
3726+
"lower_bound": 35.0,
3727+
"upper_bound": 60.0,
3728+
"resolution": 0.01,
3729+
},
37243730
"available": True,
37253731
"binary_sensors": {
37263732
"dhw_state": False,
@@ -3732,7 +3738,6 @@ async def test_connect_anna_heatpump_heating(self):
37323738
},
37333739
"sensors": {
37343740
"water_temperature": 29.1,
3735-
"domestic_hot_water_setpoint": 60.0,
37363741
"dhw_temperature": 46.3,
37373742
"intended_boiler_temperature": 35.0,
37383743
"modulation_level": 52,
@@ -3798,7 +3803,7 @@ async def test_connect_anna_heatpump_heating(self):
37983803

37993804
await self.device_test(smile, testdata)
38003805
assert smile.gateway_id == "015ae9ea3f964e668e490fa39da3870b"
3801-
assert self.device_items == 57
3806+
assert self.device_items == 60
38023807
assert not self.cooling_present
38033808
assert not self.notifications
38043809

userdata/anna_heatpump_heating/core.appliances.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,16 @@
806806
<regulations/>
807807
<thermostat id='5e49f223e7224c3f93552db2c63881f6'/>
808808
</thermostat_functionality>
809+
<thermostat_functionality id='d9455c3ba0b0412cb264b8b33f4e3849'>
810+
<updated_date>2020-04-08T19:24:38.964+02:00</updated_date>
811+
<type>domestic_hot_water_setpoint</type>
812+
<setpoint>53</setpoint>
813+
<lower_bound>35</lower_bound>
814+
<upper_bound>60</upper_bound>
815+
<resolution>0.01</resolution>
816+
<regulations/>
817+
<thermostat id='5e49f223e7224c3f93552db2c63881f6'/>
818+
</thermostat_functionality>
809819
<timer_functionality id='a047871b00c14c0aa20a5f3c70c1f307'>
810820
<timer id='18ac9fc3cc31465c973769dfdbdddfb0'/>
811821
<updated_date>2020-04-09T13:25:35.254+02:00</updated_date>

0 commit comments

Comments
 (0)