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

Poolex Silverline: add quick and quiet variants for cooling

If they are actually missing on the Silverline, there is probably a
feature flag for it, since the dps seem to match other models such as
Poolex Jetline Selection FI.

Add general problem sensor, and restrict water pump sensor to only
indicating that specific fault.

Issue #2402
Jason Rumney 1 год назад
Родитель
Сommit
3878ca4c13
1 измененных файлов с 21 добавлено и 15 удалено
  1. 21 15
      custom_components/tuya_local/devices/poolex_silverline_heatpump.yaml

+ 21 - 15
custom_components/tuya_local/devices/poolex_silverline_heatpump.yaml

@@ -1,4 +1,4 @@
-name: Poolex Silverline FI heatpump
+name: Pool heat pump
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   translation_only_key: pool_heatpump
   translation_only_key: pool_heatpump
@@ -9,12 +9,8 @@ primary_entity:
       mapping:
       mapping:
         - dps_val: false
         - dps_val: false
           value: "off"
           value: "off"
-          icon: "mdi:hvac-off"
-          icon_priority: 1
         - dps_val: true
         - dps_val: true
           value: "heat"
           value: "heat"
-          icon: "mdi:hot-tub"
-          icon_priority: 3
     - id: 2
     - id: 2
       name: temperature
       name: temperature
       type: integer
       type: integer
@@ -37,21 +33,26 @@ primary_entity:
           value: smart_heat
           value: smart_heat
         - dps_val: BoostHeat
         - dps_val: BoostHeat
           value: quick_heat
           value: quick_heat
+        - dps_val: BoostCool
+          value: quick_cool
         - dps_val: SilentHeat
         - dps_val: SilentHeat
           value: quiet_heat
           value: quiet_heat
-    - id: 13
-      type: integer
-      name: error
-      mapping:
-        - dps_val: 0
-          value: "OK"
-        - dps_val: 256
-          value: "Water Flow Protection"
-          icon: "mdi:water-pump-off"
-          icon_priority: 2
+        - dps_val: SilentCool
+          value: quiet_cool
 secondary_entities:
 secondary_entities:
   - entity: binary_sensor
   - entity: binary_sensor
     name: Water flow
     name: Water flow
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 13
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 256
+            value: true
+          - value: false
+  - entity: binary_sensor
     class: problem
     class: problem
     category: diagnostic
     category: diagnostic
     dps:
     dps:
@@ -61,4 +62,9 @@ secondary_entities:
         mapping:
         mapping:
           - dps_val: 0
           - dps_val: 0
             value: false
             value: false
+          - dps_val: 256
+            value: false
           - value: true
           - value: true
+      - id: 13
+        type: bitfield
+        name: fault_code