From db2f39ea6a857665a1ff0739df6fe95e3574f305 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sun, 5 Dec 2021 11:33:39 +0200 Subject: [PATCH] Add clocks --- config/kitchen-lovelace.yaml | 12 +++++++++++- .../hallway_dashboard/at_home_dashboard.yaml | 9 +++++++++ .../hallway_dashboard/coming_home_dashboard.yaml | 9 +++++++++ .../hallway_dashboard/leaving_home_dashboard.yaml | 9 +++++++++ config/lovelace/resources.yaml | 3 +++ 5 files changed, 41 insertions(+), 1 deletion(-) diff --git a/config/kitchen-lovelace.yaml b/config/kitchen-lovelace.yaml index b7277ab..b33e8eb 100644 --- a/config/kitchen-lovelace.yaml +++ b/config/kitchen-lovelace.yaml @@ -26,4 +26,14 @@ views: margin: 0 20px; grid-gap: 20px; } - card: !include lovelace/home_dashboard/kitchen_dashboard_card.yaml + card: + type: vertical-stack + cards: + - type: 'custom:simple-clock-card' + hide_seconds: true + style: | + ha-card { + margin: 10px; + padding: 10px; + } + - !include lovelace/home_dashboard/kitchen_dashboard_card.yaml diff --git a/config/lovelace/hallway_dashboard/at_home_dashboard.yaml b/config/lovelace/hallway_dashboard/at_home_dashboard.yaml index 2b77373..6c16ba7 100644 --- a/config/lovelace/hallway_dashboard/at_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/at_home_dashboard.yaml @@ -89,6 +89,15 @@ card: icon: - color: var(--primary-color) + - type: 'custom:simple-clock-card' + hide_seconds: true + font_size: 2rem + padding_size: 10px + style: | + ha-card { + margin-top: 10px; + } + - type: custom:decluttering-card template: v3_section_title variables: diff --git a/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml b/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml index 719f3bc..de1951a 100644 --- a/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml @@ -92,6 +92,15 @@ card: icon: - color: var(--primary-color) + - type: 'custom:simple-clock-card' + hide_seconds: true + font_size: 2rem + padding_size: 10px + style: | + ha-card { + margin-top: 10px; + } + - type: custom:decluttering-card template: v3_section_title variables: diff --git a/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml b/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml index 1068efe..1b4f35e 100644 --- a/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml @@ -76,6 +76,15 @@ card: icon: - color: var(--primary-color) + - type: 'custom:simple-clock-card' + hide_seconds: true + font_size: 2rem + padding_size: 10px + style: | + ha-card { + margin-top: 10px; + } + - type: custom:decluttering-card template: v3_section_title variables: diff --git a/config/lovelace/resources.yaml b/config/lovelace/resources.yaml index 860f2b1..a528147 100644 --- a/config/lovelace/resources.yaml +++ b/config/lovelace/resources.yaml @@ -44,6 +44,8 @@ type: module - url: /hacsfiles/kb-better-graph-colors/kb-better-graph-colors.js type: module +- url: /hacsfiles/simple-clock-card/simple-clock-card.js + type: module - url: /hacsfiles/lovelace-swipe-navigation/swipe-navigation.js type: module - url: /hacsfiles/lovelace-template-entity-row/template-entity-row.js @@ -64,6 +66,7 @@ type: module + - url: /hacsfiles/lovelace-folder-card/folder-card.js type: module - url: /hacsfiles/lovelace-time-picker-card/time-picker-card.js