Parcourir la source

feat(translations): add translations for light_mode entity type

- standardize devices that provide the feature of configuring an
indicator light on a switch panel to show in different conditions.
  - on = always on
  - off = always off
  - state = follows the state of the switch
  - pos = inverted state (for locating light switches in the dark)

- standardize the icon to a ring, as that is how 99% of such lights appear.

Issue #1708
Jason Rumney il y a 7 mois
Parent
commit
5ee6908e43
47 fichiers modifiés avec 295 ajouts et 125 suppressions
  1. 4 5
      custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml
  2. 5 6
      custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml
  3. 4 5
      custom_components/tuya_local/devices/espfort_ecspsp_usbsmartplug.yaml
  4. 4 5
      custom_components/tuya_local/devices/fs_03w_curtain.yaml
  5. 4 4
      custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml
  6. 4 4
      custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_switch.yaml
  7. 2 3
      custom_components/tuya_local/devices/ghome_sw19_fanlight.yaml
  8. 4 5
      custom_components/tuya_local/devices/gosund_sp112_usbsmartplug.yaml
  9. 4 5
      custom_components/tuya_local/devices/loratap_relay.yaml
  10. 4 5
      custom_components/tuya_local/devices/loratap_wifi_curtain_switch_double.yaml
  11. 4 5
      custom_components/tuya_local/devices/mirabella_power_strip.yaml
  12. 4 5
      custom_components/tuya_local/devices/moes_controlpanel.yaml
  13. 4 5
      custom_components/tuya_local/devices/moes_dimmer.yaml
  14. 3 3
      custom_components/tuya_local/devices/moes_motionsensor_switch.yaml
  15. 7 8
      custom_components/tuya_local/devices/nooie_nsp21_smartplug.yaml
  16. 4 5
      custom_components/tuya_local/devices/quad_powerstrip_usb.yaml
  17. 4 5
      custom_components/tuya_local/devices/single_switch_with_backlight.yaml
  18. 4 5
      custom_components/tuya_local/devices/smartplug_usb.yaml
  19. 4 5
      custom_components/tuya_local/devices/smartplug_with_childlock.yaml
  20. 4 5
      custom_components/tuya_local/devices/smartplugv2_childlock.yaml
  21. 5 6
      custom_components/tuya_local/devices/smartplugv2_energy.yaml
  22. 4 5
      custom_components/tuya_local/devices/smartplugv2_energyv2.yaml
  23. 5 6
      custom_components/tuya_local/devices/smartplugv2_energyv3.yaml
  24. 4 5
      custom_components/tuya_local/devices/treatlife_dual_plugin_dimmer.yaml
  25. 4 5
      custom_components/tuya_local/devices/wf39m_dimmer_smartplug.yaml
  26. 3 0
      custom_components/tuya_local/icons.json
  27. 9 0
      custom_components/tuya_local/translations/bg.json
  28. 9 0
      custom_components/tuya_local/translations/ca.json
  29. 9 0
      custom_components/tuya_local/translations/cz.json
  30. 9 0
      custom_components/tuya_local/translations/de.json
  31. 9 0
      custom_components/tuya_local/translations/el.json
  32. 9 0
      custom_components/tuya_local/translations/en.json
  33. 9 0
      custom_components/tuya_local/translations/es.json
  34. 9 0
      custom_components/tuya_local/translations/fr.json
  35. 9 0
      custom_components/tuya_local/translations/hu.json
  36. 9 0
      custom_components/tuya_local/translations/id.json
  37. 9 0
      custom_components/tuya_local/translations/it.json
  38. 9 0
      custom_components/tuya_local/translations/ja.json
  39. 9 0
      custom_components/tuya_local/translations/no-NB.json
  40. 9 0
      custom_components/tuya_local/translations/pl.json
  41. 9 0
      custom_components/tuya_local/translations/pt-BR.json
  42. 9 0
      custom_components/tuya_local/translations/pt-PT.json
  43. 9 0
      custom_components/tuya_local/translations/ru.json
  44. 9 0
      custom_components/tuya_local/translations/uk.json
  45. 9 0
      custom_components/tuya_local/translations/ur.json
  46. 9 0
      custom_components/tuya_local/translations/zh-Hans.json
  47. 9 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 4 - 5
custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml

@@ -109,8 +109,7 @@ entities:
           - dps_val: memory
             value: memory
   - entity: select
-    name: Light mode
-    icon: "mdi:lightbulb"
+    translation_key: light_mode
     category: config
     dps:
       - id: 39
@@ -118,11 +117,11 @@ entities:
         name: option
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
   - entity: lock
     translation_key: child_lock
     category: config

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

@@ -173,8 +173,7 @@ entities:
           - dps_val: null
             invalid: true
   - entity: select
-    name: Light mode
-    icon: "mdi:circle-double"
+    translation_key: light_mode
     category: config
     hidden: unavailable
     dps:
@@ -192,13 +191,13 @@ entities:
         name: option
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
           - dps_val: "on"
-            value: "On"
+            value: "on"
   - entity: lock
     translation_key: child_lock
     category: config

+ 4 - 5
custom_components/tuya_local/devices/espfort_ecspsp_usbsmartplug.yaml

@@ -73,8 +73,7 @@ entities:
           - dps_val: memory
             value: memory
   - entity: select
-    name: Light mode
-    icon: "mdi:television-ambient-light"
+    translation_key: light_mode
     category: config
     dps:
       - id: 40
@@ -82,11 +81,11 @@ entities:
         name: option
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
   - entity: lock
     translation_key: child_lock
     category: config

+ 4 - 5
custom_components/tuya_local/devices/fs_03w_curtain.yaml

@@ -59,8 +59,7 @@ entities:
           min: 1
           max: 60
   - entity: select
-    name: Light mode
-    icon: "mdi:circle-double"
+    translation_key: light_mode
     category: config
     dps:
       - id: 14
@@ -68,8 +67,8 @@ entities:
         name: option
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"

+ 4 - 4
custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml

@@ -63,7 +63,7 @@ entities:
           - dps_val: "off"
             value: "off"
   - entity: select
-    name: Indicator Light
+    translation_key: light_mode
     category: config
     dps:
       - id: 21
@@ -71,8 +71,8 @@ entities:
         type: string
         mapping:
           - dps_val: none
-            value: Indicator LED off
+            value: "off"
           - dps_val: pos
-            value: Indicate switch location
+            value: locator
           - dps_val: relay
-            value: Indicate switch on/off
+            value: state

+ 4 - 4
custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_switch.yaml

@@ -29,7 +29,7 @@ entities:
           - dps_val: "off"
             value: "off"
   - entity: select
-    name: Indicator Light
+    translation_key: light_mode
     category: config
     dps:
       - id: 15
@@ -37,11 +37,11 @@ entities:
         type: string
         mapping:
           - dps_val: none
-            value: Indicator LED off
+            value: "off"
           - dps_val: pos
-            value: Indicate switch location
+            value: locator
           - dps_val: relay
-            value: Indicate switch on/off
+            value: state
   - entity: number
     translation_key: timer
     class: duration

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

@@ -79,8 +79,7 @@ entities:
           - dps_val: memory
             value: memory
   - entity: select
-    name: Backlight
-    icon: "mdi:circle-double"
+    translation_key: light_mode
     category: config
     dps:
       - id: 12
@@ -92,7 +91,7 @@ entities:
           - dps_val: relay
             value: state
           - dps_val: pos
-            value: position
+            value: locator
   - entity: binary_sensor
     class: problem
     category: diagnostic

+ 4 - 5
custom_components/tuya_local/devices/gosund_sp112_usbsmartplug.yaml

@@ -139,8 +139,7 @@ entities:
           - dps_val: "2"
             value: memory
   - entity: select
