Explorar el Código

Sleep switches: standardize icon and translations.

Issue #1708
Jason Rumney hace 1 año
padre
commit
315eec9986
Se han modificado 59 ficheros con 99 adiciones y 93 borrados
  1. 1 6
      custom_components/tuya_local/devices/alecoair_d12_dehumidifier.yaml
  2. 1 6
      custom_components/tuya_local/devices/breville_lad208_dehumidifier.yaml
  3. 1 2
      custom_components/tuya_local/devices/cadence_aroma_diffuser.yaml
  4. 1 2
      custom_components/tuya_local/devices/carro_ph805_humidifier.yaml
  5. 1 2
      custom_components/tuya_local/devices/carson_cb.yaml
  6. 1 1
      custom_components/tuya_local/devices/cleanair_605b_humidifier.yaml
  7. 1 2
      custom_components/tuya_local/devices/cooper_hunter_air_conditioner.yaml
  8. 1 2
      custom_components/tuya_local/devices/della_airconditioner.yaml
  9. 1 2
      custom_components/tuya_local/devices/duux_blizzard_portable_aircon.yaml
  10. 1 2
      custom_components/tuya_local/devices/electriq_12wminv_heatpump.yaml
  11. 1 6
      custom_components/tuya_local/devices/electriq_cd12pro_dehumidifier.yaml
  12. 1 6
      custom_components/tuya_local/devices/electriq_cd12pwv2_dehumidifier.yaml
  13. 1 2
      custom_components/tuya_local/devices/electriq_ecosilent12wap_aircon.yaml
  14. 1 2
      custom_components/tuya_local/devices/electriq_ecosilent14hpw_aircon.yaml
  15. 1 2
      custom_components/tuya_local/devices/elspet_cat_litterbox.yaml
  16. 1 2
      custom_components/tuya_local/devices/forceclima_soundless_airconditioner.yaml
  17. 1 2
      custom_components/tuya_local/devices/gorilla_fan_v2.yaml
  18. 1 2
      custom_components/tuya_local/devices/hysen_hy08acf_thermostat.yaml
  19. 1 2
      custom_components/tuya_local/devices/idea_heatingbelt_airconditioner.yaml
  20. 1 2
      custom_components/tuya_local/devices/inventor_comfort_airconditioner.yaml
  21. 1 2
      custom_components/tuya_local/devices/jjpro_jpd01_dehumidifier.yaml
  22. 1 2
      custom_components/tuya_local/devices/klarta_humea_humidifier.yaml
  23. 1 2
      custom_components/tuya_local/devices/kogan_kasvwac30ya_airconditioner.yaml
  24. 1 2
      custom_components/tuya_local/devices/littepets.yaml
  25. 1 2
      custom_components/tuya_local/devices/medion_life_p1002.yaml
  26. 1 2
      custom_components/tuya_local/devices/monzana_klimaanlage_air_conditioner.yaml
  27. 1 2
      custom_components/tuya_local/devices/nedis_mobile_airconditioner.yaml
  28. 1 2
      custom_components/tuya_local/devices/qlima_d820a_dehumidifier.yaml
  29. 1 2
      custom_components/tuya_local/devices/renpho_rp_ap001s.yaml
  30. 1 2
      custom_components/tuya_local/devices/rotenso_ronir35wi_heatpump.yaml
  31. 1 2
      custom_components/tuya_local/devices/royal_airconditioner.yaml
  32. 1 2
      custom_components/tuya_local/devices/sendo_airconditioner_c.yaml
  33. 1 2
      custom_components/tuya_local/devices/sensei_airconditioner.yaml
  34. 1 2
      custom_components/tuya_local/devices/tesla_airconditioner.yaml
  35. 1 2
      custom_components/tuya_local/devices/tesla_aux_airconditioner.yaml
  36. 1 2
      custom_components/tuya_local/devices/trotec_pac-w_heatpump.yaml
  37. 1 2
      custom_components/tuya_local/devices/vaco_mobyblue_heatpump.yaml
  38. 1 2
      custom_components/tuya_local/devices/vivax_heatpump.yaml
  39. 1 2
      custom_components/tuya_local/devices/woods_cortina_airconditioner.yaml
  40. 3 0
      custom_components/tuya_local/icons.json
  41. 3 0
      custom_components/tuya_local/translations/bg.json
  42. 3 0
      custom_components/tuya_local/translations/cz.json
  43. 3 0
      custom_components/tuya_local/translations/de.json
  44. 3 0
      custom_components/tuya_local/translations/el.json
  45. 3 0
      custom_components/tuya_local/translations/en.json
  46. 3 0
      custom_components/tuya_local/translations/es.json
  47. 3 0
      custom_components/tuya_local/translations/fr.json
  48. 3 0
      custom_components/tuya_local/translations/hu.json
  49. 3 0
      custom_components/tuya_local/translations/id.json
  50. 3 0
      custom_components/tuya_local/translations/it.json
  51. 3 0
      custom_components/tuya_local/translations/ja.json
  52. 3 0
      custom_components/tuya_local/translations/no-NB.json
  53. 3 0
      custom_components/tuya_local/translations/pl.json
  54. 3 0
      custom_components/tuya_local/translations/pt-BR.json
  55. 3 0
      custom_components/tuya_local/translations/ru.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

