Parcourir la source

Translations: standardise SD status sensors and use translations

Issue #1708
Jason Rumney il y a 8 mois
Parent
commit
4c620c05ec
39 fichiers modifiés avec 142 ajouts et 72 suppressions
  1. 2 1
      custom_components/tuya_local/devices/bcom_intercom_camera.yaml
  2. 8 6
      custom_components/tuya_local/devices/cleverio_cd200_doorbell.yaml
  3. 2 1
      custom_components/tuya_local/devices/door_peephole_camera.yaml
  4. 6 5
      custom_components/tuya_local/devices/huntertbk_hf6602t_doorbell.yaml
  5. 7 6
      custom_components/tuya_local/devices/kerui_200w_camera.yaml
  6. 7 6
      custom_components/tuya_local/devices/kerui_300w_camera.yaml
  7. 7 6
      custom_components/tuya_local/devices/lindasmart_7s_doorbell.yaml
  8. 2 1
      custom_components/tuya_local/devices/lsc_ptz_camera.yaml
  9. 2 1
      custom_components/tuya_local/devices/lscsmartconnect_camerapetfeeder.yaml
  10. 2 1
      custom_components/tuya_local/devices/lscsmartconnect_outdoorcamera.yaml
  11. 2 1
      custom_components/tuya_local/devices/lscsmartconnect_outdoorptzcamera.yaml
  12. 2 1
      custom_components/tuya_local/devices/lscsmartconnect_videodoorbell.yaml
  13. 3 2
      custom_components/tuya_local/devices/moes_indoorptz_camera.yaml
  14. 7 6
      custom_components/tuya_local/devices/mypin_6l_videopetfeeder.yaml
  15. 16 0
      custom_components/tuya_local/devices/myq_td8_videodoorbell.yaml
  16. 7 6
      custom_components/tuya_local/devices/nedis_outdoor_camera.yaml
  17. 16 0
      custom_components/tuya_local/devices/pinelake_birdfeeder.yaml
  18. 2 1
      custom_components/tuya_local/devices/sc116wz3a_camera.yaml
  19. 2 1
      custom_components/tuya_local/devices/smcm_doorbellpro_camera.yaml
  20. 2 1
      custom_components/tuya_local/translations/bg.json
  21. 2 1
      custom_components/tuya_local/translations/ca.json
  22. 2 1
      custom_components/tuya_local/translations/cz.json
  23. 2 1
      custom_components/tuya_local/translations/de.json
  24. 2 1
      custom_components/tuya_local/translations/el.json
  25. 2 1
      custom_components/tuya_local/translations/en.json
  26. 2 1
      custom_components/tuya_local/translations/es.json
  27. 2 1
      custom_components/tuya_local/translations/fr.json
  28. 2 1
      custom_components/tuya_local/translations/hu.json
  29. 2 1
      custom_components/tuya_local/translations/id.json
  30. 2 1
      custom_components/tuya_local/translations/it.json
  31. 2 1
      custom_components/tuya_local/translations/ja.json
  32. 2 1
      custom_components/tuya_local/translations/no-NB.json
  33. 2 1
      custom_components/tuya_local/translations/pl.json
  34. 2 1
      custom_components/tuya_local/translations/pt-BR.json
  35. 2 1
      custom_components/tuya_local/translations/ru.json
  36. 2 1
      custom_components/tuya_local/translations/uk.json
  37. 2 1
      custom_components/tuya_local/translations/ur.json
  38. 2 1
      custom_components/tuya_local/translations/zh-Hans.json
  39. 2 1
      custom_components/tuya_local/translations/zh-Hant.json

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

@@ -98,6 +98,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     dps:
       - id: 110
@@ -108,7 +109,7 @@ entities:
           - dps_val: 1
             value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

+ 8 - 6
custom_components/tuya_local/devices/cleverio_cd200_doorbell.yaml

@@ -73,6 +73,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     icon: "mdi:micro-sd"
     dps:
@@ -82,17 +83,18 @@ entities:
         name: sensor
         mapping:
           - dps_val: 1
-            value: Normal
+            value: normal
           - dps_val: 2
-            value: Corrupt
+            value: fault
           - dps_val: 3
-            value: Full
+            value: full
           - dps_val: 4
-            value: Formatting
+            value: formatting
           - dps_val: 5
-            value: Missing
+            value: missing
           - dps_val: null
-            value: Normal
+            value: normal
+            hidden: true
       - id: 109
         type: string
         optional: true

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

