Procházet zdrojové kódy

Create poolex_arctic_action.yaml

Initial commit for the Poolex Arctic Action
a-r-j-a-n před 2 roky
rodič
revize
e4d2672c31

+ 269 - 0
custom_components/tuya_local/devices/poolex_arctic_action.yaml

@@ -0,0 +1,269 @@
+name: Pool heatpump
+products:
+  - id: ea8w1w
+    name: Poolex Arctic Action
+primary_entity:
+  entity: climate
+  icon: "mdi:hot-tub"
+  translation_key: pool_heatpump
+  dps:
+    - id: 1
+      type: boolean
+      name: hvac_mode
+      mapping:
+        - dps_val: false
+          value: "off"
+        - dps_val: true
+          constraint: preset_mode
+          conditions:
+            - dps_val: Heat_Intelligent
+              value: heat
+            - dps_val: Heat_Powerful
+              value: h_powerful
+            - dps_val: Heat_Energy_Saving
+              value: h_silent
+            - dps_val: Cool_Intelligent
+              value: cool
+            - dps_val: Cool_Powerful
+              value: c_powerful
+            - dps_val: Cool_Silent
+              value: c_silent
+    - id: 2
+      type: integer
+      name: temperature
+      range:
+        min: 5
+        max: 40
+      mapping:
+        - constraint: temperature_unit
+          conditions:
+            - dps_val: f
+              range:
+                min: 41
+                max: 104
+              value_redirect: temp_set_f
+    - id: 3
+      type: integer
+      name: current_temperature
+      mapping:
+        - constraint: temperature_unit
+          conditions:
+            - dps_val: f
+              value_redirect: temp_current_f
+    - id: 4
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: Heat_Intelligent
+          icon: "mdi:hot-tub"
+          value: heat
+        - dps_val: Heat_Powerful
+          icon: "mdi:hot-tub"
+          value: h_powerful
+        - dps_val: Heat_Energy_Saving
+          icon: "mdi:hot-tub"
+          value: h_silent
+        - dps_val: Cool_Intelligent
+          value: cool
+          icon: "mdi:snowflake"
+        - dps_val: Cool_Powerful
+          icon: "mdi:snowflake"
+          value: c_powerful
+          icon: "mdi:snowflake"
+        - dps_val: Cool_Silent
+          value: c_silent
+          icon: "mdi:snowflake"
+    - id: 13
+      type: string
+      name: temperature_unit
+      mapping:
+        - dps_val: c
+          value: C
+        - dps_val: f
+          value: F
+    - id: 14
+      type: integer
+      name: temp_set_f
+      range:
+        min: 41
+        max: 104
+      hidden: true
+      optional: true
+    - id: 15
+      type: integer
+      name: temp_current_f
+      hidden: true
+      optional: true
+    - id: 21
+      type: integer
+      name: error
+      mapping:
+        - dps_val: 0
+          value: "OK"
+        - dps_val: 4
+          value: "Water Flow Protection"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 3
+          value: "Water Flow Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 4
+          value: "Frost Protection"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 5
+          value: "High Pressure Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 6
+          value: "Low Pressure Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 9
+          value: "Main Board - Line Control Communication Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 10
+          value: "Frequency Module and Main Board Communication Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 12
+          value: "Exhaust Over High Protection"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 13
+          value: "DC Fan Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 15
+          value: "Inlet Water Temperature Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 16 External Coil Temperature Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 18
+          value: "Exhaust Temperature Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 20 
+          value: "Frequency Module Abnormal Protection"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 21
+          value: "Ambient Temperature Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 23 
+          value: "Cooling Water Temperature Too Low Protection"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 27
+          value: "Outlet Water Temperature Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 29 
+          value: "Return Gas Temperature Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 32
+          value: "Heating Water Temperature Too High Protection"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 33
+          value: "Outdoor Coil High Temperature Protection"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 35
+          value: "Compressor Current Protection"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+        - dps_val: 42
+          value: "Internal Coil Temperature Fault"
+          icon: "mdi:water-boiler-alert"
+          icon_priority: 2
+
+    
+secondary_entities:
+  - entity: water_heater
+    icon: "mdi:hot-tub"
+    deprecated: climate
+    category: config
+    dps:
+      - id: 1
+        type: boolean
+        name: operation_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: heatpump
+      - id: 2
+        type: integer
+        name: temperature
+        range:
+          min: 5
+          max: 40
+        mapping:
+          - constraint: temperature_unit
+            conditions:
+              - dps_val: f
+                range:
+                  min: 41
+                  max: 104
+                value_redirect: temp_set_f
+      - id: 3
+        type: integer
+        name: current_temperature
+        mapping:
+          - constraint: temperature_unit
+            conditions:
+              - dps_val: f
+                value_redirect: temp_current_f
+      - id: 13
+        type: string
+        name: temperature_unit
+        mapping:
+          - dps_val: c
+            value: C
+          - dps_val: f
+            value: F
+      - id: 14
+        type: integer
+        name: temp_set_f
+        range:
+          min: 41
+          max: 104
+        hidden: true
+        optional: true
+      - id: 15
+        type: integer
+        name: temp_current_f
+        hidden: true
+        optional: true
+  - entity: select
+    name: Temperature unit
+    icon: "mdi:temperature-celsius"
+    category: config
+    dps:
+      - id: 13
+        type: string
+        name: option
+        mapping:
+          - dps_val: c
+            value: Celsius
+          - dps_val: f
+            value: Fahrenheit
+  - entity: binary_sensor
+    name: Status
+    class: running
+    category: diagnostic
+    dps:
+      - id: 1
+        type: string
+        name: sensor
+        mapping:
+          - value: true
+            dps_val: heating
+          - value: false