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

Revert "feat!: make timers use native units"

Instead of changing the number entities in a breaking change, they
will be deprecated and a time entity implemented to properly display
these values.

This reverts commit 27e4934ffc856eb3f6e364283ce23ecae8df3d1d.
Jason Rumney 7 месяцев назад
Родитель
Сommit
6a1dc25dfb
100 измененных файлов с 730 добавлено и 184 удалено
  1. 8 2
      custom_components/tuya_local/devices/HCT-626_dual_water_timer.yaml
  2. 5 2
      custom_components/tuya_local/devices/amari_ceiling_fanlight.yaml
  3. 16 4
      custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml
  4. 4 1
      custom_components/tuya_local/devices/arlec_rgb_ledstrip.yaml
  5. 4 1
      custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml
  6. 4 1
      custom_components/tuya_local/devices/asahom_outdoor_rgbcw_lights.yaml
  7. 4 1
      custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml
  8. 4 1
      custom_components/tuya_local/devices/atomi_ceiling_fan.yaml
  9. 4 1
      custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml
  10. 4 1
      custom_components/tuya_local/devices/atorch_at4pw_energymeter.yaml
  11. 24 3
      custom_components/tuya_local/devices/atorch_s1wp.yaml
  12. 3 1
      custom_components/tuya_local/devices/aubess_1gang_switch.yaml
  13. 6 2
      custom_components/tuya_local/devices/aubess_2gang_switch.yaml
  14. 9 3
      custom_components/tuya_local/devices/aubess_3gang_switch.yaml
  15. 8 2
      custom_components/tuya_local/devices/avatto_cls02_curtainduallights.yaml
  16. 8 2
      custom_components/tuya_local/devices/avatto_curtain_duallights.yaml
  17. 4 1
      custom_components/tuya_local/devices/aygrochy_inline_wifi_air_vent.yaml
  18. 20 5
      custom_components/tuya_local/devices/bauhn_ap5w0624_powerstrip.yaml
  19. 4 1
      custom_components/tuya_local/devices/ble_hct611_watertimer.yaml
  20. 4 1
      custom_components/tuya_local/devices/ble_solar_light.yaml
  21. 4 1
      custom_components/tuya_local/devices/ble_water_valve.yaml
  22. 4 1
      custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml
  23. 8 2
      custom_components/tuya_local/devices/brilliant_double_switch.yaml
  24. 16 4
      custom_components/tuya_local/devices/brilliant_quad_switch.yaml
  25. 4 1
      custom_components/tuya_local/devices/brilliant_single_switch.yaml
  26. 12 3
      custom_components/tuya_local/devices/brilliant_triple_switch.yaml
  27. 4 1
      custom_components/tuya_local/devices/calex_s45cleare27_light.yaml
  28. 4 1
      custom_components/tuya_local/devices/cbi_astute_outdoor_smartswitch.yaml
  29. 4 1
      custom_components/tuya_local/devices/cct_lightbulb.yaml
  30. 4 1
      custom_components/tuya_local/devices/cesmarthome_acwall_outlet.yaml
  31. 5 1
      custom_components/tuya_local/devices/comon_lights.yaml
  32. 8 2
      custom_components/tuya_local/devices/denver_shp200mk2_dualsmartplug.yaml
  33. 4 1
      custom_components/tuya_local/devices/depuley_smart_ceiling_fan.yaml
  34. 4 1
      custom_components/tuya_local/devices/deta_dimmer_switch.yaml
  35. 8 2
      custom_components/tuya_local/devices/digoo_dgsp202.yaml
  36. 4 1
      custom_components/tuya_local/devices/dimming_1ch_switch.yaml
  37. 4 1
      custom_components/tuya_local/devices/dimming_lightbulb.yaml
  38. 5 1
      custom_components/tuya_local/devices/dreamlight_led_strip.yaml
  39. 8 2
      custom_components/tuya_local/devices/dual_power_monitor_smartplug.yaml
  40. 8 2
      custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml
  41. 6 2
      custom_components/tuya_local/devices/elspet_cat_litterbox.yaml
  42. 4 1
      custom_components/tuya_local/devices/enbrighten_cafe_stringlights.yaml
  43. 5 1
      custom_components/tuya_local/devices/enbrighten_curtainlights.yaml
  44. 16 4
      custom_components/tuya_local/devices/es01_powerstrip.yaml
  45. 8 2
      custom_components/tuya_local/devices/espfort_ecspsp_usbsmartplug.yaml
  46. 5 2
      custom_components/tuya_local/devices/fancyled_fpgahdmi2_light.yaml
  47. 4 1
      custom_components/tuya_local/devices/galaxy_projector_light.yaml
  48. 4 1
      custom_components/tuya_local/devices/gaqqee_kws302wf_energymeter.yaml
  49. 4 1
      custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml
  50. 5 1
      custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_switch.yaml
  51. 8 2
      custom_components/tuya_local/devices/ghome_sw19_fanlight.yaml
  52. 4 1
      custom_components/tuya_local/devices/goldair_phet07ea_heater.yaml
  53. 8 2
      custom_components/tuya_local/devices/goldair_portable_airconditioner.yaml
  54. 8 2
      custom_components/tuya_local/devices/gosund_sp112_usbsmartplug.yaml
  55. 16 4
      custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml
  56. 16 4
      custom_components/tuya_local/devices/gosund_wp9rtl_usbpowerstrip.yaml
  57. 8 2
      custom_components/tuya_local/devices/grid_connect_usb_power_point.yaml
  58. 4 1
      custom_components/tuya_local/devices/gts8_40_2P_breaker.yaml
  59. 5 1
      custom_components/tuya_local/devices/hdmi_sync_light.yaml
  60. 4 1
      custom_components/tuya_local/devices/hoenyzy_valve_timer.yaml
  61. 16 4
      custom_components/tuya_local/devices/homemate_multi_switch.yaml
  62. 4 1
      custom_components/tuya_local/devices/ih001_led_controller.yaml
  63. 4 1
      custom_components/tuya_local/devices/ilonda_l88_fishfeeder.yaml
  64. 4 1
      custom_components/tuya_local/devices/ion_wifi_dimmer.yaml
  65. 4 1
      custom_components/tuya_local/devices/keyun_rgb_ceilingfan.yaml
  66. 4 1
      custom_components/tuya_local/devices/ledvance_smart_plabl100x25b.yaml
  67. 4 1
      custom_components/tuya_local/devices/light_string.yaml
  68. 20 5
      custom_components/tuya_local/devices/logicom_powerstrip.yaml
  69. 8 2
      custom_components/tuya_local/devices/loratap_dual_switch.yaml
  70. 8 2
      custom_components/tuya_local/devices/loratap_garage_door.yaml
  71. 5 1
      custom_components/tuya_local/devices/lsc_neon_ledstrip.yaml
  72. 4 1
      custom_components/tuya_local/devices/lscsmartconnect_gardenspotlights.yaml
  73. 8 2
      custom_components/tuya_local/devices/makegood_double_power_point_with_energy.yaml
  74. 8 2
      custom_components/tuya_local/devices/makegood_switch_dual_timer-energy.yaml
  75. 8 2
      custom_components/tuya_local/devices/malmbergs_dual_dimmer.yaml
  76. 5 1
      custom_components/tuya_local/devices/marpou_ceiling_lamp_ledlight.yaml
  77. 4 1
      custom_components/tuya_local/devices/mirabella_genio_usb.yaml
  78. 4 1
      custom_components/tuya_local/devices/mirabella_geniopixel_light.yaml
  79. 20 5
      custom_components/tuya_local/devices/mirabella_power_strip.yaml
  80. 8 2
      custom_components/tuya_local/devices/moes_dual_dimmer.yaml
  81. 6 4
      custom_components/tuya_local/devices/moes_motionsensor_switch.yaml
  82. 16 4
      custom_components/tuya_local/devices/moes_quad_switch.yaml
  83. 4 1
      custom_components/tuya_local/devices/moes_rgb_socket.yaml
  84. 4 1
      custom_components/tuya_local/devices/moes_star_projector.yaml
  85. 12 3
      custom_components/tuya_local/devices/moes_threegang.yaml
  86. 4 1
      custom_components/tuya_local/devices/moesgo_dimmer.yaml
  87. 4 1
      custom_components/tuya_local/devices/moistenland_water_timer.yaml
  88. 4 1
      custom_components/tuya_local/devices/nooie_nsp21_smartplug.yaml
  89. 4 1
      custom_components/tuya_local/devices/nooie_pu13_smartplug.yaml
  90. 16 4
      custom_components/tuya_local/devices/novadigital_quad_switch.yaml
  91. 4 1
      custom_components/tuya_local/devices/orison_chanfok_neo_fan_light.yaml
  92. 4 1
      custom_components/tuya_local/devices/orison_rgb_ceilingfan.yaml
  93. 5 2
      custom_components/tuya_local/devices/outon_smart_lamp.yaml
  94. 5 1
      custom_components/tuya_local/devices/pir_rgbcw_light.yaml
  95. 5 1
      custom_components/tuya_local/devices/pir_spotlight.yaml
  96. 16 4
      custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml
  97. 4 1
      custom_components/tuya_local/devices/qoto_05_water_valve.yaml
  98. 16 4
      custom_components/tuya_local/devices/quad_power_timer.yaml
  99. 16 4
      custom_components/tuya_local/devices/quad_powerstrip.yaml
  100. 20 5
      custom_components/tuya_local/devices/quad_powerstrip_usb.yaml

+ 8 - 2
custom_components/tuya_local/devices/HCT-626_dual_water_timer.yaml

@@ -30,7 +30,10 @@ entities:
         range:
           min: 60
           max: 3600
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min
   - entity: number
     translation_key: timer_x
     translation_placeholders:
@@ -44,7 +47,10 @@ entities:
         range:
           min: 60
           max: 3600
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min
   - entity: sensor
     name: Weather delay remaining
     category: diagnostic

+ 5 - 2
custom_components/tuya_local/devices/amari_ceiling_fanlight.yaml

@@ -29,16 +29,19 @@ entities:
   - entity: number
     translation_key: timer
     category: config
-    class: duration
     dps:
       - id: 26
         type: integer
         optional: true
         name: value
-        unit: s
+        unit: min
+        precision: 0
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: text
     name: Light control
     hidden: true

+ 16 - 4
custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml

@@ -50,10 +50,13 @@ entities:
       - id: 9
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -64,10 +67,13 @@ entities:
       - id: 10
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -78,10 +84,13 @@ entities:
       - id: 11
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -92,10 +101,13 @@ entities:
       - id: 12
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     category: config
     translation_key: initial_state

+ 4 - 1
custom_components/tuya_local/devices/arlec_rgb_ledstrip.yaml

@@ -70,7 +70,10 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 4 - 1
custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml

