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

feat: adding device thermostat EFAN230 by ENGO (#5004)

* feat: adding device thermostat EFAN230 by ENGO

* feat: adding device thermostat EFAN230 by ENGO
product id was wrong, it was my own device id

* Change product ID in engo_efan230.yaml

removed my device id and put correct product id

* fixed if to product_id, instead of my own device_id

* fix (engo_efan230_thermostat): naming and duplicates

- include device type in file name to assist users find the right match
- follow HA naming convention for device name
- remove duplicate sensor

PR #5004

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
vtashev 1 неделя назад
Родитель
Сommit
dd355b3777
1 измененных файлов с 86 добавлено и 0 удалено
  1. 86 0
      custom_components/tuya_local/devices/engo_efan230_thermostat.yaml

+ 86 - 0
custom_components/tuya_local/devices/engo_efan230_thermostat.yaml

@@ -0,0 +1,86 @@
+name: Fan coil thermostat
+products:
+  - id: "tnvv9nnqnz8nljgt"
+    manufacturer: Engo
+    model: EFAN230W
+entities:
+  - entity: climate
+    translation_key: thermostat
+    dps:
+      - id: 2
+        name: hvac_mode
+        type: string
+        mapping:
+          - dps_val: heat
+            value: heat
+          - dps_val: cool
+            value: cool
+      - id: 3
+        name: hvac_action
+        type: string
+        mapping:
+          - dps_val: heating
+            value: heating
+          - dps_val: cooling
+            value: cooling
+          - dps_val: idle
+            value: idle
+      - id: 16
+        name: temperature
+        type: integer
+        unit: C
+        range:
+          min: 70
+          max: 350
+        mapping:
+          - scale: 10
+            step: 5
+      - id: 24
+        name: current_temperature
+        type: integer
+        mapping:
+          - scale: 10
+      - id: 58
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: manual
+            value: manual
+          - dps_val: program
+            value: program
+          - dps_val: eco
+            value: eco
+      - id: 109
+        name: fan_mode
+        type: string
+        mapping:
+          - dps_val: low
+            value: low
+          - dps_val: middle
+            value: medium
+          - dps_val: high
+            value: high
+          - dps_val: auto
+            value: auto
+  - entity: sensor
+    class: humidity
+    dps:
+      - id: 108
+        name: sensor
+        type: integer
+        unit: "%"
+
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 40
+        name: lock
+        type: boolean
+  - entity: switch
+    name: Fan control
+    category: config
+    dps:
+      - id: 132
+        name: switch
+        type: boolean