-    name: Light mode
-    icon: "mdi:lightbulb"
+    translation_key: light_mode
     category: config
     dps:
       - id: 39
@@ -148,11 +147,11 @@ entities:
         name: option
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
   - entity: lock
     translation_key: child_lock
     category: config

+ 4 - 5
custom_components/tuya_local/devices/loratap_relay.yaml

@@ -48,20 +48,19 @@ entities:
           - dps_val: 2
             value: memory
   - entity: select
-    name: Light Mode
+    translation_key: light_mode
     category: config
-    icon: "mdi:toggle-switch"
     dps:
       - id: 40
         type: string
         name: option
         mapping:
           - dps_val: relay
-            value: "Indicate switch on/off"
+            value: state
           - dps_val: pos
-            value: "Indicate switch location"
+            value: locator
           - dps_val: none
-            value: Indicator LED off
+            value: "off"
   - entity: lock
     translation_key: child_lock
     category: config

+ 4 - 5
custom_components/tuya_local/devices/loratap_wifi_curtain_switch_double.yaml

@@ -105,20 +105,19 @@ entities:
           - dps_val: "back"
             value: back
   - entity: select
-    name: Backlight
+    translation_key: light_mode
     category: config
-    icon: "mdi:toggle-switch"
     dps:
       - id: 14
         name: option
         type: string
         mapping:
           - dps_val: "relay"
-            value: Mode 1
+            value: state
           - dps_val: "pos"
-            value: Mode 2
+            value: locator
           - dps_val: "none"
-            value: None
+            value: "off"
   - entity: select
     name: Calibration 1
     category: config

+ 4 - 5
custom_components/tuya_local/devices/mirabella_power_strip.yaml

@@ -164,8 +164,7 @@ entities:
           - dps_val: "off"
             value: "off"
   - entity: select
-    name: Light mode
-    icon: "mdi:circle-double"
+    translation_key: light_mode
     hidden: unavailable
     category: config
     dps:
@@ -175,11 +174,11 @@ entities:
         name: option
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
       - id: 40
         type: string
         optional: true

+ 4 - 5
custom_components/tuya_local/devices/moes_controlpanel.yaml

@@ -49,8 +49,7 @@ entities:
         optional: true
         name: switch
   - entity: select
-    name: Indicator
-    icon: "mdi:led-on"
+    translation_key: light_mode
     category: config
     dps:
       - id: 37
@@ -58,11 +57,11 @@ entities:
         name: option
         mapping:
           - dps_val: none
-            value: "Off"
+            value: "off"
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
   - entity: select
     translation_key: initial_state
     category: config

+ 4 - 5
custom_components/tuya_local/devices/moes_dimmer.yaml

@@ -44,8 +44,7 @@ entities:
           - dps_val: halogen
             value: Halogen
   - entity: select
-    name: Backlight mode
-    icon: "mdi:circle-outline"
+    translation_key: light_mode
     category: config
     dps:
       - id: 21
@@ -53,8 +52,8 @@ entities:
         name: option
         mapping:
           - dps_val: none
-            value: "Off"
+            value: "off"
           - dps_val: relay
-            value: Status
+            value: state
           - dps_val: pos
-            value: Locator
+            value: locator

+ 3 - 3
custom_components/tuya_local/devices/moes_motionsensor_switch.yaml

@@ -50,7 +50,7 @@ entities:
           - dps_val: "off"
             value: "off"
   - entity: select
-    name: Indicator light
+    name: light_mode
     category: config
     dps:
       - id: 15
@@ -58,9 +58,9 @@ entities:
         type: string
         mapping:
           - dps_val: none
-            value: "Off"
+            value: "off"
           - dps_val: relay
-            value: "Status"
+            value: state
   - entity: switch
     name: Illuminance enable
     dps:

+ 7 - 8
custom_components/tuya_local/devices/nooie_nsp21_smartplug.yaml

@@ -26,20 +26,19 @@ entities:
           - scale: 60
             step: 60
   - entity: select
