Ver código fonte

fix(imeter_3pn_energymonitor): restore units

PR #5469
Jason Rumney 9 horas atrás
pai
commit
562c10be1f

+ 9 - 0
custom_components/tuya_local/devices/imeter_3pn_energymonitor.yaml

@@ -111,6 +111,7 @@ entities:
         optional: true
         force: true
         mask: "FFFF000000000000"
+        unit: V
         mapping:
           - scale: 10
 
@@ -126,6 +127,7 @@ entities:
         optional: true
         force: true
         mask: "0000FFFFFF000000"
+        unit: A
         mapping:
           - scale: 1000
 
@@ -141,6 +143,7 @@ entities:
         optional: true
         force: true
         mask: "0000000000FFFFFF"
+        unit: W
 
   - entity: sensor
     translation_key: voltage_x
@@ -154,6 +157,7 @@ entities:
         optional: true
         force: true
         mask: "FFFF000000000000"
+        unit: V
         mapping:
           - scale: 10
 
@@ -169,6 +173,7 @@ entities:
         optional: true
         force: true
         mask: "0000FFFFFF000000"
+        unit: A
         mapping:
           - scale: 1000
 
@@ -184,6 +189,7 @@ entities:
         optional: true
         force: true
         mask: "0000000000FFFFFF"
+        unit: W
 
   - entity: sensor
     translation_key: voltage_x
@@ -197,6 +203,7 @@ entities:
         optional: true
         force: true
         mask: "FFFF000000000000"
+        unit: V
         mapping:
           - scale: 10
 
@@ -212,6 +219,7 @@ entities:
         optional: true
         force: true
         mask: "0000FFFFFF000000"
+        unit: A
         mapping:
           - scale: 1000
 
@@ -227,3 +235,4 @@ entities:
         optional: true
         force: true
         mask: "0000000000FFFFFF"
+        unit: W