@@ -109,10 +109,13 @@ entities:
       - id: 4
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     class: current
     category: diagnostic

+ 4 - 1
custom_components/tuya_local/devices/asahom_outdoor_rgbcw_lights.yaml

@@ -111,10 +111,13 @@ entities:
       - id: 26
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: light
     translation_key: indicator
     category: config

+ 4 - 1
custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml

@@ -20,7 +20,10 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min
   - entity: sensor
     class: current
     category: diagnostic

+ 4 - 1
custom_components/tuya_local/devices/atomi_ceiling_fan.yaml

@@ -63,10 +63,13 @@ entities:
       - id: 26
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: switch
     name: Do not disturb
     category: config

+ 4 - 1
custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml

@@ -27,7 +27,10 @@ entities:
         range:
           min: 0
           max: 360000
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     class: current
     category: diagnostic

+ 4 - 1
custom_components/tuya_local/devices/atorch_at4pw_energymeter.yaml

@@ -18,10 +18,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 360000
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     class: current
     dps:

+ 24 - 3
custom_components/tuya_local/devices/atorch_s1wp.yaml

@@ -19,10 +19,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 360000
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     class: current
     category: diagnostic
@@ -327,32 +330,39 @@ entities:
     name: Timing off time
     class: duration
     translation_key: timer
+    mode: slider
     dps:
       - id: 125
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 360000
+        mapping:
+          - scale: 60
   - entity: number
     category: config
     name: Timing on time
     class: duration
     translation_key: timer
+    mode: slider
     dps:
       - id: 126
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 60
           max: 359940
+        mapping:
+          - scale: 60
   - entity: number
     category: config
     name: Timing loop on time
     translation_key: timer
     class: duration
+    mode: slider
     dps:
       - id: 127
         type: integer
@@ -361,11 +371,14 @@ entities:
         range:
           min: 60
           max: 359940
+        mapping:
+          - scale: 60
   - entity: number
     category: config
     name: Timing loop off time
     translation_key: timer
     class: duration
+    mode: slider
     dps:
       - id: 128
         type: integer
@@ -374,11 +387,14 @@ entities:
         range:
           min: 60
           max: 359940
+        mapping:
+          - scale: 60
   - entity: number
     category: config
     name: Timing countdown on time
     translation_key: timer
     class: duration
+    mode: slider
     dps:
       - id: 129
         type: integer
@@ -387,11 +403,14 @@ entities:
         range:
           min: 60
           max: 359940
+        mapping:
+          - scale: 60
   - entity: number
     category: config
     name: Timing countdown off time
     translation_key: timer
     class: duration
+    mode: slider
     dps:
       - id: 130
         type: integer
