From c63c713d59a71765a04b5dc0441567adaadbe26a Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sat, 25 Apr 2020 14:26:28 +0300 Subject: [PATCH] More kitchen dashboard tweaks --- config/configuration.yaml | 1 + .../button_card_templates/half_button.yaml | 24 +++++++++++++++++ .../home_dashboard/kitchen_dashboard.yaml | 27 +++++++++---------- config/lovelace/resources.yaml | 2 -- 4 files changed, 38 insertions(+), 16 deletions(-) create mode 100644 config/lovelace/button_card_templates/half_button.yaml diff --git a/config/configuration.yaml b/config/configuration.yaml index 0c99e04..e383837 100644 --- a/config/configuration.yaml +++ b/config/configuration.yaml @@ -35,6 +35,7 @@ lovelace: mode: yaml title: Kitchen icon: mdi:chef-hat + show_in_sidebar: false filename: kitchen-lovelace.yaml lovelace-floorlan: diff --git a/config/lovelace/button_card_templates/half_button.yaml b/config/lovelace/button_card_templates/half_button.yaml new file mode 100644 index 0000000..02220f5 --- /dev/null +++ b/config/lovelace/button_card_templates/half_button.yaml @@ -0,0 +1,24 @@ +half: + size: 30px + show_icon: false + hold_action: + action: more-info + styles: + card: + - height: 45px + - font-size: 14px + state: + - value: 'on' + styles: + card: + - background-color: var(--primary-color) + - color: black + icon: + - color: black + - value: 'home' + styles: + card: + - background-color: var(--primary-color) + - color: black + icon: + - color: black diff --git a/config/lovelace/home_dashboard/kitchen_dashboard.yaml b/config/lovelace/home_dashboard/kitchen_dashboard.yaml index b6a661b..1bb26da 100644 --- a/config/lovelace/home_dashboard/kitchen_dashboard.yaml +++ b/config/lovelace/home_dashboard/kitchen_dashboard.yaml @@ -31,20 +31,19 @@ template: small entity: light.tuya_kitchen_secondary_lights name: Secondary - - type: horizontal-stack - cards: - - type: custom:button-card - template: small - entity: light.hallway_all_lights - name: Hallway - - type: custom:button-card - template: small - entity: light.hallway_entrance_lights - name: Hallway main - - type: custom:button-card - template: small - entity: light.tuya_hallway_main_lights - name: Entrance + - type: vertical-stack + cards: + - type: custom:button-card + template: half + entity: light.hallway_entrance_lights + name: Entrance + - type: custom:button-card + template: half + entity: light.tuya_hallway_main_lights + name: Hallway + styles: + card: + - height: 46px - type: horizontal-stack title: Brita diff --git a/config/lovelace/resources.yaml b/config/lovelace/resources.yaml index c4d3c39..be473b4 100644 --- a/config/lovelace/resources.yaml +++ b/config/lovelace/resources.yaml @@ -32,8 +32,6 @@ url: /hacsfiles/lovelace-multiple-entity-row/multiple-entity-row.js - type: module url: /hacsfiles/lovelace-slider-entity-row/slider-entity-row.js -- type: module - url: /hacsfiles/lovelace-swipe-navigation/swipe-navigation.js - type: module url: /hacsfiles/lovelace-text-input-row/lovelace-text-input-row.js - type: module