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

feat (devices): add Novadigital ceiling fan with light

Issue #4363
Jason Rumney 6 дней назад
Родитель
Сommit
bb945514fe

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1268,3 +1268,4 @@ Further device support has been made with the assistance of users. Please consid
 - [kooori](https://github.com/kooori) for contributing support for Fanforce ceiling fan with lights.
 - [Moss51](https://github.com/Moss51) for assisting with support for Bestherm Nessa Connect panel heater.
 - [Aaronhrndz](https://github.com/Aaronhrndz) for assisting with support for Haoyunma BD100 aroma diffuser.
+- [henrique-veiga](https://github.com/henrique-veiga) for assisting with support for Novadigital ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -373,6 +373,7 @@ devices # Supported
 - Lumary A1 and B2 ceiling fans with lights
 - Mantra ceiling fan with light
 - New Widetech WPF-16SW5 7-speed pedestal fan
+- Novadigital ceiling fan with light
 - OmniBreeze DC2313R tower fan (4-speed and 5-speed models)
 - Orison Chanfok Neo ceiling fan with light
 - Orison RGB ambient bladeless ceiling fan

+ 62 - 0
custom_components/tuya_local/devices/novadigital_ceiling_fanlight.yaml

@@ -0,0 +1,62 @@
+name: Ceiling fan
+products:
+  - id: ya9ilaxfrltq6win
+    manufacturer: Novadigital
+entities:
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 4
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 100
+      - id: 103
+        type: string
+        name: direction
+        mapping:
+          - dps_val: forward
+            value: forward
+          - dps_val: reversal
+            value: reverse
+  - entity: light
+    dps:
+      - id: 5
+        type: boolean
+        name: switch
+  - entity: time
+    category: config
+    translation_key: timer
+    dps:
+      - id: 2
+        type: integer
+        optional: true
+        name: second
+        range:
+          min: 0
+          max: 86400
+  - entity: select
+    translation_key: initial_state
+    category: config
+    dps:
+      - id: 11
+        type: string
+        name: option
+        mapping:
+          - dps_val: "off"
+            value: "off"
+          - dps_val: "on"
+            value: "on"
+          - dps_val: memory
+            value: memory
+        optional: true
+  - entity: light
+    translation_key: backlight
+    category: config
+    dps:
+      - id: 13
+        type: boolean
+        name: switch