Add icon translations to edl21 (#111420)
This commit is contained in:
parent
33cb54b888
commit
8dec6336b3
2 changed files with 42 additions and 12 deletions
42
homeassistant/components/edl21/icons.json
Normal file
42
homeassistant/components/edl21/icons.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"ownership_id": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"electricity_id": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"configuration_program_version_number": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"firmware_version_number": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"supply_frequency": {
|
||||
"default": "mdi:sine-wave"
|
||||
},
|
||||
"u_l2_u_l1_phase_angle": {
|
||||
"default": "mdi:sine-wave"
|
||||
},
|
||||
"u_l3_u_l1_phase_angle": {
|
||||
"default": "mdi:sine-wave"
|
||||
},
|
||||
"u_l1_i_l1_phase_angle": {
|
||||
"default": "mdi:sine-wave"
|
||||
},
|
||||
"u_l2_i_l2_phase_angle": {
|
||||
"default": "mdi:sine-wave"
|
||||
},
|
||||
"u_l3_i_l3_phase_angle": {
|
||||
"default": "mdi:sine-wave"
|
||||
},
|
||||
"metering_point_id_1": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"internal_operating_status": {
|
||||
"default": "mdi:flash"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -51,25 +51,21 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
SensorEntityDescription(
|
||||
key="1-0:0.0.0*255",
|
||||
translation_key="ownership_id",
|
||||
icon="mdi:flash",
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
# E=9: Electrity ID
|
||||
SensorEntityDescription(
|
||||
key="1-0:0.0.9*255",
|
||||
translation_key="electricity_id",
|
||||
icon="mdi:flash",
|
||||
),
|
||||
# D=2: Program entries
|
||||
SensorEntityDescription(
|
||||
key="1-0:0.2.0*0",
|
||||
translation_key="configuration_program_version_number",
|
||||
icon="mdi:flash",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="1-0:0.2.0*1",
|
||||
translation_key="firmware_version_number",
|
||||
icon="mdi:flash",
|
||||
),
|
||||
# C=1: Active power +
|
||||
# D=7: Current value
|
||||
|
@ -138,7 +134,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
SensorEntityDescription(
|
||||
key="1-0:14.7.0*255",
|
||||
translation_key="supply_frequency",
|
||||
icon="mdi:sine-wave",
|
||||
),
|
||||
# C=15: Active power absolute
|
||||
# D=7: Instantaneous value
|
||||
|
@ -249,38 +244,31 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
SensorEntityDescription(
|
||||
key="1-0:81.7.1*255",
|
||||
translation_key="u_l2_u_l1_phase_angle",
|
||||
icon="mdi:sine-wave",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="1-0:81.7.2*255",
|
||||
translation_key="u_l3_u_l1_phase_angle",
|
||||
icon="mdi:sine-wave",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="1-0:81.7.4*255",
|
||||
translation_key="u_l1_i_l1_phase_angle",
|
||||
icon="mdi:sine-wave",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="1-0:81.7.15*255",
|
||||
translation_key="u_l2_i_l2_phase_angle",
|
||||
icon="mdi:sine-wave",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="1-0:81.7.26*255",
|
||||
translation_key="u_l3_i_l3_phase_angle",
|
||||
icon="mdi:sine-wave",
|
||||
),
|
||||
# C=96: Electricity-related service entries
|
||||
SensorEntityDescription(
|
||||
key="1-0:96.1.0*255",
|
||||
translation_key="metering_point_id_1",
|
||||
icon="mdi:flash",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="1-0:96.5.0*255",
|
||||
translation_key="internal_operating_status",
|
||||
icon="mdi:flash",
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue