Quellcode durchsuchen

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 vor 1 Monat
Ursprung
Commit
1786b83537

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

@@ -26,8 +26,20 @@ entities:
               min: 3000
               min: 3000
               max: 5000
               max: 5000
             step: 500
             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
   - entity: number
     translation_key: timer
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     category: config
     dps:
     dps:
       - id: 26
       - id: 26

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

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

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

@@ -50,8 +50,20 @@ entities:
         name: music_data
         name: music_data
         type: hex
         type: hex
         optional: true
         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
   - entity: number
     translation_key: timer
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     category: config
     dps:
     dps:
       - id: 26
       - id: 26

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

@@ -321,6 +321,7 @@ entities:
           max: 130
           max: 130
   - entity: number
   - entity: number
     translation_key: timer
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     category: config
     dps:
     dps:
       - id: 112
       - id: 112
@@ -331,6 +332,17 @@ entities:
         range:
         range:
           min: 0
           min: 0
           max: 86400
           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
   - entity: switch
     category: config
     category: config
     dps:
     dps:

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

@@ -107,8 +107,20 @@ entities:
         name: dreamlight_music_data
         name: dreamlight_music_data
         type: hex
         type: hex
         optional: true
         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
   - entity: number
     translation_key: timer
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     category: config
     dps:
     dps:
       - id: 26
       - id: 26

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

@@ -205,6 +205,7 @@ entities:
         name: switch
         name: switch
   - entity: number
   - entity: number
     translation_key: timer
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     category: config
     dps:
     dps:
       - id: 105
       - id: 105
@@ -218,14 +219,37 @@ entities:
         mapping:
         mapping:
           - scale: 60
           - scale: 60
             step: 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
       - id: 106
         type: string
         type: string
         optional: true
         optional: true
-        name: cycle_time
+        name: value
+  - entity: text
+    name: Randomized schedule
+    icon: "mdi:island"
+    category: config
+    hidden: true
+    dps:
       - id: 108
       - id: 108
         type: string
         type: string
         optional: true
         optional: true
-        name: random_time
+        name: value
   - entity: number
   - entity: number
     name: Leak delay
     name: Leak delay
     category: config
     category: config

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

@@ -57,8 +57,19 @@ entities:
         type: string
         type: string
         optional: true
         optional: true
         name: paint_color_data
         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
   - entity: number
     translation_key: timer
     translation_key: timer
+    deprecated: time.timer  # 2026-01-20
     category: config
     category: config
     dps:
     dps:
       - id: 26
       - id: 26

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

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