Files
sarah/lovelace/advanced_dashboard/04_sensors.yaml
T
2022-12-01 16:02:00 +02:00

70 lines
2.4 KiB
YAML

title: Sensors
path: sensors
icon: mdi:motion-sensor
panel: true
cards:
- type: custom:mod-card
style:
layout-card:
$:
horizontal-layout:
$:
.: |
#columns {
margin: 0 20px;
grid-gap: 20px;
}
card:
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 3
cards:
- type: vertical-stack
title: Sensors
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button
entity: binary_sensor.multisensor_motion
name: Living room
- type: custom:button-card
template: [v3_button, with_state_indicator]
entity: binary_sensor.kitchen_motion_occupancy
name: Kitchen
variables:
state_indicator_id: automation.lighting_kitchen_motion_on
- type: custom:button-card
template: [v3_button, with_state_indicator]
entity: group.hallway_motion
name: Hallway
variables:
state_indicator_id: automation.lighting_hallway_motion_on
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button
entity: binary_sensor.living_room_right_window_contact
name: Living room
- type: custom:button-card
template: v3_button
entity: binary_sensor.bedroom_left_window_contact
name: Bedroom left
- type: custom:button-card
template: v3_button
entity: binary_sensor.bedroom_right_window_contact
name: Bedroom right
- type: custom:button-card
template: v3_button
entity: binary_sensor.kitchen_window_contact
name: Kitchen
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button
entity: binary_sensor.front_door_contact
- type: custom:button-card
template: v3_button
entity: binary_sensor.bedroom_door_contact