+ 1 - 6
custom_components/tuya_local/devices/alecoair_d12_dehumidifier.yaml

@@ -65,17 +65,12 @@ secondary_entities:
         unit: C
         class: measurement
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
     dps:
       - id: 14
         type: boolean
         name: switch
-        mapping:
-          - dps_val: false
-            icon: "mdi:sleep-off"
-          - dps_val: true
-            icon: "mdi:sleep"
   - entity: lock
     translation_key: child_lock
     category: config

+ 1 - 6
custom_components/tuya_local/devices/breville_lad208_dehumidifier.yaml

@@ -133,17 +133,12 @@ secondary_entities:
         unit: C
         class: measurement
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
     dps:
       - id: 102
         type: boolean
         name: switch
-        mapping:
-          - dps_val: false
-            icon: "mdi:sleep-off"
-          - dps_val: true
-            icon: "mdi:sleep"
   - entity: lock
     translation_key: child_lock
     category: config

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

@@ -85,8 +85,7 @@ secondary_entities:
         mapping:
           - scale: 0.3
   - entity: switch
-    name: Sleep timer
-    icon: "mdi:bed-clock"
+    translation_key: sleep
     category: config
     dps:
       - id: 104

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

@@ -57,8 +57,7 @@ secondary_entities:
           - dps_val: false
             value: true
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     category: config
     dps:
       - id: 16

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

@@ -91,8 +91,7 @@ secondary_entities:
           - dps_val: F
             value: fahrenheit
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 101
         type: boolean

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

@@ -41,7 +41,7 @@ secondary_entities:
         name: sensor
         unit: C
   - entity: switch
-    name: Sleep mode
+    translation_key: sleep
     dps:
       - id: 16
         type: boolean

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

@@ -188,9 +188,8 @@ secondary_entities:
         name: switch
         type: boolean
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 25
         name: switch

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

@@ -124,9 +124,8 @@ secondary_entities:
         unit: kWh
         class: total_increasing
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 102
         name: switch

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

@@ -94,9 +94,8 @@ secondary_entities:
           min: 0
           max: 12
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 6
         type: boolean

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

@@ -114,8 +114,7 @@ primary_entity:
       type: integer
 secondary_entities:
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 101
         name: switch

+ 1 - 6
custom_components/tuya_local/devices/electriq_cd12pro_dehumidifier.yaml

@@ -103,17 +103,12 @@ secondary_entities:
         name: switch
         type: boolean
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
     dps:
       - id: 104
         type: boolean
         name: switch
-        mapping:
-          - dps_val: true
-            icon: "mdi:sleep"
-          - dps_val: false
-            icon: "mdi:sleep-off"
   - entity: binary_sensor
     translation_key: tank_full
     category: diagnostic

+ 1 - 6
custom_components/tuya_local/devices/electriq_cd12pwv2_dehumidifier.yaml

@@ -46,17 +46,12 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
     dps:
       - id: 104
         type: boolean
         name: switch
