mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 01:14:42 +00:00
Add climate view
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user