Parcourir la source

Translations: add translations for multi-switch and outlet devices

Issue #1708
Jason Rumney il y a 1 an
Parent
commit
07908955dd
70 fichiers modifiés avec 603 ajouts et 167 suppressions
  1. 12 4
      custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml
  2. 6 2
      custom_components/tuya_local/devices/aubess_2gang_switch.yaml
  3. 15 9
      custom_components/tuya_local/devices/bauhn_ap5w0624_powerstrip.yaml
  4. 9 3
      custom_components/tuya_local/devices/blitzwolf_bwshp9_powerstrip.yaml
  5. 6 2
      custom_components/tuya_local/devices/brilliant_double_switch.yaml
  6. 12 4
      custom_components/tuya_local/devices/brilliant_quad_powerstrip_usb.yaml
  7. 12 4
      custom_components/tuya_local/devices/brilliant_quad_switch.yaml
  8. 9 3
      custom_components/tuya_local/devices/brilliant_triple_switch.yaml
  9. 6 2
      custom_components/tuya_local/devices/digoo_dgsp202.yaml
  10. 6 2
      custom_components/tuya_local/devices/diivoo_wt05.yaml
  11. 6 2
      custom_components/tuya_local/devices/dual_power_monitor_smartplug.yaml
  12. 6 2
      custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml
  13. 12 4
      custom_components/tuya_local/devices/energy_monitoring_powerstrip.yaml
  14. 9 3
      custom_components/tuya_local/devices/es01_powerstrip.yaml
  15. 9 3
      custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml
  16. 6 2
      custom_components/tuya_local/devices/grid_connect_double_switch.yaml
  17. 6 2
      custom_components/tuya_local/devices/grid_connect_usb_double_power_point.yaml
  18. 12 4
      custom_components/tuya_local/devices/logicom_powerstrip.yaml
  19. 6 2
      custom_components/tuya_local/devices/loratap_dual_switch.yaml
  20. 6 2
      custom_components/tuya_local/devices/makegood_double_power_point_with_energy.yaml
  21. 6 2
      custom_components/tuya_local/devices/makegood_switch_dual_timer-energy.yaml
  22. 15 5
      custom_components/tuya_local/devices/mirabella_power_strip.yaml
  23. 9 3
      custom_components/tuya_local/devices/moes_controlpanel.yaml
  24. 12 4
      custom_components/tuya_local/devices/moes_quad_switch.yaml
  25. 6 2
      custom_components/tuya_local/devices/moes_temp_humidity.yaml
  26. 12 4
      custom_components/tuya_local/devices/novadigital_quad_switch.yaml
  27. 12 4
      custom_components/tuya_local/devices/powerstrip_4outlet_usbs.yaml
  28. 6 2
      custom_components/tuya_local/devices/powerstrip_6outlet_usbs.yaml
  29. 9 3
      custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml
  30. 12 4
      custom_components/tuya_local/devices/quad_power_timer.yaml
  31. 12 4
      custom_components/tuya_local/devices/quad_powerstrip.yaml
  32. 12 4
      custom_components/tuya_local/devices/quad_powerstrip_usb.yaml
  33. 21 7
      custom_components/tuya_local/devices/seven_channel_switch.yaml
  34. 6 2
      custom_components/tuya_local/devices/simple_dual_switch.yaml
  35. 6 2
      custom_components/tuya_local/devices/simple_dual_switch_timer.yaml
  36. 6 2
      custom_components/tuya_local/devices/simple_dual_switch_timer_v2.yaml
  37. 24 8
      custom_components/tuya_local/devices/simple_eight_switch.yaml
  38. 12 4
      custom_components/tuya_local/devices/simple_quad_switch.yaml
  39. 18 6
      custom_components/tuya_local/devices/simple_six_switch.yaml
  40. 9 3
      custom_components/tuya_local/devices/simple_triple_switch.yaml
  41. 9 3
      custom_components/tuya_local/devices/simple_triple_switch_timer.yaml
  42. 12 4
      custom_components/tuya_local/devices/smart_multi_plug_4t_4usb.yaml
  43. 12 4
      custom_components/tuya_local/devices/smart_powerstrip.yaml
  44. 9 3
      custom_components/tuya_local/devices/smart_powerstrip_3_outlet_energy.yaml
  45. 6 2
      custom_components/tuya_local/devices/smart_surge_protector_plug_2x2.yaml
  46. 6 2
      custom_components/tuya_local/devices/somgom_double_switch.yaml
  47. 6 2
      custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml
  48. 6 2
      custom_components/tuya_local/devices/teckin_ss42_sockets.yaml
  49. 12 4
      custom_components/tuya_local/devices/usb_4way_powerstrip.yaml
  50. 6 2
      custom_components/tuya_local/devices/wfws02rj_dual_switch.yaml
  51. 9 3
      custom_components/tuya_local/devices/woox_r4028_powerstrip.yaml
  52. 6 0
      custom_components/tuya_local/translations/bg.json
  53. 6 0
      custom_components/tuya_local/translations/cz.json
  54. 6 0
      custom_components/tuya_local/translations/de.json
  55. 6 0
      custom_components/tuya_local/translations/el.json
  56. 6 0
      custom_components/tuya_local/translations/en.json
  57. 6 0
      custom_components/tuya_local/translations/es.json
  58. 6 0
      custom_components/tuya_local/translations/fr.json
  59. 6 0
      custom_components/tuya_local/translations/hu.json
  60. 6 0
      custom_components/tuya_local/translations/id.json
  61. 6 0
      custom_components/tuya_local/translations/it.json
  62. 6 0
      custom_components/tuya_local/translations/ja.json
  63. 6 0
      custom_components/tuya_local/translations/no-NB.json
  64. 6 0
      custom_components/tuya_local/translations/pl.json
  65. 6 0
      custom_components/tuya_local/translations/pt-BR.json
  66. 6 0
      custom_components/tuya_local/translations/ru.json
  67. 6 0
      custom_components/tuya_local/translations/uk.json
  68. 6 0
      custom_components/tuya_local/translations/ur.json
  69. 6 0
      custom_components/tuya_local/translations/zh-Hans.json
  70. 6 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 12 - 4
custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml

@@ -4,7 +4,9 @@ products:
     name: Arlec PB88UHA Series 2
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -12,21 +14,27 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

+ 6 - 2
custom_components/tuya_local/devices/aubess_2gang_switch.yaml

@@ -4,7 +4,9 @@ products:
     name: SciMagic RX Double Garage door receiver
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
@@ -24,7 +26,9 @@ primary_entity:
       name: interlock
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch

+ 15 - 9
custom_components/tuya_local/devices/bauhn_ap5w0624_powerstrip.yaml

@@ -4,8 +4,9 @@ products:
     name: BAUHN AP5W-0624
 primary_entity:
   entity: switch
-  name: Outlet 1
-  icon: mdi:power-socket-au
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -13,31 +14,36 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
-    icon: mdi:power-socket-au
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
-    icon: mdi:power-socket-au
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
-    icon: mdi:power-socket-au
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 5
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 5
     icon: mdi:power-socket-au
     class: outlet
     dps:

+ 9 - 3
custom_components/tuya_local/devices/blitzwolf_bwshp9_powerstrip.yaml

@@ -5,21 +5,27 @@ products:
 primary_entity:
   entity: switch
   class: outlet
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3

+ 6 - 2
custom_components/tuya_local/devices/brilliant_double_switch.yaml

@@ -5,7 +5,9 @@ products:
 primary_entity:
   entity: switch
   class: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
@@ -13,7 +15,9 @@ primary_entity:
 secondary_entities:
   - entity: switch
     class: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean

+ 12 - 4
custom_components/tuya_local/devices/brilliant_quad_powerstrip_usb.yaml

@@ -4,7 +4,9 @@ products:
     name: Brilliant Smart Quad Powerstrip with USB
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -12,21 +14,27 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

+ 12 - 4
custom_components/tuya_local/devices/brilliant_quad_switch.yaml

@@ -5,7 +5,9 @@ products:
 primary_entity:
   entity: switch
   class: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
@@ -13,21 +15,27 @@ primary_entity:
 secondary_entities:
   - entity: switch
     class: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
     class: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
     class: switch
-    name: Switch 4
+    translation_key: switch_x
+    translation_placeholders:
+      x: 4
     dps:
       - id: 4
         type: boolean

