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

Add support for Calibo Cloudfan DC ceiling fan with light

Issue #1286
Jason Rumney 1 год назад
Родитель
Сommit
a88f2723ee
3 измененных файлов с 63 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 61 0
      custom_components/tuya_local/devices/calibo_smart_ceiling_fan.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -709,3 +709,4 @@ Further device support has been made with the assistance of users. Please consid
 - [drbartek](https://github.com/drbartek) for assisting with support for Psmart T436 thermostat.
 - [drbartek](https://github.com/drbartek) for assisting with support for Psmart T436 thermostat.
 - [sragas](https://github.com/sragas) for contributing support for Noeifevo Q21W EV charger.
 - [sragas](https://github.com/sragas) for contributing support for Noeifevo Q21W EV charger.
 - [beyondgrave](https://github.com/beyondgrave) for assisting with support for Inkbird IPT-2CH v2.0 thermostat.
 - [beyondgrave](https://github.com/beyondgrave) for assisting with support for Inkbird IPT-2CH v2.0 thermostat.
+- [Tallyessin](https://github.com/Tallyessin) for contributing support for Calibo Cloudfan DC with light.

+ 1 - 0
DEVICES.md

@@ -219,6 +219,7 @@
 - Atomi 52 inch ceiling fan
 - Atomi 52 inch ceiling fan
 - Breville AirDynamic 3D pedestal fan
 - Breville AirDynamic 3D pedestal fan
 - Brilliant Ceiling fan with light
 - Brilliant Ceiling fan with light
+- Calibo Cloudfan DC ceiling fan with light
 - Carro ceiling fan with cool and warm white lights
 - Carro ceiling fan with cool and warm white lights
 - Carro PN-04F02D fan with dimmable light
 - Carro PN-04F02D fan with dimmable light
 - Casafan ECO Neo III ceiling fan with light
 - Casafan ECO Neo III ceiling fan with light

+ 61 - 0
custom_components/tuya_local/devices/calibo_smart_ceiling_fan.yaml

@@ -0,0 +1,61 @@
+name: Fan with light
+products:
+  - id: 78m2fjtcj26yab5a
+    name: Calibo Cloudfan DC with Light
+primary_entity:
+  entity: fan
+  translation_only_key: fan_with_presets
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: nature
+          value: nature
+        - dps_val: sleep
+          value: sleep
+        - dps_val: normal
+          value: normal
+    - id: 3
+      name: speed
+      type: integer
+      range:
+        min: 1
+        max: 6
+    - id: 8
+      name: direction
+      type: string
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+      - id: 16
+        type: integer
+        name: brightness
+        range:
+          min: 0
+          max: 100
+        mapping:
+          - step: 2
+  - entity: select
+    translation_key: timer
+    dps:
+      - id: 22
+        name: option
+        type: string
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "8h"
+            value: "8h"