소스 검색

Updated support for fans without lights

Hans Zwolsman 1 년 전
부모
커밋
e3a0c0c566
1개의 변경된 파일12개의 추가작업 그리고 7개의 파일을 삭제
  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