Parcourir la source

Add translations for multi-power, current, voltage sensors.

Issue #1708
Jason Rumney il y a 1 an
Parent
commit
7739277202
42 fichiers modifiés avec 570 ajouts et 149 suppressions
  1. 27 9
      custom_components/tuya_local/devices/ecopoint_ev_charger.yaml
  2. 0 3
      custom_components/tuya_local/devices/emylo_energy_meter.yaml
  3. 18 6
      custom_components/tuya_local/devices/erz04c_energy_meter.yaml
  4. 18 6
      custom_components/tuya_local/devices/goodcell_ev_charger.yaml
  5. 12 5
      custom_components/tuya_local/devices/matsee_2way_energymeter.yaml
  6. 12 4
      custom_components/tuya_local/devices/matsee_2wayv2_energymeter.yaml
  7. 27 9
      custom_components/tuya_local/devices/nine_ev_charger.yaml
  8. 27 9
      custom_components/tuya_local/devices/noeifevo_q21w_evcharger.yaml
  9. 12 4
      custom_components/tuya_local/devices/pc311ty_energy_meter.yaml
  10. 27 9
      custom_components/tuya_local/devices/pc321ty_energy_meter.yaml
  11. 27 9
      custom_components/tuya_local/devices/pc321zty_energy_meter.yaml
  12. 0 3
      custom_components/tuya_local/devices/smartmcb_smt006_energymeter.yaml
  13. 0 3
      custom_components/tuya_local/devices/smartmcb_smt006_energymeterv2.yaml
  14. 27 9
      custom_components/tuya_local/devices/tongou_qcb2_circuitbreaker.yaml
  15. 0 3
      custom_components/tuya_local/devices/tongou_qcb2_singlephasebreaker.yaml
  16. 27 9
      custom_components/tuya_local/devices/tongou_st463jwt_breaker.yaml
  17. 0 3
      custom_components/tuya_local/devices/tongou_toqsyswt_breaker.yaml
  18. 18 6
      custom_components/tuya_local/devices/tuya_energy_meter.yaml
  19. 12 4
      custom_components/tuya_local/devices/unknow_2way_energymeter.yaml
  20. 27 9
      custom_components/tuya_local/devices/wdyk_2p63a_energy_meter.yaml
  21. 27 9
      custom_components/tuya_local/devices/wdyk_3phase_energymonitor.yaml
  22. 27 9
      custom_components/tuya_local/devices/wdyk_4p100a_energymeter.yaml
  23. 27 9
      custom_components/tuya_local/devices/yagusmart_3pn_energymeter.yaml
  24. 9 0
      custom_components/tuya_local/translations/bg.json
  25. 9 0
      custom_components/tuya_local/translations/cz.json
  26. 9 0
      custom_components/tuya_local/translations/de.json
  27. 9 0
      custom_components/tuya_local/translations/el.json
  28. 9 0
      custom_components/tuya_local/translations/en.json
  29. 9 0
      custom_components/tuya_local/translations/es.json
  30. 9 0
      custom_components/tuya_local/translations/fr.json
  31. 9 0
      custom_components/tuya_local/translations/hu.json
  32. 9 0
      custom_components/tuya_local/translations/id.json
  33. 9 0
      custom_components/tuya_local/translations/it.json
  34. 9 0
      custom_components/tuya_local/translations/ja.json
  35. 9 0
      custom_components/tuya_local/translations/no-NB.json
  36. 9 0
      custom_components/tuya_local/translations/pl.json
  37. 9 0
      custom_components/tuya_local/translations/pt-BR.json
  38. 9 0
      custom_components/tuya_local/translations/ru.json
  39. 9 0
      custom_components/tuya_local/translations/uk.json
  40. 9 0
      custom_components/tuya_local/translations/ur.json
  41. 9 0
      custom_components/tuya_local/translations/zh-Hans.json
  42. 9 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 27 - 9
custom_components/tuya_local/devices/ecopoint_ev_charger.yaml

@@ -140,7 +140,9 @@ secondary_entities:
           - dps_val: charge_schedule
             value: Scheduled charge
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     dps:
       - id: 6  # phase_1
@@ -152,7 +154,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     dps:
       - id: 6  # phase_1
@@ -164,7 +168,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     dps:
       - id: 6  # phase_1
@@ -176,7 +182,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     dps:
       - id: 7  # phase_1
@@ -188,7 +196,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     dps:
       - id: 7  # phase_1
@@ -200,7 +210,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     dps:
       - id: 7  # phase_1
@@ -212,7 +224,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     dps:
       - id: 8  # phase_1
@@ -224,7 +238,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     dps:
       - id: 8  # phase_1
@@ -236,7 +252,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     dps:
       - id: 8  # phase_1

+ 0 - 3
custom_components/tuya_local/devices/emylo_energy_meter.yaml

@@ -93,7 +93,6 @@ secondary_entities:
         name: button
         optional: true
   - entity: sensor
-    name: Voltage A
     class: voltage
     category: diagnostic
     dps:
@@ -106,7 +105,6 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
     class: current
     category: diagnostic
     dps:
@@ -119,7 +117,6 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
     class: power
     category: diagnostic
     dps:

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

@@ -81,7 +81,9 @@ primary_entity:
           value: Offline
 secondary_entities:
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     category: diagnostic
     class: power
     dps:
@@ -94,7 +96,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     category: diagnostic
     class: current
     dps:
@@ -107,7 +111,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     category: diagnostic
     class: voltage
     dps:
@@ -158,7 +164,9 @@ secondary_entities:
 
 
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     category: diagnostic
     class: power
     dps:
@@ -171,7 +179,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     category: diagnostic
     class: current
     dps:
@@ -184,7 +194,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     category: diagnostic
     class: voltage
     dps:

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

@@ -176,7 +176,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Voltage L1
+    translation_key: voltage_x
+    translation_placeholders:
+      x: L1
     class: voltage
     category: diagnostic
     dps:
@@ -188,7 +190,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Voltage L2
+    translation_key: voltage_x
+    translation_placeholders:
+      x: L2
     class: voltage
     category: diagnostic
     dps:
@@ -200,7 +204,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Voltage L3
+    translation_key: voltage_x
+    translation_placeholders:
+      x: L3
     class: voltage
     category: diagnostic
     dps:
@@ -212,7 +218,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current L1
+    translation_key: current_x
+    translation_placeholders:
+      x: L1
     class: current
     category: diagnostic
     dps:
@@ -224,7 +232,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current L2
+    translation_key: current_x
+    translation_placeholders:
+      x: L2
     class: current
     category: diagnostic
     dps:
@@ -236,7 +246,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current L3
+    translation_key: current_x
+    translation_placeholders:
+      x: L3
     class: current
     category: diagnostic
     dps:

+ 12 - 5
custom_components/tuya_local/devices/matsee_2way_energymeter.yaml

@@ -50,7 +50,9 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     category: diagnostic
     dps:
@@ -71,7 +73,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     category: diagnostic
     dps:
@@ -194,7 +198,6 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    class: voltage
     category: diagnostic
     dps:
       - id: 112
@@ -210,7 +213,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     category: diagnostic
     dps:
@@ -227,7 +232,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     category: diagnostic
     dps:

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

@@ -94,7 +94,9 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     category: diagnostic
     dps:
@@ -112,7 +114,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     category: diagnostic
     dps:
@@ -203,7 +207,9 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     category: diagnostic
     dps:
@@ -221,7 +227,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     category: diagnostic
     dps:

+ 27 - 9
custom_components/tuya_local/devices/nine_ev_charger.yaml

@@ -132,7 +132,9 @@ secondary_entities:
           - dps_val: charge_delay
             value: Delayed charge
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     dps:
       - id: 6  # phase_1
@@ -144,7 +146,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     dps:
       - id: 6  # phase_1
@@ -156,7 +160,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     dps:
       - id: 6  # phase_1
@@ -168,7 +174,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     dps:
       - id: 7  # phase_1
@@ -180,7 +188,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     dps:
       - id: 7  # phase_1
@@ -192,7 +202,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     dps:
       - id: 7  # phase_1
@@ -204,7 +216,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     dps:
       - id: 8  # phase_1
@@ -216,7 +230,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     dps:
       - id: 8  # phase_1
@@ -228,7 +244,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     dps:
       - id: 8  # phase_1

+ 27 - 9
custom_components/tuya_local/devices/noeifevo_q21w_evcharger.yaml

@@ -85,7 +85,9 @@ secondary_entities:
           - dps_val: charge_schedule
             value: Scheduled charge
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     dps:
       - id: 6
@@ -97,7 +99,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     dps:
       - id: 6
