mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add icon translations to Synology DSM (#112299)
This commit is contained in:
parent
0b6d004b9c
commit
f0679f6689
81
homeassistant/components/synology_dsm/icons.json
Normal file
81
homeassistant/components/synology_dsm/icons.json
Normal file
@ -0,0 +1,81 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"cpu_other_load": {
|
||||
"default": "mdi:chip"
|
||||
},
|
||||
"cpu_user_load": {
|
||||
"default": "mdi:chip"
|
||||
},
|
||||
"cpu_system_load": {
|
||||
"default": "mdi:chip"
|
||||
},
|
||||
"cpu_total_load": {
|
||||
"default": "mdi:chip"
|
||||
},
|
||||
"cpu_1min_load": {
|
||||
"default": "mdi:chip"
|
||||
},
|
||||
"cpu_5min_load": {
|
||||
"default": "mdi:chip"
|
||||
},
|
||||
"cpu_15min_load": {
|
||||
"default": "mdi:chip"
|
||||
},
|
||||
"memory_real_usage": {
|
||||
"default": "mdi:memory"
|
||||
},
|
||||
"memory_size": {
|
||||
"default": "mdi:memory"
|
||||
},
|
||||
"memory_cached": {
|
||||
"default": "mdi:memory"
|
||||
},
|
||||
"memory_available_swap": {
|
||||
"default": "mdi:memory"
|
||||
},
|
||||
"memory_available_real": {
|
||||
"default": "mdi:memory"
|
||||
},
|
||||
"memory_total_swap": {
|
||||
"default": "mdi:memory"
|
||||
},
|
||||
"memory_total_real": {
|
||||
"default": "mdi:memory"
|
||||
},
|
||||
"network_up": {
|
||||
"default": "mdi:upload"
|
||||
},
|
||||
"network_down": {
|
||||
"default": "mdi:download"
|
||||
},
|
||||
"volume_status": {
|
||||
"default": "mdi:checkbox-marked-circle-outline"
|
||||
},
|
||||
"volume_size_total": {
|
||||
"default": "mdi:chart-pie"
|
||||
},
|
||||
"volume_size_used": {
|
||||
"default": "mdi:chart-pie"
|
||||
},
|
||||
"volume_percentage_used": {
|
||||
"default": "mdi:chart-pie"
|
||||
},
|
||||
"disk_smart_status": {
|
||||
"default": "mdi:checkbox-marked-circle-outline"
|
||||
},
|
||||
"disk_status": {
|
||||
"default": "mdi:checkbox-marked-circle-outline"
|
||||
}
|
||||
},
|
||||
"switch": {
|
||||
"home_mode": {
|
||||
"default": "mdi:home-account"
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"reboot": "mdi:reboot",
|
||||
"shutdown": "mdi:power"
|
||||
}
|
||||
}
|
@ -52,7 +52,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
key="cpu_other_load",
|
||||
translation_key="cpu_other_load",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:chip",
|
||||
entity_registry_enabled_default=False,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
@ -61,7 +60,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
key="cpu_user_load",
|
||||
translation_key="cpu_user_load",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:chip",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -69,7 +67,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
key="cpu_system_load",
|
||||
translation_key="cpu_system_load",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:chip",
|
||||
entity_registry_enabled_default=False,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
@ -78,7 +75,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
key="cpu_total_load",
|
||||
translation_key="cpu_total_load",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:chip",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -86,7 +82,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
key="cpu_1min_load",
|
||||
translation_key="cpu_1min_load",
|
||||
native_unit_of_measurement=ENTITY_UNIT_LOAD,
|
||||
icon="mdi:chip",
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -94,21 +89,18 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
key="cpu_5min_load",
|
||||
translation_key="cpu_5min_load",
|
||||
native_unit_of_measurement=ENTITY_UNIT_LOAD,
|
||||
icon="mdi:chip",
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
api_key=SynoCoreUtilization.API_KEY,
|
||||
key="cpu_15min_load",
|
||||
translation_key="cpu_15min_load",
|
||||
native_unit_of_measurement=ENTITY_UNIT_LOAD,
|
||||
icon="mdi:chip",
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
api_key=SynoCoreUtilization.API_KEY,
|
||||
key="memory_real_usage",
|
||||
translation_key="memory_real_usage",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:memory",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -119,7 +111,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
icon="mdi:memory",
|
||||
entity_registry_enabled_default=False,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
@ -131,7 +122,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
icon="mdi:memory",
|
||||
entity_registry_enabled_default=False,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
@ -143,7 +133,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
icon="mdi:memory",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -154,7 +143,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
icon="mdi:memory",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -165,7 +153,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
icon="mdi:memory",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -176,7 +163,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
icon="mdi:memory",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -187,7 +173,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_RATE,
|
||||
icon="mdi:upload",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -198,7 +183,6 @@ UTILISATION_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_RATE,
|
||||
icon="mdi:download",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
)
|
||||
@ -207,7 +191,6 @@ STORAGE_VOL_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
api_key=SynoStorage.API_KEY,
|
||||
key="volume_status",
|
||||
translation_key="volume_status",
|
||||
icon="mdi:checkbox-marked-circle-outline",
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
api_key=SynoStorage.API_KEY,
|
||||
@ -217,7 +200,6 @@ STORAGE_VOL_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfInformation.TERABYTES,
|
||||
suggested_display_precision=2,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
icon="mdi:chart-pie",
|
||||
entity_registry_enabled_default=False,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
@ -229,7 +211,6 @@ STORAGE_VOL_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
suggested_unit_of_measurement=UnitOfInformation.TERABYTES,
|
||||
suggested_display_precision=2,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
icon="mdi:chart-pie",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
@ -237,7 +218,6 @@ STORAGE_VOL_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
key="volume_percentage_used",
|
||||
translation_key="volume_percentage_used",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:chart-pie",
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
api_key=SynoStorage.API_KEY,
|
||||
@ -262,7 +242,6 @@ STORAGE_DISK_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
api_key=SynoStorage.API_KEY,
|
||||
key="disk_smart_status",
|
||||
translation_key="disk_smart_status",
|
||||
icon="mdi:checkbox-marked-circle-outline",
|
||||
entity_registry_enabled_default=False,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
@ -270,7 +249,6 @@ STORAGE_DISK_SENSORS: tuple[SynologyDSMSensorEntityDescription, ...] = (
|
||||
api_key=SynoStorage.API_KEY,
|
||||
key="disk_status",
|
||||
translation_key="disk_status",
|
||||
icon="mdi:checkbox-marked-circle-outline",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
SynologyDSMSensorEntityDescription(
|
||||
|
@ -34,7 +34,6 @@ SURVEILLANCE_SWITCH: tuple[SynologyDSMSwitchEntityDescription, ...] = (
|
||||
api_key=SynoSurveillanceStation.HOME_MODE_API_KEY,
|
||||
key="home_mode",
|
||||
translation_key="home_mode",
|
||||
icon="mdi:home-account",
|
||||
),
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user