소스 검색

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 년 전
부모
커밋
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:
   entity: climate
   translation_only_key: pool_heatpump
@@ -9,12 +9,8 @@ primary_entity:
       mapping:
         - dps_val: false
           value: "off"
-          icon: "mdi:hvac-off"
-          icon_priority: 1
         - dps_val: true
           value: "heat"
-          icon: "mdi:hot-tub"
-          icon_priority: 3
     - id: 2
       name: temperature
       type: integer
@@ -37,21 +33,26 @@ primary_entity:
           value: smart_heat
         - dps_val: BoostHeat
           value: quick_heat
+        - dps_val: BoostCool
+          value: quick_cool
         - dps_val: SilentHeat
           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:
   - entity: binary_sensor
     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
     category: diagnostic
     dps:
@@ -61,4 +62,9 @@ secondary_entities:
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: 256
+            value: false
           - value: true
+      - id: 13
+        type: bitfield
+        name: fault_code