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

Add support for Orison ambient RGB bladeless ceiling fan

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

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -524,3 +524,4 @@ Further device support has been made with the assistance of users. Please consid
 - [korzeniewski36](https://github.com/korzeniewski36) for assisting with support for KKMoon knob thermostats.
 - [korzeniewski36](https://github.com/korzeniewski36) for assisting with support for KKMoon knob thermostats.
 - [ItsMe00007](https://github.com/ItsMe00007) for contributing support for Lehmann LHOHC-2013C radiators.
 - [ItsMe00007](https://github.com/ItsMe00007) for contributing support for Lehmann LHOHC-2013C radiators.
 - [bonius1](https://github.com/bonius1) for assisting with support for Zemismart DP-WBS01 8 zone irrigation controllers.
 - [bonius1](https://github.com/bonius1) for assisting with support for Zemismart DP-WBS01 8 zone irrigation controllers.
+- [airwebber](https://github.com/airwebber) for assisting with support for Orison ceiling fans with RGB lights.

+ 1 - 0
DEVICES.md

@@ -199,6 +199,7 @@
 - Keyun MKCFE002 RGB chandelier fan
 - Keyun MKCFE002 RGB chandelier fan
 - Kogan bladeless fans
 - Kogan bladeless fans
 - Mantra ceiling fan with light
 - Mantra ceiling fan with light
+- Orison RGB ambient bladeless ceiling fan
 - Ovlaim ceiling fan with cool/warm white dimmable light
 - Ovlaim ceiling fan with cool/warm white dimmable light
 - Reiga 52 ceiling fan with light
 - Reiga 52 ceiling fan with light
 - Royal Clima RCB 150 ventilation system
 - Royal Clima RCB 150 ventilation system

+ 116 - 0
custom_components/tuya_local/devices/orison_rgb_ceilingfan.yaml

@@ -0,0 +1,116 @@
+name: Light and fan
+products:
+  - id: 8k3ss1tcresem1bh
+    name: Orison RGB ambient light bladeless ceiling fan
+primary_entity:
+  entity: fan
+  dps:
+    - id: 60
+      type: boolean
+      name: switch
+    - id: 61
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: fresh
+          value: fresh
+        - dps_val: nature
+          value: nature
+    - id: 62
+      type: integer
+      name: speed
+      optional: true
+      range:
+        min: 1
+        max: 100
+    - id: 63
+      type: string
+      name: direction
+    - id: 103
+      type: boolean
+      name: unknown_103
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        type: string
+        name: color_mode
+        mapping:
+          - dps_val: white
+            value: color_temp
+          - dps_val: colour
+            value: hs
+          - dps_val: scene
+            value: Scene
+          - dps_val: music
+            value: Music
+      - id: 22
+        type: integer
+        name: brightness
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        type: integer
+        name: color_temp
+        range:
+          min: 0
+          max: 1000
+        optional: true
+        mapping:
+          - step: 500
+            target_range:
+              min: 2700
+              max: 6500
+      - id: 24
+        name: rgbhsv
+        type: hex
+        format:
+          - name: h
+            bytes: 2
+            range:
+              min: 0
+              max: 360
+          - name: s
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+          - name: v
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+      - id: 25
+        type: hex
+        name: scene_data
+  - entity: number
+    name: Light timer
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: value
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min
+  - entity: number
+    name: Fan timer
+    translation_key: timer
+    category: config
+    dps:
+      - id: 64
+        type: integer
+        name: value
+        range:
+          min: 0
+          max: 540
+        unit: min