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

Matsee 2-way V2 energy meter: make hourly measurements optional

Issue #2573
Jason Rumney 1 год назад
Родитель
Сommit
56f4d75f33

+ 6 - 0
custom_components/tuya_local/devices/matsee_2wayv2_energymeter.yaml

@@ -15,6 +15,7 @@ primary_entity:
       class: total_increasing
     - id: 122
       type: integer
+      optional: true
       name: hourly
       mapping:
         - scale: 100
@@ -32,6 +33,7 @@ secondary_entities:
           - scale: 100
       - id: 123
         type: integer
+        optional: true
         name: hourly
         mapping:
           - scale: 100
@@ -148,6 +150,7 @@ secondary_entities:
           - scale: 100
       - id: 118
         type: integer
+        optional: true
         name: hourly
         mapping:
           - scale: 100
@@ -178,6 +181,7 @@ secondary_entities:
           - scale: 100
       - id: 119
         type: integer
+        optional: true
         name: hourly
         mapping:
           - scale: 100
@@ -255,6 +259,7 @@ secondary_entities:
           - scale: 100
       - id: 120
         type: integer
+        optional: true
         name: hourly
         mapping:
           - scale: 100
@@ -285,6 +290,7 @@ secondary_entities:
           - scale: 100
       - id: 121
         type: integer
+        optional: true
         name: hourly
         mapping:
           - scale: 100