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

fix(klarstein_skytowergrandsmart_fan): remove and add entities

- remove non-existing time_remaining sensor
- add binary_sensor for Ionizer and Purifier functions
  (documented in Tuya cloud as being read-only, so must only be controllable
  from the device itself?)

Issue #3364
Jason Rumney 8 месяцев назад
Родитель
Сommit
815f8151cd

+ 18 - 10
custom_components/tuya_local/devices/klarstein_skytowergrandsmart_fan.yaml

@@ -62,16 +62,6 @@ entities:
             value: "8h"
           - dps_val: "9H"
             value: "9h"
-  - entity: sensor
-    category: diagnostic
-    translation_key: time_remaining
-    class: duration
-    dps:
-      - id: 12
-        name: sensor
-        type: integer
-        optional: true
-        unit: min
   - entity: switch
     name: Humidifier
     icon: "mdi:air-humidifier"
@@ -79,3 +69,21 @@ entities:
       - id: 6
         type: boolean
         name: switch
+  - entity: binary_sensor
+    name: Ionizer
+    class: running
+    icon: "mdi:atom"
+    category: diagnostic
+    dps:
+      - id: 101
+        type: boolean
+        name: sensor
+  - entity: binary_sensor
+    name: Purifier
+    class: running
+    icon: "mdi:air-purifier"
+    category: diagnostic
+    dps:
+      - id: 102
+        type: boolean
+        name: sensor