@@ -70,6 +70,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     dps:
       - id: 110
@@ -80,7 +81,7 @@ entities:
           - dps_val: 1
             value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

+ 6 - 5
custom_components/tuya_local/devices/huntertbk_hf6602t_doorbell.yaml

@@ -64,6 +64,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     icon: "mdi:micro-sd"
     dps:
@@ -72,15 +73,15 @@ entities:
         name: sensor
         mapping:
           - dps_val: 1
-            value: Normal
+            value: normal
           - dps_val: 2
-            value: Corrupt
+            value: fault
           - dps_val: 3
-            value: Full
+            value: full
           - dps_val: 4
-            value: Formatting
+            value: formatting
           - dps_val: 5
-            value: Missing
+            value: missing
       - id: 109
         type: string
         name: capacity

+ 7 - 6
custom_components/tuya_local/devices/kerui_200w_camera.yaml

@@ -99,6 +99,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     icon: "mdi:micro-sd"
     dps:
@@ -107,17 +108,17 @@ entities:
         name: sensor
         mapping:
           - dps_val: 1
-            value: Normal
+            value: normal
           - dps_val: 2
-            value: Corrupt
+            value: fault
           - dps_val: 3
-            value: Full
+            value: full
           - dps_val: 4
-            value: Formatting
+            value: formatting
           - dps_val: 5
-            value: Missing
+            value: missing
           - dps_val: null
-            value: Normal
+            value: normal
       - id: 109
         type: string
         name: capacity

+ 7 - 6
custom_components/tuya_local/devices/kerui_300w_camera.yaml

@@ -107,6 +107,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     icon: "mdi:micro-sd"
     dps:
@@ -115,17 +116,17 @@ entities:
         name: sensor
         mapping:
           - dps_val: 1
-            value: Normal
+            value: normal
           - dps_val: 2
-            value: Corrupt
+            value: fault
           - dps_val: 3
-            value: Full
+            value: full
           - dps_val: 4
-            value: Formatting
+            value: formatting
           - dps_val: 5
-            value: Missing
+            value: missing
           - dps_val: null
-            value: Normal
+            value: normal
       - id: 109
         type: string
         name: capacity

+ 7 - 6
custom_components/tuya_local/devices/lindasmart_7s_doorbell.yaml

@@ -69,6 +69,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translaton_key: status
     category: diagnostic
     icon: "mdi:micro-sd"
     dps:
@@ -78,17 +79,17 @@ entities:
         name: sensor
         mapping:
           - dps_val: 1
-            value: Normal
+            value: normal
           - dps_val: 2
-            value: Corrupt
+            value: fault
           - dps_val: 3
-            value: Full
+            value: full
           - dps_val: 4
-            value: Formatting
+            value: formatting
           - dps_val: 5
-            value: Missing
+            value: missing
           - dps_val: null
-            value: Normal
+            value: normal
       - id: 109
         type: string
         optional: true

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

@@ -92,6 +92,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     dps:
       - id: 110
@@ -102,7 +103,7 @@ entities:
           - dps_val: 1
             value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

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

@@ -70,6 +70,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     dps:
       - id: 110
@@ -80,7 +81,7 @@ entities:
           - dps_val: 1
             value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

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

@@ -94,6 +94,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     dps:
       - id: 110
@@ -104,7 +105,7 @@ entities:
           - dps_val: 1
             value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

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

@@ -71,6 +71,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     dps:
       - id: 110
@@ -81,7 +82,7 @@ entities:
           - dps_val: 1
             value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

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

@@ -31,6 +31,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     dps:
       - id: 110
@@ -41,7 +42,7 @@ entities:
           - dps_val: 1
             value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

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

@@ -86,6 +86,7 @@ entities:
     name: SD card
     icon: "mdi:micro-sd"
     class: enum
+    translation_key: status
     category: diagnostic
     dps:
       - id: 110
@@ -93,9 +94,9 @@ entities:
         name: sensor
         mapping:
           - dps_val: 1
-            value: ok
+            value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

+ 7 - 6
custom_components/tuya_local/devices/mypin_6l_videopetfeeder.yaml

@@ -57,6 +57,7 @@ entities:
             value: "On"
   - entity: sensor
     name: SD status
+    translation_key: status
     class: enum
     icon: "mdi:micro-sd"
     category: diagnostic
@@ -67,17 +68,17 @@ entities:
         name: sensor
         mapping:
           - dps_val: 1
