From c183596db6c0cb49b2bba022dabc41c55b4058e8 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sun, 21 Nov 2021 12:09:21 +0200 Subject: [PATCH] Put person buttons in more places --- .../button_card_templates/v3/v3_button_person.yaml | 2 +- .../lovelace/home_dashboard/bedroom_dashboard.yaml | 6 ++++++ .../home_dashboard/guest_bedroom_dashboard.yaml | 6 ++++++ .../home_dashboard/preferences_dashboard.yaml | 12 ++++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/config/lovelace/button_card_templates/v3/v3_button_person.yaml b/config/lovelace/button_card_templates/v3/v3_button_person.yaml index 1a9b95b..431d3c0 100644 --- a/config/lovelace/button_card_templates/v3/v3_button_person.yaml +++ b/config/lovelace/button_card_templates/v3/v3_button_person.yaml @@ -13,7 +13,7 @@ v3_button_person: - background-repeat: no-repeat - background-position: center center - background-size: cover - - border-color: var(--primary-color) + - border-color: var(--accent-color) state: - value: 'off' styles: diff --git a/config/lovelace/home_dashboard/bedroom_dashboard.yaml b/config/lovelace/home_dashboard/bedroom_dashboard.yaml index 068797a..e472074 100644 --- a/config/lovelace/home_dashboard/bedroom_dashboard.yaml +++ b/config/lovelace/home_dashboard/bedroom_dashboard.yaml @@ -28,6 +28,12 @@ - title: Bedroom - type: horizontal-stack cards: + - type: custom:button-card + template: v3_button_person + entity: input_boolean.georgi_home + styles: + card: + - background-image: url("/local/images/people/georgi.jpg") - type: custom:button-card template: v3_badge_temp entity: sensor.bedroom_weather_temperature diff --git a/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml b/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml index b4bb446..fbfc8d8 100644 --- a/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml +++ b/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml @@ -28,6 +28,12 @@ - title: Guest Bedroom - type: horizontal-stack cards: + - type: custom:button-card + template: v3_button_person + entity: input_boolean.player_2_home + styles: + card: + - background-image: url("/local/images/people/milena.jpg") - type: custom:button-card template: v3_badge_temp entity: sensor.guest_bedroom_weather_temperature diff --git a/config/lovelace/home_dashboard/preferences_dashboard.yaml b/config/lovelace/home_dashboard/preferences_dashboard.yaml index 7b5179d..c73012a 100644 --- a/config/lovelace/home_dashboard/preferences_dashboard.yaml +++ b/config/lovelace/home_dashboard/preferences_dashboard.yaml @@ -28,6 +28,18 @@ - title: Preferences - type: horizontal-stack cards: + - type: custom:button-card + template: v3_button_person + entity: input_boolean.georgi_home + styles: + card: + - background-image: url("/local/images/people/georgi.jpg") + - type: custom:button-card + template: v3_button_person + entity: input_boolean.player_2_home + styles: + card: + - background-image: url("/local/images/people/milena.jpg") - type: custom:button-card template: v3_badge entity: input_boolean.georgi_home