Explorar o código

re-located optional in secondary

Steefph hai 1 ano
pai
achega
06063e45a7

+ 11 - 12
custom_components/tuya_local/devices/smart_wifi_socket_Thermostat.yaml

@@ -71,10 +71,10 @@ secondary_entities:
   # Turn on the display on press for timeout time
   # Turn on the display on press for timeout time
   - entity: button
   - entity: button
     name: Display On
     name: Display On
-    optional: true
     dps:
     dps:
       - id: 118
       - id: 118
         name: button
         name: button
+        optional: true
         type: boolean
         type: boolean
 
 
   # Diagnostics
   # Diagnostics
@@ -107,11 +107,11 @@ secondary_entities:
     name: Display Timeout
     name: Display Timeout
     icon: "mdi:timer-cog-outline"
     icon: "mdi:timer-cog-outline"
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 117
       - id: 117
         type: string
         type: string
         name: option
         name: option
+        optional: true
         mapping:
         mapping:
           - dps_val: "15s"
           - dps_val: "15s"
             value: "15s"
             value: "15s"
@@ -136,11 +136,11 @@ secondary_entities:
     name: Alarm Maximum temperature
     name: Alarm Maximum temperature
     category: config
     category: config
     icon: "mdi:thermometer-chevron-up"
     icon: "mdi:thermometer-chevron-up"
-    optional: true
     dps:
     dps:
       - id: 9
       - id: 9
         type: integer
         type: integer
         name: value
         name: value
+        optional: true
         unit: C
         unit: C
         mapping:
         mapping:
           - scale: 10
           - scale: 10
@@ -153,21 +153,21 @@ secondary_entities:
     category: config
     category: config
     name: Audio Alarm Low temperature
     name: Audio Alarm Low temperature
     icon: "mdi:thermometer-alert"
     icon: "mdi:thermometer-alert"
-    optional: true
     dps:
     dps:
       - id: 11
       - id: 11
         name: switch
         name: switch
+        optional: true
         type: boolean
         type: boolean
   # Low temperature alarm setting
   # Low temperature alarm setting
   - entity: number
   - entity: number
     name: Alarm Minimum temperature
     name: Alarm Minimum temperature
     category: config
     category: config
     icon: "mdi:thermometer-chevron-down"
     icon: "mdi:thermometer-chevron-down"
-    optional: true
     dps:
     dps:
       - id: 12
       - id: 12
         type: integer
         type: integer
         name: value
         name: value
+        optional: true
         unit: C
         unit: C
         mapping:
         mapping:
           - scale: 10
           - scale: 10
@@ -181,21 +181,21 @@ secondary_entities:
     category: config
     category: config
     name: Cooling Delay
     name: Cooling Delay
     icon: "mdi:pump"
     icon: "mdi:pump"
-    optional: true
     dps:
     dps:
       - id: 13
       - id: 13
         name: switch
         name: switch
+        optional: true
         type: boolean
         type: boolean
   # Delay time (minutes)
   # Delay time (minutes)
   - entity: number
   - entity: number
     name: Cooling Delay time
     name: Cooling Delay time
     category: config
     category: config
     icon: "mdi:pump"
     icon: "mdi:pump"
-    optional: true
     dps:
     dps:
       - id: 14
       - id: 14
         type: integer
         type: integer
         name: value
         name: value
+        optional: true
         unit: min
         unit: min
         range:
         range:
           min: 0
           min: 0
@@ -217,11 +217,11 @@ secondary_entities:
     category: config
     category: config
     icon: "mdi:thermometer"
     icon: "mdi:thermometer"
     mode: "box"
     mode: "box"
-    optional: true
     dps:
     dps:
       - id: 111
       - id: 111
         type: integer
         type: integer
         name: value
         name: value
+        optional: true
         mapping:
         mapping:
           - scale: 10
           - scale: 10
         unit: C
         unit: C
@@ -235,12 +235,11 @@ secondary_entities:
     category: config
     category: config
     icon: "mdi:thermometer"
     icon: "mdi:thermometer"
     mode: "box"
     mode: "box"
-    optional: true
     dps:
     dps:
       - id: 18
       - id: 18
         type: integer
         type: integer
-
         name: value
         name: value
+        optional: true
         mapping:
         mapping:
           - scale: 10
           - scale: 10
         unit: C
         unit: C
@@ -253,11 +252,11 @@ secondary_entities:
     name: Brightness
     name: Brightness
     icon: "mdi:brightness-6"
     icon: "mdi:brightness-6"
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 115
       - id: 115
         type: string
         type: string
         name: option
         name: option
+        optional: true
         mapping:
         mapping:
           - dps_val: "Low"
           - dps_val: "Low"
             value: "Low"
             value: "Low"
@@ -271,8 +270,8 @@ secondary_entities:
     category: config
     category: config
     name: Restore Last State
     name: Restore Last State
     icon: "mdi:restore"
     icon: "mdi:restore"
-    optional: true
     dps:
     dps:
       - id: 116
       - id: 116
         name: switch
         name: switch
+        optional: true
         type: boolean
         type: boolean