Parcourir la source

fix(afyeev_16a_evcharger): allow additional bits in power and current masks

Although it is unlikely this device goes beyond 65.5kW/65.5A, so does not need the
additional bits, they do appear to be reserved for these sensors, and the 16+24+24 bit
pattern is common across many energy monitors / EV chargers.

From PR #5647 by @sev3ran
Jason Rumney il y a 1 jour
Parent
commit
0bb4d61c8c

+ 2 - 2
custom_components/tuya_local/devices/afyeev_16a_evcharger.yaml

@@ -103,7 +103,7 @@ entities:
         name: sensor
         name: sensor
         optional: true
         optional: true
         unit: A
         unit: A
-        mask: "000000FFFF000000"
+        mask: "0000FFFFFF000000"
         class: measurement
         class: measurement
         mapping:
         mapping:
           - scale: 1000
           - scale: 1000
@@ -119,7 +119,7 @@ entities:
         optional: true
         optional: true
         unit: kW
         unit: kW
         class: measurement
         class: measurement
-        mask: "000000000000FFFF"
+        mask: "0000000000FFFFFF"
         mapping:
         mapping:
           - scale: 1000
           - scale: 1000
   - entity: binary_sensor
   - entity: binary_sensor