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

Add YAML configuration for Hokkaido air conditioner (#4508)

* added support to hokkaido air conditioner

* fix model & naming from Countdown to Timer & added translation_key where its needed

---------

Co-authored-by: King2zzo <ilfaggia@gmail.com>
Giovanni 5 дней назад
Родитель
Сommit
ca9d009ca5
1 измененных файлов с 272 добавлено и 0 удалено
  1. 272 0
      custom_components/tuya_local/devices/hokkaido_airconditioner.yaml

+ 272 - 0
custom_components/tuya_local/devices/hokkaido_airconditioner.yaml

@@ -0,0 +1,272 @@
+name: Air conditioner
+products:
+  - id: nnlr9l5ipq5jfoxp
+    manufacturer: Hokkaido
+    model: HKEDM 263 ZL
+entities:
+  - entity: climate
+    dps:
+      - id: 1
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: mode
+            conditions:
+              - dps_val: cold
+                value: cool
+              - dps_val: hot
+                value: heat
+              - dps_val: wet
+                value: dry
+              - dps_val: wind
+                value: fan_only
+              - dps_val: auto
+                value: heat_cool
+      - id: 2
+        type: integer
+        name: temperature
+        range:
+          min: 160
+          max: 320
+        mapping:
+          - scale: 10
+            step: 10
+            constraint: temperature_unit
+            conditions:
+              - dps_val: F
+                range:
+                  min: 600
+                  max: 900
+      - id: 3
+        type: integer
+        name: current_temperature
+        mapping:
+          - scale: 10
+      - id: 4
+        type: string
+        name: mode
+        hidden: true
+      - id: 5
+        type: string
+        name: fan_mode
+        mapping:
+          - dps_val: mute
+            value: mute
+          - dps_val: low
+            value: low
+          - dps_val: mid
+            value: medium
+          - dps_val: high
+            value: high
+          - dps_val: auto
+            value: auto
+          - dps_val: strength
+            value: strong
+          - dps_val: mid_low
+            value: medium_low
+          - dps_val: mid_high
+            value: medium_high
+      - id: 8
+        type: boolean
+        name: preset_mode
+        mapping:
+          - dps_val: true
+            value: eco
+          - dps_val: false
+            value: comfort
+      - id: 19
+        type: string
+        name: temperature_unit
+      - id: 33
+        type: boolean
+        optional: true
+        name: swing_horizontal_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: "on"
+      - id: 105
+        type: boolean
+        name: swing_mode
+        mapping:
+          - dps_val: true
+            value: "on"
+          - dps_val: false
+            value: "off"
+  - entity: switch
+    name: Emergency heat
+    icon: "mdi:fire"
+    category: config
+    dps:
+      - id: 12
+        type: boolean
+        name: switch
+  - entity: light
+    translation_key: backlight
+    category: config
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 14
+        type: boolean
+        name: lock
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: C
+            value: celsius
+          - dps_val: F
+            value: fahrenheit
+  - entity: sensor
+    class: energy
+    category: diagnostic
+    dps:
+      - id: 28
+        type: integer
+        name: sensor
+        unit: kWh
+        class: total_increasing
+  - entity: switch
+    translation_key: sleep
+    category: config
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Clean
+    icon: "mdi:shimmer"
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Anti-mould
+    icon: "mdi:water-off"
+    category: config
+    dps:
+      - id: 104
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 107
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 107
+        type: bitfield
+        name: fault_code
+  - entity: sensor
+    name: Model
+    category: diagnostic
+    dps:
+      - id: 108
+        type: bitfield
+        name: sensor
+        optional: true
+  - entity: switch
+    name: Timer on
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 109
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Timer off
+    icon: "mdi:timer-off"
+    category: config
+    dps:
+      - id: 110
+        type: boolean
+        name: switch
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 111
+        type: integer
+        name: hour
+        range:
+          min: 0
+          max: 23
+      - id: 112
+        type: integer
+        name: minute
+        range:
+          min: 0
+          max: 59
+  - entity: number
+    name: Power limit
+    icon: "mdi:meter-electric-outline"
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 113
+        type: integer
+        name: value
+        optional: true
+        unit: "%"
+        range:
+          min: 30
+          max: 100
+        mapping:
+          - dps_val: null
+            value: 100
+            hidden: true
+      - id: 113
+        type: integer
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
+  - entity: switch
+    name: Limit power
+    icon: "mdi:meter-electric-outline"
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 114
+        type: boolean
+        optional: true
+        name: switch
+      - id: 114
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
+  - entity: switch
+    name: Zero wind sensation
+    icon: "mdi:weather-windy"
+    category: config
+    dps:
+      - id: 116
+        type: boolean
+        optional: true
+        name: switch