From 46a3048800872b2f383c26d1820cbd0086947d64 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sun, 31 May 2020 19:14:42 +0300 Subject: [PATCH] Add door dashboard --- config/advanced-lovelace.yaml | 5 +- .../{05_lights.yaml => 02_lights.yaml} | 0 .../{06_climate.yaml => 03_climate.yaml} | 0 .../lovelace/advanced_dashboard/04_doors.yaml | 54 +++++++++++++++++++ .../advanced_dashboard/10_system.yaml | 6 ++- 5 files changed, 61 insertions(+), 4 deletions(-) rename config/lovelace/advanced_dashboard/{05_lights.yaml => 02_lights.yaml} (100%) rename config/lovelace/advanced_dashboard/{06_climate.yaml => 03_climate.yaml} (100%) create mode 100644 config/lovelace/advanced_dashboard/04_doors.yaml diff --git a/config/advanced-lovelace.yaml b/config/advanced-lovelace.yaml index 2550c93..9fa9334 100644 --- a/config/advanced-lovelace.yaml +++ b/config/advanced-lovelace.yaml @@ -11,8 +11,9 @@ title: Sarah views: - !include lovelace/advanced_dashboard/00_home.yaml - !include lovelace/advanced_dashboard/01_new.yaml - - !include lovelace/advanced_dashboard/05_lights.yaml - - !include lovelace/advanced_dashboard/06_climate.yaml + - !include lovelace/advanced_dashboard/02_lights.yaml + - !include lovelace/advanced_dashboard/03_climate.yaml + - !include lovelace/advanced_dashboard/04_doors.yaml - !include lovelace/advanced_dashboard/07_media.yaml - !include lovelace/advanced_dashboard/08_automations.yaml - !include lovelace/advanced_dashboard/09_network.yaml diff --git a/config/lovelace/advanced_dashboard/05_lights.yaml b/config/lovelace/advanced_dashboard/02_lights.yaml similarity index 100% rename from config/lovelace/advanced_dashboard/05_lights.yaml rename to config/lovelace/advanced_dashboard/02_lights.yaml diff --git a/config/lovelace/advanced_dashboard/06_climate.yaml b/config/lovelace/advanced_dashboard/03_climate.yaml similarity index 100% rename from config/lovelace/advanced_dashboard/06_climate.yaml rename to config/lovelace/advanced_dashboard/03_climate.yaml diff --git a/config/lovelace/advanced_dashboard/04_doors.yaml b/config/lovelace/advanced_dashboard/04_doors.yaml new file mode 100644 index 0000000..99ffb8a --- /dev/null +++ b/config/lovelace/advanced_dashboard/04_doors.yaml @@ -0,0 +1,54 @@ +title: Doors +path: doors +icon: mdi:window-closed-variant +panel: true +cards: + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + padding: 0 10px; + } + #columns .column { + padding: 20px 10px; + } + card: + type: custom:layout-card + layout: horizontal + cards: + - type: vertical-stack + cards: + - type: horizontal-stack + title: Windows + cards: + - type: custom:button-card + template: default + entity: binary_sensor.living_room_right_window + name: Living room + + - type: custom:button-card + template: default + entity: binary_sensor.bedroom_left_window + name: Bedroom left + + - type: custom:button-card + template: default + entity: binary_sensor.bedroom_right_window + name: Bedroom right + + - type: custom:button-card + template: default + entity: binary_sensor.kitchen_window + name: Kitchen + + - type: horizontal-stack + title: Doors + cards: + - type: custom:button-card + template: default + entity: binary_sensor.front_door + - type: custom:button-card + template: default + entity: binary_sensor.bedroom_door diff --git a/config/lovelace/advanced_dashboard/10_system.yaml b/config/lovelace/advanced_dashboard/10_system.yaml index 9daf994..8496bef 100644 --- a/config/lovelace/advanced_dashboard/10_system.yaml +++ b/config/lovelace/advanced_dashboard/10_system.yaml @@ -45,16 +45,18 @@ cards: entity: sensor.front_door_power - type: custom:battery-entity entity: sensor.living_room_right_window_power + - type: divider - type: custom:battery-entity entity: sensor.bedroom_door_power - type: custom:battery-entity entity: sensor.bedroom_left_window_power - type: custom:battery-entity entity: sensor.bedroom_right_window_power - - type: custom:battery-entity - entity: sensor.kitchen_window_power - type: custom:battery-entity entity: sensor.bedroom_weather_power + - type: divider + - type: custom:battery-entity + entity: sensor.kitchen_window_power - type: custom:battery-entity entity: sensor.motion_1_power - type: custom:battery-entity