-            value: Normal
+            value: normal
           - dps_val: 2
-            value: Corrupt
+            value: fault
           - dps_val: 3
-            value: Full
+            value: full
           - dps_val: 4
-            value: Formatting
+            value: formatting
           - dps_val: 5
-            value: Missing
+            value: missing
           - dps_val: null
-            value: Normal
+            value: normal
       - id: 109
         type: string
         optional: true

+ 16 - 0
custom_components/tuya_local/devices/myq_td8_videodoorbell.yaml

@@ -50,6 +50,8 @@ entities:
         optional: true
   - entity: sensor
     name: SD status
+    translation_key: status
+    class: enum
     category: diagnostic
     icon: "mdi:micro-sd"
     dps:
@@ -57,6 +59,20 @@ entities:
         type: integer
         name: sensor
         optional: true
+        mapping:
+          - dps_val: 1
+            value: normal
+          - dps_val: 2
+            value: fault
+          - dps_val: 3
+            value: full
+          - dps_val: 4
+            value: formatting
+          - dps_val: 5
+            value: missing
+          - dps_val: null
+            value: normal
+            hidden: true
       - id: 109
         type: string
         name: storage

+ 7 - 6
custom_components/tuya_local/devices/nedis_outdoor_camera.yaml

@@ -110,6 +110,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     icon: "mdi:micro-sd"
     dps:
@@ -119,17 +120,17 @@ entities:
         optional: true
         mapping:
           - dps_val: 1
-            value: Normal
+            value: normal
           - dps_val: 2
-            value: Corrupt
+            value: fault
           - dps_val: 3
-            value: Full
+            value: full
           - dps_val: 4
-            value: Formatting
+            value: formatting
           - dps_val: 5
-            value: Missing
+            value: missing
           - dps_val: null
-            value: Normal
+            value: normal
   - entity: button
     name: SD format
     category: config

+ 16 - 0
custom_components/tuya_local/devices/pinelake_birdfeeder.yaml

@@ -136,12 +136,28 @@ entities:
         force: true
   - entity: sensor
     name: SD card status
+    class: enum
+    translation_key: status
     category: diagnostic
     icon: "mdi:micro-sd"
     dps:
       - id: 110
         type: integer
         name: sensor
+        mapping:
+          - dps_val: 1
+            value: normal
+          - dps_val: 2
+            value: fault
+          - dps_val: 3
+            value: full
+          - dps_val: 4
+            value: formatting
+          - dps_val: 5
+            value: missing
+          - dps_val: null
+            value: normal
+            hidden: true
   - entity: binary_sensor
     name: Alarm linkage
     class: connectivity

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

@@ -81,6 +81,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     icon: "mdi:micro-sd"
     dps:
@@ -92,7 +93,7 @@ entities:
           - dps_val: 1
             value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

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

@@ -68,6 +68,7 @@ entities:
   - entity: sensor
     name: SD status
     class: enum
+    translation_key: status
     category: diagnostic
     dps:
       - id: 110
@@ -77,7 +78,7 @@ entities:
           - dps_val: 1
             value: normal
           - dps_val: 2
-            value: error
+            value: fault
           - dps_val: 3
             value: full
           - dps_val: 4

+ 2 - 1
custom_components/tuya_local/translations/bg.json

@@ -681,7 +681,8 @@
                     "full": "Пълен",
                     "empty": "Празен",
                     "missing": "Липсва",
-                    "formatting": "Форматиране"
+                    "formatting": "Форматиране",
+                    "unformatted": "Неформатиран"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/ca.json

@@ -433,7 +433,8 @@
                     "full": "Ple",
                     "empty": "Buit",
                     "missing": "Falta",
-                    "formatting": "Formatant"
+                    "formatting": "Formatant",
+                    "unformatted": "No formatat"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/cz.json

@@ -680,7 +680,8 @@
                     "full": "Plný",
                     "empty": "Prázdný",
                     "missing": "Chybí",
-                    "formatting": "Formátování"
+                    "formatting": "Formátování",
+                    "unformatted": "Neformátováno"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/de.json

@@ -680,7 +680,8 @@
                     "full": "Voll",
                     "empty": "Leer",
                     "missing": "Fehlend",
-                    "formatting": "Formatieren"
+                    "formatting": "Formatieren",
+                    "unformatted": "Unformatiert"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/el.json

@@ -680,7 +680,8 @@
                     "full": "Πλήρες",
                     "empty": "Άδειο",
                     "missing": "Ελλιπές",
