Răsfoiți Sursa

Add support for Arlec FAN ATF4601HA (#4621)

* Add support for Arlec FAN ATF4601HA

An older version of the Arlec smartfan, 4 speed, oscilation,
temperature, natural flow

* Update based on feedback

* removed category references
* Updated the Product ID

* fix (arlec_atf4601ha_fan): restore categories to timer related entities

- rename file to follow the brand_model_type pattern used by 90% of the configs.

---------

Co-authored-by: Wouter van Bommel <woutervb@woutervb.net>
Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Wouter van Bommel 4 zile în urmă
părinte
comite
fdfb2526d1

+ 83 - 0
custom_components/tuya_local/devices/arlec_atf4601ha_fan.yaml

@@ -0,0 +1,83 @@
+name: Fan
+products:
+  - id: kccccitzawmgkwkh
+    manufacturer: Arlec
+    model: ATF4601HA
+    name: Tower fan
+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: normal
+            value: normal
+          - dps_val: nature
+            value: nature
+          - dps_val: sleep
+            value: sleep
+      - id: 3
+        name: speed
+        type: integer
+        range:
+          min: 1
+          max: 4
+      - id: 5
+        name: oscillate
+        type: boolean
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 101
+        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: sensor
+    class: temperature
+    dps:
+      - id: 21
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 23
+        type: integer
+        name: sensor
+        unit: min