@@ -400,6 +419,8 @@ entities:
         range:
           min: 60
           max: 359940
+        mapping:
+          - scale: 60
   - entity: select
     category: config
     name: Switch state

+ 3 - 1
custom_components/tuya_local/devices/aubess_1gang_switch.yaml

@@ -30,10 +30,12 @@ entities:
       - id: 9
         name: value
         type: integer
-        unit: s
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 6 - 2
custom_components/tuya_local/devices/aubess_2gang_switch.yaml

@@ -44,10 +44,12 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -58,10 +60,12 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 9 - 3
custom_components/tuya_local/devices/aubess_3gang_switch.yaml

@@ -38,10 +38,12 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -52,10 +54,12 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -66,10 +70,12 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 8 - 2
custom_components/tuya_local/devices/avatto_cls02_curtainduallights.yaml

@@ -95,10 +95,13 @@ entities:
         type: integer
         optional: true
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     name: Light 2 timer
     category: config
@@ -109,10 +112,13 @@ entities:
         type: integer
         optional: true
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     name: Percentage switch
     icon: "mdi:percent-box"

+ 8 - 2
custom_components/tuya_local/devices/avatto_curtain_duallights.yaml

@@ -109,10 +109,13 @@ entities:
         type: integer
         optional: true
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     name: Light 2 timer
     category: config
@@ -123,7 +126,10 @@ entities:
         type: integer
         optional: true
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 4 - 1
custom_components/tuya_local/devices/aygrochy_inline_wifi_air_vent.yaml

@@ -118,10 +118,13 @@ entities:
       - id: 104
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 36000
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     name: Alarm triggered
     category: diagnostic

+ 20 - 5
custom_components/tuya_local/devices/bauhn_ap5w0624_powerstrip.yaml

@@ -59,10 +59,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
       - id: 42
         type: string
         name: cycle_time
@@ -82,10 +85,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -96,10 +102,13 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -110,10 +119,13 @@ entities:
       - id: 12
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -124,10 +136,13 @@ entities:
       - id: 13
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     category: diagnostic
     class: current

+ 4 - 1
custom_components/tuya_local/devices/ble_hct611_watertimer.yaml

@@ -91,11 +91,14 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         optional: true
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     name: Smart weather
     icon: "mdi:sun-wireless"

+ 4 - 1
custom_components/tuya_local/devices/ble_solar_light.yaml

@@ -89,10 +89,13 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     name: Device mode
     icon: "mdi:lightbulb-auto"

+ 4 - 1
custom_components/tuya_local/devices/ble_water_valve.yaml

@@ -109,11 +109,14 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         optional: true
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: switch
     name: Smart weather switch
     icon: "mdi:sun-wireless"

+ 4 - 1
custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml

@@ -87,10 +87,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 8 - 2
custom_components/tuya_local/devices/brilliant_double_switch.yaml

@@ -32,10 +32,13 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -46,10 +49,13 @@ entities:
       - id: 8
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     name: Energy
     category: diagnostic

+ 16 - 4
custom_components/tuya_local/devices/brilliant_quad_switch.yaml

@@ -50,10 +50,13 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -64,10 +67,13 @@ entities:
       - id: 8
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -78,10 +84,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -92,10 +101,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     name: Energy
     category: diagnostic

+ 4 - 1
custom_components/tuya_local/devices/brilliant_single_switch.yaml

@@ -18,10 +18,13 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     name: Energy
     category: diagnostic

+ 12 - 3
custom_components/tuya_local/devices/brilliant_triple_switch.yaml

@@ -41,10 +41,13 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -55,10 +58,13 @@ entities:
       - id: 8
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -69,10 +75,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     name: Energy
     category: diagnostic

+ 4 - 1
custom_components/tuya_local/devices/calex_s45cleare27_light.yaml

@@ -81,10 +81,13 @@ entities:
         type: integer
         optional: true
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: text
     translation_key: scene
     category: config

+ 4 - 1
custom_components/tuya_local/devices/cbi_astute_outdoor_smartswitch.yaml

@@ -18,10 +18,13 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     category: config
     translation_key: initial_state

+ 4 - 1
custom_components/tuya_local/devices/cct_lightbulb.yaml

@@ -50,8 +50,11 @@ entities:
       - id: 26
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
         optional: true

+ 4 - 1
custom_components/tuya_local/devices/cesmarthome_acwall_outlet.yaml

@@ -17,7 +17,10 @@ entities:
       - id: 102
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 5 - 1
custom_components/tuya_local/devices/comon_lights.yaml

