From 22fc3d5f151836579d6e11599180b9841aa0ede4 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Wed, 29 Apr 2020 00:37:33 +0300 Subject: [PATCH] Humidity card --- .../advanced_dashboard/02_master_bedroom.yaml | 2 +- .../cards/bedroom_humidity_card.yaml | 42 +++++++++++++++++++ ...ard.yaml => bedroom_temperature_card.yaml} | 2 +- config/lovelace/popup_cards.yaml | 9 +++- 4 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 config/lovelace/decluttering_templates/cards/bedroom_humidity_card.yaml rename config/lovelace/decluttering_templates/cards/{bedroom_climate_card.yaml => bedroom_temperature_card.yaml} (97%) diff --git a/config/lovelace/advanced_dashboard/02_master_bedroom.yaml b/config/lovelace/advanced_dashboard/02_master_bedroom.yaml index 702cca1..7bd9850 100644 --- a/config/lovelace/advanced_dashboard/02_master_bedroom.yaml +++ b/config/lovelace/advanced_dashboard/02_master_bedroom.yaml @@ -89,7 +89,7 @@ cards: - sensor.bedroom_right_window_power - type: custom:decluttering-card - template: bedroom_climate_card + template: bedroom_temperature_card - type: vertical-stack cards: diff --git a/config/lovelace/decluttering_templates/cards/bedroom_humidity_card.yaml b/config/lovelace/decluttering_templates/cards/bedroom_humidity_card.yaml new file mode 100644 index 0000000..93b334d --- /dev/null +++ b/config/lovelace/decluttering_templates/cards/bedroom_humidity_card.yaml @@ -0,0 +1,42 @@ +bedroom_humidity_card: + card: + type: vertical-stack + cards: + - type: "custom:mini-graph-card" + animate: true + line_width: 3 + points_per_hour: 1 + show: + average: true + extrema: true + entities: + - entity: sensor.bedroom_weather_humidity + name: Humidity + + - type: horizontal-stack + cards: + - type: "custom:mini-graph-card" + name: Temperature + font_size: 75 + icon: "mdi:thermometer" + line_color: green + line_width: 8 + entities: + - sensor.bedroom_weather_temperature + + - 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 diff --git a/config/lovelace/decluttering_templates/cards/bedroom_climate_card.yaml b/config/lovelace/decluttering_templates/cards/bedroom_temperature_card.yaml similarity index 97% rename from config/lovelace/decluttering_templates/cards/bedroom_climate_card.yaml rename to config/lovelace/decluttering_templates/cards/bedroom_temperature_card.yaml index 506ef8c..de23e0a 100644 --- a/config/lovelace/decluttering_templates/cards/bedroom_climate_card.yaml +++ b/config/lovelace/decluttering_templates/cards/bedroom_temperature_card.yaml @@ -1,4 +1,4 @@ -bedroom_climate_card: +bedroom_temperature_card: card: type: vertical-stack cards: diff --git a/config/lovelace/popup_cards.yaml b/config/lovelace/popup_cards.yaml index 632cdff..3ec7e09 100644 --- a/config/lovelace/popup_cards.yaml +++ b/config/lovelace/popup_cards.yaml @@ -205,7 +205,14 @@ sensor.bedroom_weather_temperature: style: *broad_popup_style card: type: custom:decluttering-card - template: bedroom_climate_card + template: bedroom_temperature_card + +sensor.bedroom_weather_humidity: + title: Bedroom climate + style: *broad_popup_style + card: + type: custom:decluttering-card + template: bedroom_humidity_card fan.philips_airpurifier: title: Bedroom air