@@ -109,7 +113,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     dps:
       - id: 6
@@ -121,7 +127,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     dps:
       - id: 7
@@ -133,7 +141,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     dps:
       - id: 7
@@ -145,7 +155,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     dps:
       - id: 7
@@ -157,7 +169,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     dps:
       - id: 8
@@ -169,7 +183,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     dps:
       - id: 8
@@ -181,7 +197,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     dps:
       - id: 8

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

@@ -99,7 +99,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: current
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     dps:
       - id: 107
         name: sensor
@@ -112,7 +114,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: power
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     dps:
       - id: 108
         name: sensor
@@ -167,7 +171,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: current
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     dps:
       - id: 110
         name: sensor
@@ -180,7 +186,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: power
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     dps:
       - id: 111
         name: sensor

+ 27 - 9
custom_components/tuya_local/devices/pc321ty_energy_meter.yaml

@@ -18,7 +18,9 @@ primary_entity:
 secondary_entities:
   - entity: sensor
     category: diagnostic
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     dps:
       - id: 101
@@ -32,7 +34,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: current
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     dps:
       - id: 102
         name: sensor
@@ -45,7 +49,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: power
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     dps:
       - id: 103
         name: sensor
@@ -76,7 +82,9 @@ secondary_entities:
           - scale: 100
   - entity: sensor
     category: diagnostic
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     dps:
       - id: 111
@@ -90,7 +98,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: current
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     dps:
       - id: 112
         name: sensor
@@ -103,7 +113,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: power
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     dps:
       - id: 113
         name: sensor
@@ -134,7 +146,9 @@ secondary_entities:
           - scale: 100
   - entity: sensor
     category: diagnostic
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     dps:
       - id: 121
@@ -148,7 +162,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: current
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     dps:
       - id: 122
         name: sensor
@@ -161,7 +177,9 @@ secondary_entities:
   - entity: sensor
     category: diagnostic
     class: power
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     dps:
       - id: 123
         name: sensor

+ 27 - 9
custom_components/tuya_local/devices/pc321zty_energy_meter.yaml

@@ -26,7 +26,9 @@ primary_entity:
 secondary_entities:
   - entity: sensor
     category: diagnostic
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     dps:
       - id: 6
@@ -39,7 +41,9 @@ secondary_entities:
           - scale: 10
   - entity: sensor
     category: diagnostic
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     dps:
       - id: 6
@@ -52,7 +56,9 @@ secondary_entities:
           - scale: 1000
   - entity: sensor
     category: diagnostic
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     dps:
       - id: 6
@@ -65,7 +71,9 @@ secondary_entities:
           - scale: 1000
   - entity: sensor
     category: diagnostic
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     dps:
       - id: 7
@@ -78,7 +86,9 @@ secondary_entities:
           - scale: 10
   - entity: sensor
     category: diagnostic
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     dps:
       - id: 7
@@ -91,7 +101,9 @@ secondary_entities:
           - scale: 1000
   - entity: sensor
     category: diagnostic
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     dps:
       - id: 7
@@ -104,7 +116,9 @@ secondary_entities:
           - scale: 1000
   - entity: sensor
     category: diagnostic
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     dps:
       - id: 8
@@ -117,7 +131,9 @@ secondary_entities:
           - scale: 10
   - entity: sensor
     category: diagnostic
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     dps:
       - id: 8
@@ -130,7 +146,9 @@ secondary_entities:
           - scale: 1000
   - entity: sensor
     category: diagnostic
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     dps:
       - id: 8

+ 0 - 3
custom_components/tuya_local/devices/smartmcb_smt006_energymeter.yaml

@@ -107,7 +107,6 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Voltage A
     class: voltage
     category: diagnostic
     dps:
@@ -120,7 +119,6 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
     class: current
     category: diagnostic
     dps:
@@ -133,7 +131,6 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
     class: power
     category: diagnostic
     dps:

+ 0 - 3
custom_components/tuya_local/devices/smartmcb_smt006_energymeterv2.yaml

@@ -108,7 +108,6 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Voltage A
     class: voltage
     category: diagnostic
     dps:
@@ -121,7 +120,6 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
     class: current
     category: diagnostic
     dps:
@@ -134,7 +132,6 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
     class: power
     category: diagnostic
     dps:

+ 27 - 9
custom_components/tuya_local/devices/tongou_qcb2_circuitbreaker.yaml

