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

Add support for Atomi ceiling fan

Issue #668
Jason Rumney 2 лет назад
Родитель
Сommit
046e6da7d0
3 измененных файлов с 82 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 80 0
      custom_components/tuya_local/devices/atomi_ceiling_fan.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -264,3 +264,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [remoteassist](https://github.com/remoteassist) for assisting with support for Lefant LS1 Pro vacuums.
 - [csarmat](https://github.com/csarmat) for assisting with support for WDYK 2P63A energy meters.
 - [nyok92](https://github.com/nyok92) for assisting with support for Duux Blizzard air conditioners.
+- [mattbruman](https://github.com/mattbruman) for assisting with support for Atomi ceiling fans.

+ 1 - 0
DEVICES.md

@@ -110,6 +110,7 @@
 - Arlec 19 speed wall fan
 - Arlec 6 speed floor fan
 - Aspen ASP 200 fan
+- Atomi 52 inch ceiling fan
 - Chanfok ceiling fan with cool/warm white dimmable light
 - Deta fan controller
 - Fanco Eco Silent Deluxe ceiling fan with LED light

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

@@ -0,0 +1,80 @@
+name: Ceiling fan
+products:
+  - id: keyxcgdguks9shua
+    name: Atomi 52 inch ceiling fan
+primary_entity:
+  entity: fan
+  dps:
+    - id: 60
+      type: boolean
+      name: switch
+    - id: 61
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: fresh
+          value: Fresh
+        - dps_val: nature
+          value: Natural
+    - id: 64
+      type: integer
+      name: speed
+      range:
+        min: 0
+        max: 3
+      mapping:
+        - scale: 0.03
+    - id: 71
+      type: string
+      name: unknown_71
+secondary_entities:
+  - entity: light
+    name: Light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        # docs give the standard white, colour, scene, music values, but this
+        # device does not have color or scene dps, so just leave it for monitoring
+        name: work_mode
+        type: string
+      - id: 22
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+        mapping:
+          - scale: 3.92
+      - id: 23
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 1000
+  - entity: number
+    name: Light timer
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 26
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: switch
+    name: Do not disturb
+    category: config
+    dps:
+      - id: 34
+        type: boolean
+        name: switch
+
+
+