Sfoglia il codice sorgente

feat: add Pure Blizzard device from Klarstein (#5615)

* feat: add Pure Blizzard device from Klarstein

* Refactor Klarstein air conditioner YAML configuration

Updated model and entity definitions for Klarstein air conditioner.
Renamed file to follow naming convention
Separate out problem sensor

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
POTIER Mathieu 2 giorni fa
parent
commit
efd50cbd91

+ 101 - 0
custom_components/tuya_local/devices/klarstein_pureblizzard_airconditioner.yaml

@@ -0,0 +1,101 @@
+name: Air conditioner
+products:
+  - id: yeojkkzveebndxdp
+    manufacturer: Klarstein
+    model_id: "YPF1-07,YPO6-07/09"
+    model: "Pure Blizzard Smart"
+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: high
+          - dps_val: "2"
+            value: low
+      - id: 19
+        type: string
+        name: temperature_unit
+      - id: 107
+        type: boolean
+        name: preset_mode
+        mapping:
+          - dps_val: true
+            value: sleep
+          - dps_val: false
+            value: comfort
+      - 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: 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
+        name: fault_code
+        optional: true