diff --git a/homeassistant/components/waterfurnace/icons.json b/homeassistant/components/waterfurnace/icons.json new file mode 100644 index 000000000000..3d81d30103bd --- /dev/null +++ b/homeassistant/components/waterfurnace/icons.json @@ -0,0 +1,15 @@ +{ + "entity": { + "sensor": { + "actual_compressor_speed": { + "default": "mdi:speedometer" + }, + "airflow_current_speed": { + "default": "mdi:fan" + }, + "mode": { + "default": "mdi:gauge" + } + } + } +} diff --git a/homeassistant/components/waterfurnace/sensor.py b/homeassistant/components/waterfurnace/sensor.py index 91a2968404e4..1c337a7531c5 100644 --- a/homeassistant/components/waterfurnace/sensor.py +++ b/homeassistant/components/waterfurnace/sensor.py @@ -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 diff --git a/homeassistant/components/waterfurnace/strings.json b/homeassistant/components/waterfurnace/strings.json index db369879e25f..6a470a29c9a2 100644 --- a/homeassistant/components/waterfurnace/strings.json +++ b/homeassistant/components/waterfurnace/strings.json @@ -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.",