소스 검색

update tompd_63wifi_breaker.yaml

fix presumably wrong placement of MASK parameter
AlexK98 1 년 전
부모
커밋
c66d6fc160
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      custom_components/tuya_local/devices/tompd_63wifi_breaker.yaml

+ 6 - 6
custom_components/tuya_local/devices/tompd_63wifi_breaker.yaml

@@ -149,9 +149,9 @@ secondary_entities:
         name: sensor
         name: sensor
         optional: true
         optional: true
         unit: V
         unit: V
+        mask: "FFFF000000000000"
         mapping:
         mapping:
-          - mask: "FFFF000000000000"
-            scale: 10
+          - scale: 10
   - entity: sensor
   - entity: sensor
     name: Current
     name: Current
     class: current
     class: current
@@ -162,9 +162,9 @@ secondary_entities:
         name: sensor
         name: sensor
         optional: true
         optional: true
         unit: A
         unit: A
+        mask: "0000FFFFFF000000"
         mapping:
         mapping:
-          - mask: "0000FFFFFF000000"
-            scale: 1000
+          - scale: 1000
   - entity: sensor
   - entity: sensor
     name: Power
     name: Power
     class: power
     class: power
@@ -175,6 +175,6 @@ secondary_entities:
         name: sensor
         name: sensor
         optional: true
         optional: true
         unit: kW
         unit: kW
+        mask: "0000000000FFFFFF"
         mapping:
         mapping:
-          - mask: "0000000000FFFFFF"
-            scale: 1000
+          - scale: 1000