Browse Source

Add device config for Medion Life P1002

Marvin Beym 1 year ago
parent
commit
4a8b722111
2 changed files with 82 additions and 0 deletions
  1. 1 0
      DEVICES.md
  2. 81 0
      custom_components/tuya_local/devices/medion_life_p1002.yaml

+ 1 - 0
DEVICES.md

@@ -104,6 +104,7 @@
 - Vivion 300123/4/5 air conditioners
 - Woods Cortina portable air conditioner
 - Woods Milan portable air conditioner
+- Medion Life P1002 air conditioner
 
 ### Pool heaters / heatpumps
 

+ 81 - 0
custom_components/tuya_local/devices/medion_life_p1002.yaml

@@ -0,0 +1,81 @@
+name: Portable Air Conditioner
+products:
+  - id: tqgodaa9suvtbflg
+    name: MEDION AIR Conditioner P1002
+primary_entity:
+  entity: climate
+  icon: "mdi:air-conditioner"
+  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: Dyr
+              value: dry
+            - dps_val: Fan
+              value: fan_only
+    - id: 2
+      type: integer
+      name: temperature
+      range:
+        min: 16
+        max: 32
+      unit: C
+    - 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: Low
+          value: low
+        - dps_val: High
+          value: high
+    - id: 22
+      type: bitfield
+      name: fault_code
+secondary_entities:
+  - entity: lock
+    icon: "mdi:lock"
+    translation_key: child_lock
+    dps:
+      - id: 14
+        type: boolean
+        name: lock
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: switch
+    name: Sleep
+    icon: "mdi:power-sleep"
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:arrow-oscillating"
+    name: Swing
+    dps:
+      - id: 15
+        type: boolean
+        name: switch