فهرست منبع

feat(translations): add notification event translation

Issue #1708
Jason Rumney 5 ساعت پیش
والد
کامیت
ebd4ddcf99
59فایلهای تغییر یافته به همراه109 افزوده شده و 40 حذف شده
  1. 3 0
      custom_components/tuya_local/__init__.py
  2. 1 1
      custom_components/tuya_local/devices/advwin_6l_petfeeder.yaml
  3. 1 2
      custom_components/tuya_local/devices/ajxml_1080p_videodoorbell.yaml
  4. 1 1
      custom_components/tuya_local/devices/cecotec_congaz100_vacuum.yaml
  5. 1 1
      custom_components/tuya_local/devices/cleverio_cd200_doorbell.yaml
  6. 1 1
      custom_components/tuya_local/devices/cpvan_cp2w_alarm.yaml
  7. 1 1
      custom_components/tuya_local/devices/door_peephole_camera.yaml
  8. 1 1
      custom_components/tuya_local/devices/emos_ip300_camera.yaml
  9. 1 2
      custom_components/tuya_local/devices/feelneedy_plfp01_petfeeder.yaml
  10. 1 1
      custom_components/tuya_local/devices/frienhund_acf180wa_dualfeeder.yaml
  11. 1 1
      custom_components/tuya_local/devices/furpipi_camera_petfeeder.yaml
  12. 1 2
      custom_components/tuya_local/devices/happypaws_corebox_litterbox.yaml
  13. 1 1
      custom_components/tuya_local/devices/homall_90l_litterbox.yaml
  14. 1 1
      custom_components/tuya_local/devices/homemate_ptzcamera.yaml
  15. 1 1
      custom_components/tuya_local/devices/huntertbk_hf6602t_doorbell.yaml
  16. 1 1
      custom_components/tuya_local/devices/kerui_200w_camera.yaml
  17. 1 1
      custom_components/tuya_local/devices/kerui_300w_camera.yaml
  18. 1 1
      custom_components/tuya_local/devices/lindasmart_7s_doorbell.yaml
  19. 1 1
      custom_components/tuya_local/devices/lscsmartconnect_outdoorcamera.yaml
  20. 1 1
      custom_components/tuya_local/devices/lscsmartconnect_outdoorptzcamera.yaml
  21. 1 2
      custom_components/tuya_local/devices/lscsmartconnect_videodoorbell.yaml
  22. 1 1
      custom_components/tuya_local/devices/medion_x10sw_vacuum.yaml
  23. 1 1
      custom_components/tuya_local/devices/meowmatic_petfeeder.yaml
  24. 1 1
      custom_components/tuya_local/devices/neptun_smartplus_waterleak.yaml
  25. 1 1
      custom_components/tuya_local/devices/ningbo_bf314a_petfeeder.yaml
  26. 1 1
      custom_components/tuya_local/devices/nityers_titan_petfeeder.yaml
  27. 1 2
      custom_components/tuya_local/devices/petsnowy_snowplus_catlitter.yaml
  28. 1 1
      custom_components/tuya_local/devices/pinjia_pj3101a_presence.yaml
  29. 1 1
      custom_components/tuya_local/devices/rhpd10_doorbell_camera.yaml
  30. 1 1
      custom_components/tuya_local/devices/rl_video_lock.yaml
  31. 1 1
      custom_components/tuya_local/devices/silvercrest_hf6602t_airfryer.yaml
  32. 1 1
      custom_components/tuya_local/devices/smcm_doorbellpro_camera.yaml
  33. 1 2
      custom_components/tuya_local/devices/tonepie_t1pro_catlitterbox_max.yaml
  34. 1 1
      custom_components/tuya_local/devices/vevor_selfcleaning_litterbox.yaml
  35. 1 1
      custom_components/tuya_local/devices/yakry_camera_petfeeder.yaml
  36. 3 0
      custom_components/tuya_local/icons.json
  37. 3 0
      custom_components/tuya_local/translations/bg.json
  38. 3 0
      custom_components/tuya_local/translations/ca.json
  39. 3 0
      custom_components/tuya_local/translations/cs.json
  40. 3 0
      custom_components/tuya_local/translations/de.json
  41. 3 0
      custom_components/tuya_local/translations/el.json
  42. 3 0
      custom_components/tuya_local/translations/en.json
  43. 3 0
      custom_components/tuya_local/translations/es.json
  44. 3 0
      custom_components/tuya_local/translations/fr.json
  45. 3 0
      custom_components/tuya_local/translations/hu.json
  46. 3 0
      custom_components/tuya_local/translations/id.json
  47. 3 0
      custom_components/tuya_local/translations/it.json
  48. 3 0
      custom_components/tuya_local/translations/ja.json
  49. 3 0
      custom_components/tuya_local/translations/no-NB.json
  50. 3 0
      custom_components/tuya_local/translations/pl.json
  51. 3 0
      custom_components/tuya_local/translations/pt-BR.json
  52. 3 0
      custom_components/tuya_local/translations/pt-PT.json
  53. 3 0
      custom_components/tuya_local/translations/ro.json
  54. 3 0
      custom_components/tuya_local/translations/ru.json
  55. 3 0
      custom_components/tuya_local/translations/sv.json
  56. 3 0
      custom_components/tuya_local/translations/uk.json
  57. 3 0
      custom_components/tuya_local/translations/ur.json
  58. 3 0
      custom_components/tuya_local/translations/zh-Hans.json
  59. 3 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 3 - 0
custom_components/tuya_local/__init__.py

@@ -1045,6 +1045,9 @@ async def async_migrate_entry(hass, entry: ConfigEntry):
                 "sensor_sd_card_status": "sensor_sd_status",
                 "switch_record": "switch_camera_record",
                 "switch_sd_card_recording": "switch_camera_record",
+                "event_push_message": "event_notification",
+                "event_reminder": "event_notification",
+                "event_status": "event_notification",
             }
             return replace_unique_ids(entity_entry, device_id, conf_file, replacements)
 

+ 1 - 1
custom_components/tuya_local/devices/advwin_6l_petfeeder.yaml

@@ -115,7 +115,7 @@ entities:
         optional: true
         name: button
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: utf16b64

+ 1 - 2
custom_components/tuya_local/devices/ajxml_1080p_videodoorbell.yaml

@@ -113,8 +113,7 @@ entities:
         optional: true
         name: message
   - entity: event
-    name: Notification
-    icon: "mdi:message"
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 1
custom_components/tuya_local/devices/cecotec_congaz100_vacuum.yaml

@@ -247,7 +247,7 @@ entities:
         name: sensor
         unit: m2
   - entity: event
-    name: Notification
+    translation_key: notification
     category: diagnostic
     hidden: true
     dps:

+ 1 - 1
custom_components/tuya_local/devices/cleverio_cd200_doorbell.yaml

@@ -303,7 +303,7 @@ entities:
         optional: true
         name: message
   - entity: event
-    name: Push message
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 1
custom_components/tuya_local/devices/cpvan_cp2w_alarm.yaml

@@ -163,7 +163,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Push message
+    translation_key: notification
     dps:
       - id: 101
         type: string

+ 1 - 1
custom_components/tuya_local/devices/door_peephole_camera.yaml

@@ -191,7 +191,7 @@ entities:
         optional: true
         name: message
   - entity: event
-    name: Notification
+    translation_key: notification
     category: diagnostic
     dps:
       - id: 212

+ 1 - 1
custom_components/tuya_local/devices/emos_ip300_camera.yaml

@@ -346,7 +346,7 @@ entities:
         name: alarm_message
         optional: true
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: base64

+ 1 - 2
custom_components/tuya_local/devices/feelneedy_plfp01_petfeeder.yaml

@@ -358,8 +358,7 @@ entities:
           - dps_val: false
             value: gone
   - entity: event
-    name: Notification
-    icon: "mdi:bell"
+    translation_key: notification
     dps:
       - id: 212
         type: base64

+ 1 - 1
custom_components/tuya_local/devices/frienhund_acf180wa_dualfeeder.yaml

@@ -239,7 +239,7 @@ entities:
         name: sensor
         unit: "%"
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: utf16b64

+ 1 - 1
custom_components/tuya_local/devices/furpipi_camera_petfeeder.yaml

@@ -114,7 +114,7 @@ entities:
         optional: true
         name: button
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: utf16b64

+ 1 - 2
custom_components/tuya_local/devices/happypaws_corebox_litterbox.yaml

@@ -65,8 +65,7 @@ entities:
         mapping:
           - step: 5
   - entity: event
-    name: Notification
-    icon: "mdi:message-alert"
+    translation_key: notification
     dps:
       - id: 21
         type: bitfield

+ 1 - 1
custom_components/tuya_local/devices/homall_90l_litterbox.yaml

@@ -94,7 +94,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 21
         type: bitfield

+ 1 - 1
custom_components/tuya_local/devices/homemate_ptzcamera.yaml

@@ -580,7 +580,7 @@ entities:
           - dps_val: "4"
             value: "4"
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 1
custom_components/tuya_local/devices/huntertbk_hf6602t_doorbell.yaml

@@ -344,7 +344,7 @@ entities:
           - dps_val: "1"
             value: Always awake
   - entity: event
-    name: Push message
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 1
custom_components/tuya_local/devices/kerui_200w_camera.yaml

@@ -27,7 +27,7 @@ entities:
         optional: true
         name: snapshot
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: base64

+ 1 - 1
custom_components/tuya_local/devices/kerui_300w_camera.yaml

@@ -16,7 +16,7 @@ entities:
         optional: true
         name: switch
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: base64

+ 1 - 1
custom_components/tuya_local/devices/lindasmart_7s_doorbell.yaml

@@ -293,7 +293,7 @@ entities:
         optional: true
         name: message
   - entity: event
-    name: Push message
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 1
custom_components/tuya_local/devices/lscsmartconnect_outdoorcamera.yaml

@@ -317,7 +317,7 @@ entities:
         optional: true
         name: message
   - entity: event
-    name: Push message
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 1
custom_components/tuya_local/devices/lscsmartconnect_outdoorptzcamera.yaml

@@ -429,7 +429,7 @@ entities:
           - dps_val: "2"
             value: "60Hz"
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 2
custom_components/tuya_local/devices/lscsmartconnect_videodoorbell.yaml

@@ -226,8 +226,7 @@ entities:
           - dps_val: "2"
             value: "60Hz"
   - entity: event
-    name: Notification
-    icon: "mdi:message"
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 1
custom_components/tuya_local/devices/medion_x10sw_vacuum.yaml

@@ -474,7 +474,7 @@ entities:
         optional: true
         name: mcs_room_info
   - entity: event
-    name: Push message
+    translation_key: notification
     dps:
       - id: 199
         type: string

+ 1 - 1
custom_components/tuya_local/devices/meowmatic_petfeeder.yaml

@@ -107,7 +107,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: utf16b64

+ 1 - 1
custom_components/tuya_local/devices/neptun_smartplus_waterleak.yaml

@@ -92,7 +92,7 @@ entities:
         type: integer
         name: error_code
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 120
         type: boolean

+ 1 - 1
custom_components/tuya_local/devices/ningbo_bf314a_petfeeder.yaml

@@ -290,7 +290,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: base64

+ 1 - 1
custom_components/tuya_local/devices/nityers_titan_petfeeder.yaml

@@ -279,7 +279,7 @@ entities:
         optional: true
         name: button
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: utf16b64

+ 1 - 2
custom_components/tuya_local/devices/petsnowy_snowplus_catlitter.yaml

@@ -69,9 +69,8 @@ entities:
         type: boolean
         name: button
   - entity: event
-    name: Notification
+    translation_key: notification
     category: diagnostic
-    icon: "mdi:eye-circle-outline"
     dps:
       - id: 21
         type: bitfield

+ 1 - 1
custom_components/tuya_local/devices/pinjia_pj3101a_presence.yaml

@@ -169,7 +169,7 @@ entities:
             value: true
           - value: false
   - entity: event
-    name: Status
+    translation_key: notification
     dps:
       - id: 104
         type: string

+ 1 - 1
custom_components/tuya_local/devices/rhpd10_doorbell_camera.yaml