@@ -119,4 +119,8 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null

+ 8 - 2
custom_components/tuya_local/devices/denver_shp200mk2_dualsmartplug.yaml

@@ -52,10 +52,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -66,10 +69,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     class: current
     category: diagnostic

+ 4 - 1
custom_components/tuya_local/devices/depuley_smart_ceiling_fan.yaml

@@ -190,10 +190,13 @@ entities:
         type: integer
         name: value
         optional: true
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     translation_key: timer
     class: duration

+ 4 - 1
custom_components/tuya_local/devices/deta_dimmer_switch.yaml

@@ -37,7 +37,10 @@ entities:
       - id: 6
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 8 - 2
custom_components/tuya_local/devices/digoo_dgsp202.yaml

@@ -62,10 +62,13 @@ entities:
       - id: 9
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -76,7 +79,10 @@ entities:
       - id: 10
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 4 - 1
custom_components/tuya_local/devices/dimming_1ch_switch.yaml

@@ -44,10 +44,13 @@ entities:
       - id: 6
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 4 - 1
custom_components/tuya_local/devices/dimming_lightbulb.yaml

@@ -33,8 +33,11 @@ entities:
       - id: 26
         type: integer
         name: value
-        unit: s
+        unit: min
         optional: true
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 5 - 1
custom_components/tuya_local/devices/dreamlight_led_strip.yaml

@@ -99,7 +99,11 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null
   - entity: number
     name: Pixels
     category: config

+ 8 - 2
custom_components/tuya_local/devices/dual_power_monitor_smartplug.yaml

@@ -68,10 +68,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -82,7 +85,10 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 8 - 2
custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml

@@ -69,10 +69,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -83,10 +86,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     class: current
     category: diagnostic

+ 6 - 2
custom_components/tuya_local/devices/elspet_cat_litterbox.yaml

@@ -117,10 +117,12 @@ entities:
       - id: 110
         type: integer
         name: value
-        unit: min
+        unit: h
         range:
           min: 0
           max: 1440
+        mapping:
+          - scale: 60
   - entity: number
     name: Sleep end
     class: duration
@@ -130,10 +132,12 @@ entities:
       - id: 111
         type: integer
         name: value
-        unit: min
+        unit: h
         range:
           min: 0
           max: 1440
+        mapping:
+          - scale: 60
   - entity: binary_sensor
     class: problem
     category: diagnostic

+ 4 - 1
custom_components/tuya_local/devices/enbrighten_cafe_stringlights.yaml

@@ -28,10 +28,13 @@ entities:
         type: integer
         optional: true
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     name: Number of lights
     icon: "mdi:led-strip-variant"

+ 5 - 1
custom_components/tuya_local/devices/enbrighten_curtainlights.yaml

@@ -41,11 +41,15 @@ entities:
       - id: 26
         name: value
         type: integer
-        unit: s
+        unit: min
         optional: true
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null
   - entity: text
     translation_key: scene
     category: config

+ 16 - 4
custom_components/tuya_local/devices/es01_powerstrip.yaml

@@ -46,10 +46,13 @@ entities:
       - id: 5
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -60,10 +63,13 @@ entities:
       - id: 6
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     translation_key: timer_x
@@ -74,10 +80,13 @@ entities:
       - id: 7
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     name: USB timer
@@ -87,7 +96,10 @@ entities:
       - id: 8
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 8 - 2
custom_components/tuya_local/devices/espfort_ecspsp_usbsmartplug.yaml

@@ -36,10 +36,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -48,10 +51,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 5 - 2
custom_components/tuya_local/devices/fancyled_fpgahdmi2_light.yaml

@@ -53,7 +53,6 @@ entities:
   - entity: number
     translation_key: timer
     category: config
-    class: duration
     dps:
       - id: 26
         type: integer
@@ -62,7 +61,11 @@ entities:
           min: 0
           max: 86400
         optional: true
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null
   - entity: select
     name: Scene
     icon: "mdi:palette"

+ 4 - 1
custom_components/tuya_local/devices/galaxy_projector_light.yaml

@@ -54,7 +54,10 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
   - entity: light
     translation_key: laser
     dps:

+ 4 - 1
custom_components/tuya_local/devices/gaqqee_kws302wf_energymeter.yaml

@@ -246,10 +246,13 @@ entities:
         type: integer
         name: value
         optional: true
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: switch
     name: Schedule
     category: config

+ 4 - 1
custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml

@@ -41,10 +41,13 @@ entities:
       - id: 6
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     category: config
     translation_key: initial_state