-                    "formatting": "Μορφοποίηση"
+                    "formatting": "Μορφοποίηση",
+                    "unformatted": "Μη μορφοποιημένο"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/en.json

@@ -680,7 +680,8 @@
                     "full": "Full",
                     "empty": "Empty",
                     "missing": "Missing",
-                    "formatting": "Formatting"
+                    "formatting": "Formatting",
+                    "unformatted": "Unformatted"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/es.json

@@ -680,7 +680,8 @@
                     "full": "Lleno",
                     "empty": "Vacío",
                     "missing": "Faltante",
-                    "formatting": "Formateando"
+                    "formatting": "Formateando",
+                    "unformatted": "Sin formatear"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/fr.json

@@ -680,7 +680,8 @@
                     "full": "Plein",
                     "empty": "Vide",
                     "missing": "Manquant",
-                    "formatting": "Formatage"
+                    "formatting": "Formatage",
+                    "unformatted": "Non formaté"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/hu.json

@@ -681,7 +681,8 @@
                     "full": "Teljes",
                     "empty": "Üres",
                     "missing": "Hiányzik",
-                    "formatting": "Formázás"
+                    "formatting": "Formázás",
+                    "unformatted": "Nem formázott"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/id.json

@@ -680,7 +680,8 @@
                     "full": "Penuh",
                     "empty": "Kosong",
                     "missing": "Hilang",
-                    "formatting": "Memformat"
+                    "formatting": "Memformat",
+                    "unformatted": "Belum diformat"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/it.json

@@ -681,7 +681,8 @@
                     "full": "Pieno",
                     "empty": "Vuoto",
                     "missing": "Mancante",
-                    "formatting": "Formattazione"
+                    "formatting": "Formattazione",
+                    "unformatted": "Non formattato"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/ja.json

@@ -680,7 +680,8 @@
                     "full": "満杯",
                     "empty": "空",
                     "missing": "欠落",
-                    "formatting": "フォーマット中"
+                    "formatting": "フォーマット中",
+                    "unformatted": "未フォーマット"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/no-NB.json

@@ -681,7 +681,8 @@
                     "full": "Full",
                     "empty": "Tom",
                     "missing": "Manglende",
-                    "formatting": "Formatering"
+                    "formatting": "Formatering",
+                    "unformatted": "Uformaterte"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/pl.json

@@ -681,7 +681,8 @@
                     "full": "Pełne",
                     "empty": "Puste",
                     "missing": "Brakujące",
-                    "formatting": "Formatowanie"
+                    "formatting": "Formatowanie",
+                    "unformatted": "Niezformatowane"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/pt-BR.json

@@ -680,7 +680,8 @@
                     "full": "Cheio",
                     "empty": "Vazio",
                     "missing": "Faltando",
-                    "formatting": "Formatando"
+                    "formatting": "Formatando",
+                    "unformatted": "Não formatado"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/ru.json

@@ -680,7 +680,8 @@
                     "full": "Полный",
                     "empty": "Пустой",
                     "missing": "Отсутствует",
-                    "formatting": "Форматирование"
+                    "formatting": "Форматирование",
+                    "unformatted": "Не отформатировано"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/uk.json

@@ -683,7 +683,8 @@
                     "full": "Повний",
                     "empty": "Порожній",
                     "missing": "Відсутній",
-                    "formatting": "Форматування"
+                    "formatting": "Форматування",
+                    "unformatted": "Неформатований"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/ur.json

@@ -683,7 +683,8 @@
                     "full": "مکمل",
                     "empty": "خالی",
                     "missing": "غائب",
-                    "formatting": "فارمیٹنگ"
+                    "formatting": "فارمیٹنگ",
+                    "unformatted": "غیر شکل بند"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/zh-Hans.json

@@ -680,7 +680,8 @@
                     "full": "已满",
                     "empty": "已空",
                     "missing": "缺失",
-                    "formatting": "格式化中"
+                    "formatting": "格式化中",
+                    "unformatted": "未格式化"
                 }
             },
             "time_remaining": {

+ 2 - 1
custom_components/tuya_local/translations/zh-Hant.json

@@ -681,7 +681,8 @@
                     "full": "滿",
                     "empty": "空",
                     "missing": "缺失",
-                    "formatting": "格式化中"
+                    "formatting": "格式化中",
+                    "unformatted": "未格式化"
                 }
             },
             "time_remaining": {