Sfoglia il codice sorgente

cleanup: deprecate remaining 24h number timers that are not in hours

Replace with time entities, as with other configs.
These ones seem to have gotten skipped in the first round of such
changes.
Jason Rumney 4 settimane fa
parent
commit
1786b83537

+ 12 - 0
custom_components/tuya_local/devices/amari_ceiling_fanlight.yaml

@@ -26,8 +26,20 @@ entities:
               min: 3000
               max: 5000
             step: 500
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        optional: true
+        name: second
+        range:
+          min: 0
+          max: 86399
   - entity: number
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     dps:
       - id: 26

+ 11 - 0
custom_components/tuya_local/devices/aubess_1gang_switch.yaml

@@ -22,8 +22,19 @@ entities:
       - id: 44
         name: switch_inching
         type: string
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 9
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399
   - entity: number
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     class: duration
     category: config
     dps:

+ 12 - 0
custom_components/tuya_local/devices/fancyled_fpgahdmi2_light.yaml

@@ -50,8 +50,20 @@ entities:
         name: music_data
         type: hex
         optional: true
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        optional: true
+        name: second
+        range:
+          min: 0
+          max: 86399
   - entity: number
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     dps:
       - id: 26

+ 12 - 0
custom_components/tuya_local/devices/lumary_a1_ceilingfanlight.yaml

@@ -321,6 +321,7 @@ entities:
           max: 130
   - entity: number
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     dps:
       - id: 112
@@ -331,6 +332,17 @@ entities:
         range:
           min: 0
           max: 86400
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 112
+        type: integer
+        name: second
+        optional: true
+        range:
+          min: 0
+          max: 86399
   - entity: switch
     category: config
     dps:

+ 12 - 0
custom_components/tuya_local/devices/outon_smart_lamp.yaml

@@ -107,8 +107,20 @@ entities:
         name: dreamlight_music_data
         type: hex
         optional: true
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        optional: true
+        name: second
+        range:
+          min: 0
+          max: 86399
   - entity: number
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     dps:
       - id: 26

+ 26 - 2
custom_components/tuya_local/devices/taxnele_energy_meter.yaml

@@ -205,6 +205,7 @@ entities:
         name: switch
   - entity: number
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     dps:
       - id: 105
@@ -218,14 +219,37 @@ entities:
         mapping:
           - scale: 60
             step: 60
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 105
+        type: integer
+        optional: true
+        name: second
+        range:
+          min: 0
+          max: 86399
+  - entity: text
+    name: Schedule
+    icon: "mdi:calendar-clock"
+    category: config
+    hidden: true
+    dps:
       - id: 106
         type: string
         optional: true
-        name: cycle_time
+        name: value
+  - entity: text
+    name: Randomized schedule
+    icon: "mdi:island"
+    category: config
+    hidden: true
+    dps:
       - id: 108
         type: string
         optional: true
-        name: random_time
+        name: value
   - entity: number
     name: Leak delay
     category: config

+ 11 - 0
custom_components/tuya_local/devices/tya238akmp_ambientlight.yaml

@@ -57,8 +57,19 @@ entities:
         type: string
         optional: true
         name: paint_color_data
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399
   - entity: number
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     dps:
       - id: 26

+ 11 - 0
custom_components/tuya_local/devices/tyte_d1_thermostat.yaml

@@ -96,8 +96,19 @@ entities:
         hidden: true
         mapping:
           - scale: 10
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 4
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399
   - entity: number
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     class: duration
     category: config
     dps: