Browse Source

feat (translations): translate alarm event

Issue #1708
Jason Rumney 6 days ago
parent
commit
d884a4205d
51 changed files with 147 additions and 32 deletions
  1. 1 1
      custom_components/tuya_local/devices/bobyun_gatepro_opener.yaml
  2. 1 1
      custom_components/tuya_local/devices/cleverio_cd200_doorbell.yaml
  3. 1 1
      custom_components/tuya_local/devices/clofte_duo_400_humidifier.yaml
  4. 1 1
      custom_components/tuya_local/devices/cpvan_cp2w_alarm.yaml
  5. 1 1
      custom_components/tuya_local/devices/dewin_kws306wf_energymeter.yaml
  6. 1 1
      custom_components/tuya_local/devices/digoo_hamb_alarm.yaml
  7. 1 2
      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/fuers_videodoorbell.yaml
  11. 1 1
      custom_components/tuya_local/devices/gautone_pg103_alarm.yaml
  12. 1 1
      custom_components/tuya_local/devices/huntertbk_hf6602t_doorbell.yaml
  13. 1 1
      custom_components/tuya_local/devices/igethome_ds1_videodoorbell.yaml
  14. 1 1
      custom_components/tuya_local/devices/inkbird_isc007bw_smokercontrol.yaml
  15. 1 1
      custom_components/tuya_local/devices/kerui_120db_sirenalarm.yaml
  16. 1 1
      custom_components/tuya_local/devices/kerui_200w_camera.yaml
  17. 1 1
      custom_components/tuya_local/devices/lindasmart_7s_doorbell.yaml
  18. 1 1
      custom_components/tuya_local/devices/lscsmartconnect_outdoorcamera.yaml
  19. 1 2
      custom_components/tuya_local/devices/lscsmartconnect_videodoorbell.yaml
  20. 1 2
      custom_components/tuya_local/devices/moes_indoorptz_camera.yaml
  21. 1 2
      custom_components/tuya_local/devices/moes_wcmp52_camera.yaml
  22. 1 1
      custom_components/tuya_local/devices/ningbo_bf314a_petfeeder.yaml
  23. 1 1
      custom_components/tuya_local/devices/orion_dl033ha_lock.yaml
  24. 1 1
      custom_components/tuya_local/devices/rhpd10_doorbell_camera.yaml
  25. 1 1
      custom_components/tuya_local/devices/sboardiii_weigand_lock.yaml
  26. 1 1
      custom_components/tuya_local/devices/sc116wz3a_camera.yaml
  27. 1 1
      custom_components/tuya_local/devices/smcm_doorbellpro_camera.yaml
  28. 5 0
      custom_components/tuya_local/icons.json
  29. 5 0
      custom_components/tuya_local/translations/bg.json
  30. 5 0
      custom_components/tuya_local/translations/ca.json
  31. 5 0
      custom_components/tuya_local/translations/cz.json
  32. 5 0
      custom_components/tuya_local/translations/de.json
  33. 5 0
      custom_components/tuya_local/translations/el.json
  34. 5 0
      custom_components/tuya_local/translations/en.json
  35. 5 0
      custom_components/tuya_local/translations/es.json
  36. 5 0
      custom_components/tuya_local/translations/fr.json
  37. 5 0
      custom_components/tuya_local/translations/hu.json
  38. 5 0
      custom_components/tuya_local/translations/id.json
  39. 5 0
      custom_components/tuya_local/translations/it.json
  40. 5 0
      custom_components/tuya_local/translations/ja.json
  41. 5 0
      custom_components/tuya_local/translations/no-NB.json
  42. 5 0
      custom_components/tuya_local/translations/pl.json
  43. 5 0
      custom_components/tuya_local/translations/pt-BR.json
  44. 5 0
      custom_components/tuya_local/translations/pt-PT.json
  45. 5 0
      custom_components/tuya_local/translations/ro.json
  46. 5 0
      custom_components/tuya_local/translations/ru.json
  47. 5 0
      custom_components/tuya_local/translations/sv.json
  48. 5 0
      custom_components/tuya_local/translations/uk.json
  49. 5 0
      custom_components/tuya_local/translations/ur.json
  50. 5 0
      custom_components/tuya_local/translations/zh-Hans.json
  51. 5 0
      custom_components/tuya_local/translations/zh-Hant.json

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