+ 5 - 1
custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_switch.yaml

@@ -51,7 +51,11 @@ entities:
         type: integer
         optional: true
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - dps_val: null
+          - scale: 60
+            step: 60

+ 8 - 2
custom_components/tuya_local/devices/ghome_sw19_fanlight.yaml

@@ -30,10 +30,13 @@ entities:
       - id: 2
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: light
     dps:
       - id: 5
@@ -54,10 +57,13 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 4 - 1
custom_components/tuya_local/devices/goldair_phet07ea_heater.yaml

@@ -44,7 +44,10 @@ entities:
       - id: 5
         type: integer
         name: value
-        unit: min
+        unit: h
         range:
           min: 0
           max: 1440
+        mapping:
+          - step: 60
+            scale: 60

+ 8 - 2
custom_components/tuya_local/devices/goldair_portable_airconditioner.yaml

@@ -194,10 +194,13 @@ entities:
       - id: 104
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     name: "Off timer"
     category: config
@@ -207,7 +210,10 @@ entities:
       - id: 105
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 8 - 2
custom_components/tuya_local/devices/gosund_sp112_usbsmartplug.yaml

@@ -101,10 +101,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     name: USB timer
     category: config
@@ -114,10 +117,13 @@ entities:
       - id: 15
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 16 - 4
custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml

@@ -48,10 +48,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -62,10 +65,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -76,10 +82,13 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     name: USB Timer
     category: config
@@ -89,10 +98,13 @@ entities:
       - id: 15
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     class: current
     category: diagnostic

+ 16 - 4
custom_components/tuya_local/devices/gosund_wp9rtl_usbpowerstrip.yaml

@@ -57,10 +57,13 @@ entities:
       - id: 9
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -71,10 +74,13 @@ entities:
       - id: 10
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -85,10 +91,13 @@ entities:
       - id: 11
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -99,10 +108,13 @@ entities:
       - id: 15
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: lock
     translation_key: child_lock
     category: config

+ 8 - 2
custom_components/tuya_local/devices/grid_connect_usb_power_point.yaml

@@ -24,7 +24,10 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: mi
   - entity: number
     name: USB timer
     class: duration
@@ -37,7 +40,10 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min
   - entity: select
     translation_key: initial_state
     category: config

+ 4 - 1
custom_components/tuya_local/devices/gts8_40_2P_breaker.yaml

@@ -18,10 +18,13 @@ entities:
       - id: 101
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 5 - 1
custom_components/tuya_local/devices/hdmi_sync_light.yaml

@@ -108,7 +108,11 @@ entities:
           min: 0
           max: 86400
         optional: true
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+
   - entity: select
     name: Installation side
     category: config

+ 4 - 1
custom_components/tuya_local/devices/hoenyzy_valve_timer.yaml

@@ -17,7 +17,10 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 16 - 4
custom_components/tuya_local/devices/homemate_multi_switch.yaml

@@ -76,11 +76,14 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         optional: true
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -91,11 +94,14 @@ entities:
       - id: 8
         type: integer
         name: value
-        unit: s
+        unit: min
         optional: true
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -107,11 +113,14 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         optional: true
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
       - id: 3
         name: available
         type: boolean
@@ -131,11 +140,14 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         optional: true
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
       - id: 4
         name: available
         type: boolean

+ 4 - 1
custom_components/tuya_local/devices/ih001_led_controller.yaml

@@ -104,7 +104,10 @@ entities:
       - id: 26
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 4 - 1
custom_components/tuya_local/devices/ilonda_l88_fishfeeder.yaml

@@ -18,7 +18,10 @@ entities:
       - id: 6
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 4 - 1
custom_components/tuya_local/devices/ion_wifi_dimmer.yaml

@@ -45,7 +45,10 @@ entities:
       - id: 6
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 4 - 1
custom_components/tuya_local/devices/keyun_rgb_ceilingfan.yaml

@@ -152,10 +152,13 @@ entities:
         type: integer
         name: value
         optional: true
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: switch
     name: Main switch
     category: config

+ 4 - 1
custom_components/tuya_local/devices/ledvance_smart_plabl100x25b.yaml

@@ -171,8 +171,11 @@ entities:
       - id: 26
         type: integer
         name: value
-        unit: s
+        unit: min
         optional: true
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 4 - 1
custom_components/tuya_local/devices/light_string.yaml

@@ -111,4 +111,7 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min

+ 20 - 5
custom_components/tuya_local/devices/logicom_powerstrip.yaml

