Rearrange cards in vertical stacks

This commit is contained in:
2020-03-06 23:16:36 +02:00
parent 54489ff146
commit bc04c7891d
3 changed files with 132 additions and 119 deletions
+80 -71
View File
@@ -3,82 +3,91 @@ path: default_view
icon: "mdi:home" icon: "mdi:home"
badges: [] badges: []
cards: cards:
- type: entities # Column 1: Active Controls
title: Lights - type: vertical-stack
entities: cards:
- entity: light.living_room_all_lights - type: entities
- entity: light.living_room_main_lights title: Lights
- entity: light.pc entities:
show_header_toggle: false - entity: light.living_room_all_lights
- entity: light.living_room_main_lights
- entity: light.pc
show_header_toggle: false
- type: entities - type: entities
title: Manual Control title: Devices
entities: entities:
- entity: input_boolean.sleep_mode - entity: switch.camera
- entity: input_boolean.guest_mode - entity: media_player.living_room_tv
- entity: input_boolean.domestina - entity: fan.philips_airpurifier
- entity: input_boolean.speech_notifications show_header_toggle: false
- entity: input_boolean.georgi_home
show_header_toggle: false
- type: entities - type: "custom:mini-media-player"
title: Sensors artwork: cover
entities: entity: media_player.master_bedroom
- entity: binary_sensor.front_door_on_off_wrapper hide:
- entity: binary_sensor.living_room_right_window_on_off_wrapper power_state: false
- entity: binary_sensor.bedroom_right_window_on_off_wrapper shuffle: false
show_header_toggle: false idle_view:
when_idle: true
when_standby: true
platform: sonos
show_source: true
source: full
- type: entities - type: entities
title: Devices title: Manual Overrides
entities: entities:
- entity: switch.camera - entity: input_boolean.sleep_mode
- entity: media_player.living_room_tv - entity: input_boolean.guest_mode
- entity: fan.philips_airpurifier - entity: input_boolean.domestina
show_header_toggle: false - entity: input_boolean.speech_notifications
- entity: input_boolean.georgi_home
show_header_toggle: false
- type: entities # Column 2: Sensors
title: Presence - type: vertical-stack
entities: cards:
- entity: binary_sensor.georgi_home - type: entities
- entity: device_tracker.carbon title: Sensors
- entity: device_tracker.tile_1bcb2b3021b9f96b entities:
show_header_toggle: false - entity: binary_sensor.front_door_on_off_wrapper
- entity: binary_sensor.living_room_right_window_on_off_wrapper
- entity: binary_sensor.bedroom_right_window_on_off_wrapper
show_header_toggle: false
- type: "custom:travel-time-card" - type: entities
title: "Travel time" title: Presence
columns: entities:
- name - entity: binary_sensor.georgi_home
- duration - entity: device_tracker.carbon
- distance - entity: device_tracker.tile_1bcb2b3021b9f96b
entities: show_header_toggle: false
- entity: sensor.home_to_work
- entity: sensor.work_to_home
- type: "custom:mini-media-player" - type: entities
artwork: cover title: Misc Badges
entity: media_player.master_bedroom entities:
hide: - entity: sun.sun
power_state: false - entity: sensor.carbon_battery_level
shuffle: false - entity: sensor.carbon_steps
idle_view: - entity: binary_sensor.updater
when_idle: true show_header_toggle: false
when_standby: true
platform: sonos
show_source: true
source: full
- type: "custom:weather-card" # Column 3: Misc
current: true - type: vertical-stack
details: true cards:
entity: weather.dark_sky - type: "custom:weather-card"
forecast: true current: true
details: true
entity: weather.dark_sky
forecast: true
- type: entities - type: "custom:travel-time-card"
title: Misc Badges title: "Travel time"
entities: columns:
- entity: sun.sun - name
- entity: sensor.carbon_battery_level - duration
- entity: sensor.carbon_steps - distance
- entity: binary_sensor.updater entities:
show_header_toggle: false - entity: sensor.home_to_work
- entity: sensor.work_to_home
+14 -12
View File
@@ -24,19 +24,21 @@ cards:
- entity: light.living_room_4 - entity: light.living_room_4
- entity: light.pc - entity: light.pc
- type: picture-entity - type: vertical-stack
aspect_ratio: 50% cards:
entity: camera.amcrest_camera - type: picture-entity
show_name: true aspect_ratio: 50%
show_state: true entity: camera.amcrest_camera
show_name: true
show_state: true
- type: entities - type: entities
title: Camera Controls title: Camera Controls
show_header_toggle: false show_header_toggle: false
entities: entities:
- entity: switch.camera - entity: switch.camera
- entity: binary_sensor.amcrest_camera_online - entity: binary_sensor.amcrest_camera_online
- entity: binary_sensor.amcrest_camera_motion_detected - entity: binary_sensor.amcrest_camera_motion_detected
- type: media-control - type: media-control
entity: media_player.living_room_tv entity: media_player.living_room_tv
+38 -36
View File
@@ -3,48 +3,50 @@ path: master-bedroom
icon: "mdi:bed-empty" icon: "mdi:bed-empty"
badges: [] badges: []
cards: cards:
- type: "custom:mini-graph-card" - type: vertical-stack
animate: true
entities:
- entity: sensor.bedroom_weather_temperature
index: 0
name: Temperature
line_width: 3
points_per_hour: 1
show:
average: true
extrema: true
- type: horizontal-stack
cards: cards:
- type: "custom:mini-graph-card" - type: "custom:mini-graph-card"
name: Humidity animate: true
icon: "mdi:water"
font_size: 75
line_color: green
line_width: 8
entities: entities:
- entity: sensor.bedroom_weather_humidity - entity: sensor.bedroom_weather_temperature
index: 0 index: 0
name: Temperature
line_width: 3
points_per_hour: 1
show:
average: true
extrema: true
- type: "custom:mini-graph-card" - type: horizontal-stack
name: Air Quality cards:
entities: - type: "custom:mini-graph-card"
- entity: sensor.purifier_air_quality name: Humidity
index: 0 icon: "mdi:water"
font_size: 75 font_size: 75
icon: "mdi:weather-windy" line_color: green
line_color: "#e74c3c" line_width: 8
line_width: 8 entities:
- entity: sensor.bedroom_weather_humidity
index: 0
- type: "custom:mini-graph-card" - type: "custom:mini-graph-card"
name: Pressure name: Air Quality
entities: entities:
- entity: sensor.bedroom_weather_pressure - entity: sensor.purifier_air_quality
index: 0 index: 0
font_size: 75 font_size: 75
line_color: var(--accent-color) icon: "mdi:weather-windy"
line_width: 8 line_color: "#e74c3c"
line_width: 8
- type: "custom:mini-graph-card"
name: Pressure
entities:
- entity: sensor.bedroom_weather_pressure
index: 0
font_size: 75
line_color: var(--accent-color)
line_width: 8
- type: glance - type: glance
title: Window title: Window