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

Added Create Warm Clear Heater device (#4140)

* added CREATE WARM CLEAR Heater device

* fixed PR

* fixed entity.0.dps.5.type
Pablo 1 месяц назад
Родитель
Сommit
e3bc63303b
1 измененных файлов с 159 добавлено и 0 удалено
  1. 159 0
      custom_components/tuya_local/devices/create_warm_clear_heater.yaml

+ 159 - 0
custom_components/tuya_local/devices/create_warm_clear_heater.yaml

@@ -0,0 +1,159 @@
+name: Vertical Heater
+products:
+  - id: ggz9d3bputnvntlx
+    manufacturer: Create
+    model: Warm Clear
+entities:
+  - entity: climate
+    translation_only_key: heater
+    dps:
+      - id: 1
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: heat
+      - id: 2
+        type: integer
+        name: temperature
+        range:
+          min: 5
+          max: 35
+        unit: C
+      - id: 3
+        type: integer
+        name: current_temperature
+      - id: 4
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: CF
+            value: comfort
+          - dps_val: EC
+            value: eco
+          - dps_val: AF
+            value: away
+          - dps_val: P1
+            value: program1
+          - dps_val: P2
+            value: progran2
+          - dps_val: P3
+            value: program3
+          - dps_val: ST
+            value: scheduled
+      - id: 11
+        type: string
+        name: hvac_action
+        mapping:
+          - dps_val: standby
+            value: idle
+          - dps_val: working
+            value: heating
+      - id: 26
+        type: string
+        optional: true
+        name: custom_program
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 19
+        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
+          - 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
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 20
+        type: integer
+        name: sensor
+        unit: min
+  - entity: switch
+    translation_key: sleep
+    icon: "mdi:weather-night"
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+        optional: true
+  - entity: switch
+    name: Window check
+    icon: "mdi:window-open-variant"
+    category: config
+    dps:
+      - id: 104
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    class: window
+    category: diagnostic
+    dps:
+      - id: 105
+        type: boolean
+        name: sensor
+  - entity: number
+    translation_key: temperature_calibration
+    category: config
+    dps:
+      - id: 106
+        type: integer
+        name: value
+        unit: C
+        range:
+          min: -5
+          max: 35