-        mapping:
-          - dps_val: true
-            icon: "mdi:sleep"
-          - dps_val: false
-            icon: "mdi:sleep-off"
   - entity: binary_sensor
     translation_key: tank_full
     category: diagnostic

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

@@ -136,9 +136,8 @@ secondary_entities:
           - dps_val: "f"
             value: fahrenheit
   - entity: switch
-    name: Sleep Mode
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 102
         type: boolean

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

@@ -113,9 +113,8 @@ secondary_entities:
           - dps_val: "f"
             value: fahrenheit
   - entity: switch
-    name: Sleep Mode
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 102
         type: boolean

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

@@ -105,8 +105,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: Sleep mode
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     category: config
     dps:
       - id: 109

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

@@ -63,9 +63,8 @@ primary_entity:
 
 secondary_entities:
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 103
         name: switch

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

@@ -30,8 +30,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: Sleep
-    icon: mdi:sleep
+    translation_key: sleep
     dps:
       - id: 113
         type: boolean

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

@@ -129,9 +129,8 @@ secondary_entities:
             value: false
           - value: true
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 117
         type: boolean

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

@@ -115,8 +115,7 @@ secondary_entities:
         name: switch
         optional: true
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     category: config
     dps:
       - id: 25

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

@@ -181,9 +181,8 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 109
         type: boolean

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

@@ -88,8 +88,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: Sleep
-    icon: "mdi:weather-night"
+    translation_key: sleep
     dps:
       - id: 102
         type: boolean

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

@@ -60,8 +60,7 @@ secondary_entities:
           - dps_val: "3"
             value: 255
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 103
         type: boolean

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

@@ -241,8 +241,7 @@ secondary_entities:
         name: sensor
         unit: min
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     category: config
     dps:
       - id: 111

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

@@ -43,8 +43,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: "Sleep Mode"
-    icon: "mdi:sleep"
+    translation_key: sleep
     dps:
       - id: 10
         type: boolean

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

@@ -74,8 +74,7 @@ secondary_entities:
         type: bitfield
         name: fault_code
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 101
         type: boolean

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

@@ -66,8 +66,7 @@ secondary_entities:
             value: false
           - value: true
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 101
         type: boolean

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

@@ -83,8 +83,7 @@ secondary_entities:
             value: false
           - value: true
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 103
         type: boolean

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

@@ -172,8 +172,7 @@ secondary_entities:
         name: sensor
         unit: min
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     category: config
     dps:
       - id: 102

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

@@ -61,9 +61,8 @@ secondary_entities:
           - dps_val: false
             icon: "mdi:led-off"
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     class: switch
-    icon: "mdi:power-sleep"
     dps:
       - id: 101
         name: switch

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

@@ -117,8 +117,7 @@ secondary_entities:
             value: celsius
   - entity: switch
     category: config
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 101
         type: boolean

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

@@ -113,8 +113,7 @@ secondary_entities:
           - dps_val: false
             value: celsius
   - entity: switch
-    name: Sleep mode
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 101
         name: switch

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

@@ -88,9 +88,8 @@ secondary_entities:
         type: integer
         unit: kWh
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 102
         name: switch

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

@@ -295,9 +295,8 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 109
         name: switch

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

@@ -145,8 +145,7 @@ secondary_entities:
         unit: kWh
         class: total_increasing
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     category: config
     dps:
       - id: 102

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

@@ -103,8 +103,7 @@ secondary_entities:
           - dps_val: F
             value: fahrenheit
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     category: config
     dps:
       - id: 102

+ 1 - 2
custom_components/tuya_local/devices/trotec_pac-w_heatpump.yaml

@@ -80,9 +80,8 @@ primary_entity:
       type: bitfield
 secondary_entities:
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 101
         type: boolean

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

@@ -134,8 +134,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 105
         type: boolean

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

@@ -218,9 +218,8 @@ secondary_entities:
         name: switch
   # Boolean dps 16 = Beep and 109 = Sleep documented but missing from log
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
-    icon: "mdi:power-sleep"
     dps:
       - id: 109
         type: boolean

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

