mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 08:07:45 +00:00
Add icon translations to Solaredge (#112231)
This commit is contained in:
parent
0724a06d3a
commit
ee9802534a
33
homeassistant/components/solaredge/icons.json
Normal file
33
homeassistant/components/solaredge/icons.json
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"lifetime_energy": {
|
||||||
|
"default": "mdi:solar-power"
|
||||||
|
},
|
||||||
|
"energy_this_year": {
|
||||||
|
"default": "mdi:solar-power"
|
||||||
|
},
|
||||||
|
"energy_this_month": {
|
||||||
|
"default": "mdi:solar-power"
|
||||||
|
},
|
||||||
|
"energy_today": {
|
||||||
|
"default": "mdi:solar-power"
|
||||||
|
},
|
||||||
|
"current_power": {
|
||||||
|
"default": "mdi:solar-power"
|
||||||
|
},
|
||||||
|
"power_consumption": {
|
||||||
|
"default": "mdi:flash"
|
||||||
|
},
|
||||||
|
"solar_power": {
|
||||||
|
"default": "mdi:solar-power"
|
||||||
|
},
|
||||||
|
"grid_power": {
|
||||||
|
"default": "mdi:power-plug"
|
||||||
|
},
|
||||||
|
"storage_power": {
|
||||||
|
"default": "mdi:car-battery"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -52,7 +52,6 @@ SENSOR_TYPES = [
|
|||||||
key="lifetime_energy",
|
key="lifetime_energy",
|
||||||
json_key="lifeTimeData",
|
json_key="lifeTimeData",
|
||||||
translation_key="lifetime_energy",
|
translation_key="lifetime_energy",
|
||||||
icon="mdi:solar-power",
|
|
||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
@ -62,7 +61,6 @@ SENSOR_TYPES = [
|
|||||||
json_key="lastYearData",
|
json_key="lastYearData",
|
||||||
translation_key="energy_this_year",
|
translation_key="energy_this_year",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:solar-power",
|
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
),
|
),
|
||||||
@ -71,7 +69,6 @@ SENSOR_TYPES = [
|
|||||||
json_key="lastMonthData",
|
json_key="lastMonthData",
|
||||||
translation_key="energy_this_month",
|
translation_key="energy_this_month",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:solar-power",
|
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
),
|
),
|
||||||
@ -80,7 +77,6 @@ SENSOR_TYPES = [
|
|||||||
json_key="lastDayData",
|
json_key="lastDayData",
|
||||||
translation_key="energy_today",
|
translation_key="energy_today",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:solar-power",
|
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
),
|
),
|
||||||
@ -88,7 +84,6 @@ SENSOR_TYPES = [
|
|||||||
key="current_power",
|
key="current_power",
|
||||||
json_key="currentPower",
|
json_key="currentPower",
|
||||||
translation_key="current_power",
|
translation_key="current_power",
|
||||||
icon="mdi:solar-power",
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
native_unit_of_measurement=UnitOfPower.WATT,
|
native_unit_of_measurement=UnitOfPower.WATT,
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
@ -134,28 +129,24 @@ SENSOR_TYPES = [
|
|||||||
json_key="LOAD",
|
json_key="LOAD",
|
||||||
translation_key="power_consumption",
|
translation_key="power_consumption",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:flash",
|
|
||||||
),
|
),
|
||||||
SolarEdgeSensorEntityDescription(
|
SolarEdgeSensorEntityDescription(
|
||||||
key="solar_power",
|
key="solar_power",
|
||||||
json_key="PV",
|
json_key="PV",
|
||||||
translation_key="solar_power",
|
translation_key="solar_power",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:solar-power",
|
|
||||||
),
|
),
|
||||||
SolarEdgeSensorEntityDescription(
|
SolarEdgeSensorEntityDescription(
|
||||||
key="grid_power",
|
key="grid_power",
|
||||||
json_key="GRID",
|
json_key="GRID",
|
||||||
translation_key="grid_power",
|
translation_key="grid_power",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:power-plug",
|
|
||||||
),
|
),
|
||||||
SolarEdgeSensorEntityDescription(
|
SolarEdgeSensorEntityDescription(
|
||||||
key="storage_power",
|
key="storage_power",
|
||||||
json_key="STORAGE",
|
json_key="STORAGE",
|
||||||
translation_key="storage_power",
|
translation_key="storage_power",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:car-battery",
|
|
||||||
),
|
),
|
||||||
SolarEdgeSensorEntityDescription(
|
SolarEdgeSensorEntityDescription(
|
||||||
key="purchased_energy",
|
key="purchased_energy",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user