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

Hysen HY08ACF Expansion based on further info

Based on info posted to comment in #343 after initial implementation,
and diagnostics.

Still some uncertain mappings.
Jason Rumney 3 лет назад
Родитель
Сommit
1b5497669b
1 измененных файлов с 150 добавлено и 2 удалено
  1. 150 2
      custom_components/tuya_local/devices/hysen_hy08acf_thermostat.yaml

+ 150 - 2
custom_components/tuya_local/devices/hysen_hy08acf_thermostat.yaml

@@ -9,7 +9,16 @@ primary_entity:
         - dps_val: false
           value: "off"
         - dps_val: true
-          value: heat_cool
+          constraint: operation
+          conditions:
+            - dps_val: heat
+              value: heat
+            - dps_val: cool
+              value: cool
+            - dps_val: ventilate
+              value: fan_only
+            - dps_val: auto
+              value: heat_cool
     - id: 2
       type: integer
       name: temperature
@@ -24,12 +33,24 @@ primary_entity:
       name: current_temperature
       mapping:
         - scale: 10
+    - id: 4
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: Program
+          value: Program
+        - dps_val: Temporary mode
+          value: TempProg
+        - dps_val: Manual
+          value: Manual
     - id: 5
       type: string
       name: fan_speed
       mapping:
         - dps_val: low
           value: Low
+        - dps_val: med
+          value: Medium
         - dps_val: high
           value: High
         - dps_val: auto
@@ -37,6 +58,27 @@ primary_entity:
     - id: 13
       type: bitfield
       name: fault_code
+    - id: 103
+      type: integer
+      name: max_temperature
+    - id: 104
+      type: integer
+      name: min_temperature
+    - id: 118
+      name: operation
+      type: string
+      hidden: true
+    - id: 119
+      name: valve
+      type: string
+      mapping:
+        - dps_val: "0"
+          value: closed
+        - dps_val: "1"
+          value: open
+    - id: 121
+      name: program
+      type: integer
 secondary_entities:
   - entity: lock
     name: Child lock
@@ -66,4 +108,110 @@ secondary_entities:
       - id: 117
         type: boolean
         name: switch
-
+  - entity: sensor
+    name: External temperature
+    class: temperature
+    category: diagnostic
+    dps:
+      - id: 101
+        type: integer
+        name: sensor
+        mapping:
+          - scale: 10
+  - entity: number
+    name: Temperature calibration
+    category: config
+    icon: "mdi:arrow-collapse-up"
+    dps:
+      - id: 102
+        type: integer
+        name: value
+        range:
+          min: -90
+          max: 90
+        mapping:
+          - scale: 10
+  - entity: number
+    name: Maximum temperature
+    category: config
+    icon: "mdi:temperature-chevron-up"
+    dps:
+      - id: 103
+        type: integer
+        name: value
+        range:
+          min: 16
+          max: 50
+  - entity: number
+    name: Maximum temperature
+    category: config
+    icon: "mdi:temperature-chevron-down"
+    dps:
+      - id: 104
+        type: integer
+        name: value
+        range:
+          min: 5
+          max: 15
+  - entity: select
+    name: Child lock type
+    category: config
+    icon: "mdi:hand-back-right-off"
+    dps:
+      - id: 105
+        type: string
+        name: option
+        mapping:
+          - dps_val: lockfull
+            value: Full lock
+          - dps_val: lockhalf
+            value: Semi lock
+  - entity: switch
+    name: Fan ECO
+    category: config
+    icon: "mdi:fan"
+    dps:
+      - id: 106
+        name: switch
+        type: string
+        mapping:
+          - dps_val: eco
+            value: true
+          - dps_val: nosaving
+            value: false
+  - entity: select
+    name: Schedule
+    category: config
+    icon: "mdi:calendar-clock"
+    dps:
+      - id: 107
+        name: option
+        type: string
+        mapping:
+          - dps_val: "2daysrest"
+            value: Weekdays+Weekend
+          - dps_val: "1dayrest"
+            value: 6 days+Sunday
+          - dps_val: "7"
+            value: Daily
+      - id: 108
+        name: workday_config
+        type: string
+        optional: true
+      - id: 109
+        name: restday_config
+        type: string
+        optional: true
+  - entity: select
+    name: Sensor
+    category: config
+    icon: "mdi:home-thermometer"
+    dps:
+      - id: 120
+        type: string
+        name: option
+        mapping:
+          - dps_val: in
+            value: Internal
+          - dps_val: out
+            value: External