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

Add support for Kogan Tower Heater KASTHFP2KWA

illuzn 3 лет назад
Родитель
Сommit
1b264554c0
1 измененных файлов с 116 добавлено и 0 удалено
  1. 116 0
      custom_components/tuya_local/devices/kogan_kasthfp2kwa_towerheater.yaml

+ 116 - 0
custom_components/tuya_local/devices/kogan_kasthfp2kwa_towerheater.yaml

@@ -0,0 +1,116 @@
+name: Kogan Tower Heater
+primary_entity:
+  entity: climate
+  dps:
+    - id: 1
+      name: hvac_mode
+      type: boolean
+      mapping:
+        - dps_val: false
+          value: "off"
+          icon: "mdi:power"
+          icon_priority: 1
+        - dps_val: true
+          constraint: heating_mode
+          conditions:
+            - dps_val: FAN
+              value: fan_only
+            - dps_val: LOW
+              value: dry
+            - dps_val: HIGH
+              value: heat
+    - id: 2
+      type: integer
+      range:
+        min: 10
+        max: 35
+      name: temperature
+    - id: 3
+      type: integer
+      name: current_temperature
+      readonly: true
+      mapping:
+      - constraint: hvac_mode
+        conditions:
+          - dps_val: false
+            invalid: true
+    - id: 4
+      name: heating_mode
+      hidden: true
+      type: string
+      icon_priority: 2
+      mapping:
+        - dps_val: FAN
+          icon: "mdi:fan"
+        - dps_val: LOW
+          icon: "mdi:radiator"
+        - dps_val: HIGH
+          icon: "mdi:fire"
+    - id: 8
+      type: boolean
+      mapping:
+        - dps_val: true
+          value: "On"
+        - dps_val: false
+          value: "Off"
+      name: swing_mode
+secondary_entities:
+  - entity: switch
+    name: "Flame Effect"
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: true
+            icon: "mdi:fire-circle"
+          - dps_val: false
+            icon: "mdi:fire-off"
+  - entity: select
+    name: timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 19
+        name: option
+        type: string
+        mapping:
+          - dps_val: "cancel"
+            value: "Off"
+          - dps_val: 1h
+            value: "1 hour"
+          - dps_val: 2h
+            value: "2 hours"
+          - dps_val: 3h
+            value: "3 hours"
+          - dps_val: 4h
+            value: "4 hours"
+          - dps_val: 5h
+            value: "5 hours"
+          - dps_val: 6h
+            value: "6 hours"
+          - dps_val: 7h
+            value: "7 hours"
+          - dps_val: 8h
+            value: "8 hours"
+          - dps_val: 9h
+            value: "9 hours"
+          - dps_val: 10h
+            value: "10 hours"
+          - dps_val: 11h
+            value: "11 hours"
+          - dps_val: 12h
+            value: "12 hours"
+  - entity: binary_sensor
+    name: Error
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 21
+        name: sensor
+        type: bitfield
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true