소스 검색

fix(cesmarthome_monitoring_smartplug): scale voltage and power

Contrary to the Query Things Data Model info, voltage and power need to be scaled by 10.

Issue #5092
Jason Rumney 4 달 전
부모
커밋
afa08419ae
1개의 변경된 파일과 4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      custom_components/tuya_local/devices/cesmarthome_monitoring_smartplug.yaml

+ 4 - 0
custom_components/tuya_local/devices/cesmarthome_monitoring_smartplug.yaml

@@ -60,6 +60,8 @@ entities:
         name: sensor
         unit: W
         class: measurement
+        mapping:
+          - scale: 10
       - id: 10
         type: integer
         optional: true
@@ -72,6 +74,8 @@ entities:
         name: sensor
         unit: V
         class: measurement
+        mapping:
+          - scale: 10
       - id: 8
         type: integer
         optional: true