From 56134d35dd27ffd8eb2ef0428e67fe3760a12846 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Fri, 1 Mar 2024 19:26:59 +0900 Subject: [PATCH] Timers: eliminate more explicit mdi:timer and related icons - add `translation_key: timer` to more number and select entities that are timers by another name. - remove icons from `class: duration` sensors Explicit timer icons remain for now on number entities that are configuring some duration that doesn't strictly match with a "Timer". Issue #1579 --- .../devices/alecoair_d12_home_dehumidifier.yaml | 2 +- .../devices/asc_wifi_circuit_breaker.yaml | 2 +- .../tuya_local/devices/atomi_ceiling_fan.yaml | 2 +- .../tuya_local/devices/atorch_s1wp.yaml | 15 +++++++-------- .../aubess_rainpoint_irrigation_system.yaml | 1 - .../tuya_local/devices/ble_water_valve.yaml | 2 +- .../devices/breville_easyair_purifier.yaml | 1 - .../breville_smartairconnect_purifier.yaml | 1 - .../devices/calex_convector_heater.yaml | 2 +- .../devices/catit_pixi_smart_fountain.yaml | 1 - .../tuya_local/devices/cecotec_fan_light.yaml | 5 ++--- .../devices/dongguan_garage_door_opener.yaml | 2 +- .../devices/ebac_dj4000_dehumidifier.yaml | 1 - .../tuya_local/devices/es01_powerstrip.yaml | 2 +- .../devices/etersky_aroma_diffuser.yaml | 1 - .../tuya_local/devices/evsun_evcharger.yaml | 2 +- .../ge_jasco_ultra_pro_toggle_dimmer_v2.yaml | 2 +- .../devices/gratkit_filament_dryer.yaml | 1 - .../devices/grid_connect_usb_power_point.yaml | 4 ++-- .../tuya_local/devices/holman_wx1_taptimer.yaml | 4 ++-- .../tuya_local/devices/holman_wx2_taptimer.yaml | 12 ++++++------ .../tuya_local/devices/immax_neo_light_vento.yaml | 3 +-- .../devices/inkbird_sousvide_cooker.yaml | 1 - .../devices/inow_heater_element_v2.yaml | 2 +- .../tuya_local/devices/kogan_bladeless_fan.yaml | 1 - .../tuya_local/devices/ledkia_fan_light.yaml | 2 +- .../tuya_local/devices/logicom_powerstrip.yaml | 2 +- .../tuya_local/devices/loratap_relay.yaml | 2 +- .../tuya_local/devices/m027_curtain.yaml | 2 +- .../tuya_local/devices/neatsvor_x600_vacuum.yaml | 5 ----- .../devices/nedis_mobile_airconditioner.yaml | 4 ++-- .../tuya_local/devices/proscenic_m9_vacuum.yaml | 5 ----- .../tuya_local/devices/qnect_usb_powerstrip.yaml | 2 +- .../devices/royalclima_rcb150_ventilation.yaml | 4 ++-- .../tuya_local/devices/simple_gate_opener.yaml | 2 +- .../tuya_local/devices/smart_watering_device.yaml | 5 +---- .../devices/sunbeam_dual_bedwarmer.yaml | 4 ++-- .../tuya_local/devices/tesla_airconditioner.yaml | 4 ++-- .../devices/tontine_039-WIFI_blanket.yaml | 2 +- .../tuya_local/devices/vivion_airconditioner.yaml | 4 ++-- .../tuya_local/devices/yidi_fan_light_switch.yaml | 2 +- .../tuya_local/devices/zx_g30_alarm.yaml | 2 +- 42 files changed, 50 insertions(+), 75 deletions(-) diff --git a/custom_components/tuya_local/devices/alecoair_d12_home_dehumidifier.yaml b/custom_components/tuya_local/devices/alecoair_d12_home_dehumidifier.yaml index 8a92f8b525..5a45fe51a7 100755 --- a/custom_components/tuya_local/devices/alecoair_d12_home_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/alecoair_d12_home_dehumidifier.yaml @@ -85,7 +85,7 @@ secondary_entities: name: lock - entity: select name: Countdown - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 12 diff --git a/custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml b/custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml index 403f0aed40..8674c41c5f 100644 --- a/custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml +++ b/custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml @@ -10,7 +10,7 @@ primary_entity: secondary_entities: - entity: number name: Countdown - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 7 diff --git a/custom_components/tuya_local/devices/atomi_ceiling_fan.yaml b/custom_components/tuya_local/devices/atomi_ceiling_fan.yaml index 3901eedef3..1311cdaee3 100644 --- a/custom_components/tuya_local/devices/atomi_ceiling_fan.yaml +++ b/custom_components/tuya_local/devices/atomi_ceiling_fan.yaml @@ -58,7 +58,7 @@ secondary_entities: - entity: number name: Light timer category: config - icon: "mdi:timer" + translation_key: timer dps: - id: 26 type: integer diff --git a/custom_components/tuya_local/devices/atorch_s1wp.yaml b/custom_components/tuya_local/devices/atorch_s1wp.yaml index 8ef00f2f35..bcdd375a35 100644 --- a/custom_components/tuya_local/devices/atorch_s1wp.yaml +++ b/custom_components/tuya_local/devices/atorch_s1wp.yaml @@ -14,7 +14,7 @@ secondary_entities: - entity: number category: config name: Countdown - icon: "mdi:timer" + translation_key: timer dps: - id: 9 type: integer @@ -321,7 +321,6 @@ secondary_entities: name: Countdown timer category: diagnostic class: duration - icon: "mdi:timer-star" dps: - id: 124 name: sensor @@ -330,7 +329,7 @@ secondary_entities: - entity: number category: config name: Timing off time - icon: "mdi:timer" + translation_key: timer mode: slider dps: - id: 125 @@ -345,7 +344,7 @@ secondary_entities: - entity: number category: config name: Timing on time - icon: "mdi:timer" + translation_key: timer mode: slider dps: - id: 126 @@ -360,7 +359,7 @@ secondary_entities: - entity: number category: config name: Timing loop on time - icon: "mdi:timer" + translation_key: timer mode: slider dps: - id: 127 @@ -375,7 +374,7 @@ secondary_entities: - entity: number category: config name: Timing loop off time - icon: "mdi:timer" + translation_key: timer mode: slider dps: - id: 128 @@ -390,7 +389,7 @@ secondary_entities: - entity: number category: config name: Timing countdown on time - icon: "mdi:timer" + translation_key: timer mode: slider dps: - id: 129 @@ -405,7 +404,7 @@ secondary_entities: - entity: number category: config name: Timing countdown off time - icon: "mdi:timer" + translation_key: timer mode: slider dps: - id: 130 diff --git a/custom_components/tuya_local/devices/aubess_rainpoint_irrigation_system.yaml b/custom_components/tuya_local/devices/aubess_rainpoint_irrigation_system.yaml index 69c2045220..a03d5ac8ad 100644 --- a/custom_components/tuya_local/devices/aubess_rainpoint_irrigation_system.yaml +++ b/custom_components/tuya_local/devices/aubess_rainpoint_irrigation_system.yaml @@ -76,7 +76,6 @@ secondary_entities: category: diagnostic class: duration name: Remaining time - icon: "mdi:timer" dps: - id: 104 type: integer diff --git a/custom_components/tuya_local/devices/ble_water_valve.yaml b/custom_components/tuya_local/devices/ble_water_valve.yaml index 4626783897..72502406e5 100644 --- a/custom_components/tuya_local/devices/ble_water_valve.yaml +++ b/custom_components/tuya_local/devices/ble_water_valve.yaml @@ -107,7 +107,7 @@ secondary_entities: - entity: number name: Irrigation time category: config - icon: "mdi:timer" + translation_key: timer dps: - id: 11 type: integer diff --git a/custom_components/tuya_local/devices/breville_easyair_purifier.yaml b/custom_components/tuya_local/devices/breville_easyair_purifier.yaml index 3d351e14cb..9d661d0431 100644 --- a/custom_components/tuya_local/devices/breville_easyair_purifier.yaml +++ b/custom_components/tuya_local/devices/breville_easyair_purifier.yaml @@ -67,7 +67,6 @@ secondary_entities: name: Time left category: diagnostic class: duration - icon: "mdi:timer" dps: - id: 20 name: sensor diff --git a/custom_components/tuya_local/devices/breville_smartairconnect_purifier.yaml b/custom_components/tuya_local/devices/breville_smartairconnect_purifier.yaml index 637a5ad20e..c0023c0ae4 100644 --- a/custom_components/tuya_local/devices/breville_smartairconnect_purifier.yaml +++ b/custom_components/tuya_local/devices/breville_smartairconnect_purifier.yaml @@ -82,7 +82,6 @@ secondary_entities: name: Time left category: diagnostic class: duration - icon: "mdi:timer" dps: - id: 20 name: sensor diff --git a/custom_components/tuya_local/devices/calex_convector_heater.yaml b/custom_components/tuya_local/devices/calex_convector_heater.yaml index e2a1e2d87b..be151dc36a 100644 --- a/custom_components/tuya_local/devices/calex_convector_heater.yaml +++ b/custom_components/tuya_local/devices/calex_convector_heater.yaml @@ -127,7 +127,7 @@ secondary_entities: value: 24 hours - entity: sensor name: Time remaining - icon: "mdi:timer" + class: duration category: diagnostic dps: - id: 20 diff --git a/custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml b/custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml index 61f5ae33d6..35b4cd8ae8 100644 --- a/custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml +++ b/custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml @@ -86,7 +86,6 @@ secondary_entities: - entity: sensor name: UV runtime class: duration - icon: "mdi:timer-outline" category: diagnostic dps: - id: 11 diff --git a/custom_components/tuya_local/devices/cecotec_fan_light.yaml b/custom_components/tuya_local/devices/cecotec_fan_light.yaml index 00971ce5c2..d1109a5a11 100644 --- a/custom_components/tuya_local/devices/cecotec_fan_light.yaml +++ b/custom_components/tuya_local/devices/cecotec_fan_light.yaml @@ -91,8 +91,7 @@ secondary_entities: # - dps_val: night # value: night - entity: select - name: timer - icon: "mdi:timer" + translation_key: timer dps: - id: 22 name: option @@ -101,7 +100,7 @@ secondary_entities: - dps_val: "cancel" value: "cancel" - dps_val: "1h" - value: "1 hours" + value: "1 hour" - dps_val: "2h" value: "2 hours" - dps_val: "3h" diff --git a/custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml b/custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml index da43f3ba9a..f1b72615ee 100644 --- a/custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml +++ b/custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml @@ -30,7 +30,7 @@ primary_entity: secondary_entities: - entity: number name: Countdown - icon: mdi:timer-lock + translation_key: timer category: config dps: - id: 2 diff --git a/custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml b/custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml index a99eda5b6d..45061529f1 100644 --- a/custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml @@ -112,7 +112,6 @@ secondary_entities: - entity: sensor name: Time left category: diagnostic - icon: "mdi:timer-outline" class: duration dps: - id: 18 diff --git a/custom_components/tuya_local/devices/es01_powerstrip.yaml b/custom_components/tuya_local/devices/es01_powerstrip.yaml index d59fabff30..3d59fd4a95 100644 --- a/custom_components/tuya_local/devices/es01_powerstrip.yaml +++ b/custom_components/tuya_local/devices/es01_powerstrip.yaml @@ -78,7 +78,7 @@ secondary_entities: - entity: number category: config name: USB timer - icon: "mdi:timer" + translation_key: timer dps: - id: 8 name: value diff --git a/custom_components/tuya_local/devices/etersky_aroma_diffuser.yaml b/custom_components/tuya_local/devices/etersky_aroma_diffuser.yaml index 6c80084377..6c7788458e 100644 --- a/custom_components/tuya_local/devices/etersky_aroma_diffuser.yaml +++ b/custom_components/tuya_local/devices/etersky_aroma_diffuser.yaml @@ -98,7 +98,6 @@ secondary_entities: - entity: sensor name: Time remaining class: duration - icon: "mdi:timer" category: diagnostic dps: - id: 5 diff --git a/custom_components/tuya_local/devices/evsun_evcharger.yaml b/custom_components/tuya_local/devices/evsun_evcharger.yaml index 55cc8e2be7..967ae5bed7 100644 --- a/custom_components/tuya_local/devices/evsun_evcharger.yaml +++ b/custom_components/tuya_local/devices/evsun_evcharger.yaml @@ -267,7 +267,7 @@ secondary_entities: - entity: number name: Delayed charge timer category: config - icon: "mdi:timer" + translation_key: timer dps: - id: 28 type: integer diff --git a/custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml b/custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml index 61ded12c5d..e1e00c7600 100644 --- a/custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml +++ b/custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml @@ -35,7 +35,7 @@ secondary_entities: - entity: number category: config name: Countdown - icon: "mdi:timer" + translation_key: timer dps: - id: 6 name: value diff --git a/custom_components/tuya_local/devices/gratkit_filament_dryer.yaml b/custom_components/tuya_local/devices/gratkit_filament_dryer.yaml index d39592df25..c8d08216f1 100644 --- a/custom_components/tuya_local/devices/gratkit_filament_dryer.yaml +++ b/custom_components/tuya_local/devices/gratkit_filament_dryer.yaml @@ -33,7 +33,6 @@ secondary_entities: class: measurement - entity: sensor name: Time remaining - icon: "mdi:timer-sand" class: duration dps: - id: 101 diff --git a/custom_components/tuya_local/devices/grid_connect_usb_power_point.yaml b/custom_components/tuya_local/devices/grid_connect_usb_power_point.yaml index b71a388ae4..017651b9c5 100644 --- a/custom_components/tuya_local/devices/grid_connect_usb_power_point.yaml +++ b/custom_components/tuya_local/devices/grid_connect_usb_power_point.yaml @@ -15,7 +15,7 @@ secondary_entities: name: switch - entity: number name: Outlet timer - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 9 @@ -30,7 +30,7 @@ secondary_entities: unit: mi - entity: number name: USB timer - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 10 diff --git a/custom_components/tuya_local/devices/holman_wx1_taptimer.yaml b/custom_components/tuya_local/devices/holman_wx1_taptimer.yaml index ae7bc660ba..446fd7ddff 100644 --- a/custom_components/tuya_local/devices/holman_wx1_taptimer.yaml +++ b/custom_components/tuya_local/devices/holman_wx1_taptimer.yaml @@ -92,9 +92,9 @@ secondary_entities: range: min: 0 max: 60 - - entity: number + - entity: sensor name: Time left - icon: "mdi:timer" + class: duration category: diagnostic dps: - id: 109 diff --git a/custom_components/tuya_local/devices/holman_wx2_taptimer.yaml b/custom_components/tuya_local/devices/holman_wx2_taptimer.yaml index 811285258e..6948b9938e 100644 --- a/custom_components/tuya_local/devices/holman_wx2_taptimer.yaml +++ b/custom_components/tuya_local/devices/holman_wx2_taptimer.yaml @@ -91,7 +91,7 @@ secondary_entities: value: "Rain Delay" - entity: number name: Manual timer 1 - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 107 @@ -101,9 +101,9 @@ secondary_entities: range: min: 0 max: 60 - - entity: number + - entity: sensor name: Time left 1 - icon: "mdi:timer" + class: duration category: diagnostic dps: - id: 109 @@ -540,7 +540,7 @@ secondary_entities: value: "Rain Delay" - entity: number name: Manual timer 2 - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 154 @@ -550,9 +550,9 @@ secondary_entities: range: min: 0 max: 60 - - entity: number + - entity: sensor name: Time left 2 # doesn't seem to get populated with manual watering - icon: "mdi:timer" + class: duration category: diagnostic dps: - id: 156 diff --git a/custom_components/tuya_local/devices/immax_neo_light_vento.yaml b/custom_components/tuya_local/devices/immax_neo_light_vento.yaml index 753cf7a97c..d482a93c52 100644 --- a/custom_components/tuya_local/devices/immax_neo_light_vento.yaml +++ b/custom_components/tuya_local/devices/immax_neo_light_vento.yaml @@ -42,8 +42,7 @@ secondary_entities: type: boolean name: switch - entity: select - name: timer - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 22 diff --git a/custom_components/tuya_local/devices/inkbird_sousvide_cooker.yaml b/custom_components/tuya_local/devices/inkbird_sousvide_cooker.yaml index 461b57988e..ff5a9b82e7 100644 --- a/custom_components/tuya_local/devices/inkbird_sousvide_cooker.yaml +++ b/custom_components/tuya_local/devices/inkbird_sousvide_cooker.yaml @@ -70,7 +70,6 @@ secondary_entities: name: Remaining time category: diagnostic class: duration - icon: "mdi:timer" dps: - id: 106 type: integer diff --git a/custom_components/tuya_local/devices/inow_heater_element_v2.yaml b/custom_components/tuya_local/devices/inow_heater_element_v2.yaml index f57e9eb1da..a7cff30478 100644 --- a/custom_components/tuya_local/devices/inow_heater_element_v2.yaml +++ b/custom_components/tuya_local/devices/inow_heater_element_v2.yaml @@ -52,7 +52,7 @@ secondary_entities: name: switch - entity: select name: Boost - icon: "mdi:timer-outline" + translation_key: timer dps: - id: 19 type: string diff --git a/custom_components/tuya_local/devices/kogan_bladeless_fan.yaml b/custom_components/tuya_local/devices/kogan_bladeless_fan.yaml index edc24e492c..0168268270 100644 --- a/custom_components/tuya_local/devices/kogan_bladeless_fan.yaml +++ b/custom_components/tuya_local/devices/kogan_bladeless_fan.yaml @@ -118,7 +118,6 @@ secondary_entities: - entity: sensor name: Time Remaining class: duration - icon: "mdi:timer" category: diagnostic dps: - id: 12 diff --git a/custom_components/tuya_local/devices/ledkia_fan_light.yaml b/custom_components/tuya_local/devices/ledkia_fan_light.yaml index a55f4c45db..e8ae08d944 100644 --- a/custom_components/tuya_local/devices/ledkia_fan_light.yaml +++ b/custom_components/tuya_local/devices/ledkia_fan_light.yaml @@ -69,7 +69,7 @@ secondary_entities: - scale: 10 - entity: number name: Fan timer - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 64 diff --git a/custom_components/tuya_local/devices/logicom_powerstrip.yaml b/custom_components/tuya_local/devices/logicom_powerstrip.yaml index c2237bbfac..dd571bbfa2 100644 --- a/custom_components/tuya_local/devices/logicom_powerstrip.yaml +++ b/custom_components/tuya_local/devices/logicom_powerstrip.yaml @@ -99,7 +99,7 @@ secondary_entities: - entity: number category: config name: USB timer - icon: "mdi:timer" + translation_key: timer dps: - id: 13 name: value diff --git a/custom_components/tuya_local/devices/loratap_relay.yaml b/custom_components/tuya_local/devices/loratap_relay.yaml index 8e93f15441..7d52287d87 100644 --- a/custom_components/tuya_local/devices/loratap_relay.yaml +++ b/custom_components/tuya_local/devices/loratap_relay.yaml @@ -23,7 +23,7 @@ primary_entity: secondary_entities: - entity: number name: Countdown - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 9 diff --git a/custom_components/tuya_local/devices/m027_curtain.yaml b/custom_components/tuya_local/devices/m027_curtain.yaml index 4ae6f3ddd7..3bd8d56dc2 100644 --- a/custom_components/tuya_local/devices/m027_curtain.yaml +++ b/custom_components/tuya_local/devices/m027_curtain.yaml @@ -69,7 +69,7 @@ secondary_entities: value: Night - entity: sensor name: Time remaining - icon: "mdi:timer" + class: duration category: diagnostic dps: - id: 9 diff --git a/custom_components/tuya_local/devices/neatsvor_x600_vacuum.yaml b/custom_components/tuya_local/devices/neatsvor_x600_vacuum.yaml index 4ead6b7cbb..9a6b4bb4b2 100644 --- a/custom_components/tuya_local/devices/neatsvor_x600_vacuum.yaml +++ b/custom_components/tuya_local/devices/neatsvor_x600_vacuum.yaml @@ -144,7 +144,6 @@ secondary_entities: name: Cleaning time category: diagnostic class: duration - icon: "mdi:timer-star" dps: - id: 6 name: sensor @@ -187,7 +186,6 @@ secondary_entities: name: Side brush life category: diagnostic class: duration - icon: "mdi:timer-sand" dps: - id: 17 name: sensor @@ -209,7 +207,6 @@ secondary_entities: name: Main brush life category: diagnostic class: duration - icon: "mdi:timer-sand" dps: - id: 19 name: sensor @@ -231,7 +228,6 @@ secondary_entities: name: Filter life category: diagnostic class: duration - icon: "mdi:timer-sand" dps: - id: 21 name: sensor @@ -253,7 +249,6 @@ secondary_entities: name: Mop life category: diagnostic class: duration - icon: "mdi:timer-sand" dps: - id: 23 name: sensor diff --git a/custom_components/tuya_local/devices/nedis_mobile_airconditioner.yaml b/custom_components/tuya_local/devices/nedis_mobile_airconditioner.yaml index e1f85c0237..56f4f4db99 100644 --- a/custom_components/tuya_local/devices/nedis_mobile_airconditioner.yaml +++ b/custom_components/tuya_local/devices/nedis_mobile_airconditioner.yaml @@ -89,7 +89,7 @@ secondary_entities: - entity: number name: "On timer" category: config - icon: "mdi:timer" + translation_key: timer dps: - id: 104 type: integer @@ -104,7 +104,7 @@ secondary_entities: - entity: number name: "Off timer" category: config - icon: "mdi:timer" + translation_key: timer dps: - id: 105 type: integer diff --git a/custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml b/custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml index 37e096140f..46f4655af2 100644 --- a/custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml +++ b/custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml @@ -189,7 +189,6 @@ secondary_entities: name: Cleaning time category: diagnostic class: duration - icon: "mdi:timer-star" dps: - id: 6 name: sensor @@ -249,7 +248,6 @@ secondary_entities: name: Side brush life category: diagnostic class: duration - icon: "mdi:timer-sand" dps: - id: 17 name: sensor @@ -271,7 +269,6 @@ secondary_entities: name: Main brush life category: diagnostic class: duration - icon: "mdi:timer-sand" dps: - id: 19 name: sensor @@ -293,7 +290,6 @@ secondary_entities: name: Filter life category: diagnostic class: duration - icon: "mdi:timer-sand" dps: - id: 21 name: sensor @@ -315,7 +311,6 @@ secondary_entities: name: Mop life category: diagnostic class: duration - icon: "mdi:timer-sand" dps: - id: 23 name: sensor diff --git a/custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml b/custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml index b0cd884655..d6b4d6c02f 100644 --- a/custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml +++ b/custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml @@ -80,7 +80,7 @@ secondary_entities: - entity: number category: config name: USB timer - icon: "mdi:timer" + translation_key: timer dps: - id: 15 name: value diff --git a/custom_components/tuya_local/devices/royalclima_rcb150_ventilation.yaml b/custom_components/tuya_local/devices/royalclima_rcb150_ventilation.yaml index 3007be75ba..4d50bb27f3 100644 --- a/custom_components/tuya_local/devices/royalclima_rcb150_ventilation.yaml +++ b/custom_components/tuya_local/devices/royalclima_rcb150_ventilation.yaml @@ -76,7 +76,7 @@ secondary_entities: name: button - entity: select name: "On timer" - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 16 @@ -146,7 +146,7 @@ secondary_entities: hidden: true - entity: select name: "Off timer" - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 101 diff --git a/custom_components/tuya_local/devices/simple_gate_opener.yaml b/custom_components/tuya_local/devices/simple_gate_opener.yaml index 8b3da51dcd..ad1aa5b52d 100644 --- a/custom_components/tuya_local/devices/simple_gate_opener.yaml +++ b/custom_components/tuya_local/devices/simple_gate_opener.yaml @@ -23,7 +23,7 @@ secondary_entities: - entity: number name: Countdown category: config - icon: "mdi:timer" + translation_key: timer mode: box dps: - id: 7 diff --git a/custom_components/tuya_local/devices/smart_watering_device.yaml b/custom_components/tuya_local/devices/smart_watering_device.yaml index eefc27ef7e..605342c2ec 100644 --- a/custom_components/tuya_local/devices/smart_watering_device.yaml +++ b/custom_components/tuya_local/devices/smart_watering_device.yaml @@ -70,15 +70,12 @@ secondary_entities: max: 60 - entity: sensor name: "Run time remaining" - icon: "mdi:timer-sand" + class: duration dps: - id: 102 type: integer name: sensor unit: s - range: - min: 0 - max: 360 - id: 10 type: integer name: runtime diff --git a/custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml b/custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml index 086fd80cb7..bf4a153b10 100644 --- a/custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml +++ b/custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml @@ -190,7 +190,7 @@ secondary_entities: name: switch - entity: select name: Auto-off A - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 26 @@ -240,7 +240,7 @@ secondary_entities: value: "10h" - entity: select name: Auto-off B - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 27 diff --git a/custom_components/tuya_local/devices/tesla_airconditioner.yaml b/custom_components/tuya_local/devices/tesla_airconditioner.yaml index 2319837a55..b1a1791e1d 100644 --- a/custom_components/tuya_local/devices/tesla_airconditioner.yaml +++ b/custom_components/tuya_local/devices/tesla_airconditioner.yaml @@ -192,7 +192,7 @@ secondary_entities: - value: true - entity: switch name: "On timer" - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 109 @@ -200,7 +200,7 @@ secondary_entities: name: switch - entity: switch name: "Off timer" - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 110 diff --git a/custom_components/tuya_local/devices/tontine_039-WIFI_blanket.yaml b/custom_components/tuya_local/devices/tontine_039-WIFI_blanket.yaml index 48f643ed54..80fe994810 100644 --- a/custom_components/tuya_local/devices/tontine_039-WIFI_blanket.yaml +++ b/custom_components/tuya_local/devices/tontine_039-WIFI_blanket.yaml @@ -40,7 +40,7 @@ secondary_entities: - entity: sensor name: Countdown class: duration - icon: "mdi:timer" + translation_key: timer dps: - id: 10 name: sensor diff --git a/custom_components/tuya_local/devices/vivion_airconditioner.yaml b/custom_components/tuya_local/devices/vivion_airconditioner.yaml index 2ec6fc667c..1f298bc6b3 100644 --- a/custom_components/tuya_local/devices/vivion_airconditioner.yaml +++ b/custom_components/tuya_local/devices/vivion_airconditioner.yaml @@ -174,7 +174,7 @@ secondary_entities: name: switch - entity: switch name: Timer on - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 101 @@ -182,7 +182,7 @@ secondary_entities: name: switch - entity: switch name: Timer off - icon: "mdi:timer" + translation_key: timer category: config dps: - id: 102 diff --git a/custom_components/tuya_local/devices/yidi_fan_light_switch.yaml b/custom_components/tuya_local/devices/yidi_fan_light_switch.yaml index a727242ee1..da974427ce 100644 --- a/custom_components/tuya_local/devices/yidi_fan_light_switch.yaml +++ b/custom_components/tuya_local/devices/yidi_fan_light_switch.yaml @@ -23,7 +23,7 @@ secondary_entities: - entity: number name: Fan timer category: config - icon: "mdi:timer" + translation_key: timer dps: - id: 2 type: integer diff --git a/custom_components/tuya_local/devices/zx_g30_alarm.yaml b/custom_components/tuya_local/devices/zx_g30_alarm.yaml index e170c1ecdd..fdd85d5984 100644 --- a/custom_components/tuya_local/devices/zx_g30_alarm.yaml +++ b/custom_components/tuya_local/devices/zx_g30_alarm.yaml @@ -192,7 +192,7 @@ secondary_entities: - entity: switch name: Tick down category: config - icon: "mdi:timer" + icon: "mdi:metronome" dps: - id: 29 type: boolean