Skip to content

Commit 155bd3c

Browse files
authored
Merge pull request #163 from plugwise/outdoor_temp
Rename outdoor_temp sensor
2 parents 0377e40 + 2cba764 commit 155bd3c

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

3-
# v0.16.9a0 - Smile: bugfix
3+
# v0.16.9a1 - Smile: bugfix and improve
44
- Fix for https://github.com/plugwise/plugwise-beta/issues/250
5+
- Rename heatpump outdoor_temperature sensor to outdoor_unit_temperature sensor
56

67
# v0.16.8 - Smile: bugfixes, continued
78
- Fix for https://github.com/home-assistant/core/issues/68003

plugwise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Plugwise module."""
22

3-
__version__ = "0.16.9a0"
3+
__version__ = "0.16.9a1"
44

55
from plugwise.smile import Smile
66
from plugwise.stick import Stick

plugwise/constants.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,6 @@
417417
"thermostat": {ATTR_NAME: "setpoint", ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
418418
# Specific for an Anna
419419
"illuminance": {ATTR_UNIT_OF_MEASUREMENT: UNIT_LUMEN},
420-
# Outdoor temperature from APPLIANCES - present for a heatpump
421-
"outdoor_temperature": {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
422420
# Schedule temperature - only present for a legacy Anna or an Anna v3
423421
"schedule_temperature": {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
424422
# Specific for an Anna with heatpump extension installed
@@ -489,6 +487,11 @@
489487
ATTR_NAME: "heating_state",
490488
ATTR_UNIT_OF_MEASUREMENT: None,
491489
},
490+
# Outdoor temperature from APPLIANCES - present for a heatpump
491+
"outdoor_temperature": {
492+
ATTR_NAME: "outdoor_unit_temperature",
493+
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
494+
},
492495
}
493496

494497
# Known types of Smiles and Stretches
@@ -575,6 +578,7 @@
575578
"net_electricity_cumulative",
576579
"net_electricity_point",
577580
"outdoor_temperature",
581+
"outdoor_unit_temperature",
578582
"return_temperature",
579583
"setpoint",
580584
"temperature_difference",

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def _appliance_measurements(
826826
self._cooling_activation_outdoor_temp = data.get(measurement)
827827
if measurement == "cooling_deactivation_threshold":
828828
self._cooling_deactivation_threshold = data.get(measurement)
829-
if measurement == "outdoor_temperature":
829+
if measurement == "outdoor_unit_temperature":
830830
self._outdoor_temp = data.get(measurement)
831831

832832
i_locator = f'.//logs/interval_log[type="{measurement}"]/period/measurement'

tests/test_smile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2215,7 +2215,7 @@ async def test_connect_anna_heatpump(self):
22152215
"heating_state": True,
22162216
},
22172217
"sensors": {
2218-
"outdoor_temperature": 3.0,
2218+
"outdoor_unit_temperature": 3.0,
22192219
"water_temperature": 29.1,
22202220
"water_pressure": 1.57,
22212221
},
@@ -2274,7 +2274,7 @@ async def test_connect_anna_heatpump_cooling(self):
22742274
"heating_state": False,
22752275
},
22762276
"sensors": {
2277-
"outdoor_temperature": 22.0,
2277+
"outdoor_unit_temperature": 22.0,
22782278
"water_temperature": 24.7,
22792279
"water_pressure": 1.61,
22802280
},
@@ -2331,7 +2331,7 @@ async def test_connect_anna_heatpump_cooling_to_off(self):
23312331
"heating_state": False,
23322332
},
23332333
"sensors": {
2334-
"outdoor_temperature": 3.0,
2334+
"outdoor_unit_temperature": 3.0,
23352335
"water_temperature": 24.7,
23362336
"water_pressure": 1.61,
23372337
},
@@ -2408,7 +2408,7 @@ async def test_connect_anna_elga_2(self):
24082408
"flame_state": False,
24092409
},
24102410
"sensors": {
2411-
"outdoor_temperature": 14.0,
2411+
"outdoor_unit_temperature": 14.0,
24122412
"water_temperature": 22.8,
24132413
"intended_boiler_temperature": 0.0,
24142414
"modulation_level": 0.0,

0 commit comments

Comments
 (0)