4
0
Эх сурвалжийг харах

feat (devices): add Klarstein Airfold Smart ceiling fan with light

Issue #4166
Jason Rumney 2 сар өмнө
parent
commit
8b3b7090c3

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1184,3 +1184,4 @@ Further device support has been made with the assistance of users. Please consid
 - [carpabg](https://github.com/carpabg) for contributing support for Create Warm Clear heater.
 - [Korkuttum](https://github.com/Korkuttum) for contributing support for Arçelik AHPH-MM combo heat pump.
 - [Rigoweb](https://github.com/Rigoweb) for contributing support for Stadler Form Lukas dehumidifier.
+- [kelemenlajos](https://github.com/kelemenlajos) for assisting with support for Klarstein Airfold Smart ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -332,6 +332,7 @@
 - InTec ceiling fan with light
 - Kavunion C1 100 ventilation fan
 - KCvents VT501-W heat recovery ventilation
+- Klarstein Airfold Smart ceiling fan with light
 - Klarstein Skyscaper Ice cooling fan
 - Klarstein Skytower Grand Smart cooling fan
 - Keyun MKCFE002 RGB chandelier fan

+ 119 - 0
custom_components/tuya_local/devices/klarstein_airfold_fanlight.yaml

@@ -0,0 +1,119 @@
+name: Ceiling fan
+products:
+  - id: o1knnbvabpech1ak
+    manufacturer: Klarstein
+    model: Airfold Smart
+entities:
+  - entity: fan
+    translation_key: fan_with_presets
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+      - id: 102
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: nature
+            value: nature
+          - dps_val: sleep
+            value: sleep
+          - dps_val: fresh
+            value: fresh
+          - dps_val: strong
+            value: strong
+      - id: 103
+        type: string
+        name: speed
+        mapping:
+          - dps_val: low
+            value: 33
+          - dps_val: middle
+            value: 67
+          - dps_val: high
+            value: 100
+      - id: 106
+        type: string
+        name: direction
+      - id: 112
+        type: boolean
+        optional: true
+        name: oscillate
+  - entity: switch
+    name: Beep
+    category: config
+    dps:
+      - id: 107
+        type: boolean
+        name: switch
+  - entity: light
+    dps:
+      - id: 108
+        type: boolean
+        name: switch
+      - id: 22
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 1000
+        mapping:
+          - target_range:
+              min: 3000
+              max: 6500
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 109
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "3h"
+            value: "3h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "5h"
+            value: "5h"
+          - dps_val: "6h"
+            value: "6h"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 110
+        type: integer
+        name: sensor
+        unit: min
+        class: measurement
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 111
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 111
+        type: bitfield
+        optional: true
+        name: fault_code