-    name: "Light Mode"
-    icon: "mdi:television-ambient-light"
+    translation_key: light_mode
     category: config
     dps:
       - id: 40
         type: string
         name: option
         mapping:
-          - dps_val: "relay"
-            value: "State"
-          - dps_val: "pos"
-            value: "Position"
-          - dps_val: "none"
-            value: "Off"
+          - dps_val: relay
+            value: state
+          - dps_val: pos
+            value: locator
+          - dps_val: none
+            value: "off"
   - entity: lock
     translation_key: child_lock
     category: config

+ 4 - 5
custom_components/tuya_local/devices/quad_powerstrip_usb.yaml

@@ -196,8 +196,7 @@ entities:
           - dps_val: memory
             value: memory
   - entity: select
-    name: Backlight
-    icon: "mdi:circle-double"
+    translation_key: light_mode
     category: config
     dps:
       - id: 40
@@ -206,11 +205,11 @@ entities:
         optional: true
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
   - entity: lock
     translation_key: child_lock
     category: config

+ 4 - 5
custom_components/tuya_local/devices/single_switch_with_backlight.yaml

@@ -38,19 +38,18 @@ entities:
             value: "off"
   - entity: select
     category: config
-    name: "Backlight Mode"
-    icon: "mdi:television-ambient-light"
+    translation_key: light_mode
     dps:
       - id: 15
         name: option
         type: string
         mapping:
           - dps_val: relay
-            value: "Indicate On/Off"
+            value: state
           - dps_val: pos
-            value: "Indicate Location"
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
   - entity: light
     translation_key: backlight
     category: config

+ 4 - 5
custom_components/tuya_local/devices/smartplug_usb.yaml

@@ -118,8 +118,7 @@ entities:
           - dps_val: last
             value: memory
   - entity: select
-    name: Indicator
-    icon: "mdi:led-on"
+    translation_key: light_mode
     category: config
     dps:
       - id: 39
@@ -128,11 +127,11 @@ entities:
         optional: true
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
   - entity: binary_sensor
     class: problem
     category: diagnostic

+ 4 - 5
custom_components/tuya_local/devices/smartplug_with_childlock.yaml

@@ -49,8 +49,7 @@ entities:
           - dps_val: memory
             value: memory
   - entity: select
-    name: Light mode
-    icon: "mdi:television-ambient-light"
+    translation_key: light_mode
     category: config
     dps:
       - id: 40
@@ -58,11 +57,11 @@ entities:
         name: option
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
   - entity: lock
     translation_key: child_lock
     category: config

+ 4 - 5
custom_components/tuya_local/devices/smartplugv2_childlock.yaml

@@ -88,8 +88,7 @@ entities:
           - dps_val: last
             value: memory
   - entity: select
-    name: Backlight
-    icon: "mdi:television-ambient-light"
+    translation_key: light_mode
     category: config
     dps:
       - id: 39
@@ -97,11 +96,11 @@ entities:
         name: option
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
   - entity: lock
     translation_key: child_lock
     category: config

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

@@ -182,8 +182,7 @@ entities:
         optional: true
         hidden: true
   - entity: select
-    name: Light
-    icon: "mdi:circle-double"
+    translation_key: light_mode
     hidden: unavailable
     category: config
     dps:
@@ -201,13 +200,13 @@ entities:
         optional: true
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
           - dps_val: "on"
-            value: "On"
+            value: "on"
   - entity: lock
     translation_key: child_lock
     hidden: unavailable

+ 4 - 5
custom_components/tuya_local/devices/smartplugv2_energyv2.yaml

@@ -162,8 +162,7 @@ entities:
         type: boolean
         name: lock
   - entity: select
-    name: Light mode
-    icon: "mdi:television-ambient-light"
+    translation_key: light_mode
     category: config
     hidden: unavailable
     dps:
@@ -181,11 +180,11 @@ entities:
         optional: true
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: "on"
-            value: "On"
+            value: "on"
   - entity: binary_sensor
     name: Online
     class: connectivity

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

