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

fix(ovlaim_809_ceiling_fanlight): add missing dps and make timer usable

- Original author submitted an earlier change to switch from a settable timer
  to read-only based on his AI troubleshooting session.
  DP 64 as fan timer is a commmon Tuya pattern and there is no point of a
  read-only timer without any way to set it, so any issue may be with the
  author's device only.
- Device has scene and light timer which were left unmodelled in the original
  submission.

Issue #5978
Jason Rumney 1 неделя назад
Родитель
Сommit
2b6d8d6192

+ 28 - 6
custom_components/tuya_local/devices/ovlaim_809_ceiling_fanlight.yaml

@@ -58,13 +58,35 @@ entities:
         name: direction
         type: string
         optional: true
-  - entity: sensor
-    translation_key: time_remaining
-    class: duration
-    category: diagnostic
+  - entity: time
+    name: Light timer
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        optional: true
+        name: second
+        range:
+          min: 0
+          max: 86399
+  - entity: time
+    translation_key: timer
+    category: config
     dps:
       - id: 64
         type: integer
         optional: true
-        name: sensor
-        unit: min
+        name: minute
+        range:
+          min: 0
+          max: 1439
+  - entity: text
+    translation_key: scene
+    category: config
+    hidden: true
+    dps:
+      - id: 25
+        type: hex
+        optional: true
+        name: value