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

Revert "fix(poolsana_heatpump): device does not like multi-dps commands"

This reverts commit 1ba05491156ad6ffeafcb900defba1e2f2698236.

Issue was misdiagnosed as being related to multi-dps writes.
In fact it is the device that is toggling dp 1 on any write,
regardless of what is being written, contrary to normal convention.

Issue #6201
Jason Rumney 10 часов назад
Родитель
Сommit
8e3c30ccdf
1 измененных файлов с 15 добавлено и 16 удалено
  1. 15 16
      custom_components/tuya_local/devices/poolsana_heatpump.yaml

+ 15 - 16
custom_components/tuya_local/devices/poolsana_heatpump.yaml

@@ -8,28 +8,28 @@ products:
     model: 9kW
     name: Lyfco 9kW Pool Heat Pump
 entities:
-  - entity: switch
-    dps:
-      - id: 1
-        type: boolean
-        name: switch
-
   - entity: climate
     translation_key: pool_heatpump
     dps:
       - id: 1
         type: boolean
-        name: available
-      - id: 2
-        type: string
         name: hvac_mode
         mapping:
-          - dps_val: Cooling
-            value: cool
-          - dps_val: Heating
-            value: heat
-          - dps_val: Auto
-            value: heat_cool
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: mode
+            conditions:
+              - dps_val: Cooling
+                value: cool
+              - dps_val: Heating
+                value: heat
+              - dps_val: Auto
+                value: heat_cool
+      - id: 2
+        type: string
+        name: mode
+        hidden: true
       - id: 4
         type: integer
         name: temperature
@@ -72,7 +72,6 @@ entities:
     dps:
       - id: 25
         type: integer
-        optional: true
         name: sensor
         unit: "°C"
         class: measurement