From ffa760ed9ddcb7568742705a532d1ed98034a8ea Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Wed, 13 Oct 2021 21:52:08 +0300 Subject: [PATCH] Initial guest bedroom config --- .../guest_bedroom_dashboard.yaml | 47 +++++++++++++++++++ .../home_dashboard/preferences_dashboard.yaml | 4 ++ config/packages/modes/guest_mode.yaml | 4 +- config/ui-lovelace.yaml | 7 +++ 4 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml diff --git a/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml b/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml new file mode 100644 index 0000000..d478d02 --- /dev/null +++ b/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml @@ -0,0 +1,47 @@ +- type: custom:mod-card + style: + layout-card: + .: | + * { + --primary-color: #188A9C + } + + $: + horizontal-layout: + $: + .: | + #columns { + margin: 0 20px; + grid-gap: 20px; + } + card: + type: custom:layout-card + layout_type: custom:horizontal-layout + layout: + max_cols: 3 + cards: + - type: vertical-stack + cards: + - type: custom:decluttering-card + template: v3_title + variables: + - title: Guest Bedroom + - type: horizontal-stack + cards: + - type: custom:button-card + template: v3_badge_temp + entity: sensor.guest_bedroom_weather_temperature + - type: custom:button-card + template: v3_badge_humidity + entity: sensor.guest_bedroom_weather_humidity + + - type: custom:decluttering-card + template: v3_section_title + variables: + - title: Lights + - type: horizontal-stack + cards: + - type: custom:button-card + template: v3_button_light + entity: light.light_lohas_6 + name: Night stand diff --git a/config/lovelace/home_dashboard/preferences_dashboard.yaml b/config/lovelace/home_dashboard/preferences_dashboard.yaml index 186198e..705b53e 100644 --- a/config/lovelace/home_dashboard/preferences_dashboard.yaml +++ b/config/lovelace/home_dashboard/preferences_dashboard.yaml @@ -76,6 +76,10 @@ entity: binary_sensor.pi_hole_enabled name: Pi-Hole icon: mdi:pi-hole + - type: custom:button-card + template: v3_button + entity: input_boolean.guest_bedroom + name: G. Bedroom Occupied - type: custom:decluttering-card template: v3_section_title diff --git a/config/packages/modes/guest_mode.yaml b/config/packages/modes/guest_mode.yaml index 8cd6e14..1420ce8 100644 --- a/config/packages/modes/guest_mode.yaml +++ b/config/packages/modes/guest_mode.yaml @@ -1,8 +1,10 @@ input_boolean: guest_mode: name: Guest mode - initial: off icon: mdi:human-greeting + guest_bedroom: + name: Guest Bedroom + icon: mdi:cogs automation: - alias: Guest mode ยท Enable diff --git a/config/ui-lovelace.yaml b/config/ui-lovelace.yaml index 19977c8..357d421 100644 --- a/config/ui-lovelace.yaml +++ b/config/ui-lovelace.yaml @@ -46,6 +46,13 @@ views: background: 'center / cover no-repeat url("/local/images/wallpapers-3/hallway_2.jpg") #188A9C fixed' cards: !include lovelace/home_dashboard/hallway_dashboard.yaml theme: sarah-noctis-grey + - title: Guest Bedroom + path: guest_bedroom + icon: "mdi:numeric-2-box-outline" + panel: true + background: '#188A9C' + cards: !include lovelace/home_dashboard/guest_bedroom_dashboard.yaml + theme: sarah-noctis-grey - title: Preferences path: Preferences icon: "mdi:cogs"