mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Improve entity names for unifiprotect sensors (#158803)
Co-authored-by: RaHehl <rahehl@users.noreply.github.com>
This commit is contained in:
@@ -346,28 +346,28 @@ SENSE_SENSORS: tuple[ProtectBinaryEntityDescription, ...] = (
|
||||
),
|
||||
ProtectBinaryEntityDescription(
|
||||
key="motion_enabled",
|
||||
translation_key="detections_motion",
|
||||
translation_key="motion_detection_enabled",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
ufp_value="motion_settings.is_enabled",
|
||||
ufp_perm=PermRequired.NO_WRITE,
|
||||
),
|
||||
ProtectBinaryEntityDescription(
|
||||
key="temperature",
|
||||
translation_key="temperature_sensor",
|
||||
translation_key="temperature_sensor_enabled",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
ufp_value="temperature_settings.is_enabled",
|
||||
ufp_perm=PermRequired.NO_WRITE,
|
||||
),
|
||||
ProtectBinaryEntityDescription(
|
||||
key="humidity",
|
||||
translation_key="humidity_sensor",
|
||||
translation_key="humidity_sensor_enabled",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
ufp_value="humidity_settings.is_enabled",
|
||||
ufp_perm=PermRequired.NO_WRITE,
|
||||
),
|
||||
ProtectBinaryEntityDescription(
|
||||
key="light",
|
||||
translation_key="light_sensor",
|
||||
translation_key="light_sensor_enabled",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
ufp_value="light_settings.is_enabled",
|
||||
ufp_perm=PermRequired.NO_WRITE,
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"alarm_sound_detection": {
|
||||
"default": "mdi:alarm-bell"
|
||||
},
|
||||
"animal_detected": {
|
||||
"default": "mdi:paw"
|
||||
},
|
||||
@@ -85,12 +88,21 @@
|
||||
"humidity_sensor": {
|
||||
"default": "mdi:water-percent"
|
||||
},
|
||||
"humidity_sensor_enabled": {
|
||||
"default": "mdi:water-percent"
|
||||
},
|
||||
"is_dark": {
|
||||
"default": "mdi:brightness-6"
|
||||
},
|
||||
"light_sensor": {
|
||||
"default": "mdi:brightness-5"
|
||||
},
|
||||
"light_sensor_enabled": {
|
||||
"default": "mdi:brightness-5"
|
||||
},
|
||||
"motion_detection_enabled": {
|
||||
"default": "mdi:walk"
|
||||
},
|
||||
"object_detected": {
|
||||
"default": "mdi:eye"
|
||||
},
|
||||
@@ -133,6 +145,9 @@
|
||||
"temperature_sensor": {
|
||||
"default": "mdi:thermometer"
|
||||
},
|
||||
"temperature_sensor_enabled": {
|
||||
"default": "mdi:thermometer"
|
||||
},
|
||||
"tracking_person": {
|
||||
"default": "mdi:walk"
|
||||
},
|
||||
|
||||
@@ -119,49 +119,49 @@
|
||||
"name": "Contact"
|
||||
},
|
||||
"detections_animal": {
|
||||
"name": "Detections: animal"
|
||||
"name": "Animal detection"
|
||||
},
|
||||
"detections_baby_cry": {
|
||||
"name": "Detections: baby cry"
|
||||
"name": "Baby cry detection"
|
||||
},
|
||||
"detections_barking": {
|
||||
"name": "Detections: barking"
|
||||
"name": "Barking detection"
|
||||
},
|
||||
"detections_car_alarm": {
|
||||
"name": "Detections: car alarm"
|
||||
"name": "Car alarm detection"
|
||||
},
|
||||
"detections_car_horn": {
|
||||
"name": "Detections: car horn"
|
||||
"name": "Car horn detection"
|
||||
},
|
||||
"detections_co_alarm": {
|
||||
"name": "Detections: CO alarm"
|
||||
"name": "CO alarm detection"
|
||||
},
|
||||
"detections_glass_break": {
|
||||
"name": "Detections: glass break"
|
||||
"name": "Glass break detection"
|
||||
},
|
||||
"detections_license_plate": {
|
||||
"name": "Detections: license plate"
|
||||
"name": "License plate detection"
|
||||
},
|
||||
"detections_motion": {
|
||||
"name": "Detections: motion"
|
||||
"name": "Motion detection"
|
||||
},
|
||||
"detections_package": {
|
||||
"name": "Detections: package"
|
||||
"name": "Package detection"
|
||||
},
|
||||
"detections_person": {
|
||||
"name": "Detections: person"
|
||||
"name": "Person detection"
|
||||
},
|
||||
"detections_siren": {
|
||||
"name": "Detections: siren"
|
||||
"name": "Siren detection"
|
||||
},
|
||||
"detections_smoke": {
|
||||
"name": "Detections: smoke"
|
||||
"name": "Smoke detection"
|
||||
},
|
||||
"detections_speaking": {
|
||||
"name": "Detections: speaking"
|
||||
"name": "Speaking detection"
|
||||
},
|
||||
"detections_vehicle": {
|
||||
"name": "Detections: vehicle"
|
||||
"name": "Vehicle detection"
|
||||
},
|
||||
"doorbell": {
|
||||
"name": "[%key:component::event::entity_component::doorbell::name%]"
|
||||
@@ -181,12 +181,21 @@
|
||||
"humidity_sensor": {
|
||||
"name": "Humidity sensor"
|
||||
},
|
||||
"humidity_sensor_enabled": {
|
||||
"name": "Humidity sensor enabled"
|
||||
},
|
||||
"is_dark": {
|
||||
"name": "Is dark"
|
||||
},
|
||||
"light_sensor": {
|
||||
"name": "Light sensor"
|
||||
},
|
||||
"light_sensor_enabled": {
|
||||
"name": "Light sensor enabled"
|
||||
},
|
||||
"motion_detection_enabled": {
|
||||
"name": "Motion detection enabled"
|
||||
},
|
||||
"object_detected": {
|
||||
"name": "Object detected"
|
||||
},
|
||||
@@ -229,6 +238,9 @@
|
||||
"temperature_sensor": {
|
||||
"name": "Temperature sensor"
|
||||
},
|
||||
"temperature_sensor_enabled": {
|
||||
"name": "Temperature sensor enabled"
|
||||
},
|
||||
"tracking_person": {
|
||||
"name": "Tracking: person"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user