@@ -21,7 +21,9 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     category: diagnostic
     dps:
@@ -35,7 +37,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     category: diagnostic
     dps:
@@ -49,7 +53,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     category: diagnostic
     dps:
@@ -63,7 +69,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     category: diagnostic
     dps:
@@ -77,7 +85,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     category: diagnostic
     dps:
@@ -91,7 +101,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     category: diagnostic
     dps:
@@ -105,7 +117,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     category: diagnostic
     dps:
@@ -119,7 +133,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     category: diagnostic
     dps:
@@ -133,7 +149,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     category: diagnostic
     dps:

+ 0 - 3
custom_components/tuya_local/devices/tongou_qcb2_singlephasebreaker.yaml

@@ -21,7 +21,6 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Voltage A
     class: voltage
     category: diagnostic
     dps:
@@ -35,7 +34,6 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
     class: current
     category: diagnostic
     dps:
@@ -49,7 +47,6 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
     class: power
     category: diagnostic
     dps:

+ 27 - 9
custom_components/tuya_local/devices/tongou_st463jwt_breaker.yaml

@@ -110,7 +110,9 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     category: diagnostic
     dps:
@@ -123,7 +125,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     category: diagnostic
     dps:
@@ -136,7 +140,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     category: diagnostic
     dps:
@@ -149,7 +155,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     category: diagnostic
     dps:
@@ -162,7 +170,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     category: diagnostic
     dps:
@@ -175,7 +185,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     category: diagnostic
     dps:
@@ -188,7 +200,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     category: diagnostic
     dps:
@@ -201,7 +215,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     category: diagnostic
     dps:
@@ -214,7 +230,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     category: diagnostic
     dps:

+ 0 - 3
custom_components/tuya_local/devices/tongou_toqsyswt_breaker.yaml

@@ -24,7 +24,6 @@ primary_entity:
       name: cycle_time
 secondary_entities:
   - entity: sensor
-    name: Voltage A
     class: voltage
     category: diagnostic
     dps:
@@ -37,7 +36,6 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
     class: current
     category: diagnostic
     dps:
@@ -50,7 +48,6 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
     class: power
     category: diagnostic
     dps:

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

@@ -30,7 +30,9 @@ primary_entity:
           value: warning
 secondary_entities:
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     category: diagnostic
     class: power
     dps:
@@ -43,7 +45,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     category: diagnostic
     class: current
     dps:
@@ -56,7 +60,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     category: diagnostic
     class: voltage
     dps:
@@ -93,7 +99,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     category: diagnostic
     class: power
     dps:
@@ -106,7 +114,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     category: diagnostic
     class: current
     dps:
@@ -119,7 +129,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     category: diagnostic
     class: voltage
     dps:

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

@@ -102,7 +102,9 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     category: diagnostic
     dps:
@@ -123,7 +125,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     category: diagnostic
     dps:
@@ -225,7 +229,9 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     category: diagnostic
     dps:
@@ -246,7 +252,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     category: diagnostic
     dps:

+ 27 - 9
custom_components/tuya_local/devices/wdyk_2p63a_energy_meter.yaml

@@ -145,7 +145,9 @@ secondary_entities:
         name: switch
         optional: true
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     category: diagnostic
     dps:
@@ -158,7 +160,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     category: diagnostic
     dps:
@@ -171,7 +175,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     category: diagnostic
     dps:
@@ -184,7 +190,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     category: diagnostic
     dps:
@@ -197,7 +205,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     category: diagnostic
     dps:
@@ -210,7 +220,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     category: diagnostic
     dps:
@@ -223,7 +235,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     category: diagnostic
     dps:
@@ -236,7 +250,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     category: diagnostic
     dps:
@@ -249,7 +265,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     category: diagnostic
     dps:

+ 27 - 9
custom_components/tuya_local/devices/wdyk_3phase_energymonitor.yaml

@@ -71,7 +71,9 @@ secondary_entities:
         type: boolean
         name: lock
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     category: diagnostic
     dps:
@@ -86,7 +88,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     category: diagnostic
     dps:
@@ -101,7 +105,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     category: diagnostic
     dps:
@@ -116,7 +122,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     category: diagnostic
     dps:
@@ -131,7 +139,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     category: diagnostic
     dps:
@@ -146,7 +156,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     category: diagnostic
     dps:
