ソースを参照

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 2 年 前
コミット
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
       type: integer
       name: temperature
+      unit: C
       range:
         min: 16
-        max: 32
+        max: 30
     - id: 4
       type: string
       name: mode
@@ -53,22 +54,134 @@ primary_entity:
           value: high
     - id: 9
       type: integer
-      name: unknown_9
+      name: max_temperature
     - id: 10
       type: integer
-      name: unknown_10
-    - id: 11
-      type: string
-      name: display_unit
+      name: min_temperature
     - id: 12
       type: integer
       name: current_humidity
     - id: 15
       type: string
-      name: unknown_15
+      name: scene
     - id: 16
       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