@@ -172,10 +172,9 @@ entities:
         name: lock
         optional: true
   - entity: select
-    name: Light mode
+    translation_key: light_mode
     category: config
     hidden: unavailable
-    icon: "mdi:lightbulb"
     dps:
       - id: 40
         type: string
@@ -183,13 +182,13 @@ entities:
         name: option
         mapping:
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator
           - dps_val: none
-            value: "Off"
+            value: "off"
           - dps_val: "on"
-            value: "On"
+            value: "on"
       - id: 40
         type: string
         optional: true

+ 4 - 5
custom_components/tuya_local/devices/treatlife_dual_plugin_dimmer.yaml

@@ -112,8 +112,7 @@ entities:
           - scale: 60
             step: 60
   - entity: select
-    name: Indicator
-    icon: "mdi:led-on"
+    translation_key: light_mode
     category: config
     dps:
       - id: 21
@@ -121,8 +120,8 @@ entities:
         name: option
         mapping:
           - dps_val: none
-            value: "Off"
+            value: "off"
           - dps_val: relay
-            value: Status
+            value: state
           - dps_val: pos
-            value: "On"
+            value: locator

+ 4 - 5
custom_components/tuya_local/devices/wf39m_dimmer_smartplug.yaml

@@ -89,8 +89,7 @@ entities:
           - dps_val: memory
             value: memory
   - entity: select
-    name: Indicator light
-    icon: "mdi:power"
+    translation_key: light_mode
     category: config
     dps:
       - id: 21
@@ -98,8 +97,8 @@ entities:
         name: option
         mapping:
           - dps_val: none
-            value: "Off"
+            value: "off"
           - dps_val: relay
-            value: State
+            value: state
           - dps_val: pos
-            value: Position
+            value: locator

+ 3 - 0
custom_components/tuya_local/icons.json

@@ -178,6 +178,9 @@
                     "quick_boil": "mdi:kettle-steam"
                 }
             },
+            "light_mode": {
+                "default": "mdi:circle-double"
+            },
             "mopping": {
                 "default": "mdi:water"
             },

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Режим на светлина",
+                "state": {
+                    "off": "Изключено",
+                    "on": "Включено",
+                    "state": "Състояние",
+                    "locator": "Локатор"
+                }
+            },
             "mopping": {
                 "name": "Подметка",
                 "state": {

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

@@ -599,6 +599,15 @@
                     "russian": "Русский"
                 }
             },