@@ -176,7 +188,9 @@ secondary_entities:
         mapping:
           - scale: 10000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     category: diagnostic
     dps:
@@ -191,7 +205,9 @@ secondary_entities:
         mapping:
           - scale: 10000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     category: diagnostic
     dps:
@@ -206,7 +222,9 @@ secondary_entities:
         mapping:
           - scale: 10000
   - entity: sensor
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     category: diagnostic
     dps:

+ 27 - 9
custom_components/tuya_local/devices/wdyk_4p100a_energymeter.yaml

@@ -137,7 +137,9 @@ secondary_entities:
         name: switch
         optional: true
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     category: diagnostic
     dps:
@@ -150,7 +152,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     category: diagnostic
     dps:
@@ -163,7 +167,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     category: diagnostic
     dps:
@@ -176,7 +182,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     category: diagnostic
     dps:
@@ -189,7 +197,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     category: diagnostic
     dps:
@@ -202,7 +212,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     category: diagnostic
     dps:
@@ -215,7 +227,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     category: diagnostic
     dps:
@@ -228,7 +242,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     category: diagnostic
     dps:
@@ -241,7 +257,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     category: diagnostic
     dps:

+ 27 - 9
custom_components/tuya_local/devices/yagusmart_3pn_energymeter.yaml

@@ -96,7 +96,9 @@ secondary_entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Voltage A
+    translation_key: voltage_x
+    translation_placeholders:
+      x: A
     class: voltage
     category: diagnostic
     dps:
@@ -110,7 +112,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current A
+    translation_key: current_x
+    translation_placeholders:
+      x: A
     class: current
     category: diagnostic
     dps:
@@ -124,7 +128,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power A
+    translation_key: power_x
+    translation_placeholders:
+      x: A
     class: power
     category: diagnostic
     dps:
@@ -138,7 +144,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage B
+    translation_key: voltage_x
+    translation_placeholders:
+      x: B
     class: voltage
     category: diagnostic
     dps:
@@ -152,7 +160,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current B
+    translation_key: current_x
+    translation_placeholders:
+      x: B
     class: current
     category: diagnostic
     dps:
@@ -166,7 +176,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power B
+    translation_key: power_x
+    translation_placeholders:
+      x: B
     class: power
     category: diagnostic
     dps:
@@ -180,7 +192,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Voltage C
+    translation_key: voltage_x
+    translation_placeholders:
+      x: C
     class: voltage
     category: diagnostic
     dps:
@@ -194,7 +208,9 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Current C
+    translation_key: current_x
+    translation_placeholders:
+      x: C
     class: current
     category: diagnostic
     dps:
@@ -208,7 +224,9 @@ secondary_entities:
         mapping:
           - scale: 1000
   - entity: sensor
-    name: Power C
+    translation_key: power_x
+    translation_placeholders:
+      x: C
     class: power
     category: diagnostic
     dps:

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

