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

TYTE-D1: Naming changes

- Rename "Switch" to "Manual override"
- Rename Temperature range to Temperature hysteresis in line with other configs
- Rename "Cold delay" to "Turn on delay"
- Use common icons from other configs
Jason Rumney 1 год назад
Родитель
Сommit
87028142b9
1 измененных файлов с 7 добавлено и 15 удалено
  1. 7 15
      custom_components/tuya_local/devices/tyte_d1_thermostat.yaml

+ 7 - 15
custom_components/tuya_local/devices/tyte_d1_thermostat.yaml

@@ -1,19 +1,14 @@
-name: Thermostat
+name: Thermostat switch
 products:
   - id: key7rucurh5teh9w
     model: TYTE-D1
 entities:
   - entity: switch
-    name: Switch
+    name: Manual override
     dps:
       - id: 2
         type: boolean
         name: switch
-        mapping:
-          - dps_val: false
-            icon: "mdi:power-plug-off"
-          - dps_val: true
-            icon: "mdi:power-plug"
   - entity: climate
     dps:
       - id: 2
@@ -49,9 +44,6 @@ entities:
         type: string
         name: work_mode
         hidden: true
-      - id: 9
-        type: boolean
-        name: customize_mode_switch
       - id: 19
         type: integer
         name: test_bit
@@ -187,9 +179,9 @@ entities:
           - dps_val: f
             value: fahrenheit
   - entity: number
-    name: Temperature Range
+    name: Temperature hysteresis
     category: config
-    icon: "mdi:format-paragraph-spacing"
+    icon: "mdi:thermometer-plus"
     dps:
       - id: 29
         type: integer
@@ -203,7 +195,7 @@ entities:
   - entity: number
     name: Temperature correction
     category: config
-    icon: "mdi:format-vertical-align-center"
+    icon: "mdi:thermometer-check"
     dps:
       - id: 30
         type: integer
@@ -244,7 +236,7 @@ entities:
           - dps_val: 32
             value: LS Power
   - entity: number
-    name: Cold delay
+    name: Turn on delay
     category: config
     class: duration
     icon: "mdi:camera-timer"
@@ -257,7 +249,7 @@ entities:
           min: 0
           max: 10
   - entity: switch
-    name: Cold delay switch
+    name: Turn on delay
     category: config
     icon: "mdi:camera-timer"
     dps: