Przeglądaj źródła

feat: add MetroBreeze NewYork device from Klarstein (#5614)

* feat: add MetroBreeze NewYork device from Klarstein

* Update Klarstein MetroBreeze air conditioner YAML

Refactor Klarstein MetroBreeze configuration to improve clarity and structure.

* cleanup: whitespace

* fix(klarstein_metrobreezeny_airconditioner): file naming convention

* Rename translation key from 'defrost' to 'anti_frost'

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
POTIER Mathieu 2 dni temu
rodzic
commit
80f20fa72d

+ 114 - 0
custom_components/tuya_local/devices/klarstein_metrobreezeny_airconditioner.yaml

@@ -0,0 +1,114 @@
+name: Air conditioner
+products:
+  - id: kowb3ace57kiq0jb
+    manufacturer: Klarstein
+    model_id: YPF1-12
+    model: "MetroBreeze New York Smart 12K"
+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: COOL
+                value: cool
+              - dps_val: FAN
+                value: fan_only
+              - dps_val: DRY
+                value: dry
+      - id: 2
+        type: integer
+        name: temperature
+        range:
+          min: 16
+          max: 31
+        mapping:
+          - constraint: temperature_unit
+            conditions:
+              - dps_val: F
+                range:
+                  min: 61
+                  max: 88
+      - id: 3
+        type: integer
+        name: current_temperature
+      - id: 4
+        type: string
+        name: mode
+        hidden: true
+      - id: 5
+        type: string
+        name: fan_mode
+        mapping:
+          - dps_val: "1"
+            value: low
+          - dps_val: "2"
+            value: medium
+          - dps_val: "3"
+            value: high
+      - id: 19
+        type: string
+        name: temperature_unit
+      - id: 104
+        type: boolean
+        name: swing_mode
+        mapping:
+          - dps_val: true
+            value: "on"
+          - dps_val: false
+            value: "off"
+      - id: 110
+        type: string
+        name: model
+        optional: true
+      - id: 103
+        type: integer
+        name: timer
+        optional: true
+      - id: 105
+        type: integer
+        name: countdown
+        optional: true
+  - 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: switch
+    translation_key: anti_frost
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+        optional: true
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 106
+        type: bitfield
+        name: sensor
+        optional: true
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 106
+        type: bitfield
+        optional: true
+        name: fault_code