Extract waterfurnace sensor names for translation (#162025)

Co-authored-by: Norbert Rittel <norbert@rittel.de>
Co-authored-by: Joostlek <joostlek@outlook.com>
This commit is contained in:
Andres Ruiz
2026-02-04 21:48:23 +01:00
committed by GitHub
co-authored by Norbert Rittel Joostlek
parent b9b6b050cc
commit 3867c1d7d1
3 changed files with 79 additions and 16 deletions
@@ -0,0 +1,15 @@
{
"entity": {
"sensor": {
"actual_compressor_speed": {
"default": "mdi:speedometer"
},
"airflow_current_speed": {
"default": "mdi:fan"
},
"mode": {
"default": "mdi:gauge"
}
}
}
}
+21 -16
View File
@@ -18,89 +18,93 @@ from homeassistant.util import slugify
from . import UPDATE_TOPIC, WaterFurnaceConfigEntry, WaterFurnaceData
SENSORS = [
SensorEntityDescription(name="Furnace Mode", key="mode", icon="mdi:gauge"),
SensorEntityDescription(
name="Total Power",
key="mode",
translation_key="mode",
),
SensorEntityDescription(
key="totalunitpower",
translation_key="total_unit_power",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Active Setpoint",
key="tstatactivesetpoint",
translation_key="tstat_active_setpoint",
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Leaving Air",
key="leavingairtemp",
translation_key="leaving_air_temp",
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Room Temp",
key="tstatroomtemp",
translation_key="room_temp",
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Loop Temp",
key="enteringwatertemp",
translation_key="entering_water_temp",
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Humidity Set Point",
key="tstathumidsetpoint",
icon="mdi:water-percent",
translation_key="tstat_humid_setpoint",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.HUMIDITY,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Humidity",
key="tstatrelativehumidity",
icon="mdi:water-percent",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.HUMIDITY,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Compressor Power",
key="compressorpower",
translation_key="compressor_power",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Fan Power",
key="fanpower",
translation_key="fan_power",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Aux Power",
key="auxpower",
translation_key="aux_power",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Loop Pump Power",
key="looppumppower",
translation_key="loop_pump_power",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
name="Compressor Speed", key="actualcompressorspeed", icon="mdi:speedometer"
key="actualcompressorspeed",
translation_key="actual_compressor_speed",
),
SensorEntityDescription(
name="Fan Speed", key="airflowcurrentspeed", icon="mdi:fan"
key="airflowcurrentspeed",
translation_key="airflow_current_speed",
),
]
@@ -124,6 +128,7 @@ class WaterFurnaceSensor(SensorEntity):
"""Implementing the Waterfurnace sensor."""
_attr_should_poll = False
_attr_has_entity_name = True
def __init__(
self, client: WaterFurnaceData, description: SensorEntityDescription
@@ -26,6 +26,49 @@
}
}
},
"entity": {
"sensor": {
"actual_compressor_speed": {
"name": "Compressor speed"
},
"airflow_current_speed": {
"name": "Fan speed"
},
"aux_power": {
"name": "Aux power"
},
"compressor_power": {
"name": "Compressor power"
},
"entering_water_temp": {
"name": "Loop temperature"
},
"fan_power": {
"name": "Fan power"
},
"leaving_air_temp": {
"name": "Leaving air temperature"
},
"loop_pump_power": {
"name": "Loop pump power"
},
"mode": {
"name": "Furnace mode"
},
"room_temp": {
"name": "Room temperature"
},
"total_unit_power": {
"name": "Total power"
},
"tstat_active_setpoint": {
"name": "Active setpoint"
},
"tstat_humid_setpoint": {
"name": "Humidity setpoint"
}
}
},
"issues": {
"deprecated_yaml_import_issue_cannot_connect": {
"description": "Configuring {integration_title} via YAML is deprecated and will be removed in a future release. While importing your configuration, we could not connect to {integration_title}. Please check your YAML configuration and restart Home Assistant, or remove the {domain} key from your configuration and configure the integration via the UI.",