+ 9 - 3
custom_components/tuya_local/devices/brilliant_triple_switch.yaml

@@ -5,7 +5,9 @@ products:
 primary_entity:
   entity: switch
   class: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
@@ -13,14 +15,18 @@ primary_entity:
 secondary_entities:
   - entity: switch
     class: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
     class: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         type: boolean

+ 6 - 2
custom_components/tuya_local/devices/digoo_dgsp202.yaml

@@ -2,14 +2,18 @@ name: DIGOO DG-SP202
 primary_entity:
   entity: switch
   class: outlet
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2

+ 6 - 2
custom_components/tuya_local/devices/diivoo_wt05.yaml

@@ -33,7 +33,9 @@ secondary_entities:
         type: boolean
         name: valve
   - entity: switch
-    name: Switch 1
+    translation_key: switch_x
+    translation_placeholders:
+      x: 1
     category: config
     deprecated: valve
     icon: "mdi:pipe-valve"
@@ -42,7 +44,9 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     category: config
     deprecated: valve
     icon: "mdi:pipe-valve"

+ 6 - 2
custom_components/tuya_local/devices/dual_power_monitor_smartplug.yaml

@@ -1,7 +1,9 @@
 name: Dual power monitoring smartplug
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -13,7 +15,9 @@ primary_entity:
       optional: true
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2

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

@@ -6,7 +6,9 @@ products:
     name: Smatrul dual wall plug
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -30,7 +32,9 @@ primary_entity:
       optional: true
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2

+ 12 - 4
custom_components/tuya_local/devices/energy_monitoring_powerstrip.yaml

@@ -3,7 +3,9 @@ products:
   - id: 7hBwPPNdDP1xHrWv
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -26,21 +28,27 @@ primary_entity:
       name: unknown_109
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 4
+    translation_key: switch_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

+ 9 - 3
custom_components/tuya_local/devices/es01_powerstrip.yaml

@@ -4,21 +4,27 @@ products:
 primary_entity:
   entity: switch
   class: outlet
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3

+ 9 - 3
custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml

@@ -5,21 +5,27 @@ products:
 primary_entity:
   entity: switch
   class: outlet
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3

+ 6 - 2
custom_components/tuya_local/devices/grid_connect_double_switch.yaml

@@ -1,7 +1,9 @@
 name: Grid Connect double wall switch
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: switch
   dps:
     - id: 1
@@ -18,7 +20,9 @@ primary_entity:
       name: unknown_105
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: switch
     dps:
       - id: 2

+ 6 - 2
custom_components/tuya_local/devices/grid_connect_usb_double_power_point.yaml

@@ -21,14 +21,18 @@ secondary_entities:
         type: boolean
   - entity: switch
     class: outlet
-    name: Outlet 1
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 1
     dps:
       - id: 1
         name: switch
         type: boolean
   - entity: switch
     class: outlet
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch

+ 12 - 4
custom_components/tuya_local/devices/logicom_powerstrip.yaml

@@ -1,7 +1,9 @@
 name: 4 outlet + USB powerstrip
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -9,21 +11,27 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

+ 6 - 2
custom_components/tuya_local/devices/loratap_dual_switch.yaml

@@ -4,14 +4,18 @@ products:
     name: LoraTap RR620W-JL
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
       type: boolean
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch

+ 6 - 2
custom_components/tuya_local/devices/makegood_double_power_point_with_energy.yaml

@@ -2,14 +2,18 @@ name: Double power point
 primary_entity:
   entity: switch
   class: outlet
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 12
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 13

+ 6 - 2
custom_components/tuya_local/devices/makegood_switch_dual_timer-energy.yaml

@@ -4,14 +4,18 @@ products:
     name: MakeGood 2 Gang Switch (MG-MD04W)
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean

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

@@ -4,7 +4,9 @@ products:
     name: Genio Smart Power Board 2Gnd
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -12,28 +14,36 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 5
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 5
     class: outlet
     dps:
       - id: 5

+ 9 - 3
custom_components/tuya_local/devices/moes_controlpanel.yaml

@@ -4,7 +4,9 @@ products:
     name: Moes CCP-S01-EU-WH-EN touchscreen control panel IR and Bluetooth hub
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 16
       type: boolean
