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

Add support for Breville AirDynamic 3D fans

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

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -363,3 +363,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [sityware](https://github.com/sitiware) for contributing support for CT20W motion detectors.
 - [sityware](https://github.com/sitiware) for contributing support for CT20W motion detectors.
 - [Eduardoct](https://github.com/Eduardoct) for assisting with support for MatSee Plus bidirectional 2-channel clamp meters.
 - [Eduardoct](https://github.com/Eduardoct) for assisting with support for MatSee Plus bidirectional 2-channel clamp meters.
 - [McAllstar](https://github.com/McAllstar) for assisting with support for Geyserwise TSE1 geyser controller kits.
 - [McAllstar](https://github.com/McAllstar) for assisting with support for Geyserwise TSE1 geyser controller kits.
+- [Thunn-Der](https://github.com/Thunn-Der) for assisting with support for Breville AirDynamic 3d fans.

+ 1 - 0
DEVICES.md

@@ -130,6 +130,7 @@
 - Arlec 6 speed floor fan
 - Arlec 6 speed floor fan
 - Aspen ASP 200 fan
 - Aspen ASP 200 fan
 - Atomi 52 inch ceiling fan
 - Atomi 52 inch ceiling fan
+- Breville AirDynamic 3D pedestal fan
 - Carro ceiling fan with cool and warm white lights
 - Carro ceiling fan with cool and warm white lights
 - Carro PN-04F02D fan with dimmable light
 - Carro PN-04F02D fan with dimmable light
 - Casafan ECO Neo III ceiling fan with light
 - Casafan ECO Neo III ceiling fan with light

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

@@ -0,0 +1,113 @@
+name: Air circulator
+products:
+  - id: wpkdomrtayuzuqvc
+    name: Breville AirDynamic 3D
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 3
+      type: integer
+      name: speed
+      range:
+        min: 0
+        max: 8
+      mapping:
+        - scale: 0.08
+    - id: 2
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: NORMAL
+          value: normal
+        - dps_val: NATURAL_N1
+          value: Natural 1
+        - dps_val: NATURAL_N2
+          value: Natural 2
+        - dps_val: NATURAL_N3
+          value: Natural 3
+        - dps_val: ECO
+          value: smart
+        - dps_val: TURBO
+          value: strong
+    - id: 5
+      type: boolean
+      name: oscillate
+    - id: 24
+      type: bitfield
+      name: fault_code
+secondary_entities:
+  - entity: switch
+    name: Vertical oscillation
+    icon: "mdi:swap-vertical"
+    category: config
+    dps:
+      - id: 4
+        type: boolean
+        name: switch
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 21
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: "Off"
+          - dps_val: "1"
+            value: "1 hour"
+          - dps_val: "2"
+            value: "2 hours"
+          - dps_val: "3"
+            value: "3 hours"
+          - dps_val: "4"
+            value: "4 hours"
+          - dps_val: "5"
+            value: "5 hours"
+          - dps_val: "6"
+            value: "6 hours"
+          - dps_val: "7"
+            value: "7 hours"
+          - dps_val: "8"
+            value: "8 hours"
+          - dps_val: "9"
+            value: "9 hours"
+          - dps_val: "10"
+            value: "19 hours"
+          - dps_val: "11"
+            value: "11 hours"
+          - dps_val: "12"
+            value: "12 hours"
+  - entity: sensor
+    name: Timer remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 23
+        type: integer
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 24
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true