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

fix(fisher_summer_airconditioner): move work time to a disabled sensor

This is updated frequently, so having it as an attribute causes
the recorder data to grow excessively. Move to its own sensor and
disable by default so the user does not need to bother with it
unless they really want it.

Issue #6367
Jason Rumney 4 дней назад
Родитель
Сommit
5fe2a5822f

+ 9 - 4
custom_components/tuya_local/devices/fisher_summer_air_conditioner.yaml

@@ -163,10 +163,6 @@ entities:
           - dps_val: "3"
             value: both
             available: hswing_available
-      - id: 134
-        name: work_time
-        type: string
-        optional: true
       - id: 110
         type: bitfield
         name: hswing_available
@@ -699,3 +695,12 @@ entities:
         type: boolean
         optional: true
         name: sensor
+  - entity: sensor
+    name: Work time
+    hidden: true
+    category: diagnostic
+    dps:
+      - id: 134
+        name: sensor
+        type: string
+        optional: true