@@ -22,13 +24,17 @@ primary_entity:
       name: down_channel
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 17
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         type: boolean

+ 12 - 4
custom_components/tuya_local/devices/moes_quad_switch.yaml

@@ -4,7 +4,9 @@ products:
     name: Moes MS-104D
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
@@ -18,19 +20,25 @@ primary_entity:
       optional: true
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 4
+    translation_key: switch_x
+    translation_placeholders:
+      x: 4
     dps:
       - id: 4
         type: boolean

+ 6 - 2
custom_components/tuya_local/devices/moes_temp_humidity.yaml

@@ -19,7 +19,9 @@ primary_entity:
       name: sensor_dect
 secondary_entities:
   - entity: switch
-    name: Switch 1
+    translation_key: switch_x
+    translation_placeholders:
+      x: 1
     dps:
       - id: 2
         type: boolean
@@ -29,7 +31,9 @@ secondary_entities:
         type: hex
         name: auto_rules
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 3
         type: boolean

+ 12 - 4
custom_components/tuya_local/devices/novadigital_quad_switch.yaml

@@ -7,26 +7,34 @@ products:
     name: Novadigital quad switch
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
       type: boolean
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 4
+    translation_key: switch_x
+    translation_placeholders:
+      x: 4
     dps:
       - id: 4
         name: switch

+ 12 - 4
custom_components/tuya_local/devices/powerstrip_4outlet_usbs.yaml

@@ -1,7 +1,9 @@
 name: 4 outlet + USB powerstrip
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -9,21 +11,27 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

+ 6 - 2
custom_components/tuya_local/devices/powerstrip_6outlet_usbs.yaml

@@ -4,7 +4,9 @@ products:
     name: ACME SH3305
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -15,7 +17,9 @@ primary_entity:
       name: countdown
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2

+ 9 - 3
custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml

@@ -4,7 +4,9 @@ products:
     name: Qnect QN-WP03
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -12,14 +14,18 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3

+ 12 - 4
custom_components/tuya_local/devices/quad_power_timer.yaml

@@ -4,7 +4,9 @@ products:
     name: Pearl Xystec NX-4986-919 4xUSB
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -12,21 +14,27 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

+ 12 - 4
custom_components/tuya_local/devices/quad_powerstrip.yaml

@@ -4,7 +4,9 @@ products:
     name: Kogan KASPS10A3P3UA 3+USB
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -20,21 +22,27 @@ primary_entity:
       optional: true
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

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

@@ -1,7 +1,9 @@
 name: Quad powerstrip with USB
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -17,21 +19,27 @@ primary_entity:
       optional: true
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

+ 21 - 7
custom_components/tuya_local/devices/seven_channel_switch.yaml

@@ -4,44 +4,58 @@ products:
     name: Inna AUT000014 underefloor heating controller
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 4
+    translation_key: switch_x
+    translation_placeholders:
+      x: 4
     dps:
       - id: 4
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 5
+    translation_key: switch_x
+    translation_placeholders:
+      x: 5
     dps:
       - id: 5
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 6
+    translation_key: switch_x
+    translation_placeholders:
+      x: 6
     dps:
       - id: 6
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 7
+    translation_key: switch_x
+    translation_placeholders:
+      x: 7
     dps:
       - id: 7
         type: boolean

+ 6 - 2
custom_components/tuya_local/devices/simple_dual_switch.yaml

@@ -4,14 +4,18 @@ products:
     name: eMylo WiFi/RF 2 Gang
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean

+ 6 - 2
custom_components/tuya_local/devices/simple_dual_switch_timer.yaml

@@ -3,14 +3,18 @@ products:
   - id: key9nfnyp89j4esc
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean

+ 6 - 2
custom_components/tuya_local/devices/simple_dual_switch_timer_v2.yaml

@@ -4,14 +4,18 @@ products:
     name: BlitzWolf BW-SS5
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
       name: switch
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean

+ 24 - 8
custom_components/tuya_local/devices/simple_eight_switch.yaml