@@ -53,10 +53,13 @@ entities:
       - id: 9
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -67,10 +70,13 @@ entities:
       - id: 10
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -81,10 +87,13 @@ entities:
       - id: 11
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -95,10 +104,13 @@ entities:
       - id: 12
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     class: duration
     category: config
@@ -108,7 +120,10 @@ entities:
       - id: 13
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 8 - 2
custom_components/tuya_local/devices/loratap_dual_switch.yaml

@@ -30,10 +30,13 @@ entities:
       - id: 9
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
       - id: 42
         name: random_time
         type: string
@@ -50,10 +53,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 8 - 2
custom_components/tuya_local/devices/loratap_garage_door.yaml

@@ -29,10 +29,13 @@ entities:
       - id: 7
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     name: Travel time
     class: duration
@@ -55,7 +58,10 @@ entities:
       - id: 103
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 5 - 1
custom_components/tuya_local/devices/lsc_neon_ledstrip.yaml

@@ -83,7 +83,11 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null
   - entity: number
     name: Pixels
     category: config

+ 4 - 1
custom_components/tuya_local/devices/lscsmartconnect_gardenspotlights.yaml

@@ -77,10 +77,13 @@ entities:
       - id: 26
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: switch
     name: Do not disturb
     icon: "mdi:minus-circle"

+ 8 - 2
custom_components/tuya_local/devices/makegood_double_power_point_with_energy.yaml

@@ -62,10 +62,13 @@ entities:
       - id: 2
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -76,7 +79,10 @@ entities:
       - id: 14
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 8 - 2
custom_components/tuya_local/devices/makegood_switch_dual_timer-energy.yaml

@@ -33,7 +33,10 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min
   - entity: number
     class: duration
     translation_key: timer_x
@@ -47,7 +50,10 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min
   - entity: sensor
     class: current
     category: diagnostic

+ 8 - 2
custom_components/tuya_local/devices/malmbergs_dual_dimmer.yaml

@@ -47,10 +47,13 @@ entities:
       - id: 6
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     name: Minimum brightness 2
     category: config
@@ -72,10 +75,13 @@ entities:
       - id: 12
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 5 - 1
custom_components/tuya_local/devices/marpou_ceiling_lamp_ledlight.yaml

@@ -95,7 +95,11 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null
   - entity: text
     translation_key: scene
     category: config

+ 4 - 1
custom_components/tuya_local/devices/mirabella_genio_usb.yaml

@@ -22,7 +22,10 @@ entities:
       - id: 2
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 4 - 1
custom_components/tuya_local/devices/mirabella_geniopixel_light.yaml

@@ -78,10 +78,13 @@ entities:
       - id: 26
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     name: Scene data reset
     category: config

+ 20 - 5
custom_components/tuya_local/devices/mirabella_power_strip.yaml

@@ -74,10 +74,13 @@ entities:
       - id: 9
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -88,10 +91,13 @@ entities:
       - id: 10
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -102,10 +108,13 @@ entities:
       - id: 11
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -116,10 +125,13 @@ entities:
       - id: 12
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -130,10 +142,13 @@ entities:
       - id: 13
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     category: config
     translation_key: initial_state

+ 8 - 2
custom_components/tuya_local/devices/moes_dual_dimmer.yaml

@@ -126,10 +126,13 @@ entities:
       - id: 6
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     class: duration
     translation_key: timer_x
@@ -140,10 +143,13 @@ entities:
       - id: 12
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 6 - 4
custom_components/tuya_local/devices/moes_motionsensor_switch.yaml

@@ -112,25 +112,27 @@ entities:
           max: 3600
   - entity: number
     name: Disable time
-    class: duration
     category: config
     dps:
       - id: 101
         name: value
         type: integer
-        unit: min
+        unit: h
         range:
           min: 0
           max: 1440
+        mapping:
+          - scale: 60
   - entity: number
     name: Enable time
-    class: duration
     category: config
     dps:
       - id: 102
         name: value
         type: integer
-        unit: min
+        unit: h
         range:
           min: 0
           max: 1440
+        mapping:
+          - scale: 60

+ 16 - 4
custom_components/tuya_local/devices/moes_quad_switch.yaml

@@ -53,10 +53,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
       - id: 42
         type: string
         name: random_timer
@@ -73,10 +76,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -87,10 +93,13 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -101,10 +110,13 @@ entities:
       - id: 12
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 4 - 1
custom_components/tuya_local/devices/moes_rgb_socket.yaml

@@ -82,10 +82,13 @@ entities:
         type: integer
         name: value
         optional: true
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     category: diagnostic
     class: current

+ 4 - 1
custom_components/tuya_local/devices/moes_star_projector.yaml

