فهرست منبع

Add support for Treatlife DS03 ceiling fan with light

Issue #517
Jason Rumney 2 سال پیش
والد
کامیت
d8f45bb7f9
3فایلهای تغییر یافته به همراه56 افزوده شده و 0 حذف شده
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 54 0
      custom_components/tuya_local/devices/treatlife_ds03_fan_light.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -217,3 +217,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Daverover66](https://github.com/Daverover66) for assisting with support for ElectriQ PD45E dehumidifiers.
 - [ettiennegous](https://github.com/ettiennegous) for assisting with support for BrilliantSmart RGB garden lights.
 - [yarosman](https://github.com/yarosman) for contributing Avatto WT81 support, which was merged with the Beok TGR81.
+- [endrumaj](https://github.com/endrumaj) for assisting with support for Treatlife DS03 ceiling fans with lights.

+ 1 - 0
DEVICES.md

@@ -109,6 +109,7 @@
 - Stirling FS1-40DC pedestal fan
 - TMWF02 fan controller
 - Treatlife DS02-F fan switch
+- Treatlife DS03 fan with dimmable light
 
 ### Air Purifiers
 

+ 54 - 0
custom_components/tuya_local/devices/treatlife_ds03_fan_light.yaml

@@ -0,0 +1,54 @@
+name: Ceiling fan
+products:
+  - id: ipyqwvhvzzjezv35
+    name: Treatlife DS03 ceiling fan and light
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 3
+      type: string
+      name: speed
+      mapping:
+        - dps_val: "1"
+          value: 25
+        - dps_val: "2"
+          value: 50
+        - dps_val: "3"
+          value: 75
+        - dps_val: "4"
+          value: 100
+    - id: 101
+      type: integer
+      name: unknown_101
+      optional: true
+    - id: 103
+      type: integer
+      name: unknown_103
+      optional: true
+    - id: 105
+      type: integer
+      name: unknown_105
+      optional: true
+    - id: 106
+      type: string
+      name: unknown_106
+      optional: true
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 9
+        type: boolean
+        name: switch
+      - id: 10
+        type: integer
+        name: brightness
+        range:
+          min: 10
+          max: 1000
+        mapping:
+          - scale: 3.92
+
+