Преглед изворни кода

Add support for Sulion ceiling fan.

Issue #881
Jason Rumney пре 2 година
родитељ
комит
b423a7a6ef
3 измењених фајлова са 82 додато и 0 уклоњено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 80 0
      custom_components/tuya_local/devices/sulion_ceiling_fan.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -323,3 +323,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [samgalagher](https://github.com/samgalagher) for contributing support for Yinmik WF-3188 water quality monitors.
 - [tariya-garker](https://github.com/tariya-garker) for assitance with support for Royal Clima RCB 150 ventilation systems.
 - [nicopret1](https://github.com/nicopret1) for assistance with support for ITS-4.5HD super pool heatpumps.
+- [simposiummm](https://github.com/simposiummm) for assistance with support for Sulion ceiling fans.

+ 1 - 0
DEVICES.md

@@ -136,6 +136,7 @@
 - Skyfan DC fan
 - Skyfan DC fan with light
 - Stirling FS1-40DC pedestal fan
+- Sulion Crixus L ceiling fan with light
 - TMWF02 fan controller
 - Treatlife DS02-F fan switch
 - Treatlife DS03 fan with dimmable light

+ 80 - 0
custom_components/tuya_local/devices/sulion_ceiling_fan.yaml

@@ -0,0 +1,80 @@
+name: Ceiling fan
+products:
+  - id: 5baeoecnemrwonk6
+    name: Sulion Crixus L
+primary_entity:
+  entity: fan
+  translation_key: fan_with_presets
+  dps:
+    - id: 53
+      type: integer
+      name: speed
+      range:
+        min: 1
+        max: 6
+      mapping:
+        - scale: 0.06
+    - id: 54
+      type: string
+      name: direction
+    - id: 101
+      type: boolean
+      name: switch
+    - id: 102
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: normal
+          value: normal
+        - dps_val: nature
+          value: nature
+secondary_entities:
+  - entity: light
+    name: Light
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Anti-burglary
+    category: config
+    dps:
+      - id: 109
+        type: boolean
+        name: switch
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 104
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: null
+            value: "Off"
+          - dps_val: "1h"
+            value: "1 hour"
+          - dps_val: "2h"
+            value: "2 hours"
+          - dps_val: "4h"
+            value: "4 hours"
+          - dps_val: "8h"
+            value: "8 hours"
+  - entity: sensor
+    name: Timer remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 106
+        type: integer
+        name: sensor
+        unit: min
+        optional: true
+
+
+            
+
+