@@ -77,7 +77,7 @@ entities:
         type: boolean
         name: button
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 141
         type: string

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

@@ -243,7 +243,7 @@ entities:
             value: false
             hidden: true
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -124,7 +124,7 @@ entities:
         type: boolean
         name: lock
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 104
         type: string

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

@@ -139,7 +139,7 @@ entities:
           - dps_val: welcome
             value: armed_custom_bypass
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 26
         type: string

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

@@ -399,7 +399,7 @@ entities:
         mapping:
           - scale: 100
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 123
         type: string

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

@@ -138,7 +138,7 @@ entities:
         optional: true
         name: zone
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 26
         type: string

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

@@ -166,8 +166,7 @@ entities:
             value: false
           - value: true
   - entity: event
-    name: Alarm
-    category: diagnostic
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -306,7 +306,7 @@ entities:
           min: 5
           max: 600
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: base64

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

@@ -317,8 +317,7 @@ entities:
         optional: true
         name: value
   - entity: event
-    name: Alarm
-    icon: "mdi:alarm-bell"
+    translation_key: alarm
     dps:
       - id: 185
         type: base64

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

@@ -193,7 +193,7 @@ entities:
         optional: true
         name: snapshot
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -124,7 +124,7 @@ entities:
             value: true
           - value: false
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 26
         type: string

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

@@ -268,7 +268,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -200,7 +200,7 @@ entities:
         optional: true
         name: button
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -107,7 +107,7 @@ entities:
           - dps_val: 128
             value: TA
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 109
         type: boolean

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

@@ -79,7 +79,7 @@ entities:
         optional: true
         name: button
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 26
         type: string

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

@@ -281,7 +281,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -238,7 +238,7 @@ entities:
             value: false
             hidden: true
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -267,7 +267,7 @@ entities:
         optional: true
         name: message
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -198,8 +198,7 @@ entities:
         optional: true
         name: switch
   - entity: event
-    name: Alarm
-    icon: "mdi:alert"
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -459,8 +459,7 @@ entities:
             value: false
             hidden: true
   - entity: event
-    name: Alarm
-    icon: "mdi:alarm-bell"
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -418,8 +418,7 @@ entities:
             value: false
             hidden: true
   - entity: event
-    name: Alarm
-    icon: "mdi:alarm-bell"
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -215,7 +215,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: base64

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

@@ -145,7 +145,7 @@ entities:
         optional: true
         name: details
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 21
         type: string

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

@@ -228,7 +228,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -227,7 +227,7 @@ entities:
             value: alarm
           - value: null
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 106
         type: string

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

@@ -308,7 +308,7 @@ entities:
             value: false
             hidden: true
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

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

@@ -204,7 +204,7 @@ entities:
         type: boolean
         name: switch
   - entity: event
-    name: Alarm
+    translation_key: alarm
     dps:
       - id: 185
         type: string

+ 5 - 0
custom_components/tuya_local/icons.json

@@ -135,6 +135,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "default": "mdi:alarm-bell"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Аларма"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -403,6 +403,11 @@
                 "name": "Luz de la campana extractora"
             }
         },
+        "event" : {
+            "alarm": {
+                "name": "Alarma"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/cz.json

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarm"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarm"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Συναγερμός"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarm"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarma"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarme"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Riasztás"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarm"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Allarme"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "アラーム"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarm"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarm"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarme"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarme"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Alarmă"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Тревога"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Larm"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "Тревога"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -372,6 +372,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "الارم"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "报警"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {

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

@@ -371,6 +371,11 @@
                 }
             }
         },
+        "event": {
+            "alarm": {
+                "name": "警報"
+            }
+        },
         "humidifier": {
             "extended": {
                 "state_attributes": {