Add icon translations to Vallox (#112339)
This commit is contained in:
parent
aab2c91c87
commit
75df17a8bb
6 changed files with 44 additions and 12 deletions
|
@ -59,7 +59,6 @@ BINARY_SENSOR_ENTITIES: tuple[ValloxBinarySensorEntityDescription, ...] = (
|
||||||
ValloxBinarySensorEntityDescription(
|
ValloxBinarySensorEntityDescription(
|
||||||
key="post_heater",
|
key="post_heater",
|
||||||
translation_key="post_heater",
|
translation_key="post_heater",
|
||||||
icon="mdi:radiator",
|
|
||||||
metric_key="A_CYC_IO_HEATER",
|
metric_key="A_CYC_IO_HEATER",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,7 +20,6 @@ class ValloxFilterChangeDateEntity(ValloxEntity, DateEntity):
|
||||||
|
|
||||||
_attr_entity_category = EntityCategory.CONFIG
|
_attr_entity_category = EntityCategory.CONFIG
|
||||||
_attr_translation_key = "filter_change_date"
|
_attr_translation_key = "filter_change_date"
|
||||||
_attr_icon = "mdi:air-filter"
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|
44
homeassistant/components/vallox/icons.json
Normal file
44
homeassistant/components/vallox/icons.json
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"binary_sensor": {
|
||||||
|
"post_heater": {
|
||||||
|
"default": "mdi:radiator"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"date": {
|
||||||
|
"filter_change_date": {
|
||||||
|
"default": "mdi:air-filter"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sensor": {
|
||||||
|
"current_profile": {
|
||||||
|
"default": "mdi:gauge"
|
||||||
|
},
|
||||||
|
"fan_speed": {
|
||||||
|
"default": "mdi:fan"
|
||||||
|
},
|
||||||
|
"extract_fan_speed": {
|
||||||
|
"default": "mdi:fan"
|
||||||
|
},
|
||||||
|
"supply_fan_speed": {
|
||||||
|
"default": "mdi:fan"
|
||||||
|
},
|
||||||
|
"cell_state": {
|
||||||
|
"default": "mdi:swap-horizontal-bold"
|
||||||
|
},
|
||||||
|
"efficiency": {
|
||||||
|
"default": "mdi:gauge"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"switch": {
|
||||||
|
"bypass_locked": {
|
||||||
|
"default": "mdi:arrow-horizontal-lock"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"set_profile_fan_speed_home": "mdi:home",
|
||||||
|
"set_profile_fan_speed_away": "mdi:walk",
|
||||||
|
"set_profile_fan_speed_boost": "mdi:speedometer"
|
||||||
|
}
|
||||||
|
}
|
|
@ -77,7 +77,6 @@ NUMBER_ENTITIES: tuple[ValloxNumberEntityDescription, ...] = (
|
||||||
metric_key="A_CYC_HOME_AIR_TEMP_TARGET",
|
metric_key="A_CYC_HOME_AIR_TEMP_TARGET",
|
||||||
device_class=NumberDeviceClass.TEMPERATURE,
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
icon="mdi:thermometer",
|
|
||||||
native_min_value=5.0,
|
native_min_value=5.0,
|
||||||
native_max_value=25.0,
|
native_max_value=25.0,
|
||||||
native_step=1.0,
|
native_step=1.0,
|
||||||
|
@ -88,7 +87,6 @@ NUMBER_ENTITIES: tuple[ValloxNumberEntityDescription, ...] = (
|
||||||
metric_key="A_CYC_AWAY_AIR_TEMP_TARGET",
|
metric_key="A_CYC_AWAY_AIR_TEMP_TARGET",
|
||||||
device_class=NumberDeviceClass.TEMPERATURE,
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
icon="mdi:thermometer",
|
|
||||||
native_min_value=5.0,
|
native_min_value=5.0,
|
||||||
native_max_value=25.0,
|
native_max_value=25.0,
|
||||||
native_step=1.0,
|
native_step=1.0,
|
||||||
|
@ -99,7 +97,6 @@ NUMBER_ENTITIES: tuple[ValloxNumberEntityDescription, ...] = (
|
||||||
metric_key="A_CYC_BOOST_AIR_TEMP_TARGET",
|
metric_key="A_CYC_BOOST_AIR_TEMP_TARGET",
|
||||||
device_class=NumberDeviceClass.TEMPERATURE,
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
icon="mdi:thermometer",
|
|
||||||
native_min_value=5.0,
|
native_min_value=5.0,
|
||||||
native_max_value=25.0,
|
native_max_value=25.0,
|
||||||
native_step=1.0,
|
native_step=1.0,
|
||||||
|
|
|
@ -138,14 +138,12 @@ SENSOR_ENTITIES: tuple[ValloxSensorEntityDescription, ...] = (
|
||||||
ValloxSensorEntityDescription(
|
ValloxSensorEntityDescription(
|
||||||
key="current_profile",
|
key="current_profile",
|
||||||
translation_key="current_profile",
|
translation_key="current_profile",
|
||||||
icon="mdi:gauge",
|
|
||||||
entity_type=ValloxProfileSensor,
|
entity_type=ValloxProfileSensor,
|
||||||
),
|
),
|
||||||
ValloxSensorEntityDescription(
|
ValloxSensorEntityDescription(
|
||||||
key="fan_speed",
|
key="fan_speed",
|
||||||
translation_key="fan_speed",
|
translation_key="fan_speed",
|
||||||
metric_key="A_CYC_FAN_SPEED",
|
metric_key="A_CYC_FAN_SPEED",
|
||||||
icon="mdi:fan",
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
entity_type=ValloxFanSpeedSensor,
|
entity_type=ValloxFanSpeedSensor,
|
||||||
|
@ -154,7 +152,6 @@ SENSOR_ENTITIES: tuple[ValloxSensorEntityDescription, ...] = (
|
||||||
key="extract_fan_speed",
|
key="extract_fan_speed",
|
||||||
translation_key="extract_fan_speed",
|
translation_key="extract_fan_speed",
|
||||||
metric_key="A_CYC_EXTR_FAN_SPEED",
|
metric_key="A_CYC_EXTR_FAN_SPEED",
|
||||||
icon="mdi:fan",
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
native_unit_of_measurement=REVOLUTIONS_PER_MINUTE,
|
native_unit_of_measurement=REVOLUTIONS_PER_MINUTE,
|
||||||
entity_type=ValloxFanSpeedSensor,
|
entity_type=ValloxFanSpeedSensor,
|
||||||
|
@ -164,7 +161,6 @@ SENSOR_ENTITIES: tuple[ValloxSensorEntityDescription, ...] = (
|
||||||
key="supply_fan_speed",
|
key="supply_fan_speed",
|
||||||
translation_key="supply_fan_speed",
|
translation_key="supply_fan_speed",
|
||||||
metric_key="A_CYC_SUPP_FAN_SPEED",
|
metric_key="A_CYC_SUPP_FAN_SPEED",
|
||||||
icon="mdi:fan",
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
native_unit_of_measurement=REVOLUTIONS_PER_MINUTE,
|
native_unit_of_measurement=REVOLUTIONS_PER_MINUTE,
|
||||||
entity_type=ValloxFanSpeedSensor,
|
entity_type=ValloxFanSpeedSensor,
|
||||||
|
@ -179,7 +175,6 @@ SENSOR_ENTITIES: tuple[ValloxSensorEntityDescription, ...] = (
|
||||||
ValloxSensorEntityDescription(
|
ValloxSensorEntityDescription(
|
||||||
key="cell_state",
|
key="cell_state",
|
||||||
translation_key="cell_state",
|
translation_key="cell_state",
|
||||||
icon="mdi:swap-horizontal-bold",
|
|
||||||
metric_key="A_CYC_CELL_STATE",
|
metric_key="A_CYC_CELL_STATE",
|
||||||
entity_type=ValloxCellStateSensor,
|
entity_type=ValloxCellStateSensor,
|
||||||
),
|
),
|
||||||
|
@ -243,7 +238,6 @@ SENSOR_ENTITIES: tuple[ValloxSensorEntityDescription, ...] = (
|
||||||
key="efficiency",
|
key="efficiency",
|
||||||
translation_key="efficiency",
|
translation_key="efficiency",
|
||||||
metric_key="A_CYC_EXTRACT_EFFICIENCY",
|
metric_key="A_CYC_EXTRACT_EFFICIENCY",
|
||||||
icon="mdi:gauge",
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
|
|
@ -77,7 +77,6 @@ SWITCH_ENTITIES: tuple[ValloxSwitchEntityDescription, ...] = (
|
||||||
ValloxSwitchEntityDescription(
|
ValloxSwitchEntityDescription(
|
||||||
key="bypass_locked",
|
key="bypass_locked",
|
||||||
translation_key="bypass_locked",
|
translation_key="bypass_locked",
|
||||||
icon="mdi:arrow-horizontal-lock",
|
|
||||||
metric_key="A_CYC_BYPASS_LOCKED",
|
metric_key="A_CYC_BYPASS_LOCKED",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue