diff --git a/config/advanced-lovelace.yaml b/config/advanced-lovelace.yaml index 3168fb2..2550c93 100644 --- a/config/advanced-lovelace.yaml +++ b/config/advanced-lovelace.yaml @@ -11,7 +11,8 @@ title: Sarah views: - !include lovelace/advanced_dashboard/00_home.yaml - !include lovelace/advanced_dashboard/01_new.yaml - - !include lovelace/advanced_dashboard/06_lights.yaml + - !include lovelace/advanced_dashboard/05_lights.yaml + - !include lovelace/advanced_dashboard/06_climate.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/06_lights.yaml b/config/lovelace/advanced_dashboard/05_lights.yaml similarity index 100% rename from config/lovelace/advanced_dashboard/06_lights.yaml rename to config/lovelace/advanced_dashboard/05_lights.yaml diff --git a/config/lovelace/advanced_dashboard/06_climate.yaml b/config/lovelace/advanced_dashboard/06_climate.yaml new file mode 100644 index 0000000..5e48d95 --- /dev/null +++ b/config/lovelace/advanced_dashboard/06_climate.yaml @@ -0,0 +1,70 @@ +title: Climate +path: climate +icon: mdi:thermometer +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 + max_columns: 3 + cards: + - type: custom:decluttering-card + template: climate_card + variables: + - title: "Living room" + - main_entity: sensor.multisensor_6_temperature + - left_entity: sensor.multisensor_6_relative_humidity + - right_entity: sensor.multisensor_6_luminance + - right_name: "Luminance" + + - type: custom:decluttering-card + template: climate_card + variables: + - title: "Bedroom" + - main_entity: sensor.bedroom_weather_temperature + - left_entity: sensor.bedroom_weather_humidity + - right_entity: sensor.bedroom_weather_pressure + + - type: custom:decluttering-card + template: climate_card + variables: + - title: "Kitchen" + - main_entity: sensor.kitchen_weather_temperature + - left_entity: sensor.kitchen_weather_humidity + - right_entity: sensor.kitchen_weather_pressure + + - type: custom:decluttering-card + template: climate_card + variables: + - title: "Bathroom" + - main_entity: sensor.bathroom_weather_temperature + - left_entity: sensor.bathroom_weather_humidity + - right_entity: sensor.bathroom_weather_pressure + + - type: custom:decluttering-card + template: climate_card + variables: + - title: "Hallway" + - main_entity: sensor.hallway_weather_temperature + - left_entity: sensor.hallway_weather_humidity + - right_entity: sensor.hallway_weather_pressure + + - type: custom:decluttering-card + template: climate_card + variables: + - title: "Guest bedroom" + - main_entity: sensor.guest_bedroom_weather_temperature + - left_entity: sensor.guest_bedroom_weather_humidity + - right_entity: sensor.guest_bedroom_weather_pressure + diff --git a/config/lovelace/decluttering_templates/cards/climate_card.yaml b/config/lovelace/decluttering_templates/cards/climate_card.yaml new file mode 100644 index 0000000..5f1c71d --- /dev/null +++ b/config/lovelace/decluttering_templates/cards/climate_card.yaml @@ -0,0 +1,40 @@ +climate_card: + default: + - main_name: "Temperature" + - left_name: "Humidity" + - right_name: "Pressure" + card: + type: vertical-stack + title: "[[title]]" + cards: + - type: "custom:mini-graph-card" + name: "[[main_name]]" + entities: + - "[[main_entity]]" + cache: false + group_by: hour + hours_to_show: 72 + line_width: 2 + show: + average: true + extrema: true + fill: true + + - type: horizontal-stack + cards: + - type: "custom:mini-graph-card" + name: "[[left_name]]" + font_size: 75 + icon: "mdi:water" + line_color: "var(--color-blue)" + line_width: 8 + entities: + - "[[left_entity]]" + + - type: "custom:mini-graph-card" + name: "[[right_name]]" + entities: + - "[[right_entity]]" + font_size: 75 + line_color: "var(--color-blue)" + line_width: 8