@@ -1,50 +1,66 @@
 name: Simple Eight Switch
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
       type: boolean
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 4
+    translation_key: switch_x
+    translation_placeholders:
+      x: 4
     dps:
       - id: 4
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 5
+    translation_key: switch_x
+    translation_placeholders:
+      x: 5
     dps:
       - id: 5
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 6
+    translation_key: switch_x
+    translation_placeholders:
+      x: 6
     dps:
       - id: 6
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 7
+    translation_key: switch_x
+    translation_placeholders:
+      x: 7
     dps:
       - id: 101
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 8
+    translation_key: switch_x
+    translation_placeholders:
+      x: 8
     dps:
       - id: 102
         name: switch

+ 12 - 4
custom_components/tuya_local/devices/simple_quad_switch.yaml

@@ -1,26 +1,34 @@
 name: Simple switch
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
       type: boolean
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 4
+    translation_key: switch_x
+    translation_placeholders:
+      x: 4
     dps:
       - id: 4
         name: switch

+ 18 - 6
custom_components/tuya_local/devices/simple_six_switch.yaml

@@ -1,38 +1,50 @@
 name: Simple Six Switch
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
       type: boolean
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 4
+    translation_key: switch_x
+    translation_placeholders:
+      x: 4
     dps:
       - id: 4
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 5
+    translation_key: switch_x
+    translation_placeholders:
+      x: 5
     dps:
       - id: 5
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 6
+    translation_key: switch_x
+    translation_placeholders:
+      x: 6
     dps:
       - id: 6
         name: switch

+ 9 - 3
custom_components/tuya_local/devices/simple_triple_switch.yaml

@@ -1,20 +1,26 @@
 name: Triple switch
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
       type: boolean
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         name: switch

+ 9 - 3
custom_components/tuya_local/devices/simple_triple_switch_timer.yaml

@@ -4,20 +4,26 @@ products:
     name: KS-811-3
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
       type: boolean
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch
         type: boolean
   - entity: switch
-    name: Switch 3
+    translation_key: switch_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         name: switch

+ 12 - 4
custom_components/tuya_local/devices/smart_multi_plug_4t_4usb.yaml

@@ -4,7 +4,9 @@ products:
     name: Smart multi-plug 4T+4USB
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -20,19 +22,25 @@ primary_entity:
       optional: true
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     dps:
       - id: 4
         type: boolean

+ 12 - 4
custom_components/tuya_local/devices/smart_powerstrip.yaml

@@ -4,7 +4,9 @@ products:
     name: smart Power Strip
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -12,21 +14,27 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

+ 9 - 3
custom_components/tuya_local/devices/smart_powerstrip_3_outlet_energy.yaml

@@ -5,7 +5,9 @@ products:
 primary_entity:
   entity: switch
   class: outlet
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
@@ -21,14 +23,18 @@ primary_entity:
 secondary_entities:
   - entity: switch
     class: outlet
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
     class: outlet
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     dps:
       - id: 3
         type: boolean

+ 6 - 2
custom_components/tuya_local/devices/smart_surge_protector_plug_2x2.yaml

@@ -5,7 +5,9 @@ products:
 primary_entity:
   entity: switch
   class: outlet
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
@@ -13,7 +15,9 @@ primary_entity:
 secondary_entities:
   - entity: switch
     class: outlet
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch

+ 6 - 2
custom_components/tuya_local/devices/somgom_double_switch.yaml

@@ -1,14 +1,18 @@
 name: Somgoms double switch
 primary_entity:
   entity: switch
-  name: Switch 1
+  translation_key: switch_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       name: switch
       type: boolean
 secondary_entities:
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         name: switch

+ 6 - 2
custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml

@@ -99,14 +99,18 @@ secondary_entities:
           - dps_val: DUAL_ZONE
             value: Dual zone
   - entity: switch
-    name: Switch A
+    translation_key: switch_x
+    translation_placeholders:
+      x: A
     icon: "mdi:bed"
     dps:
       - id: 14
         type: boolean
         name: switch
   - entity: switch
-    name: Switch B
+    translation_key: switch_x
+    translation_placeholders:
+      x: B
     icon: "mdi:bed"
     dps:
       - id: 15

+ 6 - 2
custom_components/tuya_local/devices/teckin_ss42_sockets.yaml

@@ -2,7 +2,9 @@ name: Outdoor double plug
 primary_entity:
   entity: switch
   class: outlet
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   dps:
     - id: 1
       type: boolean
