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

Add preset_mode in correct place

Mark Paxton 2 лет назад
Родитель
Сommit
62a4898b28

+ 8 - 8
custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml

@@ -26,7 +26,14 @@ primary_entity:
         - scale: 10
           max: 70
           min: 0
-          step: 10
+    - id: 106
+      type: boolean
+      name: preset_mode
+      mapping:
+        - dps_val: true
+          value: "away"
+        - dps_val: false
+          value: "home"
 secondary_entities:
   - entity: switch
     name: Window check
@@ -94,13 +101,6 @@ secondary_entities:
           - dps_val: 0
             value: false
           - value: true
-  - entity: switch
-    name: Away
-    category: config
-    dps:
-      - id: 106
-        type: boolean
-        name: switch
   - entity: switch
     name: Schedule
     icon: "mdi:calendar-clock"