@@ -630,6 +630,15 @@
             },
             "energy_consumed_x": {
                 "name": "Консумирана енергия {x}"
+            },
+            "current_x": {
+                "name": "Текущ {x}"
+            },
+            "voltage_x": {
+                "name": "Напрежение {x}"
+            },
+            "power_x": {
+                "name": "Мощност {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "Spotřebována energie {x}"
+            },
+            "current_x": {
+                "name": "Proud {x}"
+            },
+            "voltage_x": {
+                "name": "Napětí {x}"
+            },
+            "power_x": {
+                "name": "Výkon {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "Verbrauchte Energie {x}"
+            },
+            "current_x": {
+                "name": "Strom {x}"
+            },
+            "voltage_x": {
+                "name": "Spannung {x}"
+            },
+            "power_x": {
+                "name": "Leistung {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "Ενέργεια που καταναλώθηκε {x}"
+            },
+            "current_x": {
+                "name": "Ρεύμα {x}"
+            },
+            "voltage_x": {
+                "name": "Τάση {x}"
+            },
+            "power_x": {
+                "name": "Ισχύς {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "Energy consumed {x}"
+            },
+            "current_x": {
+                "name": "Current {x}"
+            },
+            "voltage_x": {
+                "name": "Voltage {x}"
+            },
+            "power_x": {
+                "name": "Power {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "Energía consumida {x}"
+            },
+            "current_x": {
+                "name": "Corriente {x}"
+            },
+            "voltage_x": {
+                "name": "Voltaje {x}"
+            },
+            "power_x": {
+                "name": "Potencia {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "Énergie consommée {x}"
+            },
+            "current_x": {
+                "name": "Courant {x}"
+            },
+            "voltage_x": {
+                "name": "Tension {x}"
+            },
+            "power_x": {
+                "name": "Puissance {x}"
             }
         },
         "switch": {

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

@@ -630,6 +630,15 @@
             },
             "energy_consumed_x": {
                 "name": "Fogyasztott energia {x}"
+            },
+            "current_x": {
+                "name": "Áram {x}"
+            },
+            "voltage_x": {
+                "name": "Feszültség {x}"
+            },
+            "power_x": {
+                "name": "Teljesítmény {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "Energi yang dikonsumsi {x}"
+            },
+            "current_x": {
+                "name": "Arus {x}"
+            },
+            "voltage_x": {
+                "name": "Tegangan {x}"
+            },
+            "power_x": {
+                "name": "Daya {x}"
             }
         },
         "switch": {

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

@@ -630,6 +630,15 @@
             },
             "energy_consumed_x": {
                 "name": "Energia consumata {x}"
+            },
+            "current_x": {
+                "name": "Corrente {x}"
+            },
+            "voltage_x": {
+                "name": "Tensione {x}"
+            },
+            "power_x": {
+                "name": "Potenza {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "消費電力{x}"
+            },
+            "current_x": {
+                "name": "電流{x}"
+            },
+            "voltage_x": {
+                "name": "電圧{x}"
+            },
+            "power_x": {
+                "name": "電力{x}"
             }
         },
         "switch": {

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

@@ -630,6 +630,15 @@
             },
             "energy_consumed_x": {
                 "name": "Energi forbrukt {x}"
+            },
+            "current_x": {
+                "name": "Strøm {x}"
+            },
+            "voltage_x": {
+                "name": "Spenning {x}"
+            },
+            "power_x": {
+                "name": "Effekt {x}"
             }
         },
         "switch": {

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

@@ -630,6 +630,15 @@
             },
             "energy_consumed_x": {
                 "name": "Energia zużyta {x}"
+            },
+            "current_x": {
+                "name": "Prąd {x}"
+            },
+            "voltage_x": {
+                "name": "Napięcie {x}"
+            },
+            "power_x": {
+                "name": "Moc {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "Energia consumida {x}"
+            },
+            "current_x": {
+                "name": "Corrente {x}"
+            },
+            "voltage_x": {
+                "name": "Tensão {x}"
+            },
+            "power_x": {
+                "name": "Potência {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "Потребляемая энергия {x}"
+            },
+            "current_x": {
+                "name": "Текущий {x}"
+            },
+            "voltage_x": {
+                "name": "Напряжение {x}"
+            },
+            "power_x": {
+                "name": "Мощность {x}"
             }
         },
         "switch": {

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

@@ -632,6 +632,15 @@
             },
             "energy_consumed_x": {
                 "name": "Спожита енергія {x}"
+            },
+            "current_x": {
+                "name": "Поточний {x}"
+            },
+            "voltage_x": {
+                "name": "Напруга {x}"
+            },
+            "power_x": {
+                "name": "Потужність {x}"
             }
         },
         "switch": {

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

@@ -632,6 +632,15 @@
             },
             "energy_consumed_x": {
                 "name": "استعمال کردہ بجلی {x}"
+            },
+            "current_x": {
+                "name": "موجودہ {x}"
+            },
+            "voltage_x": {
+                "name": "وولٹیج {x}"
+            },
+            "power_x": {
+                "name": "پاور {x}"
             }
         },
         "switch": {

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

@@ -629,6 +629,15 @@
             },
             "energy_consumed_x": {
                 "name": "消耗的能量{x}"
+            },
+            "current_x": {
+                "name": "电流{x}"
+            },
+            "voltage_x": {
+                "name": "电压{x}"
+            },
+            "power_x": {
+                "name": "功率{x}"
             }
         },
         "switch": {

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

@@ -630,6 +630,15 @@
             },
             "energy_consumed_x": {
                 "name": "能量消耗{x}"
+            },
+            "current_x": {
+                "name": "電流{x}"
+            },
+            "voltage_x": {
+                "name": "電壓{x}"
+            },
+            "power_x": {
+                "name": "功率{x}"
             }
         },
         "switch": {