+            "light_mode": {
+                "name": "Mode de llum",
+                "state": {
+                    "off": "Apagat",
+                    "on": "Activat",
+                    "state": "Estat",
+                    "locator": "Localitzador"
+                }
+            },
             "mopping": {
                 "name": "Fregat",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Režim světla",
+                "state": {
+                    "off": "Vypnuto",
+                    "on": "Zapnuto",
+                    "state": "Stav",
+                    "locator": "Lokalizátor"
+                }
+            },
             "mopping": {
                 "name": "Vytírání",
                 "state": {

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

@@ -463,6 +463,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Lichtmodus",
+                "state": {
+                    "off": "Aus",
+                    "on": "An",
+                    "state": "Zustand",
+                    "locator": "Locator"
+                }
+            },
             "mopping": {
                 "name": "Wischen",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Λειτουργία φωτισμού",
+                "state": {
+                    "off": "Απενεργοποίηση",
+                    "on": "Ενεργοποίηση",
+                    "state": "Κατάσταση",
+                    "locator": "Εντοπισμός"
+                }
+            },
             "mopping": {
                 "name": "Σφουγγάρισμα",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Light mode",
+                "state": {
+                    "off": "Off",
+                    "on": "On",
+                    "state": "State",
+                    "locator": "Locator"
+                }
+            },
             "mopping": {
                 "name": "Mopping",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Modo de luz",
+                "state": {
+                    "off": "Apagar",
+                    "on": "Encender",
+                    "state": "Estado",
+                    "locator": "Localizador"
+                }
+            },
             "mopping": {
                 "name": "Fregado",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Mode d'éclairage",
+                "state": {
+                    "off": "Éteint",
+                    "on": "Allumé",
+                    "state": "État",
+                    "locator": "Localisateur"
+                }
+            },
             "mopping": {
                 "name": "Nettoyage",
                 "state": {

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

@@ -465,6 +465,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Fény mód",
+                "state": {
+                    "off": "Ki",
+                    "on": "Be",
+                    "state": "Állapot",
+                    "locator": "Helymeghatározó"
+                }
+            },
             "mopping": {
                 "name": "Felmosás",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Mode lampu",
+                "state": {
+                    "off": "Mati",
+                    "on": "Hidup",
+                    "state": "Status",
+                    "locator": "Penanda"
+                }
+            },
             "mopping": {
                 "name": "Pel",
                 "state": {

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

@@ -465,6 +465,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Modalità luce",
+                "state": {
+                    "off": "Spento",
+                    "on": "Acceso",
+                    "state": "Stato",
+                    "locator": "Localizzatore"
+                }
+            },
             "mopping": {
                 "name": "Pulizia",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "ライトモード",
+                "state": {
+                    "off": "オフ",
+                    "on": "オン",
+                    "state": "状態",
+                    "locator": "ロケーター"
+                }
+            },
             "mopping": {
                 "name": "モッピング",
                 "state": {

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

@@ -465,6 +465,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Lysmodus",
+                "state": {
+                    "off": "Av",
+                    "on": "På",
+                    "state": "Tilstand",
+                    "locator": "Lokaliser"
+                }
+            },
             "mopping": {
                 "name": "Mopping",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Tryb światła",
+                "state": {
+                    "off": "Wyłączony",
+                    "on": "Włączony",
+                    "state": "Stan",
+                    "locator": "Lokalizator"
+                }
+            },
             "mopping": {
                 "name": "Mycie",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Modo de luz",
+                "state": {
+                    "off": "Desligado",
+                    "on": "Ligado",
+                    "state": "Estado",
+                    "locator": "Localizador"
+                }
+            },
             "mopping": {
                 "name": "Limpeza",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Modo de luz",
+                "state": {
+                    "off": "Desligado",
+                    "on": "Ligado",
+                    "state": "Estado",
+                    "locator": "Localizador"
+                }
+            },
             "mopping": {
                 "name": "Limpeza",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Режим освещения",
+                "state": {
+                    "off": "Выкл",
+                    "on": "Вкл",
+                    "state": "Состояние",
+                    "locator": "Локатор"
+                }
+            },
             "mopping": {
                 "name": "Мытье пола",
                 "state": {

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

@@ -467,6 +467,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "Режим світла",
+                "state": {
+                    "off": "Вимк",
+                    "on": "Увімк",
+                    "state": "Стан",
+                    "locator": "Локатор"
+                }
+            },
             "mopping": {
                 "name": "Прибирання",
                 "state": {

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

@@ -467,6 +467,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "روشنی کا موڈ",
+                "state": {
+                    "off": "آف",
+                    "on": "آن",
+                    "state": "حالت",
+                    "locator": "لوکیٹر"
+                }
+            },
             "mopping": {
                 "name": "پوچھنا",
                 "state": {

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

@@ -464,6 +464,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "灯光模式",
+                "state": {
+                    "off": "关闭",
+                    "on": "打开",
+                    "state": "状态",
+                    "locator": "定位"
+                }
+            },
             "mopping": {
                 "name": "拖地",
                 "state": {

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

@@ -465,6 +465,15 @@
                     "turkish": "Türkçe"
                 }
             },
+            "light_mode": {
+                "name": "燈光模式",
+                "state": {
+                    "off": "關",
+                    "on": "開",
+                    "state": "狀態",
+                    "locator": "定位"
+                }
+            },
             "mopping": {
                 "name": "拖地",
                 "state": {