From 658d28ed246998208ee856c361dac17337457d28 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Fri, 1 May 2020 21:54:09 +0300 Subject: [PATCH] More advanced dashboards cleanup --- config/advanced-lovelace.yaml | 2 - .../advanced_dashboard/01_living_room.yaml | 142 ------------------ .../advanced_dashboard/02_master_bedroom.yaml | 99 ------------ .../home_dashboard/living_room_dashboard.yaml | 15 ++ 4 files changed, 15 insertions(+), 243 deletions(-) delete mode 100644 config/lovelace/advanced_dashboard/01_living_room.yaml delete mode 100644 config/lovelace/advanced_dashboard/02_master_bedroom.yaml diff --git a/config/advanced-lovelace.yaml b/config/advanced-lovelace.yaml index 5f932c5..4bfd922 100644 --- a/config/advanced-lovelace.yaml +++ b/config/advanced-lovelace.yaml @@ -12,8 +12,6 @@ button_card_templates: !include_dir_merge_named lovelace/button_card_templates title: Sarah views: - !include lovelace/advanced_dashboard/00_home.yaml - - !include lovelace/advanced_dashboard/01_living_room.yaml - - !include lovelace/advanced_dashboard/02_master_bedroom.yaml - !include lovelace/advanced_dashboard/06_lights.yaml - !include lovelace/advanced_dashboard/07_media.yaml - !include lovelace/advanced_dashboard/09_network.yaml diff --git a/config/lovelace/advanced_dashboard/01_living_room.yaml b/config/lovelace/advanced_dashboard/01_living_room.yaml deleted file mode 100644 index 2b6c839..0000000 --- a/config/lovelace/advanced_dashboard/01_living_room.yaml +++ /dev/null @@ -1,142 +0,0 @@ -title: Living Room -path: living-room -icon: "mdi:sofa" -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: entities - title: Lights - show_header_toggle: false - entities: - - type: custom:slider-entity-row - entity: light.living_room_all_lights - name: All lights - toggle: true - step: 5 - - type: custom:fold-entity-row - head: - entity: light.living_room_main_lights - name: Main lights - entities: - - type: custom:slider-entity-row - entity: light.living_room_main_lights - name: Brightness - hide_state: true - step: 5 - - type: custom:slider-entity-row - entity: light.living_room_main_lights - name: Temperature - attribute: color_temp - hide_state: true - min: 153 - max: 500 - step: 5 - - type: custom:decluttering-card - template: light_with_fade_and_switch - variables: - - light: light.light_le_1 - - fade: switch.light_le_1_fade - - wifi: sensor.light_le_1_wifi - - type: custom:decluttering-card - template: light_with_fade_and_switch - variables: - - light: light.light_le_2 - - fade: switch.light_le_2_fade - - wifi: sensor.light_le_2_wifi - - type: custom:decluttering-card - template: light_with_fade_and_switch - variables: - - light: light.light_le_3 - - fade: switch.light_le_3_fade - - wifi: sensor.light_le_3_wifi - - type: custom:decluttering-card - template: light_with_fade_and_switch - variables: - - light: light.light_le_4 - - fade: switch.light_le_4_fade - - wifi: sensor.light_le_4_wifi - - type: custom:fold-entity-row - head: - type: custom:decluttering-card - template: light_with_fade_and_switch - variables: - - light: light.pc - - fade: switch.pc_light_fade - - wifi: sensor.pc_light_wifi - entities: - - type: custom:slider-entity-row - entity: light.pc - name: Brightness - hide_state: true - step: 5 - - - type: custom:decluttering-card - template: sonos_media_player - variables: - - player: media_player.living_room - - - type: "custom:mini-media-player" - entity: media_player.living_room_tv - - - type: "custom:mini-media-player" - entity: media_player.nvidia_shield - - - type: glance - show_state: false - entities: - - switch.titanium_power - - - type: vertical-stack - cards: - - type: glance - title: Window - show_icon: true - show_name: false - show_state: true - entities: - - binary_sensor.living_room_right_window_on_off_wrapper - - sensor.living_room_right_window_power - - type: entities - title: Power - entities: - - switch.outlet_1_switch - - sensor.outlet_1_power - - sensor.outlet_1_voltage - - sensor.outlet_1_current - - sensor.outlet_1_energy_today - - sensor.outlet_1_energy_yesterday - - sensor.outlet_1_energy_total - - sensor.outlet_1_energy_total_start_time - - sensor.outlet_1_wifi - - - type: vertical-stack - cards: - - type: picture-entity - aspect_ratio: 50% - entity: camera.amcrest_camera - show_name: true - show_state: true - - - type: entities - title: Camera Controls - show_header_toggle: false - entities: - - switch.camera - - binary_sensor.amcrest_camera_online - - binary_sensor.amcrest_camera_motion_detected diff --git a/config/lovelace/advanced_dashboard/02_master_bedroom.yaml b/config/lovelace/advanced_dashboard/02_master_bedroom.yaml deleted file mode 100644 index 7bd9850..0000000 --- a/config/lovelace/advanced_dashboard/02_master_bedroom.yaml +++ /dev/null @@ -1,99 +0,0 @@ -title: Master Bedroom -path: master-bedroom -icon: "mdi:bed-empty" -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: entities - title: Lights - show_header_toggle: false - entities: - - type: custom:slider-entity-row - entity: light.master_bedroom_all_lights - name: All lights - toggle: true - step: 5 - - type: custom:fold-entity-row - head: - entity: light.master_bedroom_main_lights - name: Main lights - entities: - - type: custom:slider-entity-row - entity: light.master_bedroom_main_lights - name: Brightness - hide_state: true - step: 5 - - type: custom:slider-entity-row - entity: light.master_bedroom_main_lights - name: Temperature - attribute: color_temp - hide_state: true - min: 153 - max: 500 - step: 5 - - type: custom:decluttering-card - template: light_with_fade_and_switch - variables: - - light: light.light_lohas_1 - - fade: switch.light_lohas_1_fade - - wifi: sensor.light_lohas_1_wifi - - type: custom:decluttering-card - template: light_with_fade_and_switch - variables: - - light: light.light_lohas_2 - - fade: switch.light_lohas_2_fade - - wifi: sensor.light_lohas_2_wifi - - type: custom:decluttering-card - template: light_with_fade_and_switch - variables: - - light: light.light_lohas_3 - - fade: switch.light_lohas_3_fade - - wifi: sensor.light_lohas_3_wifi - - type: custom:decluttering-card - template: light_with_fade_and_switch - variables: - - light: light.light_lohas_4 - - fade: switch.light_lohas_4_fade - - wifi: sensor.light_lohas_4_wifi - - light.bedside_light - - light.bed_led - - - type: custom:decluttering-card - template: sonos_media_player - variables: - - player: media_player.master_bedroom - - - type: vertical-stack - cards: - - type: glance - title: Window - show_name: false - entities: - - binary_sensor.bedroom_right_window_on_off_wrapper - - sensor.bedroom_right_window_power - - - type: custom:decluttering-card - template: bedroom_temperature_card - - - type: vertical-stack - cards: - - type: custom:decluttering-card - template: philips_airpurifier_card - variables: - - title: Air Purifier diff --git a/config/lovelace/home_dashboard/living_room_dashboard.yaml b/config/lovelace/home_dashboard/living_room_dashboard.yaml index 3c72bce..052e82a 100644 --- a/config/lovelace/home_dashboard/living_room_dashboard.yaml +++ b/config/lovelace/home_dashboard/living_room_dashboard.yaml @@ -175,3 +175,18 @@ show_state: false - entity: binary_sensor.amcrest_camera_motion_detected show_state: false + + - type: vertical-stack + title: Power + cards: + - type: entities + entities: + - switch.outlet_1_switch + - sensor.outlet_1_power + - sensor.outlet_1_voltage + - sensor.outlet_1_current + - sensor.outlet_1_energy_today + - sensor.outlet_1_energy_yesterday + - sensor.outlet_1_energy_total + - sensor.outlet_1_energy_total_start_time + - sensor.outlet_1_wifi