Selaa lähdekoodia

Updated support for fans without lights

Hans Zwolsman 1 vuosi sitten
vanhempi
commit
e3a0c0c566
1 muutettua tiedostoa jossa 12 lisäystä ja 7 poistoa
  1. 12 7
      custom_components/tuya_local/devices/windcalm_fan.yaml

+ 12 - 7
custom_components/tuya_local/devices/windcalm_fan.yaml

@@ -14,10 +14,15 @@ primary_entity:
     - id: 63
       type: string
       name: direction
-    - id: 64
-      type: integer
-      name: timer
-      range:
-        min: 0
-        max: 540
-      unit: min
+secondary_entities:
+  - entity: number
+    translation_key: timer
+    category: config
+    dps:
+      - id: 64
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 540