@@ -10,7 +12,9 @@ primary_entity:
 secondary_entities:
   - entity: switch
     class: outlet
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     dps:
       - id: 2
         type: boolean

+ 12 - 4
custom_components/tuya_local/devices/usb_4way_powerstrip.yaml

@@ -4,7 +4,9 @@ products:
     name: AOFO ZLD-44EU-W
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -12,21 +14,27 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 4
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 4
     class: outlet
     dps:
       - id: 4

+ 6 - 2
custom_components/tuya_local/devices/wfws02rj_dual_switch.yaml

@@ -18,14 +18,18 @@ primary_entity:
           value: false
 secondary_entities:
   - entity: switch
-    name: Switch 1
+    translation_key: switch_x
+    translation_placeholders:
+      x: 1
     class: switch
     dps:
       - id: 1
         type: boolean
         name: switch
   - entity: switch
-    name: Switch 2
+    translation_key: switch_x
+    translation_placeholders:
+      x: 2
     class: switch
     dps:
       - id: 2

+ 9 - 3
custom_components/tuya_local/devices/woox_r4028_powerstrip.yaml

@@ -2,7 +2,9 @@ name: 3 outlet + USB powerstrip
 legacy_type: tellur_usb_power_strip
 primary_entity:
   entity: switch
-  name: Outlet 1
+  translation_key: outlet_x
+  translation_placeholders:
+    x: 1
   class: outlet
   dps:
     - id: 1
@@ -10,14 +12,18 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: Outlet 2
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: Outlet 3
+    translation_key: outlet_x
+    translation_placeholders:
+      x: 3
     class: outlet
     dps:
       - id: 3

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

@@ -645,9 +645,15 @@
             "keytone": {
                 "name": "Клавишен тон"
             },
+            "outlet_x": {
+                "name": "Изход {x}"
+            },
             "sleep": {
                 "name": "Сън"
             },
+            "switch_x": {
+                "name": "Превключване {x}"
+            },
             "uv_sterilization": {
                 "name": "UV стерилизация"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "Tón kláves"
             },
+            "outlet_x": {
+                "name": "Zásuvka {x}"
+            },
             "sleep": {
                 "name": "Spát"
             },
+            "switch_x": {
+                "name": "Přepínač {x}"
+            },
             "uv_sterilization": {
                 "name": "UV sterilizace"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "Tastenton"
             },
+            "outlet_x": {
+                "name": "Steckdose {x}"
+            },
             "sleep": {
                 "name": "Schlafen"
             },
+            "switch_x": {
+                "name": "Schalter {x}"
+            },
             "uv_sterilization": {
                 "name": "UV Sterilization"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "Ήχος κουμπιών"
             },
+            "outlet_x": {
+                "name": "Πρίζα {x}"
+            },
             "sleep": {
                 "name": "Αναμονή"
             },
+            "switch_x": {
+                "name": "Διακόπτης {x}"
+            },
             "uv_sterilization": {
                 "name": "Αποστείρωση UV"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "Keytone"
             },
+            "outlet_x": {
+                "name": "Outlet {x}"
+            },
             "sleep": {
                 "name": "Sleep"
             },
+            "switch_x": {
+                "name": "Switch {x}"
+            },
             "uv_sterilization": {
                 "name": "UV sterilization"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "Tono del teclado"
             },
+            "outlet_x": {
+                "name": "Salida {x}"
+            },
             "sleep": {
                 "name": "Modo de suspensión"
             },
+            "switch_x": {
+                "name": "Interruptor {x}"
+            },
             "uv_sterilization": {
                 "name": "Esterilización UV"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "Tonalité des touches"
             },
+            outlet_x": {
+                "name": "Prise {x}"
+            },
             "sleep": {
                 "name": "Veille"
             },
+            "switch_x": {
+                "name": "Interrupteur {x}"
+            },
             "uv_sterilization": {
                 "name": "Stérilisation UV"
             }

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

@@ -645,9 +645,15 @@
             "keytone": {
                 "name": "Billentyűhang"
             },
+            "outlet_x": {
+                "name": "Csatlakozó {x}"
+            },
             "sleep": {
                 "name": "Alvás"
             },
