Parcourir la source

Trucool TC160: standardize timers

PR #3374
Jason Rumney il y a 10 mois
Parent
commit
af989a582f

+ 5 - 14
custom_components/tuya_local/devices/trucool_tc1160_airconditioner.yaml

@@ -100,33 +100,24 @@ entities:
         name: sensor
         name: sensor
   - entity: number
   - entity: number
     class: duration
     class: duration
-    translation_key: timer_x
-    translation_placeholders:
-      x: set
-    mode: box
-    icon: mdi:timer-edit
+    translation_key: timer
     dps:
     dps:
       - id: 103
       - id: 103
         name: value
         name: value
         type: integer
         type: integer
-        unit: hour
+        unit: h
         range:
         range:
           min: 0
           min: 0
           max: 24
           max: 24
-        mapping:
-          - dps_val: 0
-            icon: mdi:timer-cancel
   - entity: sensor
   - entity: sensor
-    name: Timer
-    icon: mdi:timer
+    translation_key: time_remaining
+    category: diagnostic
+    class: duration
     dps:
     dps:
       - id: 105
       - id: 105
         name: sensor
         name: sensor
         type: integer
         type: integer
         unit: min
         unit: min
-        mapping:
-          - dps_val: 0
-            icon: mdi:timer-off
   - entity: binary_sensor
   - entity: binary_sensor
     class: problem
     class: problem
     dps:
     dps: