From a9f25053f55285ce3f0d330aeaf0be4ec88dd358 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Mon, 20 Apr 2020 14:58:41 +0300 Subject: [PATCH] Style with layout cards --- config/lovelace/home_dashboard/00_home.yaml | 241 ++++--- .../home_dashboard/01_living_room.yaml | 247 +++---- .../home_dashboard/02_master_bedroom.yaml | 301 ++++---- .../lovelace/home_dashboard/03_kitchen.yaml | 122 ++-- .../lovelace/home_dashboard/05_hallway.yaml | 95 +-- config/lovelace/home_dashboard/06_lights.yaml | 130 ++-- .../lovelace/home_dashboard/08_network.yaml | 649 +++++++++--------- config/lovelace/home_dashboard/09_system.yaml | 290 ++++---- .../lovelace/home_dashboard/10_covid_19.yaml | 70 +- 9 files changed, 1136 insertions(+), 1009 deletions(-) diff --git a/config/lovelace/home_dashboard/00_home.yaml b/config/lovelace/home_dashboard/00_home.yaml index 771af4c..1935d05 100644 --- a/config/lovelace/home_dashboard/00_home.yaml +++ b/config/lovelace/home_dashboard/00_home.yaml @@ -1,122 +1,139 @@ title: Home path: default_view icon: "mdi:home" -badges: [] +panel: true cards: - # Column 1: Active Controls - - type: vertical-stack - cards: - - type: vertical-stack - title: Lights - cards: - - type: horizontal-stack - cards: - - type: custom:button-card - template: small - entity: light.ceiling_lights - name: Ceiling - - type: custom:button-card - template: small - entity: light.living_room_main_lights - name: Living room - - type: custom:button-card - template: small - entity: light.master_bedroom_main_lights - name: "M. Bedroom" - - type: custom:button-card - template: small - entity: light.tuya_hallway_main_lights - name: Hallway - - type: horizontal-stack - cards: - - type: custom:button-card - template: small - entity: light.tuya_kitchen_all_lights - name: Kitchen - - type: custom:button-card - template: small - entity: light.pc - - type: custom:button-card - template: small - entity: light.bedside_light - name: Bedside - - type: custom:button-card - template: small - entity: light.tuya_hallway_entrance_lights - name: Entrance + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + margin: 0 10px; + } + #columns .column { + margin: 20px 10px; + } + card: + type: custom:layout-card + layout: horizontal + max_columns: 3 + cards: + # Column 1: Active Controls + - type: vertical-stack + cards: + - type: vertical-stack + title: Lights + cards: + - type: horizontal-stack + cards: + - type: custom:button-card + template: small + entity: light.ceiling_lights + name: Ceiling + - type: custom:button-card + template: small + entity: light.living_room_main_lights + name: Living room + - type: custom:button-card + template: small + entity: light.master_bedroom_main_lights + name: "M. Bedroom" + - type: custom:button-card + template: small + entity: light.tuya_hallway_main_lights + name: Hallway + - type: horizontal-stack + cards: + - type: custom:button-card + template: small + entity: light.tuya_kitchen_all_lights + name: Kitchen + - type: custom:button-card + template: small + entity: light.pc + - type: custom:button-card + template: small + entity: light.bedside_light + name: Bedside + - type: custom:button-card + template: small + entity: light.tuya_hallway_entrance_lights + name: Entrance - - type: entities - title: Devices - show_header_toggle: false - entities: - - switch.camera - - media_player.living_room_tv - - media_player.nvidia_shield - - media_player.shield - - fan.philips_airpurifier + - type: entities + title: Devices + show_header_toggle: false + entities: + - switch.camera + - media_player.living_room_tv + - media_player.nvidia_shield + - media_player.shield + - fan.philips_airpurifier - - type: custom:decluttering-card - template: sonos_media_player - variables: - - player: media_player.master_bedroom + - type: custom:decluttering-card + template: sonos_media_player + variables: + - player: media_player.master_bedroom - - type: entities - show_header_toggle: false - entities: - - binary_sensor.sonos_recoverable + - type: entities + show_header_toggle: false + entities: + - binary_sensor.sonos_recoverable - # Column 2: Sensors - - type: vertical-stack - cards: - - type: horizontal-stack - title: Sensors - cards: - - type: custom:button-card - template: small - entity: binary_sensor.front_door_on_off_wrapper - - type: custom:button-card - template: small - entity: binary_sensor.living_room_right_window_on_off_wrapper - name: Living room - - type: custom:button-card - template: small - entity: binary_sensor.bedroom_right_window_on_off_wrapper - name: M. Bedroom - - type: custom:button-card - template: small - entity: device_tracker.carbon + - break + # Column 2: Sensors + - type: vertical-stack + cards: + - type: horizontal-stack + title: Sensors + cards: + - type: custom:button-card + template: small + entity: binary_sensor.front_door_on_off_wrapper + - type: custom:button-card + template: small + entity: binary_sensor.living_room_right_window_on_off_wrapper + name: Living room + - type: custom:button-card + template: small + entity: binary_sensor.bedroom_right_window_on_off_wrapper + name: M. Bedroom + - type: custom:button-card + template: small + entity: device_tracker.carbon - - type: entities - title: Manual controls - show_header_toggle: false - entities: - - input_boolean.speech_notifications - - input_boolean.guest_mode - - input_boolean.domestina - - input_boolean.sleep_mode - - input_boolean.georgi_home + - type: entities + title: Manual controls + show_header_toggle: false + entities: + - input_boolean.speech_notifications + - input_boolean.guest_mode + - input_boolean.domestina + - input_boolean.sleep_mode + - input_boolean.georgi_home - - type: "custom:travel-time-card" - title: Travel time - columns: - - name - - duration - - distance - entities: - - sensor.home_to_work - - sensor.work_to_home - - # Column 3: Misc - - type: vertical-stack - title: Alarm - cards: - - type: entities - entities: - - entity: input_boolean.alarm_enabled - name: Alarm - - input_datetime.alarm_time - - type: "custom:weather-card" - current: true - details: true - entity: weather.dark_sky - forecast: true + - type: "custom:travel-time-card" + title: Travel time + columns: + - name + - duration + - distance + entities: + - sensor.home_to_work + - sensor.work_to_home + - break + # Column 3: Misc + - type: vertical-stack + title: Alarm + cards: + - type: entities + entities: + - entity: input_boolean.alarm_enabled + name: Alarm + - input_datetime.alarm_time + - type: "custom:weather-card" + current: true + details: true + entity: weather.dark_sky + forecast: true diff --git a/config/lovelace/home_dashboard/01_living_room.yaml b/config/lovelace/home_dashboard/01_living_room.yaml index 7849f78..3971765 100644 --- a/config/lovelace/home_dashboard/01_living_room.yaml +++ b/config/lovelace/home_dashboard/01_living_room.yaml @@ -1,133 +1,144 @@ title: Living Room path: living-room icon: "mdi:sofa" -badges: [] panel: true cards: - - 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 + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + margin: 0 10px; + } + #columns .column { + margin: 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: 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 + 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_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 + - type: custom:fold-entity-row + head: + 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 - - 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 + - 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: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.living_room_tv - - type: "custom:mini-media-player" - entity: media_player.nvidia_shield + - type: "custom:mini-media-player" + entity: media_player.nvidia_shield - - type: glance - show_state: false - entities: - - binary_sensor.titanium - - entity: script.titanium_start - name: Start + - type: glance + show_state: false + entities: + - binary_sensor.titanium + - entity: script.titanium_start + name: Start - - 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: 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: 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 + - 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/home_dashboard/02_master_bedroom.yaml b/config/lovelace/home_dashboard/02_master_bedroom.yaml index 679eb4b..0fb245a 100644 --- a/config/lovelace/home_dashboard/02_master_bedroom.yaml +++ b/config/lovelace/home_dashboard/02_master_bedroom.yaml @@ -1,154 +1,169 @@ title: Master Bedroom path: master-bedroom icon: "mdi:bed-empty" -badges: [] +panel: true 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_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 - - light.bedside_light + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + margin: 0 10px; + } + #columns .column { + margin: 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_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 + - light.bedside_light - - type: custom:decluttering-card - template: sonos_media_player - variables: - - player: media_player.master_bedroom + - 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: 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:mini-graph-card" - animate: true - line_width: 3 - points_per_hour: 1 - show: - average: true - extrema: true - entities: - - entity: sensor.bedroom_weather_temperature - name: Temperature + - type: "custom:mini-graph-card" + animate: true + line_width: 3 + points_per_hour: 1 + show: + average: true + extrema: true + entities: + - entity: sensor.bedroom_weather_temperature + name: Temperature - - type: horizontal-stack - cards: - - type: "custom:mini-graph-card" - name: Humidity - font_size: 75 - icon: "mdi:water" - line_color: green - line_width: 8 - entities: - - sensor.bedroom_weather_humidity + - type: horizontal-stack + cards: + - type: "custom:mini-graph-card" + name: Humidity + font_size: 75 + icon: "mdi:water" + line_color: green + line_width: 8 + entities: + - sensor.bedroom_weather_humidity - - type: "custom:mini-graph-card" - name: Pressure - entities: - - sensor.bedroom_weather_pressure - font_size: 75 - line_color: var(--accent-color) - line_width: 8 + - type: "custom:mini-graph-card" + name: Pressure + entities: + - sensor.bedroom_weather_pressure + font_size: 75 + line_color: var(--accent-color) + line_width: 8 - - type: "custom:mini-graph-card" - name: Air Quality - font_size: 75 - icon: "mdi:weather-windy" - line_color: "#e74c3c" - line_width: 8 - entities: - - sensor.purifier_air_quality + - type: "custom:mini-graph-card" + name: Air Quality + font_size: 75 + icon: "mdi:weather-windy" + line_color: "#e74c3c" + line_width: 8 + entities: + - sensor.purifier_air_quality - - type: vertical-stack - cards: - - type: entities - title: Air Purifier - show_header_toggle: false - entities: - - entity: fan.philips_airpurifier - name: Purifier Working - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: sensor.purifier_air_quality - name: Sensors - icon: mdi:air-purifier - open: true - entities: - - sensor.purifier_air_quality - - sensor.purifier_allergens - - sensor.purifier_temperature - - sensor.purifier_humidity - - sensor.purifier_water_level - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: sensor.purifier_speed - name: Mode - entities: - - sensor.purifier_speed - - sensor.purifier_mode - - sensor.purifier_brightness - - sensor.purifier_target_humidity - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: sensor.purifier_pre_filter - name: Filters - entities: - - sensor.purifier_pre_filter - - sensor.purifier_hepa_filter - - sensor.purifier_carbon_filter - - sensor.purifier_wick_filter + - type: vertical-stack + cards: + - type: entities + title: Air Purifier + show_header_toggle: false + entities: + - entity: fan.philips_airpurifier + name: Purifier Working + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: sensor.purifier_air_quality + name: Sensors + icon: mdi:air-purifier + open: true + entities: + - sensor.purifier_air_quality + - sensor.purifier_allergens + - sensor.purifier_temperature + - sensor.purifier_humidity + - sensor.purifier_water_level + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: sensor.purifier_speed + name: Mode + entities: + - sensor.purifier_speed + - sensor.purifier_mode + - sensor.purifier_brightness + - sensor.purifier_target_humidity + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: sensor.purifier_pre_filter + name: Filters + entities: + - sensor.purifier_pre_filter + - sensor.purifier_hepa_filter + - sensor.purifier_carbon_filter + - sensor.purifier_wick_filter diff --git a/config/lovelace/home_dashboard/03_kitchen.yaml b/config/lovelace/home_dashboard/03_kitchen.yaml index df8219c..79f0b0c 100644 --- a/config/lovelace/home_dashboard/03_kitchen.yaml +++ b/config/lovelace/home_dashboard/03_kitchen.yaml @@ -4,60 +4,72 @@ icon: "mdi:chef-hat" badges: [] panel: true cards: - - type: custom:layout-card - layout: horizontal - max_columns: 3 - cards: - - type: vertical-stack - cards: - - type: entities - title: Lights - show_header_toggle: false - entities: - - light.tuya_kitchen_all_lights - - light.tuya_kitchen_main_lights - - light.tuya_kitchen_secondary_lights - - type: divider - - type: custom:fold-entity-row - entity: light.kitchen_main_lights - name: Main lights - entities: - - light.light_le_11 - - light.light_le_12 - - light.light_orbecco_1 + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + margin: 0 10px; + } + #columns .column { + margin: 20px 10px; + } + card: + type: custom:layout-card + layout: horizontal + max_columns: 3 + cards: + - type: vertical-stack + cards: + - type: entities + title: Lights + show_header_toggle: false + entities: + - light.tuya_kitchen_all_lights + - light.tuya_kitchen_main_lights + - light.tuya_kitchen_secondary_lights + - type: divider + - type: custom:fold-entity-row + entity: light.kitchen_main_lights + name: Main lights + entities: + - light.light_le_11 + - light.light_le_12 + - light.light_orbecco_1 - - type: custom:decluttering-card - template: sonos_media_player - variables: - - player: media_player.kitchen - - type: vertical-stack - cards: - - type: glance - title: Sensors - entities: - - entity: binary_sensor.motion_1_ias_zone - - entity: sensor.motion_1_illuminance - - entity: binary_sensor.motion_1_occupancy - - entity: sensor.motion_1_power - - type: "custom:mini-graph-card" - animate: true - points_per_hour: 1 - hours_to_show: 48 - show: - graph: bar - average: true - extrema: true - entities: - - entity: sensor.motion_1_illuminance + - type: custom:decluttering-card + template: sonos_media_player + variables: + - player: media_player.kitchen + - type: vertical-stack + cards: + - type: glance + title: Sensors + entities: + - entity: binary_sensor.motion_1_ias_zone + - entity: sensor.motion_1_illuminance + - entity: binary_sensor.motion_1_occupancy + - entity: sensor.motion_1_power + - type: "custom:mini-graph-card" + animate: true + points_per_hour: 1 + hours_to_show: 48 + show: + graph: bar + average: true + extrema: true + entities: + - entity: sensor.motion_1_illuminance - - type: vertical-stack - cards: - - type: entities - title: Brita Filter - icon: mdi:filter-outline - entities: - - input_number.brita_remaining_liters - - input_datetime.brita_next_change - - binary_sensor.brita_should_change_filter - - script.brita_new_filter - - script.brita_pour_water + - type: vertical-stack + cards: + - type: entities + title: Brita Filter + icon: mdi:filter-outline + entities: + - input_number.brita_remaining_liters + - input_datetime.brita_next_change + - binary_sensor.brita_should_change_filter + - script.brita_new_filter + - script.brita_pour_water diff --git a/config/lovelace/home_dashboard/05_hallway.yaml b/config/lovelace/home_dashboard/05_hallway.yaml index 4e5c5bf..b1504df 100644 --- a/config/lovelace/home_dashboard/05_hallway.yaml +++ b/config/lovelace/home_dashboard/05_hallway.yaml @@ -1,46 +1,61 @@ title: Hallway path: hallway icon: "mdi:door-closed" -badges: [] +panel: true cards: - - type: entities - title: Lights - show_header_toggle: false - entities: - - light.tuya_hallway_all_lights - - light.tuya_hallway_entrance_lights - - light.tuya_hallway_main_lights - - type: divider - - type: custom:fold-entity-row - entity: light.hallway_entrance_lights - name: Entrance lights - entities: - - light.light_le_5 - - light.light_le_6 - - type: custom:fold-entity-row - entity: light.hallway_main_lights - name: Main lights - entities: - - light.light_le_7 - - light.light_le_8 + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + margin: 0 10px; + } + #columns .column { + margin: 20px 10px; + } + card: + type: custom:layout-card + layout: horizontal + cards: + - type: entities + title: Lights + show_header_toggle: false + entities: + - light.tuya_hallway_all_lights + - light.tuya_hallway_entrance_lights + - light.tuya_hallway_main_lights + - type: divider + - type: custom:fold-entity-row + entity: light.hallway_entrance_lights + name: Entrance lights + entities: + - light.light_le_5 + - light.light_le_6 + - type: custom:fold-entity-row + entity: light.hallway_main_lights + name: Main lights + entities: + - light.light_le_7 + - light.light_le_8 - - type: vertical-stack - cards: - - type: glance - title: Sensors - entities: - - entity: binary_sensor.motion_2_ias_zone - - entity: sensor.motion_2_illuminance - - entity: binary_sensor.motion_2_occupancy - - entity: sensor.motion_2_power + - type: vertical-stack + cards: + - type: glance + title: Sensors + entities: + - entity: binary_sensor.motion_2_ias_zone + - entity: sensor.motion_2_illuminance + - entity: binary_sensor.motion_2_occupancy + - entity: sensor.motion_2_power - - type: "custom:mini-graph-card" - animate: true - points_per_hour: 1 - hours_to_show: 48 - show: - graph: bar - average: true - extrema: true - entities: - - entity: sensor.motion_2_illuminance + - type: "custom:mini-graph-card" + animate: true + points_per_hour: 1 + hours_to_show: 48 + show: + graph: bar + average: true + extrema: true + entities: + - entity: sensor.motion_2_illuminance diff --git a/config/lovelace/home_dashboard/06_lights.yaml b/config/lovelace/home_dashboard/06_lights.yaml index 2414c8d..299c0b5 100644 --- a/config/lovelace/home_dashboard/06_lights.yaml +++ b/config/lovelace/home_dashboard/06_lights.yaml @@ -1,65 +1,79 @@ title: Lights path: lights -panel: false icon: mdi:lightbulb -badges: [] +panel: true cards: - - type: entities - title: Living room - icon: mdi:sofa - show_header_toggle: false - entities: - - light.living_room_all_lights - - light.living_room_main_lights - - light.light_lohas_1 - - light.light_lohas_2 - - light.light_lohas_3 - - light.light_lohas_4 - - light.pc + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + margin: 0 10px; + } + #columns .column { + margin: 20px 10px; + } + card: + type: custom:layout-card + layout: horizontal + cards: + - type: entities + title: Living room + icon: mdi:sofa + show_header_toggle: false + entities: + - light.living_room_all_lights + - light.living_room_main_lights + - light.light_lohas_1 + - light.light_lohas_2 + - light.light_lohas_3 + - light.light_lohas_4 + - light.pc - - type: entities - title: Master bedroom - icon: mdi:bed-empty - show_header_toggle: false - entities: - - light.master_bedroom_all_lights - - light.master_bedroom_main_lights - - light.light_le_1 - - light.light_le_2 - - light.light_le_3 - - light.light_le_4 - - light.bedside_light + - type: entities + title: Master bedroom + icon: mdi:bed-empty + show_header_toggle: false + entities: + - light.master_bedroom_all_lights + - light.master_bedroom_main_lights + - light.light_le_1 + - light.light_le_2 + - light.light_le_3 + - light.light_le_4 + - light.bedside_light - - type: entities - title: Kitchen - icon: mdi:chef-hat - show_header_toggle: false - entities: - - light.tuya_kitchen_all_lights - - light.tuya_kitchen_main_lights - - light.tuya_kitchen_secondary_lights - - type: divider - - light.kitchen_main_lights - - light.light_le_11 - - light.light_le_12 - - light.light_orbecco_1 - - light.kitchen_secondary_lights - - light.light_le_9 - - light.light_le_10 + - type: entities + title: Kitchen + icon: mdi:chef-hat + show_header_toggle: false + entities: + - light.tuya_kitchen_all_lights + - light.tuya_kitchen_main_lights + - light.tuya_kitchen_secondary_lights + - type: divider + - light.kitchen_main_lights + - light.light_le_11 + - light.light_le_12 + - light.light_orbecco_1 + - light.kitchen_secondary_lights + - light.light_le_9 + - light.light_le_10 - - type: entities - title: Hallway - icon: mdi:door-closed - show_header_toggle: false - entities: - - light.tuya_hallway_all_lights - - light.tuya_hallway_main_lights - - light.tuya_hallway_entrance_lights - - type: divider - - light.hallway_all_lights - - light.hallway_main_lights - - light.hallway_entrance_lights - - light.light_le_5 - - light.light_le_6 - - light.light_le_7 - - light.light_le_8 + - type: entities + title: Hallway + icon: mdi:door-closed + show_header_toggle: false + entities: + - light.tuya_hallway_all_lights + - light.tuya_hallway_main_lights + - light.tuya_hallway_entrance_lights + - type: divider + - light.hallway_all_lights + - light.hallway_main_lights + - light.hallway_entrance_lights + - light.light_le_5 + - light.light_le_6 + - light.light_le_7 + - light.light_le_8 diff --git a/config/lovelace/home_dashboard/08_network.yaml b/config/lovelace/home_dashboard/08_network.yaml index 23368c2..332c48c 100644 --- a/config/lovelace/home_dashboard/08_network.yaml +++ b/config/lovelace/home_dashboard/08_network.yaml @@ -1,338 +1,353 @@ title: Network path: network icon: "mdi:server-network" -badges: [] +panel: true cards: - - type: vertical-stack - cards: - - type: entities - title: Titanium - icon: mdi:desktop-tower - entities: - - binary_sensor.titanium - - type: custom:dummy-entity-row - entity: binary_sensor.titanium - tap_action: - action: call-service - service: script.titanium_start - name: Start - icon: mdi:power + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + margin: 0 10px; + } + #columns .column { + margin: 20px 10px; + } + card: + type: custom:layout-card + layout: horizontal + cards: + - type: vertical-stack + cards: + - type: entities + title: Titanium + icon: mdi:desktop-tower + entities: + - binary_sensor.titanium + - type: custom:dummy-entity-row + entity: binary_sensor.titanium + tap_action: + action: call-service + service: script.titanium_start + name: Start + icon: mdi:power - - type: entities - style: | - #states > div:last-child { - margin: 0 -16px -16px -16px; - } - title: Platinum - icon: mdi:nas - entities: - - type: custom:dummy-entity-row - entity: sensor.synology_dsm_cpu_load_total - name: Open admin UI - icon: mdi:firefox - tap_action: - action: url - url_path: http://platinum.lan:5000 - - type: custom:fold-entity-row - head: - type: custom:decluttering-card - template: percentage_card - variables: - - name: CPU - - entity: sensor.synology_dsm_cpu_load_total - - icon: mdi:chip - - orange: 40 - - red: 60 - entities: - - entity: sensor.synology_dsm_cpu_load_system - name: CPU load (System) - - entity: sensor.synology_dsm_cpu_load_user - name: CPU load (User) - - entity: sensor.synology_dsm_cpu_load_other - name: CPU load (Other) - - entity: sensor.synology_dsm_cpu_load_1_min - name: CPU load (1 min) - - entity: sensor.synology_dsm_cpu_load_5_min - name: CPU load (5 min) - - entity: sensor.synology_dsm_cpu_load_15_min - name: CPU load (15 min) + - type: entities + style: | + #states > div:last-child { + margin: 0 -16px -16px -16px; + } + title: Platinum + icon: mdi:nas + entities: + - type: custom:dummy-entity-row + entity: sensor.synology_dsm_cpu_load_total + name: Open admin UI + icon: mdi:firefox + tap_action: + action: url + url_path: http://platinum.lan:5000 + - type: custom:fold-entity-row + head: + type: custom:decluttering-card + template: percentage_card + variables: + - name: CPU + - entity: sensor.synology_dsm_cpu_load_total + - icon: mdi:chip + - orange: 40 + - red: 60 + entities: + - entity: sensor.synology_dsm_cpu_load_system + name: CPU load (System) + - entity: sensor.synology_dsm_cpu_load_user + name: CPU load (User) + - entity: sensor.synology_dsm_cpu_load_other + name: CPU load (Other) + - entity: sensor.synology_dsm_cpu_load_1_min + name: CPU load (1 min) + - entity: sensor.synology_dsm_cpu_load_5_min + name: CPU load (5 min) + - entity: sensor.synology_dsm_cpu_load_15_min + name: CPU load (15 min) - - type: custom:fold-entity-row - head: - type: custom:decluttering-card - template: percentage_card - variables: - - name: Memory - - entity: sensor.synology_dsm_memory_usage_real - - icon: mdi:memory - - orange: 70 - - red: 85 - entities: - - entity: sensor.synology_dsm_memory_cached - name: Memory cached - - entity: sensor.synology_dsm_memory_size - name: Memory size - - entity: sensor.synology_dsm_memory_available_real - name: Memory available (Real) - - entity: sensor.synology_dsm_memory_total_real - name: Memory total (Real) - - entity: sensor.synology_dsm_memory_available_swap - name: Memory available (Swap) - - entity: sensor.synology_dsm_memory_total_swap - name: Memory total (Swap) + - type: custom:fold-entity-row + head: + type: custom:decluttering-card + template: percentage_card + variables: + - name: Memory + - entity: sensor.synology_dsm_memory_usage_real + - icon: mdi:memory + - orange: 70 + - red: 85 + entities: + - entity: sensor.synology_dsm_memory_cached + name: Memory cached + - entity: sensor.synology_dsm_memory_size + name: Memory size + - entity: sensor.synology_dsm_memory_available_real + name: Memory available (Real) + - entity: sensor.synology_dsm_memory_total_real + name: Memory total (Real) + - entity: sensor.synology_dsm_memory_available_swap + name: Memory available (Swap) + - entity: sensor.synology_dsm_memory_total_swap + name: Memory total (Swap) - - type: custom:fold-entity-row - head: - type: custom:decluttering-card - template: percentage_card - variables: - - name: Volume 1 - - entity: sensor.synology_dsm_volume_used_volume_1 - - icon: mdi:harddisk - - orange: 85 - - red: 90 - entities: - - entity: sensor.synology_dsm_average_disk_temp_volume_1 - name: Average temperature - - entity: sensor.synology_dsm_maximum_disk_temp_volume_1 - name: Maximum temperature - - entity: sensor.synology_dsm_used_space_volume_1 - name: Used space - - entity: sensor.synology_dsm_total_size_volume_1 - name: Total size + - type: custom:fold-entity-row + head: + type: custom:decluttering-card + template: percentage_card + variables: + - name: Volume 1 + - entity: sensor.synology_dsm_volume_used_volume_1 + - icon: mdi:harddisk + - orange: 85 + - red: 90 + entities: + - entity: sensor.synology_dsm_average_disk_temp_volume_1 + name: Average temperature + - entity: sensor.synology_dsm_maximum_disk_temp_volume_1 + name: Maximum temperature + - entity: sensor.synology_dsm_used_space_volume_1 + name: Used space + - entity: sensor.synology_dsm_total_size_volume_1 + name: Total size - - type: custom:fold-entity-row - head: - type: custom:decluttering-card - template: percentage_card - variables: - - name: Volume 2 - - entity: sensor.synology_dsm_volume_used_volume_2 - - icon: mdi:harddisk - - orange: 85 - - red: 90 - entities: - - entity: sensor.synology_dsm_average_disk_temp_volume_2 - name: Average temperature - - entity: sensor.synology_dsm_maximum_disk_temp_volume_2 - name: Maximum temperature - - entity: sensor.synology_dsm_used_space_volume_2 - name: Used space - - entity: sensor.synology_dsm_total_size_volume_2 - name: Total size + - type: custom:fold-entity-row + head: + type: custom:decluttering-card + template: percentage_card + variables: + - name: Volume 2 + - entity: sensor.synology_dsm_volume_used_volume_2 + - icon: mdi:harddisk + - orange: 85 + - red: 90 + entities: + - entity: sensor.synology_dsm_average_disk_temp_volume_2 + name: Average temperature + - entity: sensor.synology_dsm_maximum_disk_temp_volume_2 + name: Maximum temperature + - entity: sensor.synology_dsm_used_space_volume_2 + name: Used space + - entity: sensor.synology_dsm_total_size_volume_2 + name: Total size - - type: custom:fold-entity-row - head: - entity: sensor.synology_dsm_status_sda - name: /sda - entities: - - entity: sensor.synology_dsm_temperature_sda - name: Temperature - - entity: sensor.synology_dsm_below_min_remaining_life_sda - name: Below minimum remaining life - - entity: sensor.synology_dsm_exceeded_max_bad_sectors_sda - name: Exceeded max bad sectors - - type: custom:fold-entity-row - head: - entity: sensor.synology_dsm_status_sdb - name: /sdb - entities: - - entity: sensor.synology_dsm_temperature_sdb - name: Temperature - - entity: sensor.synology_dsm_below_min_remaining_life_sdb - name: Below minimum remaining life - - entity: sensor.synology_dsm_exceeded_max_bad_sectors_sdb - name: Exceeded max bad sectors - - type: custom:fold-entity-row - head: - entity: sensor.synology_dsm_status_sdc - name: /sdc - entities: - - entity: sensor.synology_dsm_temperature_sdc - name: Temperature - - entity: sensor.synology_dsm_below_min_remaining_life_sdc - name: Below minimum remaining life - - entity: sensor.synology_dsm_exceeded_max_bad_sectors_sdc - name: Exceeded max bad sectors - - type: custom:fold-entity-row - head: - entity: sensor.synology_dsm_status_sdd - name: /sdd - entities: - - entity: sensor.synology_dsm_temperature_sdd - name: Temperature - - entity: sensor.synology_dsm_below_min_remaining_life_sdd - name: Below minimum remaining life - - entity: sensor.synology_dsm_exceeded_max_bad_sectors_sdd - name: Exceeded max bad sectors + - type: custom:fold-entity-row + head: + entity: sensor.synology_dsm_status_sda + name: /sda + entities: + - entity: sensor.synology_dsm_temperature_sda + name: Temperature + - entity: sensor.synology_dsm_below_min_remaining_life_sda + name: Below minimum remaining life + - entity: sensor.synology_dsm_exceeded_max_bad_sectors_sda + name: Exceeded max bad sectors + - type: custom:fold-entity-row + head: + entity: sensor.synology_dsm_status_sdb + name: /sdb + entities: + - entity: sensor.synology_dsm_temperature_sdb + name: Temperature + - entity: sensor.synology_dsm_below_min_remaining_life_sdb + name: Below minimum remaining life + - entity: sensor.synology_dsm_exceeded_max_bad_sectors_sdb + name: Exceeded max bad sectors + - type: custom:fold-entity-row + head: + entity: sensor.synology_dsm_status_sdc + name: /sdc + entities: + - entity: sensor.synology_dsm_temperature_sdc + name: Temperature + - entity: sensor.synology_dsm_below_min_remaining_life_sdc + name: Below minimum remaining life + - entity: sensor.synology_dsm_exceeded_max_bad_sectors_sdc + name: Exceeded max bad sectors + - type: custom:fold-entity-row + head: + entity: sensor.synology_dsm_status_sdd + name: /sdd + entities: + - entity: sensor.synology_dsm_temperature_sdd + name: Temperature + - entity: sensor.synology_dsm_below_min_remaining_life_sdd + name: Below minimum remaining life + - entity: sensor.synology_dsm_exceeded_max_bad_sectors_sdd + name: Exceeded max bad sectors - - type: custom:hui-horizontal-stack-card - cards: - - type: entities - entities: - - entity: sensor.synology_dsm_network_down - name: Down - style: | - :host { - --paper-item-icon-color: green; - } - style: &network-indicator-style - .: | - ha-card { - box-shadow: none; - background: none; - margin-top: -1.4em; - max-height: 1px; - z-index: 2; - } - - "#states div": - hui-sensor-entity-row: - $: - hui-generic-entity-row: - $: | - .info { - margin-left: 0 !important; - flex-grow: 0 !important; - text-overflow: unset !important; - white-space: unset !important; + - type: custom:hui-horizontal-stack-card + cards: + - type: entities + entities: + - entity: sensor.synology_dsm_network_down + name: Down + style: | + :host { + --paper-item-icon-color: green; } - - type: entities - entities: - - entity: sensor.synology_dsm_network_up - name: Up - style: | - :host { - --paper-item-icon-color: var(--accent-color); - } - style: *network-indicator-style + style: &network-indicator-style + .: | + ha-card { + box-shadow: none; + background: none; + margin-top: -1.4em; + max-height: 1px; + z-index: 2; + } - - type: custom:mini-graph-card - align_state: left - entities: - - color: var(--accent-color) - entity: sensor.synology_dsm_network_up - - color: green - entity: sensor.synology_dsm_network_down - group: false - points_per_hour: 1 - line_width: 3 - hour24: true - hours_to_show: 24 - show: - fill: fade - icon: false - name: false - state: false - name_adaptive_color: true - labels: hover - legend: false - tap_action: - action: none + "#states div": + hui-sensor-entity-row: + $: + hui-generic-entity-row: + $: | + .info { + margin-left: 0 !important; + flex-grow: 0 !important; + text-overflow: unset !important; + white-space: unset !important; + } + - type: entities + entities: + - entity: sensor.synology_dsm_network_up + name: Up + style: | + :host { + --paper-item-icon-color: var(--accent-color); + } + style: *network-indicator-style - - type: vertical-stack - cards: - - type: entities - title: SARAH - icon: mdi:home-assistant - entities: - - binary_sensor.updater - - sensor.uptime - - entity: sensor.home_assistant_v2_db - name: Database - icon: mdi:database - - entity: sensor.home_assistant_log - name: Logs - icon: mdi:view-list - - type: entities - title: Pi-Hole - icon: mdi:pi-hole - entities: - - switch.pihole_temp_disable - - type: custom:dummy-entity-row - entity: sun.sun - name: Open admin UI - icon: mdi:firefox - tap_action: - action: url - url_path: http://cobalt.lan:8081/admin + - type: custom:mini-graph-card + align_state: left + entities: + - color: var(--accent-color) + entity: sensor.synology_dsm_network_up + - color: green + entity: sensor.synology_dsm_network_down + group: false + points_per_hour: 1 + line_width: 3 + hour24: true + hours_to_show: 24 + show: + fill: fade + icon: false + name: false + state: false + name_adaptive_color: true + labels: hover + legend: false + tap_action: + action: none - - type: horizontal-stack - cards: - - type: custom:mini-graph-card - name: Total queries - font_size: 75 - line_color: var(--accent-color) - line_width: 6 - entities: - - sensor.pi_hole_dns_queries_today + - type: vertical-stack + cards: + - type: entities + title: SARAH + icon: mdi:home-assistant + entities: + - binary_sensor.updater + - sensor.uptime + - entity: sensor.home_assistant_v2_db + name: Database + icon: mdi:database + - entity: sensor.home_assistant_log + name: Logs + icon: mdi:view-list + - type: entities + title: Pi-Hole + icon: mdi:pi-hole + entities: + - switch.pihole_temp_disable + - type: custom:dummy-entity-row + entity: sun.sun + name: Open admin UI + icon: mdi:firefox + tap_action: + action: url + url_path: http://cobalt.lan:8081/admin - - type: custom:mini-graph-card - name: Queries blocked - font_size: 75 - line_color: var(--accent-color) - line_width: 6 - entities: - - sensor.pi_hole_ads_blocked_today + - type: horizontal-stack + cards: + - type: custom:mini-graph-card + name: Total queries + font_size: 75 + line_color: var(--accent-color) + line_width: 6 + entities: + - sensor.pi_hole_dns_queries_today - - type: horizontal-stack - cards: - - type: custom:mini-graph-card - name: Percent blocked - font_size: 75 - line_color: var(--accent-color) - line_width: 6 - entities: - - sensor.pi_hole_ads_percentage_blocked_today + - type: custom:mini-graph-card + name: Queries blocked + font_size: 75 + line_color: var(--accent-color) + line_width: 6 + entities: + - sensor.pi_hole_ads_blocked_today - - type: custom:mini-graph-card - name: Seen clients - font_size: 75 - line_color: var(--accent-color) - line_width: 6 - entities: - - sensor.pi_hole_seen_clients + - type: horizontal-stack + cards: + - type: custom:mini-graph-card + name: Percent blocked + font_size: 75 + line_color: var(--accent-color) + line_width: 6 + entities: + - sensor.pi_hole_ads_percentage_blocked_today - - type: vertical-stack - cards: - - type: "custom:mini-graph-card" - animate: true - points_per_hour: 1 - hours_to_show: 72 - show: - graph: bar - average: true - extrema: true - entities: - - entity: sensor.fast_com_download + - type: custom:mini-graph-card + name: Seen clients + font_size: 75 + line_color: var(--accent-color) + line_width: 6 + entities: + - sensor.pi_hole_seen_clients - - type: "custom:mini-graph-card" - animate: true - points_per_hour: 1 - hours_to_show: 72 - show: - graph: bar - average: true - extrema: true - entities: - - entity: sensor.speedtest_download + - type: vertical-stack + cards: + - type: "custom:mini-graph-card" + animate: true + points_per_hour: 1 + hours_to_show: 72 + show: + graph: bar + average: true + extrema: true + entities: + - entity: sensor.fast_com_download - - type: horizontal-stack - cards: - - type: custom:mini-graph-card - points_per_hour: 0.3 - hours_to_show: 72 - font_size: 75 - line_color: var(--accent-color) - line_width: 6 - entities: - - sensor.speedtest_upload + - type: "custom:mini-graph-card" + animate: true + points_per_hour: 1 + hours_to_show: 72 + show: + graph: bar + average: true + extrema: true + entities: + - entity: sensor.speedtest_download - - type: custom:mini-graph-card - font_size: 75 - points_per_hour: 0.3 - hours_to_show: 72 - line_color: var(--accent-color) - line_width: 6 - entities: - - sensor.speedtest_ping + - type: horizontal-stack + cards: + - type: custom:mini-graph-card + points_per_hour: 0.3 + hours_to_show: 72 + font_size: 75 + line_color: var(--accent-color) + line_width: 6 + entities: + - sensor.speedtest_upload + + - type: custom:mini-graph-card + font_size: 75 + points_per_hour: 0.3 + hours_to_show: 72 + line_color: var(--accent-color) + line_width: 6 + entities: + - sensor.speedtest_ping diff --git a/config/lovelace/home_dashboard/09_system.yaml b/config/lovelace/home_dashboard/09_system.yaml index 993fb90..603cb0d 100644 --- a/config/lovelace/home_dashboard/09_system.yaml +++ b/config/lovelace/home_dashboard/09_system.yaml @@ -1,158 +1,174 @@ title: System path: system icon: "mdi:hammer-wrench" +panel: true cards: - - type: entities - title: Automations - show_header_toggle: false - entities: - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: binary_sensor.georgi_home - name: Presence - entities: - - input_boolean.routine_welcome_home - - automation.presence_arrival_detection - - automation.presence_coming_home - - automation.presence_leaving_home - - automation.routine_coming_home_left_work - - automation.presence_leaving_work + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + margin: 0 10px; + } + #columns .column { + margin: 20px 10px; + } + card: + type: custom:layout-card + layout: horizontal + cards: + - type: entities + title: Automations + show_header_toggle: false + entities: + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: binary_sensor.georgi_home + name: Presence + entities: + - input_boolean.routine_welcome_home + - automation.presence_arrival_detection + - automation.presence_coming_home + - automation.presence_leaving_home + - automation.routine_coming_home_left_work + - automation.presence_leaving_work - - type: divider + - type: divider - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: sun.sun - name: Lighting - icon: mdi:lightbulb - entities: - - automation.lighting_turn_on_ceiling_lights_after_sunset - - automation.lighting_turn_off_all_lights_after_sunrise - - automation.lighting_adjust_temperature_on_start - - automation.lighting_master_bedroom_toggle_lights_on_bedside_switch_single_click - - automation.lighting_master_bedroom_adjust_temperature_based_on_time - - automation.lighting_living_room_adjust_temperature_based_on_time - - automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90 - - automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180 - - automation.lighting_night_mode_kitchen_turn_lights_on_motion - - automation.lighting_night_mode_hallway_turn_lights_on_motion - - automation.lighting_sync_tasmota_states_on_start_up + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: sun.sun + name: Lighting + icon: mdi:lightbulb + entities: + - automation.lighting_turn_on_ceiling_lights_after_sunset + - automation.lighting_turn_off_all_lights_after_sunrise + - automation.lighting_adjust_temperature_on_start + - automation.lighting_master_bedroom_toggle_lights_on_bedside_switch_single_click + - automation.lighting_master_bedroom_adjust_temperature_based_on_time + - automation.lighting_living_room_adjust_temperature_based_on_time + - automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90 + - automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180 + - automation.lighting_night_mode_kitchen_turn_lights_on_motion + - automation.lighting_night_mode_hallway_turn_lights_on_motion + - automation.lighting_sync_tasmota_states_on_start_up - - type: divider + - type: divider - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: sun.sun - name: Music - icon: mdi:music-note - entities: - - automation.music_play_pause_on_magic_cube_knock - - automation.music_volume_down_on_magic_cube_rotate_left - - automation.music_volume_up_on_magic_cube_rotate_right + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: sun.sun + name: Music + icon: mdi:music-note + entities: + - automation.music_play_pause_on_magic_cube_knock + - automation.music_volume_down_on_magic_cube_rotate_left + - automation.music_volume_up_on_magic_cube_rotate_right - - type: divider + - type: divider - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: sun.sun - name: Media - icon: mdi:play-box-outline - entities: - - automation.tv_join_beam_to_sonos_group_when_off - - automation.tv_plex_setup_house_for_plex - - automation.tv_plex_restore_house_after_plex - - automation.youtube_download_latest_pds - - automation.media_sonos_put_beam_in_night_mode - - automation.media_sonos_put_beam_in_day_mode + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: sun.sun + name: Media + icon: mdi:play-box-outline + entities: + - automation.tv_join_beam_to_sonos_group_when_off + - automation.tv_plex_setup_house_for_plex + - automation.tv_plex_restore_house_after_plex + - automation.youtube_download_latest_pds + - automation.media_sonos_put_beam_in_night_mode + - automation.media_sonos_put_beam_in_day_mode - - type: divider + - type: divider - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: input_boolean.sleep_mode - entities: - - automation.routine_bedtime_toggle_on_bedside_switch_hold - - automation.sleep_mode_enable - - automation.sleep_mode_disable - - automation.sleep_mode_toggle_on_bedside_switch_double_click - - automation.alarm_wake_up - - automation.alarm_set_time + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: input_boolean.sleep_mode + entities: + - automation.routine_bedtime_toggle_on_bedside_switch_hold + - automation.sleep_mode_enable + - automation.sleep_mode_disable + - automation.sleep_mode_toggle_on_bedside_switch_double_click + - automation.alarm_wake_up + - automation.alarm_set_time - - type: divider + - type: divider - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: input_boolean.guest_mode - entities: - - automation.guest_mode_enable - - automation.guest_mode_disable - - automation.guest_mode_enable_from_telegram - - automation.guest_mode_disable_from_telegram + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: input_boolean.guest_mode + entities: + - automation.guest_mode_enable + - automation.guest_mode_disable + - automation.guest_mode_enable_from_telegram + - automation.guest_mode_disable_from_telegram - - type: divider + - type: divider - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: input_boolean.domestina - entities: - - automation.domestina_automate_start - - automation.domestina_start - - automation.domestina_automate_end - - automation.domestina_end + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: input_boolean.domestina + entities: + - automation.domestina_automate_start + - automation.domestina_start + - automation.domestina_automate_end + - automation.domestina_end - - type: divider + - type: divider - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: sun.sun - name: Security - icon: mdi:shield-home - entities: - - automation.security_door_opened_while_away - - automation.camera_startup + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: sun.sun + name: Security + icon: mdi:shield-home + entities: + - automation.security_door_opened_while_away + - automation.camera_startup - - type: divider + - type: divider - - type: custom:fold-entity-row - head: - type: custom:dummy-entity-row - entity: sun.sun - icon: mdi:cogs - name: System - entities: - - automation.system_announce_start - - automation.system_telegram_announce_status - - automation.speech_telegram_action_do_nothing - - automation.ifttt_call_service + - type: custom:fold-entity-row + head: + type: custom:dummy-entity-row + entity: sun.sun + icon: mdi:cogs + name: System + entities: + - automation.system_announce_start + - automation.system_telegram_announce_status + - automation.speech_telegram_action_do_nothing + - automation.ifttt_call_service - - type: entities - title: Batteries - show_header_toggle: false - entities: - - type: custom:battery-entity - entity: sensor.carbon_battery_level - - type: divider - - type: custom:battery-entity - entity: sensor.front_door_power - - type: custom:battery-entity - entity: sensor.living_room_right_window_power - - type: custom:battery-entity - entity: sensor.bedroom_right_window_power - - type: custom:battery-entity - entity: sensor.bedroom_weather_power - - type: custom:battery-entity - entity: sensor.cube_power - - type: custom:battery-entity - entity: sensor.master_bedroom_bedside_switch_power - - type: custom:battery-entity - entity: sensor.motion_1_power - - type: custom:battery-entity - entity: sensor.motion_2_power + - type: entities + title: Batteries + show_header_toggle: false + entities: + - type: custom:battery-entity + entity: sensor.carbon_battery_level + - type: divider + - type: custom:battery-entity + entity: sensor.front_door_power + - type: custom:battery-entity + entity: sensor.living_room_right_window_power + - type: custom:battery-entity + entity: sensor.bedroom_right_window_power + - type: custom:battery-entity + entity: sensor.bedroom_weather_power + - type: custom:battery-entity + entity: sensor.cube_power + - type: custom:battery-entity + entity: sensor.master_bedroom_bedside_switch_power + - type: custom:battery-entity + entity: sensor.motion_1_power + - type: custom:battery-entity + entity: sensor.motion_2_power diff --git a/config/lovelace/home_dashboard/10_covid_19.yaml b/config/lovelace/home_dashboard/10_covid_19.yaml index 676dd21..0cdf995 100644 --- a/config/lovelace/home_dashboard/10_covid_19.yaml +++ b/config/lovelace/home_dashboard/10_covid_19.yaml @@ -2,37 +2,49 @@ title: COVID-19 path: covid-19 panel: true icon: "mdi:biohazard" -badges: [] cards: - - type: custom:layout-card - max_columns: 3 - cards: - - type: custom:decluttering-card - template: covid_19 - variables: - - name: Worldwide - - location: worldwide + - type: custom:mod-card + style: + layout-card: + $: + .: | + #columns { + margin: 0 10px; + } + #columns .column { + margin: 20px 10px; + } + card: + type: custom:layout-card + layout: horizontal + max_columns: 3 + cards: + - type: custom:decluttering-card + template: covid_19 + variables: + - name: Worldwide + - location: worldwide - - type: custom:decluttering-card - template: covid_19 - variables: - - name: Bulgaria - - location: bulgaria + - type: custom:decluttering-card + template: covid_19 + variables: + - name: Bulgaria + - location: bulgaria - - type: custom:decluttering-card - template: covid_19 - variables: - - name: Italy - - location: italy + - type: custom:decluttering-card + template: covid_19 + variables: + - name: Italy + - location: italy - - type: custom:decluttering-card - template: covid_19 - variables: - - name: France - - location: france + - type: custom:decluttering-card + template: covid_19 + variables: + - name: France + - location: france - - type: custom:decluttering-card - template: covid_19 - variables: - - name: USA - - location: us + - type: custom:decluttering-card + template: covid_19 + variables: + - name: USA + - location: us