Explorar o código

update preset_mode

Dmitriy Lopatko %!s(int64=2) %!d(string=hai) anos
pai
achega
8394cae804
Modificáronse 1 ficheiros con 5 adicións e 10 borrados
  1. 5 10
      custom_components/tuya_local/devices/hotshot2000_heater.yaml

+ 5 - 10
custom_components/tuya_local/devices/hotshot2000_heater.yaml

@@ -12,14 +12,7 @@ primary_entity:
         - dps_val: false
         - dps_val: false
           value: "off"
           value: "off"
         - dps_val: true
         - dps_val: true
-          constraint: work_mode
-          conditions:
-            - dps_val: level1
-              value: fan_only
-            - dps_val: level2
-              value: heat
-            - dps_val: level3
-              value: heat
+          value: heat
     - id: 2
     - id: 2
       type: integer
       type: integer
       name: temperature
       name: temperature
@@ -40,6 +33,8 @@ primary_entity:
         - dps_val: false
         - dps_val: false
           constraint: work_mode
           constraint: work_mode
           conditions:
           conditions:
+            - dps_val: "level1"
+              value: Fan only
             - dps_val: "level2"
             - dps_val: "level2"
               value: comfort
               value: comfort
             - dps_val: "level3"
             - dps_val: "level3"
@@ -56,8 +51,8 @@ primary_entity:
           value: "on"
           value: "on"
 secondary_entities:
 secondary_entities:
   - entity: switch
   - entity: switch
-    name: Light
-    category: diagnostic
+    name: Mode indicator
+    category: config
     dps:
     dps:
       - id: 10
       - id: 10
         type: boolean
         type: boolean