فهرست منبع

Add Kogan VOSTOK Portable AC device config (#4695)

* Add Kogan VOSTOK Portable AC device config

Product ID: emoxxvomv8xpvxfg
Manufacturer: Kogan
Model: VOSTOK Portable AC
Protocol: 3.3

Supports climate (cool/dry/fan_only modes, 16-31°C), sleep preset,
high/low fan speed, countdown timer, and fault binary sensor.

* Address review feedback: remove duplicates, add fault_code, use translation_key

- Remove countdown dp from climate entity (has own number entity)
- Remove switch entity (duplicates climate hvac_mode on/off)
- Add fault_code bitfield attribute to binary_sensor
- Use translation_key: timer instead of name: Timer
Iain Dickson 1 روز پیش
والد
کامیت
1fa4a5213a
1فایلهای تغییر یافته به همراه78 افزوده شده و 0 حذف شده
  1. 78 0
      custom_components/tuya_local/devices/kogan_vostok_portable_airconditioner.yaml

+ 78 - 0
custom_components/tuya_local/devices/kogan_vostok_portable_airconditioner.yaml

@@ -0,0 +1,78 @@
+name: Air conditioner
+products:
+  - id: emoxxvomv8xpvxfg
+    manufacturer: Kogan
+    model: VOSTOK Portable AC
+entities:
+  - entity: climate
+    dps:
+      - id: 1
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: hvac_mode_101
+            conditions:
+              - dps_val: cool
+                value: cool
+              - dps_val: dry
+                value: dry
+              - dps_val: fan
+                value: fan_only
+      - id: 2
+        type: integer
+        name: temperature
+        range:
+          min: 16
+          max: 31
+      - id: 3
+        type: integer
+        name: current_temperature
+      - id: 101
+        type: string
+        name: hvac_mode_101
+        hidden: true
+      - id: 103
+        type: boolean
+        name: preset_mode
+        mapping:
+          - dps_val: false
+            value: none
+          - dps_val: true
+            value: sleep
+      - id: 104
+        type: string
+        name: fan_mode
+        mapping:
+          - dps_val: high
+            value: high
+          - dps_val: low
+            value: low
+  - entity: number
+    translation_key: timer
+    category: config
+    class: duration
+    dps:
+      - id: 105
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 0
+          max: 24
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 20
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 20
+        type: bitfield
+        name: fault_code