@@ -79,7 +79,10 @@ entities:
       - id: 26
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 12 - 3
custom_components/tuya_local/devices/moes_threegang.yaml

@@ -38,10 +38,13 @@ entities:
       - id: 7
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -52,10 +55,13 @@ entities:
       - id: 8
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -66,10 +72,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     category: config
     translation_key: initial_state

+ 4 - 1
custom_components/tuya_local/devices/moesgo_dimmer.yaml

@@ -51,10 +51,13 @@ entities:
       - id: 6
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 4 - 1
custom_components/tuya_local/devices/moistenland_water_timer.yaml

@@ -73,10 +73,13 @@ entities:
       - id: 11
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     name: Work Mode
     class: enum

+ 4 - 1
custom_components/tuya_local/devices/nooie_nsp21_smartplug.yaml

@@ -18,10 +18,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: light_mode
     category: config

+ 4 - 1
custom_components/tuya_local/devices/nooie_pu13_smartplug.yaml

@@ -18,10 +18,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: lock
     translation_key: child_lock
     category: config

+ 16 - 4
custom_components/tuya_local/devices/novadigital_quad_switch.yaml

@@ -48,10 +48,13 @@ entities:
       - id: 7
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -62,10 +65,13 @@ entities:
       - id: 8
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -76,10 +82,13 @@ entities:
       - id: 9
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -90,10 +99,13 @@ entities:
       - id: 10
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     category: config
     translation_key: initial_state

+ 4 - 1
custom_components/tuya_local/devices/orison_chanfok_neo_fan_light.yaml

@@ -97,7 +97,10 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min
   - entity: number
     name: Fan timer
     translation_key: timer

+ 4 - 1
custom_components/tuya_local/devices/orison_rgb_ceilingfan.yaml

@@ -99,7 +99,10 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min
   - entity: number
     name: Fan timer
     translation_key: timer

+ 5 - 2
custom_components/tuya_local/devices/outon_smart_lamp.yaml

@@ -109,7 +109,6 @@ entities:
         optional: true
   - entity: number
     translation_key: timer
-    class: duration
     category: config
     dps:
       - id: 26
@@ -119,7 +118,11 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null
   - entity: text
     translation_key: scene
     icon: "mdi:palette"

+ 5 - 1
custom_components/tuya_local/devices/pir_rgbcw_light.yaml

@@ -199,7 +199,11 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null
   - entity: switch
     name: Manual mode
     category: config

+ 5 - 1
custom_components/tuya_local/devices/pir_spotlight.yaml

@@ -47,7 +47,11 @@ entities:
         range:
           min: 0
           max: 86400
-        unit: s
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null
   - entity: switch
     name: Manual mode
     category: config

+ 16 - 4
custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml

@@ -52,10 +52,13 @@ entities:
       - id: 9
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -66,10 +69,13 @@ entities:
       - id: 10
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -80,10 +86,13 @@ entities:
       - id: 11
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -93,7 +102,10 @@ entities:
       - id: 15
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 4 - 1
custom_components/tuya_local/devices/qoto_05_water_valve.yaml

@@ -36,10 +36,13 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 84960
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     category: diagnostic
     class: battery

+ 16 - 4
custom_components/tuya_local/devices/quad_power_timer.yaml

@@ -53,10 +53,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -67,10 +70,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -81,10 +87,13 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -95,10 +104,13 @@ entities:
       - id: 12
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: select
     translation_key: initial_state
     category: config

+ 16 - 4
custom_components/tuya_local/devices/quad_powerstrip.yaml

@@ -58,10 +58,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -72,10 +75,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -86,10 +92,13 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -100,10 +109,13 @@ entities:
       - id: 12
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     category: diagnostic
     class: current

+ 20 - 5
custom_components/tuya_local/devices/quad_powerstrip_usb.yaml

@@ -60,10 +60,13 @@ entities:
       - id: 9
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -74,10 +77,13 @@ entities:
       - id: 10
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -88,10 +94,13 @@ entities:
       - id: 11
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     category: config
     class: duration
@@ -102,10 +111,13 @@ entities:
       - id: 12
         type: integer
         name: value
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: number
     name: USB timer
     class: duration
@@ -115,10 +127,13 @@ entities:
       - id: 13
         name: value
         type: integer
-        unit: s
+        unit: min
         range:
           min: 0
           max: 86400
+        mapping:
+          - scale: 60
+            step: 60
   - entity: sensor
     category: diagnostic
     class: current

Некоторые файлы не были показаны из-за большого количества измененных файлов