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

fix(taxnele_energy_meter): fix scale of current and power sensors

Current scale was wrong, also according to data on #2910
Power scale also appears to be wrong, though it was matching the info from
tuya portal on #2910, but actual observed data seems to match other devices.

Issue #2573
Jason Rumney 7 месяцев назад
Родитель
Сommit
4e294f42bf
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      custom_components/tuya_local/devices/taxnele_energy_meter.yaml

+ 1 - 3
custom_components/tuya_local/devices/taxnele_energy_meter.yaml

@@ -46,7 +46,7 @@ entities:
         class: measurement
         class: measurement
         mask: "0000FFFFFF000000"
         mask: "0000FFFFFF000000"
         mapping:
         mapping:
-          - scale: 10
+          - scale: 1000
   - entity: sensor
   - entity: sensor
     class: power
     class: power
     category: diagnostic
     category: diagnostic
@@ -58,8 +58,6 @@ entities:
         unit: W
         unit: W
         class: measurement
         class: measurement
         mask: "0000000000FFFFFF"
         mask: "0000000000FFFFFF"
-        mapping:
-          - scale: 10
       - id: 111
       - id: 111
         type: integer
         type: integer
         optional: true
         optional: true