Prechádzať zdrojové kódy

Added "kendal_kvt-touchtower_pedestalfan.yaml" (#4260)\

* Added "kendal_kvt-touchtower_pedestalfan.yaml"

* Product ID and model correction.
Added translation_key to the display indicator light entity.

* Corrected translation key for diaply light entity.

* fix (kendal_kvttouchtower_pedestalfan): uncomment products section

- now that product id is correct, uncomment products section to use it for matching
- revert the model to more user-friendly model name, and use model_id for the code like name

PR #4260

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
pmchAR 2 mesiacov pred
rodič
commit
56bb8b552a

+ 105 - 0
custom_components/tuya_local/devices/kendal_kvttouchtower_pedestalfan.yaml

@@ -0,0 +1,105 @@
+name: Pedestal fan
+products:
+  - id: m4d3n0mkdenql9tq
+    manufacturer: Kendal
+    model: KVT-Touchtower
+    model_id: TF805B-Wifi
+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: nature
+            value: nature
+          - dps_val: sleep
+            value: sleep
+          - dps_val: strong
+            value: strong
+      - id: 3
+        name: speed
+        type: integer
+        range:
+          min: 1
+          max: 3
+      - id: 5
+        name: oscillate
+        type: boolean
+  - 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
+        unit: C
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0h"
+            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"
+          - dps_val: "13h"
+            value: "13h"
+          - dps_val: "14h"
+            value: "14h"
+          - dps_val: "15h"
+            value: "15h"
+          - dps_val: "16h"
+            value: "16h"
+          - dps_val: "17h"
+            value: "17h"
+          - dps_val: "18h"
+            value: "18h"
+          - dps_val: "19h"
+            value: "19h"
+          - dps_val: "20h"
+            value: "20h"
+          - dps_val: "21h"
+            value: "21h"
+          - dps_val: "22h"
+            value: "22h"
+          - dps_val: "23h"
+            value: "23h"
+          - dps_val: "24h"
+            value: "24h"