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

IR Moes heatpump: identified more dps

PR #1755 contains detailed info on a Moes IR Thermostat (AC Controller)
that appears compatible (possibly the very same device).
This allows some of the previously unknown dps to be identified, and
some to be exposed as secondary entities, including the raw remote
controller so the device can be used to control additional devices.
Jason Rumney 1 год назад
Родитель
Сommit
072711d703
1 измененных файлов с 124 добавлено и 11 удалено
  1. 124 11
      custom_components/tuya_local/devices/ir_moes_heatpump.yaml

+ 124 - 11
custom_components/tuya_local/devices/ir_moes_heatpump.yaml

@@ -32,9 +32,10 @@ primary_entity:
     - id: 3
     - id: 3
       type: integer
       type: integer
       name: temperature
       name: temperature
+      unit: C
       range:
       range:
         min: 16
         min: 16
-        max: 32
+        max: 30
     - id: 4
     - id: 4
       type: string
       type: string
       name: mode
       name: mode
@@ -53,22 +54,134 @@ primary_entity:
           value: high
           value: high
     - id: 9
     - id: 9
       type: integer
       type: integer
-      name: unknown_9
+      name: max_temperature
     - id: 10
     - id: 10
       type: integer
       type: integer
-      name: unknown_10
-    - id: 11
-      type: string
-      name: display_unit
+      name: min_temperature
     - id: 12
     - id: 12
       type: integer
       type: integer
       name: current_humidity
       name: current_humidity
     - id: 15
     - id: 15
       type: string
       type: string
-      name: unknown_15
+      name: scene
     - id: 16
     - id: 16
       type: string
       type: string
-      name: unknown_16
-    - id: 18
-      type: integer
-      name: unknown_18
+      name: status
+secondary_entities:
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 6
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+  - entity: button
+    name: Filter reset
+    class: restart
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        optional: true
+        name: button
+  - entity: sensor
+    name: Filter life
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 8
+        type: integer
+        name: sensor
+        unit: h
+        optional: true
+  - entity: number
+    name: Maximum temperature
+    category: config
+    class: temperature
+    dps:
+      - id: 9
+        type: integer
+        name: value
+        unit: C
+        range:
+          min: 16
+          max: 30
+  - entity: number
+    name: Minimum temperature
+    category: config
+    icon: "mdi:"
+    dps:
+      - id: 10
+        type: integer
+        name: value
+        unit: C
+        range:
+          min: 16
+          max: 30
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 11
+        type: string
+        name: option
+        mapping:
+          - dps_val: c
+            value: celsius
+          - dps_val: f
+            value: fahrenheit
+  - entity: sensor
+    name: Running time
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: h
+  - entity: switch
+    name: Internet connection
+    category: config
+    dps:
+      - id: 19
+        type: boolean
+        name: switch
+        optional: true
+        mapping:
+          - dps_val: true
+            value: false
+            icon: "mdi:lan-disconnect"
+          - dps_val: false
+            value: true
+            icon: "mdi:lan-connect"
+          - dps_val: null
+            hidden: true
+            value: true
+            icon: "mdi:lan-connect"
+  - entity: button
+    name: Run time reset
+    class: restart
+    category: config
+    dps:
+      - id: 20
+        type: boolean
+        optional: true
+        name: button
+  - entity: remote
+    dps:
+      - id: 201
+        name: send
+        type: string
+        optional: true
+      - id: 202
+        name: receive
+        type: string
+        optional: true
+        persist: false