Add additional sensors for waterfurnace integration (#162581)

This commit is contained in:
Andres Ruiz
2026-02-08 16:38:21 -05:00
committed by GitHub
parent 24e8208deb
commit f678e7ef34
2 changed files with 56 additions and 1 deletions

View File

@@ -9,7 +9,12 @@ from homeassistant.components.sensor import (
SensorEntityDescription,
SensorStateClass,
)
from homeassistant.const import PERCENTAGE, UnitOfPower, UnitOfTemperature
from homeassistant.const import (
PERCENTAGE,
UnitOfPower,
UnitOfTemperature,
UnitOfVolumeFlowRate,
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.dispatcher import async_dispatcher_connect
@@ -107,6 +112,41 @@ SENSORS = [
key="airflowcurrentspeed",
translation_key="airflow_current_speed",
),
SensorEntityDescription(
key="tstatdehumidsetpoint",
translation_key="tstat_dehumid_setpoint",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.HUMIDITY,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
key="leavingwatertemp",
translation_key="leaving_water_temp",
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
key="tstatheatingsetpoint",
translation_key="tstat_heating_setpoint",
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
key="tstatcoolingsetpoint",
translation_key="tstat_cooling_setpoint",
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
key="waterflowrate",
translation_key="water_flow_rate",
native_unit_of_measurement=UnitOfVolumeFlowRate.GALLONS_PER_MINUTE,
device_class=SensorDeviceClass.VOLUME_FLOW_RATE,
state_class=SensorStateClass.MEASUREMENT,
),
]

View File

@@ -49,6 +49,9 @@
"leaving_air_temp": {
"name": "Leaving air temperature"
},
"leaving_water_temp": {
"name": "Leaving water temperature"
},
"loop_pump_power": {
"name": "Loop pump power"
},
@@ -64,8 +67,20 @@
"tstat_active_setpoint": {
"name": "Active setpoint"
},
"tstat_cooling_setpoint": {
"name": "Cooling setpoint"
},
"tstat_dehumid_setpoint": {
"name": "Dehumidification setpoint"
},
"tstat_heating_setpoint": {
"name": "Heating setpoint"
},
"tstat_humid_setpoint": {
"name": "Humidity setpoint"
},
"water_flow_rate": {
"name": "Water flow rate"
}
}
},