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 type: vertical-stack
cards: cards:
- type: "custom:mini-graph-card" - type: "custom:mini-graph-card"
animate: true entities:
line_width: 3 - sensor.bedroom_weather_humidity
points_per_hour: 1 cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show: show:
average: true average: true
extrema: true extrema: true
entities: color_thresholds:
- sensor.bedroom_weather_humidity - 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 - type: horizontal-stack
cards: cards:
- type: "custom:mini-graph-card" - type: "custom:mini-graph-card"
font_size: 75 font_size: 75
icon: "mdi:thermometer" icon: "mdi:thermometer"
line_color: green line_color: var(--accent-color)
line_width: 8 line_width: 8
entities: entities:
- sensor.bedroom_weather_temperature - sensor.bedroom_weather_temperature
@@ -33,7 +43,7 @@ bedroom_humidity_card:
name: Air Quality name: Air Quality
font_size: 75 font_size: 75
icon: "mdi:weather-windy" icon: "mdi:weather-windy"
line_color: "#e74c3c" line_color: var(--accent-color)
line_width: 8 line_width: 8
entities: entities:
- sensor.purifier_air_quality - sensor.purifier_air_quality
@@ -3,14 +3,23 @@ bedroom_temperature_card:
type: vertical-stack type: vertical-stack
cards: cards:
- type: "custom:mini-graph-card" - type: "custom:mini-graph-card"
animate: true entities:
line_width: 3 - sensor.bedroom_weather_temperature
points_per_hour: 1 cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show: show:
average: true average: true
extrema: true extrema: true
entities: fill: true
- sensor.bedroom_weather_temperature color_thresholds:
- value: 19
color: "var(--color-blue)"
- value: 20.5
color: "var(--color-green)"
- value: 22
color: "var(--color-red)"
- type: horizontal-stack - type: horizontal-stack
cards: cards:
@@ -18,7 +27,7 @@ bedroom_temperature_card:
name: Humidity name: Humidity
font_size: 75 font_size: 75
icon: "mdi:water" icon: "mdi:water"
line_color: green line_color: "var(--color-blue)"
line_width: 8 line_width: 8
entities: entities:
- sensor.bedroom_weather_humidity - sensor.bedroom_weather_humidity
@@ -27,14 +36,14 @@ bedroom_temperature_card:
entities: entities:
- sensor.bedroom_weather_pressure - sensor.bedroom_weather_pressure
font_size: 75 font_size: 75
line_color: var(--accent-color) line_color: "var(--color-blue)"
line_width: 8 line_width: 8
- type: "custom:mini-graph-card" - type: "custom:mini-graph-card"
name: Air Quality name: Air Quality
font_size: 75 font_size: 75
icon: "mdi:weather-windy" icon: "mdi:weather-windy"
line_color: "#e74c3c" line_color: "var(--color-blue)"
line_width: 8 line_width: 8
entities: entities:
- sensor.purifier_air_quality - sensor.purifier_air_quality
@@ -66,11 +66,11 @@ titanium_card:
entity: sensor.titanium_cpu_usage entity: sensor.titanium_cpu_usage
- color: green - color: green
entity: sensor.titanium_memory_used_percent entity: sensor.titanium_memory_used_percent
group: false
points_per_hour: 1 points_per_hour: 1
line_width: 3 line_width: 3
hour24: true hour24: true
hours_to_show: 24 hours_to_show: 24
group_by: hour
show: show:
fill: fade fill: fade
icon: true icon: true
@@ -132,9 +132,9 @@
entity: sensor.purifier_air_quality entity: sensor.purifier_air_quality
variables: variables:
min_value: 1 min_value: 1
max_value: 90 max_value: 30
normal_value: 10 normal_value: 1
high_value: 30 high_value: 20
- type: custom:button-card - type: custom:button-card
template: template:
- small - small
@@ -142,9 +142,9 @@
entity: sensor.purifier_allergens entity: sensor.purifier_allergens
variables: variables:
min_value: 1 min_value: 1
max_value: 90 max_value: 30
normal_value: 10 normal_value: 1
high_value: 30 high_value: 10
- type: horizontal-stack - type: horizontal-stack
cards: cards:
+16 -2
View File
@@ -202,19 +202,33 @@ light.living_room_main_lights:
name: Toggle name: Toggle
sensor.bedroom_weather_temperature: sensor.bedroom_weather_temperature:
title: Bedroom climate title: Bedroom temperature
style: *broad_popup_style style: *broad_popup_style
card: card:
type: custom:decluttering-card type: custom:decluttering-card
template: bedroom_temperature_card template: bedroom_temperature_card
sensor.bedroom_weather_humidity: sensor.bedroom_weather_humidity:
title: Bedroom climate title: Bedroom humidity
style: *broad_popup_style style: *broad_popup_style
card: card:
type: custom:decluttering-card type: custom:decluttering-card
template: bedroom_humidity_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: fan.philips_airpurifier:
title: Air purifier title: Air purifier
style: *popup_style style: *popup_style