Просмотр исходного кода

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 1 день назад
Родитель
Сommit
0bb4d61c8c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      custom_components/tuya_local/devices/afyeev_16a_evcharger.yaml

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

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