From 5b538146fad45a31f4ac98be1d98f0f519f3f236 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Tue, 8 Dec 2020 10:46:05 +0200 Subject: [PATCH] Rename button templates --- .../lovelace/advanced_dashboard/00_home.yaml | 12 ++--- .../lovelace/advanced_dashboard/13_dev.yaml | 8 +-- .../button_card_templates/default_button.yaml | 2 +- .../hallway_dashboard_mode_button.yaml | 2 +- .../humidity_button.yaml | 2 +- ...mobile_button.yaml => regular_button.yaml} | 12 ++--- .../button_card_templates/small_button.yaml | 10 ++-- .../cards/purfier_target_humidity_card.yaml | 2 +- .../hallway_dashboard/at_home_dashboard.yaml | 52 +++++++++---------- .../coming_home_dashboard.yaml | 46 ++++++++-------- .../leaving_home_dashboard.yaml | 12 ++--- .../home_dashboard/hallway_dashboard.yaml | 2 +- .../home_dashboard/kitchen_dashboard.yaml | 2 +- .../home_dashboard/living_room_dashboard.yaml | 4 +- .../home_dashboard/main_dashboard.yaml | 6 +-- config/lovelace/popup_cards.yaml | 28 +++++----- 16 files changed, 101 insertions(+), 101 deletions(-) rename config/lovelace/button_card_templates/{mobile_button.yaml => regular_button.yaml} (61%) diff --git a/config/lovelace/advanced_dashboard/00_home.yaml b/config/lovelace/advanced_dashboard/00_home.yaml index 61e1dc4..50f1a75 100644 --- a/config/lovelace/advanced_dashboard/00_home.yaml +++ b/config/lovelace/advanced_dashboard/00_home.yaml @@ -25,21 +25,21 @@ cards: - type: horizontal-stack cards: - type: custom:button-card - template: small + template: regular name: Automations icon: mdi:reload tap_action: action: call-service service: automation.reload - type: custom:button-card - template: small + template: regular name: Scripts icon: mdi:reload tap_action: action: call-service service: script.reload - type: custom:button-card - template: small + template: regular name: Scenes icon: mdi:reload tap_action: @@ -48,21 +48,21 @@ cards: - type: horizontal-stack cards: - type: custom:button-card - template: small + template: regular name: Groups icon: mdi:reload tap_action: action: call-service service: group.reload - type: custom:button-card - template: small + template: regular name: Theme icon: mdi:reload tap_action: action: call-service service: frontend.reload_themes - type: custom:button-card - template: small + template: regular name: Resources icon: mdi:reload tap_action: diff --git a/config/lovelace/advanced_dashboard/13_dev.yaml b/config/lovelace/advanced_dashboard/13_dev.yaml index f74ba91..3258b76 100644 --- a/config/lovelace/advanced_dashboard/13_dev.yaml +++ b/config/lovelace/advanced_dashboard/13_dev.yaml @@ -5,28 +5,28 @@ cards: cards: - type: custom:gui-sandbox - type: custom:button-card - template: small + template: regular icon: mdi:reload name: Theme tap_action: action: call-service service: frontend.reload_themes - type: custom:button-card - template: small + template: regular icon: mdi:reload name: Resources tap_action: action: call-service service: lovelace.reload_resources - type: custom:button-card - template: small + template: regular name: time picker icon: mdi:clock tap_action: action: navigate navigation_path: "#time_picker" - type: custom:button-card - template: small + template: regular icon: mdi:folder name: folder tap_action: diff --git a/config/lovelace/button_card_templates/default_button.yaml b/config/lovelace/button_card_templates/default_button.yaml index 1a44fed..5c46e3f 100644 --- a/config/lovelace/button_card_templates/default_button.yaml +++ b/config/lovelace/button_card_templates/default_button.yaml @@ -1,2 +1,2 @@ default: - template: [small, with_state_background] + template: [regular, with_state_background] diff --git a/config/lovelace/button_card_templates/hallway_dashboard_mode_button.yaml b/config/lovelace/button_card_templates/hallway_dashboard_mode_button.yaml index 9bfc16e..a1bf937 100644 --- a/config/lovelace/button_card_templates/hallway_dashboard_mode_button.yaml +++ b/config/lovelace/button_card_templates/hallway_dashboard_mode_button.yaml @@ -1,5 +1,5 @@ hallway_dashboard_mode: - template: [mobile] + template: [small] entity: input_select.hallway_dashboard_mode show_state: true show_name: false diff --git a/config/lovelace/button_card_templates/humidity_button.yaml b/config/lovelace/button_card_templates/humidity_button.yaml index 48c9502..e28acd6 100644 --- a/config/lovelace/button_card_templates/humidity_button.yaml +++ b/config/lovelace/button_card_templates/humidity_button.yaml @@ -1,6 +1,6 @@ humidity_button: type: custom:button-card - template: [small, progress] + template: [regular, progress] state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" icon: mdi:water-percent variables: diff --git a/config/lovelace/button_card_templates/mobile_button.yaml b/config/lovelace/button_card_templates/regular_button.yaml similarity index 61% rename from config/lovelace/button_card_templates/mobile_button.yaml rename to config/lovelace/button_card_templates/regular_button.yaml index e2a4a82..549de0f 100644 --- a/config/lovelace/button_card_templates/mobile_button.yaml +++ b/config/lovelace/button_card_templates/regular_button.yaml @@ -1,14 +1,14 @@ -mobile: - size: 24px +regular: + size: 30px hold_action: action: more-info styles: card: - - height: 70px + - height: 100px - font-size: 14px grid: - - height: 60px + - height: 90px img_cell: - - height: 40px + - height: 60px name: - - height: 24px + - height: 30px diff --git a/config/lovelace/button_card_templates/small_button.yaml b/config/lovelace/button_card_templates/small_button.yaml index 6121e67..33d278c 100644 --- a/config/lovelace/button_card_templates/small_button.yaml +++ b/config/lovelace/button_card_templates/small_button.yaml @@ -1,14 +1,14 @@ small: - size: 30px + size: 24px hold_action: action: more-info styles: card: - - height: 100px + - height: 70px - font-size: 14px grid: - - height: 90px - img_cell: - height: 60px + img_cell: + - height: 40px name: - - height: 30px + - height: 24px diff --git a/config/lovelace/decluttering_templates/cards/purfier_target_humidity_card.yaml b/config/lovelace/decluttering_templates/cards/purfier_target_humidity_card.yaml index c4d542f..b24fd77 100644 --- a/config/lovelace/decluttering_templates/cards/purfier_target_humidity_card.yaml +++ b/config/lovelace/decluttering_templates/cards/purfier_target_humidity_card.yaml @@ -1,7 +1,7 @@ purifier_target_humidity: card: type: custom:button-card - template: [small, progress, with_state_indicator] + template: [regular, progress, with_state_indicator] entity: sensor.purifier_target_humidity tap_action: action: call-service diff --git a/config/lovelace/hallway_dashboard/at_home_dashboard.yaml b/config/lovelace/hallway_dashboard/at_home_dashboard.yaml index c0ec9be..c115919 100644 --- a/config/lovelace/hallway_dashboard/at_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/at_home_dashboard.yaml @@ -22,50 +22,50 @@ cards: - type: horizontal-stack cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.living_room name: Living room - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.living_room_main name: Main - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.light_avatar_small_2 - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.living_room_ambient name: Ambient - type: horizontal-stack cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.master_bedroom name: Bedroom - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.master_bedroom_main name: Main - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.bed_led name: Bed - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.bedside name: Bedside - type: horizontal-stack cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.tuya_kitchen name: Kitchen - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.tuya_hallway_main name: Hallway - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.hallway_entrance name: Entrance @@ -82,11 +82,11 @@ cards: - type: horizontal-stack cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: input_boolean.speech_notifications name: Speech - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: binary_sensor.house_mode tap_action: action: call-service @@ -94,7 +94,7 @@ cards: service_data: entity_id: input_select.house_mode - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: input_boolean.guest_mode tap_action: action: toggle @@ -102,7 +102,7 @@ cards: - type: horizontal-stack cards: - type: custom:button-card - template: mobile + template: small entity: media_player.living_room_tv name: TV icon: mdi:television @@ -126,20 +126,20 @@ cards: styles: *on_styles - type: custom:button-card - template: [mobile, with_state_background, with_state_indicator] + template: [small, with_state_background, with_state_indicator] entity: switch.titanium variables: state_indicator_id: automation.titanium_turn_off_when_idle - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: sensor.synology_type_volume_1 name: Platinum icon: mdi:nas tap_action: action: more-info - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: binary_sensor.pi_hole_enabled name: Pi-Hole icon: mdi:pi-hole @@ -147,27 +147,27 @@ cards: - type: horizontal-stack cards: - type: custom:button-card - template: [ac_button, mobile] + template: [ac_button, small] - type: custom:button-card - template: [radiator_button, mobile] + template: [radiator_button, small] entity: climate.living_room_radiator_mode name: "Living room" - type: custom:button-card - template: [radiator_button, mobile] + template: [radiator_button, small] entity: climate.bedroom_radiator_mode name: "Bedroom" - type: custom:button-card - template: [radiator_button, mobile] + template: [radiator_button, small] entity: climate.kitchen_radiator_mode name: "Kitchen" - type: horizontal-stack cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: switch.camera name: Camera - type: custom:button-card - template: [mobile, with_state_background, with_state_indicator] + template: [small, with_state_background, with_state_indicator] entity: fan.philips_airpurifier variables: state_indicator_id: binary_sensor.purifier_filter_needs_change @@ -176,11 +176,11 @@ cards: state_indicator_on_color: var(--color-red) state_on_indicator_on_color: var(--color-red) - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: vacuum.vacuum name: Vacuum - type: custom:button-card - template: [brita_water, mobile] + template: [brita_water, small] - type: horizontal-stack diff --git a/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml b/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml index f338bb8..81fee7c 100644 --- a/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml @@ -22,50 +22,50 @@ cards: - type: horizontal-stack cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.living_room name: Living room - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.living_room_main name: Main - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.light_avatar_small_2 - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.living_room_ambient name: Ambient - type: horizontal-stack cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.master_bedroom name: Bedroom - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.master_bedroom_main name: Main - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.bed_led name: Bed - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.bedside name: Bedside - type: horizontal-stack cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.tuya_kitchen name: Kitchen - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.tuya_hallway_main name: Hallway - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: light.hallway_entrance name: Entrance @@ -84,7 +84,7 @@ cards: square: false cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: binary_sensor.georgi_home name: Georgi home? tap_action: @@ -93,16 +93,16 @@ cards: service_data: entity_id: input_boolean.georgi_home - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: input_boolean.speech_notifications name: Speech - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: input_boolean.guest_mode tap_action: action: toggle - type: custom:button-card - template: mobile + template: small entity: media_player.living_room_tv name: TV icon: mdi:television @@ -125,30 +125,30 @@ cards: - value: 'idle' styles: *on_styles - type: custom:button-card - template: [mobile, with_state_background, with_state_indicator] + template: [small, with_state_background, with_state_indicator] entity: switch.titanium variables: state_indicator_id: automation.titanium_turn_off_when_idle - type: custom:button-card - template: [ac_button, mobile] + template: [ac_button, small] - type: custom:button-card - template: [radiator_button, mobile] + template: [radiator_button, small] entity: climate.living_room_radiator_mode name: "Living room" - type: custom:button-card - template: [radiator_button, mobile] + template: [radiator_button, small] entity: climate.bedroom_radiator_mode name: "Bedroom" - type: custom:button-card - template: [radiator_button, mobile] + template: [radiator_button, small] entity: climate.kitchen_radiator_mode name: "Kitchen" - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: switch.camera name: Camera - type: custom:button-card - template: [mobile, with_state_indicator] + template: [small, with_state_indicator] entity: fan.philips_airpurifier variables: state_indicator_id: binary_sensor.purifier_filter_needs_change @@ -157,7 +157,7 @@ cards: state_indicator_on_color: var(--color-red) state_on_indicator_on_color: var(--color-red) - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: vacuum.vacuum name: Va diff --git a/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml b/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml index a687041..1b42a86 100644 --- a/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml @@ -18,26 +18,26 @@ cards: columns: 4 cards: - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: binary_sensor.living_room_right_window name: Living room - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: binary_sensor.bedroom_left_window name: Bedroom left - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: binary_sensor.bedroom_right_window name: Bedroom right - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: binary_sensor.kitchen_window name: Kitchen - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: binary_sensor.front_door - type: custom:button-card - template: [mobile, with_state_background] + template: [small, with_state_background] entity: binary_sensor.bedroom_door - type: custom:mini-graph-card diff --git a/config/lovelace/home_dashboard/hallway_dashboard.yaml b/config/lovelace/home_dashboard/hallway_dashboard.yaml index 72763e8..a7f970c 100644 --- a/config/lovelace/home_dashboard/hallway_dashboard.yaml +++ b/config/lovelace/home_dashboard/hallway_dashboard.yaml @@ -48,7 +48,7 @@ variables: state_indicator_id: automation.lighting_hallway_motion_on - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.hallway_motion_illuminance name: Lux variables: diff --git a/config/lovelace/home_dashboard/kitchen_dashboard.yaml b/config/lovelace/home_dashboard/kitchen_dashboard.yaml index 8321ef2..a641049 100644 --- a/config/lovelace/home_dashboard/kitchen_dashboard.yaml +++ b/config/lovelace/home_dashboard/kitchen_dashboard.yaml @@ -104,7 +104,7 @@ variables: state_indicator_id: automation.lighting_kitchen_motion_on - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.kitchen_motion_illuminance name: Lux variables: diff --git a/config/lovelace/home_dashboard/living_room_dashboard.yaml b/config/lovelace/home_dashboard/living_room_dashboard.yaml index 5bdb0f4..4f517c2 100644 --- a/config/lovelace/home_dashboard/living_room_dashboard.yaml +++ b/config/lovelace/home_dashboard/living_room_dashboard.yaml @@ -99,7 +99,7 @@ - type: custom:button-card template: ac_button - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.desk_outlet_power name: Desk power variables: @@ -163,6 +163,6 @@ - right_name: Humidity (6) - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.living_room_radiator_temperature name: Radiator temperature diff --git a/config/lovelace/home_dashboard/main_dashboard.yaml b/config/lovelace/home_dashboard/main_dashboard.yaml index 794f968..6fa511e 100644 --- a/config/lovelace/home_dashboard/main_dashboard.yaml +++ b/config/lovelace/home_dashboard/main_dashboard.yaml @@ -88,7 +88,7 @@ - type: horizontal-stack cards: - type: custom:button-card - template: small + template: regular entity: media_player.living_room_tv name: TV icon: mdi:television @@ -276,12 +276,12 @@ - type: horizontal-stack cards: - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.average_temperature icon: mdi:thermometer state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.average_humidity icon: mdi:water-percent state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" diff --git a/config/lovelace/popup_cards.yaml b/config/lovelace/popup_cards.yaml index 9eb6e0a..064d50d 100644 --- a/config/lovelace/popup_cards.yaml +++ b/config/lovelace/popup_cards.yaml @@ -336,44 +336,44 @@ sensor.average_temperature: - type: horizontal-stack cards: - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.multisensor_6_temperature name: Living room state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.trisensor_temperature name: Desk state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.living_room_radiator_temperature name: Radiator state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.bedroom_weather_temperature name: Bedroom state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - type: horizontal-stack cards: - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.kitchen_weather_temperature name: Kitchen state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.bathroom_weather_temperature name: Bathroom state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.hallway_weather_temperature name: Hallway state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.guest_bedroom_weather_temperature name: G. Bedroom state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" @@ -397,7 +397,7 @@ sensor.average_humidity: - type: horizontal-stack cards: - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.multisensor_6_relative_humidity state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" name: Living room @@ -408,7 +408,7 @@ sensor.average_humidity: high_value: 65 low_color: "var(--color-red)" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.bedroom_weather_humidity state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" name: Bedroom @@ -419,7 +419,7 @@ sensor.average_humidity: high_value: 65 low_color: "var(--color-red)" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.kitchen_weather_humidity state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" name: Kitchen @@ -432,7 +432,7 @@ sensor.average_humidity: - type: horizontal-stack cards: - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.bathroom_weather_humidity state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" name: Bathroom @@ -443,7 +443,7 @@ sensor.average_humidity: high_value: 65 low_color: "var(--color-red)" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.hallway_weather_humidity state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" name: Hallway @@ -454,7 +454,7 @@ sensor.average_humidity: high_value: 65 low_color: "var(--color-red)" - type: custom:button-card - template: [small, progress] + template: [regular, progress] entity: sensor.guest_bedroom_weather_humidity state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" name: G. Bedroom