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

Add support for Reiga ceiling fan without light

Dennis Geisse 1 год назад
Родитель
Сommit
8d155e2f14
2 измененных файлов с 52 добавлено и 3 удалено
  1. 3 3
      DEVICES.md
  2. 49 0
      custom_components/tuya_local/devices/reiga_ceiling_fan.yaml

+ 3 - 3
DEVICES.md

@@ -243,7 +243,7 @@
 - Orison RGB ambient bladeless ceiling fan
 - Ovlaim ceiling fan with cool/warm white dimmable light
 - Princess DC pedestal fan
-- Reiga 52 ceiling fan with light
+- Reiga ceiling fans with and without light
 - Royal Clima RCB 150 ventilation system
 - Skyfan DC fan
 - Skyfan DC fan with light
@@ -360,7 +360,7 @@
 ### Kitchen Appliances
 
 - Anko 1.7L smart kettle
-- Ciarra CBCS4850 range hood 
+- Ciarra CBCS4850 range hood
 - Casdon TD Pro 2 oven
 - Cecofry 5500 Connected air fryer
 - Inkbird iBBQ-4BW cooking probe thermometer
@@ -796,7 +796,7 @@ port and password.
 - PH-W218 water quality monitor
 - PlantsIO Ivy smart planter
 - PV28-CW 8 in 1 air quality monitor
-- RSE TY-WFH v3.01 gate controller 
+- RSE TY-WFH v3.01 gate controller
 - RTCZ-03 human presence sensor
 - RainPoint TTV103FRF water timer
 - SD123 HPR01 human presence radar

+ 49 - 0
custom_components/tuya_local/devices/reiga_ceiling_fan.yaml

@@ -0,0 +1,49 @@
+name: Ceiling Fan
+products:
+  - id: aktxh7558udrex8a
+    name: Reiga Smart Ceiling Fan
+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: normal
+          value: normal
+        - dps_val: nature
+          value: nature
+        - dps_val: sleep
+          value: sleep
+    - id: 3
+      type: integer
+      name: speed
+      range:
+        min: 1
+        max: 6
+    - id: 8
+      type: string
+      name: direction
+secondary_entities:
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: "off"
+            value: cancel
+          - dps_val: "1hour"
+            value: "1h"
+          - dps_val: "2hour"
+            value: "2h"
+          - dps_val: "4hour"
+            value: "4h"
+          - dps_val: "8hour"
+            value: "8h"