Bladeren bron

Add config for device EcoNour 42" tower fan HTS-F305A (new) (#5474)

* feat(devices): add EcoNour 42" tower fan

* fix: remove temperate F, use HA to convert from C

* fix(econour_htsf305a_towerfan): use temperature according to unit setting

- rename file to follow convention
- use fahrenheit temperature dp when set to f

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Saravanabalagi Ramachandran 4 dagen geleden
bovenliggende
commit
92bf9b29de
1 gewijzigde bestanden met toevoegingen van 132 en 0 verwijderingen
  1. 132 0
      custom_components/tuya_local/devices/econour_htsf305a_towerfan.yaml

+ 132 - 0
custom_components/tuya_local/devices/econour_htsf305a_towerfan.yaml

@@ -0,0 +1,132 @@
+name: Fan
+products:
+  - id: 0kcxic8phbllew01
+    manufacturer: EcoNour
+    model: HTS-F305A
+entities:
+  - entity: fan
+    translation_only_key: fan_with_presets
+    dps:
+      - id: 1
+        name: switch
+        type: boolean
+      - id: 2
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: fresh
+            value: normal
+          - dps_val: nature
+            value: nature
+          - dps_val: sleep
+            value: sleep
+          - dps_val: auto
+            value: auto
+      - id: 3
+        name: speed
+        type: integer
+        range:
+          min: 1
+          max: 12
+      - id: 5
+        name: oscillate
+        type: boolean
+  - entity: select
+    name: Oscillation angle
+    icon: "mdi:arrow-left-right-bold-outline"
+    category: config
+    dps:
+      - id: 7
+        type: string
+        name: option
+        mapping:
+          - dps_val: "30"
+            value: "30°"
+          - dps_val: "60"
+            value: "60°"
+          - dps_val: "90"
+            value: "90°"
+          - dps_val: "120"
+            value: "120°"
+  - entity: switch
+    translation_key: sound
+    category: config
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: light
+    translation_key: display
+    category: config
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 21
+        type: integer
+        name: sensor
+        class: measurement
+        mapping:
+          - constraint: unit
+            conditions:
+              - dps_val: f
+                value_redirect: temp_f
+      - id: 101
+        type: integer
+        name: temp_f
+      - id: 28
+        type: string
+        name: unit
+        mapping:
+          - dps_val: f
+            value: F
+          - value: C
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            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
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 28
+        type: string
+        name: option
+        mapping:
+          - dps_val: c
+            value: celsius
+          - dps_val: f
+            value: fahrenheit