@@ -297,7 +297,7 @@ entities:
         optional: true
         name: switch
   - entity: event
-    name: Push message
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 1
custom_components/tuya_local/devices/rl_video_lock.yaml

@@ -72,7 +72,7 @@ entities:
         optional: true
         name: doorbell
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 185
         type: utf16b64

+ 1 - 1
custom_components/tuya_local/devices/silvercrest_hf6602t_airfryer.yaml

@@ -189,7 +189,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Reminder
+    translation_key: notification
     dps:
       - id: 101
         type: string

+ 1 - 1
custom_components/tuya_local/devices/smcm_doorbellpro_camera.yaml

@@ -238,7 +238,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: string

+ 1 - 2
custom_components/tuya_local/devices/tonepie_t1pro_catlitterbox_max.yaml

@@ -310,8 +310,7 @@ entities:
   # Event Notifications
   # Various device status and activity notifications
   - entity: event
-    name: Notification
-    icon: "mdi:bell"
+    translation_key: notification
     dps:
       - id: 21
         type: bitfield

+ 1 - 1
custom_components/tuya_local/devices/vevor_selfcleaning_litterbox.yaml

@@ -159,7 +159,7 @@ entities:
         type: integer
         name: sensor
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 104
         type: integer

+ 1 - 1
custom_components/tuya_local/devices/yakry_camera_petfeeder.yaml

@@ -204,7 +204,7 @@ entities:
           min: 1
           max: 100
   - entity: event
-    name: Notification
+    translation_key: notification
     dps:
       - id: 212
         type: utf16b64

+ 3 - 0
custom_components/tuya_local/icons.json

@@ -360,6 +360,9 @@
         "event": {
             "alarm": {
                 "default": "mdi:alarm-bell"
+            },
+            "notification": {
+                "default": "mdi:message-alert"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/bg.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Аларма"
+            },
+            "notification": {
+                "name": "Известие"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/ca.json

@@ -451,6 +451,9 @@
         "event": {
             "alarm": {
                 "name": "Alarma"
+            },
+            "notification": {
+                "name": "Notificació"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/cs.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarm"
+            },
+            "notification": {
+                "name": "Oznámení"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/de.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarm"
+            },
+            "notification": {
+                "name": "Benachrichtigung"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/el.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Συναγερμός"
+            },
+            "notification": {
+                "name": "Ειδοποίηση"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/en.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarm"
+            },
+            "notification": {
+                "name": "Notification"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/es.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarma"
+            },
+            "notification": {
+                "name": "Notificación"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/fr.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarme"
+            },
+            "notification": {
+                "name": "Notification"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/hu.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Riasztás"
+            },
+            "notification": {
+                "name": "Értesítés"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/id.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarm"
+            },
+            "notification": {
+                "name": "Pemberitahuan"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/it.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Allarme"
+            },
+            "notification": {
+                "name": "Notifica"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/ja.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "アラーム"
+            },
+            "notification": {
+                "name": "通知"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/no-NB.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarm"
+            },
+            "notification": {
+                "name": "Varsel"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/pl.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarm"
+            },
+            "notification": {
+                "name": "Powiadomienie"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/pt-BR.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarme"
+            },
+            "notification": {
+                "name": "Notificação"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/pt-PT.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarme"
+            },
+            "notification": {
+                "name": "Notificação"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/ro.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Alarmă"
+            },
+            "notification": {
+                "name": "Notificare"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/ru.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Тревога"
+            },
+            "notification": {
+                "name": "Уведомление"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/sv.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Larm"
+            },
+            "notification": {
+                "name": "Meddelande"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/uk.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "Тривога"
+            },
+            "notification": {
+                "name": "Сповіщення"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/ur.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "الارم"
+            },
+            "notification": {
+                "name": "اطلاع"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/zh-Hans.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "报警"
+            },
+            "notification": {
+                "name": "通知"
             }
         },
         "humidifier": {

+ 3 - 0
custom_components/tuya_local/translations/zh-Hant.json

@@ -413,6 +413,9 @@
         "event": {
             "alarm": {
                 "name": "警報"
+            },
+            "notification": {
+                "name": "通知"
             }
         },
         "humidifier": {