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

Add support for Aeratron AE3+ ceiling fan

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

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -788,3 +788,4 @@ Further device support has been made with the assistance of users. Please consid
 - [ThinkDualBrain](https://github.com/ThinkDualBrain) for contributing support for Dr Heater DR008 thermostat.
 - [keskival](https://github.com/keskival) for contributing support for ZPMeter ultrasonic water meter (without valve control).
 - [djvalex](https://github.com/djvalex) for assisting with support for Axen/Arielli KS-100W/EN8BP combo heat pump.
+- [doertli](https://github.com/doertli) for assisting with support for Aeratron AE3+ ceiling fan.

+ 1 - 0
DEVICES.md

@@ -225,6 +225,7 @@
 
 ### Fans
 
+- Aeratron AE3+ ceiling fan (may match other Aeratron models with same WiFi module)
 - Amico 52" ceiling fan with light
 - Anko HEGSM40 fan
 - Arlec ceiling fan and light remote control kit (CFR225HA also works for Sulion Cadillac)

+ 113 - 0
custom_components/tuya_local/devices/aeratron_ae3plus_fan.yaml

@@ -0,0 +1,113 @@
+name: Ceiling fan
+products:
+  - id: iarwcyttkv1kvent
+    name: Aeratron AE3+
+primary_entity:
+  entity: fan
+  translation_only_key: fan_with_presets
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 3
+      type: integer
+      # Does not appear to be used from cloud log, so non-standard name used
+      name: fan_speed
+      optional: true
+      range:
+        min: 1
+        max: 100
+    - id: 8
+      type: string
+      optional: true
+      name: direction
+    - id: 101
+      type: string
+      name: speed
+      mapping:
+        - dps_val: "0"
+          value: 1
+          step: 16
+        - dps_val: "1"
+          value: 17
+          step: 16
+        - dps_val: "2"
+          value: 33
+          step: 17
+        - dps_val: "3"
+          value: 50
+          step: 17
+        - dps_val: "4"
+          value: 66
+          step: 17
+        - dps_val: "5"
+          value: 83
+          step: 17
+        - dps_val: "6"
+          value: 100
+          step: 17
+        - value: 0
+          hidden: true
+    - id: 101
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: "0"
+          value: normal
+        - dps_val: "Breeze"
+          value: nature
+        - value: normal
+          hidden: true
+    - id: 103
+      type: integer
+      optional: true
+      name: fan_value
+      # seems to be another unused speed setting with 0-100 range
+secondary_entities:
+  # Optional accessory, but there doesn't seem to be a feature flag
+  # to automatically disable it
+  - entity: light
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+      - id: 16
+        name: brightness
+        type: integer
+        range:
+          min: 0
+          max: 100
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 102
+        type: string
+        name: option
+        mapping:
+          - dps_val: TimeOff
+            value: cancel
+          - dps_val: "1H"
+            value: "1h"
+          - dps_val: "2H"
+            value: "2h"
+          - dps_val: "3H"
+            value: "3h"
+          - dps_val: "4H"
+            value: "4h"
+          - dps_val: "5H"
+            value: "5h"
+          - dps_val: "6H"
+            value: "6h"
+          - dps_val: "7H"
+            value: "7h"
+          - dps_val: "8H"
+            value: "8h"
+          - dps_val: "9H"
+            value: "9h"
+          - dps_val: "10H"
+            value: "10h"
+          - dps_val: "11H"
+            value: "11h"
+          - dps_val: "12H"
+            value: "12h"