From 3a531f5698cf72e81370ef3947959282b0a2d7bc Mon Sep 17 00:00:00 2001 From: dotvav Date: Sun, 12 Nov 2023 19:50:18 +0100 Subject: [PATCH] Add Hitachi Heat Pumps outdoor temperature sensors (#103806) Add OVP and HLRRWIFI outdoor temperature sensors --- homeassistant/components/overkiz/sensor.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/homeassistant/components/overkiz/sensor.py b/homeassistant/components/overkiz/sensor.py index f56643e8cd4..41c2f4d1a92 100644 --- a/homeassistant/components/overkiz/sensor.py +++ b/homeassistant/components/overkiz/sensor.py @@ -413,6 +413,22 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [ options=["open", "tilt", "closed"], translation_key="three_way_handle_direction", ), + # Hitachi air to air heatpump outdoor temperature sensors (HLRRWIFI protocol) + OverkizSensorDescription( + key=OverkizState.HLRRWIFI_OUTDOOR_TEMPERATURE, + name="Outdoor temperature", + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + native_unit_of_measurement=UnitOfTemperature.CELSIUS, + ), + # Hitachi air to air heatpump outdoor temperature sensors (OVP protocol) + OverkizSensorDescription( + key=OverkizState.OVP_OUTDOOR_TEMPERATURE, + name="Outdoor temperature", + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + native_unit_of_measurement=UnitOfTemperature.CELSIUS, + ), ] SUPPORTED_STATES = {description.key: description for description in SENSOR_DESCRIPTIONS}