소스 검색

Emylo meter: fix masks for combined sensor readings

Previous masks were copied from TOMPD meter, without any logs available
to check.  Actual value seems to be missing initial byte on voltage
(which realistically is not going to go beyond 6553.5V) and two trailing
bytes that were not part of any reading.

Issue #1066
Jason Rumney 2 년 전
부모
커밋
4539211d3c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      custom_components/tuya_local/devices/emylo_energy_meter.yaml

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

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