فهرست منبع

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