Tweak climate cards and charts

This commit is contained in:
2020-05-03 04:04:31 +03:00
parent 1a80a6223f
commit aca5ba85a5
7 changed files with 101 additions and 24 deletions
@@ -0,0 +1,22 @@
bedroom_air_quality_card:
card:
type: vertical-stack
cards:
- type: "custom:mini-graph-card"
entities:
- sensor.purifier_air_quality
cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
fill: true
color_thresholds:
- value: 10
color: "var(--color-green)"
- value: 20.5
color: "var(--color-blue)"
- value: 25
color: "var(--color-red)"
@@ -0,0 +1,22 @@
bedroom_allergen_index_card:
card:
type: vertical-stack
cards:
- type: "custom:mini-graph-card"
entities:
- sensor.purifier_allergens
cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
fill: true
color_thresholds:
- value: 2
color: "var(--color-green)"
- value: 4
color: "var(--color-blue)"
- value: 5
color: "var(--color-red)"
@@ -3,21 +3,31 @@ bedroom_humidity_card:
type: vertical-stack
cards:
- type: "custom:mini-graph-card"
animate: true
line_width: 3
points_per_hour: 1
entities:
- sensor.bedroom_weather_humidity
cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
entities:
- sensor.bedroom_weather_humidity
color_thresholds:
- value: 36
color: "var(--color-red)"
- value: 40
color: "var(--color-blue)"
- value: 45
color: "var(--color-blue)"
- value: 48
color: "var(--color-green)"
- type: horizontal-stack
cards:
- type: "custom:mini-graph-card"
font_size: 75
icon: "mdi:thermometer"
line_color: green
line_color: var(--accent-color)
line_width: 8
entities:
- sensor.bedroom_weather_temperature
@@ -33,7 +43,7 @@ bedroom_humidity_card:
name: Air Quality
font_size: 75
icon: "mdi:weather-windy"
line_color: "#e74c3c"
line_color: var(--accent-color)
line_width: 8
entities:
- sensor.purifier_air_quality
@@ -3,14 +3,23 @@ bedroom_temperature_card:
type: vertical-stack
cards:
- type: "custom:mini-graph-card"
animate: true
line_width: 3
points_per_hour: 1
entities:
- sensor.bedroom_weather_temperature
cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
entities:
- sensor.bedroom_weather_temperature
fill: true
color_thresholds:
- value: 19
color: "var(--color-blue)"
- value: 20.5
color: "var(--color-green)"
- value: 22
color: "var(--color-red)"
- type: horizontal-stack
cards:
@@ -18,7 +27,7 @@ bedroom_temperature_card:
name: Humidity
font_size: 75
icon: "mdi:water"
line_color: green
line_color: "var(--color-blue)"
line_width: 8
entities:
- sensor.bedroom_weather_humidity
@@ -27,14 +36,14 @@ bedroom_temperature_card:
entities:
- sensor.bedroom_weather_pressure
font_size: 75
line_color: var(--accent-color)
line_color: "var(--color-blue)"
line_width: 8
- type: "custom:mini-graph-card"
name: Air Quality
font_size: 75
icon: "mdi:weather-windy"
line_color: "#e74c3c"
line_color: "var(--color-blue)"
line_width: 8
entities:
- sensor.purifier_air_quality
@@ -66,11 +66,11 @@ titanium_card:
entity: sensor.titanium_cpu_usage
- color: green
entity: sensor.titanium_memory_used_percent
group: false
points_per_hour: 1
line_width: 3
hour24: true
hours_to_show: 24
group_by: hour
show:
fill: fade
icon: true
@@ -132,9 +132,9 @@
entity: sensor.purifier_air_quality
variables:
min_value: 1
max_value: 90
normal_value: 10
high_value: 30
max_value: 30
normal_value: 1
high_value: 20
- type: custom:button-card
template:
- small
@@ -142,9 +142,9 @@
entity: sensor.purifier_allergens
variables:
min_value: 1
max_value: 90
normal_value: 10
high_value: 30
max_value: 30
normal_value: 1
high_value: 10
- type: horizontal-stack
cards:
+16 -2
View File
@@ -202,19 +202,33 @@ light.living_room_main_lights:
name: Toggle
sensor.bedroom_weather_temperature:
title: Bedroom climate
title: Bedroom temperature
style: *broad_popup_style
card:
type: custom:decluttering-card
template: bedroom_temperature_card
sensor.bedroom_weather_humidity:
title: Bedroom climate
title: Bedroom humidity
style: *broad_popup_style
card:
type: custom:decluttering-card
template: bedroom_humidity_card
sensor.purifier_air_quality:
title: Bedroom air quality
style: *broad_popup_style
card:
type: custom:decluttering-card
template: bedroom_air_quality_card
sensor.purifier_allergens:
title: Bedroom allergen index
style: *broad_popup_style
card:
type: custom:decluttering-card
template: bedroom_allergen_index_card
fan.philips_airpurifier:
title: Air purifier
style: *popup_style