@@ -81,8 +81,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: switch
-    name: Sleep
-    icon: "mdi:power-sleep"
+    translation_key: sleep
     dps:
       - id: 105
         type: boolean

+ 3 - 0
custom_components/tuya_local/icons.json

@@ -162,6 +162,9 @@
             "keytone": {
                 "default": "mdi:bell-ring"
             },
+            "sleep": {
+                "default": "mdi:power-sleep"
+            },
             "uv_sterilization": {
                 "default": "mdi:solar-power"
             }

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

@@ -416,6 +416,9 @@
             "keytone": {
                 "name": "Клавишен тон"
             },
+            "sleep": {
+                "name": "Сън"
+            },
             "uv_sterilization": {
                 "name": "UV стерилизация"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Tón kláves"
             },
+            "sleep": {
+                "name": "Spát"
+            },
             "uv_sterilization": {
                 "name": "UV sterilizace"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Tastenton"
             },
+            "sleep": {
+                "name": "Schlafen"
+            },
             "uv_sterilization": {
                 "name": "UV Sterilization"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Ήχος κουμπιών"
             },
+            "sleep": {
+                "name": "Αναμονή"
+            },
             "uv_sterilization": {
                 "name": "Αποστείρωση UV"
             }

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

@@ -509,6 +509,9 @@
             "keytone": {
                 "name": "Keytone"
             },
+            "sleep": {
+                "name": "Sleep"
+            },
             "uv_sterilization": {
                 "name": "UV sterilization"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Tono del teclado"
             },
+            "sleep": {
+                "name": "Modo de suspensión"
+            },
             "uv_sterilization": {
                 "name": "Esterilización UV"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Tonalité des touches"
             },
+            "sleep": {
+                "name": "Veille"
+            },
             "uv_sterilization": {
                 "name": "Stérilisation UV"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Billentyűhang"
             },
+            "sleep": {
+                "name": "Alvás"
+            },
             "uv_sterilization": {
                 "name": "UV sterilizálás"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Nada tombol"
             },
+            "sleep": {
+                "name": "Tidur"
+            },
             "uv_sterilization": {
                 "name": "Sterilisasi UV"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "tono dei tasti"
             },
+            "sleep": {
+                "name": "Sonno"
+            },
             "uv_sterilization": {
                 "name": "Sterilizzazione UV"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "キートーン"
             },
+            "sleep": {
+                "name": "睡眠"
+            },
             "uv_sterilization": {
                 "name": "紫外線殺菌"
             }

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

@@ -415,6 +415,9 @@
             "keytone" : {
                 "name": "Tastaturtone"
             },
+            "sleep": {
+                "name": "Søvnmodus"
+            },
             "uv_sterilization": {
                 "name": "UV-sterilisering"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Dzwięk klawiszy"
             },
+            "sleep": {
+                "name": "Tryb uśpienia"
+            },
             "uv_sterilization": {
                 "name": "Sterylizacja UV"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Tom do teclado"
             },
+            "sleep": {
+                "name": "Dormir"
+            },
             "uv_sterilization": {
                 "name": "Esterilização UV"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Ключевой тон"
             },
+            "sleep": {
+                "name": "Сон"
+            },
             "uv_sterilization": {
                 "name": "УФ-стерилизация"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "Тон клавіш"
             },
+            "sleep": {
+                "name": "Сон"
+            },
             "uv_sterilization": {
                 "name": "УФ стерилізація"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "کی پیڈ ٹون"
             },
+            "sleep": {
+                "name": "سونا"
+            },
             "uv_sterilization": {
                 "name": "UV نس بندی"
             }

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

@@ -509,6 +509,9 @@
             "keytone": {
                 "name": "按键音"
             },
+            "sleep": {
+                "name": "睡眠"
+            },
             "uv_sterilization": {
                 "name": "紫外线消毒"
             }

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

@@ -415,6 +415,9 @@
             "keytone": {
                 "name": "按鍵音"
             },
+            "sleep": {
+                "name": "睡眠模式"
+            },
             "uv_sterilization": {
                 "name": "紫外線消毒"
             }