Przeglądaj źródła

Moes WHT-009: merge mode into hvac_mode

To make way for eco mode on dp 4 to be used as preset_mode.

PR #2441
Jason Rumney 1 rok temu
rodzic
commit
282d8eef59

+ 7 - 7
custom_components/tuya_local/devices/moes_wht009_thermostat.yaml

@@ -13,15 +13,15 @@ primary_entity:
         - dps_val: false
           value: "off"
         - dps_val: true
-          value: heat
+          constraint: mode
+          conditions:
+            - dps_val: manual
+              value: heat
+            - dps_val: auto
+              value: auto
     - id: 2
-      name: preset_mode
+      name: mode
       type: string
-      mapping:
-        - dps_val: manual
-          value: manual
-        - dps_val: auto
-          value: program
     - id: 16
       name: temperature
       type: integer