Explorar el Código

TOMPD-63LW: phase data is encoded in 8 bytes, not 11

Original format I think must have been just copied straight over from
another device without checking.  Both #577 and #388 show 8 byte data being
output by the device.
Jason Rumney hace 2 años
padre
commit
364b4234df
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      custom_components/tuya_local/devices/tompd_63lw_breaker.yaml

+ 3 - 3
custom_components/tuya_local/devices/tompd_63lw_breaker.yaml

@@ -118,7 +118,7 @@ secondary_entities:
         optional: true
         unit: V
         mapping:
-          - mask: "FFFFFF0000000000000000"
+          - mask: "FFFF000000000000"
             scale: 10
   - entity: sensor
     name: Current A
@@ -131,7 +131,7 @@ secondary_entities:
         optional: true
         unit: A
         mapping:
-          - mask: "000000FFFFFF0000000000"
+          - mask: "0000FFFFFF000000"
             scale: 1000
   - entity: sensor
     name: Power A
@@ -144,5 +144,5 @@ secondary_entities:
         optional: true
         unit: kW
         mapping:
-          - mask: "000000000000FFFFFF0000"
+          - mask: "0000000000FFFFFF"
             scale: 1000