+            "switch_x": {
+                "name": "Kapcsoló {x}"
+            },
             "uv_sterilization": {
                 "name": "UV sterilizálás"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "Nada tombol"
             },
+            "outlet_x": {
+                "name": "Stopkontak {x}"
+            },
             "sleep": {
                 "name": "Tidur"
             },
+            "switch_x": {
+                "name": "Saklar {x}"
+            },
             "uv_sterilization": {
                 "name": "Sterilisasi UV"
             }

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

@@ -645,9 +645,15 @@
             "keytone": {
                 "name": "tono dei tasti"
             },
+            "outlet_x": {
+                "name": "Uscita {x}"
+            },
             "sleep": {
                 "name": "Sonno"
             },
+            "switch_x": {
+                "name": "Interruttore {x}"
+            },
             "uv_sterilization": {
                 "name": "Sterilizzazione UV"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "キートーン"
             },
+            "outlet_x": {
+                "name": "コンセント{x}"
+            },
             "sleep": {
                 "name": "睡眠"
             },
+            "switch_x": {
+                "name": "スイッチ{x}"
+            },
             "uv_sterilization": {
                 "name": "紫外線殺菌"
             }

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

@@ -645,9 +645,15 @@
             "keytone" : {
                 "name": "Tastaturtone"
             },
+            "outlet_x": {
+                "name": "Uttak {x}"
+            },
             "sleep": {
                 "name": "Søvnmodus"
             },
+            "switch_x": {
+                "name": "Bryter {x}"
+            },
             "uv_sterilization": {
                 "name": "UV-sterilisering"
             }

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

@@ -645,9 +645,15 @@
             "keytone": {
                 "name": "Dzwięk klawiszy"
             },
+            "outlet_x": {
+                "name": "Gniazdko {x}"
+            },
             "sleep": {
                 "name": "Tryb uśpienia"
             },
+            "switch_x": {
+                "name": "Przełącznik {x}"
+            },
             "uv_sterilization": {
                 "name": "Sterylizacja UV"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "Tom do teclado"
             },
+            "outlet_x": {
+                "name": "Tomada {x}"
+            },
             "sleep": {
                 "name": "Dormir"
             },
+            "switch_x": {
+                "name": "Interruptor {x}"
+            },
             "uv_sterilization": {
                 "name": "Esterilização UV"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "Ключевой тон"
             },
+            "outlet_x": {
+                "name": "Розетка {x}"
+            },
             "sleep": {
                 "name": "Сон"
             },
+            "switch_x": {
+                "name": "Выключатель {x}"
+            },
             "uv_sterilization": {
                 "name": "УФ-стерилизация"
             }

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

@@ -647,9 +647,15 @@
             "keytone": {
                 "name": "Тон клавіш"
             },
+            "outlet_x": {
+                "name": "Розетка {x}"
+            },
             "sleep": {
                 "name": "Сон"
             },
+            "switch_x": {
+                "name": "Вимикач {x}"
+            },
             "uv_sterilization": {
                 "name": "УФ стерилізація"
             }

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

@@ -647,9 +647,15 @@
             "keytone": {
                 "name": "کی پیڈ ٹون"
             },
+            "outlet_x": {
+                "name": "آؤٹ لیٹ {x}"
+            },
             "sleep": {
                 "name": "سونا"
             },
+            "switch_x": {
+                "name": "سوئچ {x}"
+            },
             "uv_sterilization": {
                 "name": "UV نس بندی"
             }

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

@@ -644,9 +644,15 @@
             "keytone": {
                 "name": "按键音"
             },
+            "outlet_x": {
+                "name": "插座{x}"
+            },
             "sleep": {
                 "name": "睡眠"
             },
+            "switch_x": {
+                "name": "开关{x}"
+            },
             "uv_sterilization": {
                 "name": "紫外线消毒"
             }

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

@@ -645,9 +645,15 @@
             "keytone": {
                 "name": "按鍵音"
             },
+            "outlet_x": {
+                "name": "插座{x}"
+            },
             "sleep": {
                 "name": "睡眠模式"
             },
+            "switch_x": {
+                "name": "開關{x}"
+            },
             "uv_sterilization": {
                 "name": "紫外線消毒"
             }