소스 검색

Unknown 2-way meter: use total as main energy reading

- use total as main energy reading, and daily as attribute.
Original used daily as main because that was the first reading encountered.

Portion of PR #2481 which does not involve entity renaming.
The more disruptive naming changes will be included when translations for
those sensors are added as part of issue #1708 (actually since it involves
translation parameters, as part of a new issue which is not filed yet)
Jason Rumney 1 년 전
부모
커밋
fbc1682cbc
1개의 변경된 파일12개의 추가작업 그리고 12개의 파일을 삭제
  1. 12 12
      custom_components/tuya_local/devices/unknow_2way_energymeter.yaml

+ 12 - 12
custom_components/tuya_local/devices/unknow_2way_energymeter.yaml

@@ -151,16 +151,16 @@ secondary_entities:
     class: energy
     class: energy
     category: diagnostic
     category: diagnostic
     dps:
     dps:
-      - id: 107
+      - id: 115
         type: integer
         type: integer
         name: sensor
         name: sensor
         unit: kWh
         unit: kWh
         class: total_increasing
         class: total_increasing
         mapping:
         mapping:
           - scale: 100
           - scale: 100
-      - id: 114
+      - id: 107
         type: integer
         type: integer
-        name: total
+        name: daily
         mapping:
         mapping:
           - scale: 100
           - scale: 100
       - id: 118
       - id: 118
@@ -182,7 +182,7 @@ secondary_entities:
     class: energy
     class: energy
     category: diagnostic
     category: diagnostic
     dps:
     dps:
-      - id: 108
+      - id: 115
         type: integer
         type: integer
         name: sensor
         name: sensor
         unit: kWh
         unit: kWh
@@ -198,9 +198,9 @@ secondary_entities:
           max: 1200
           max: 1200
         mapping:
         mapping:
           - scale: 1000
           - scale: 1000
-      - id: 115
+      - id: 108
         type: integer
         type: integer
-        name: total
+        name: daily
         mapping:
         mapping:
           - scale: 100
           - scale: 100
       - id: 119
       - id: 119
@@ -270,16 +270,16 @@ secondary_entities:
     class: energy
     class: energy
     category: diagnostic
     category: diagnostic
     dps:
     dps:
-      - id: 112
+      - id: 116
         type: integer
         type: integer
         name: sensor
         name: sensor
         unit: kWh
         unit: kWh
         class: total_increasing
         class: total_increasing
         mapping:
         mapping:
           - scale: 100
           - scale: 100
-      - id: 116
+      - id: 112
         type: integer
         type: integer
-        name: total
+        name: daily
         mapping:
         mapping:
           - scale: 100
           - scale: 100
       - id: 120
       - id: 120
@@ -301,7 +301,7 @@ secondary_entities:
     class: energy
     class: energy
     category: diagnostic
     category: diagnostic
     dps:
     dps:
-      - id: 113
+      - id: 117
         type: integer
         type: integer
         name: sensor
         name: sensor
         unit: kWh
         unit: kWh
@@ -317,9 +317,9 @@ secondary_entities:
           max: 1200
           max: 1200
         mapping:
         mapping:
           - scale: 1000
           - scale: 1000
-      - id: 117
+      - id: 113
         type: integer
         type: integer
-        name: total
+        name: daily
         mapping:
         mapping:
           - scale: 100
           - scale: 100
       - id: 121
       - id: 121