Implement home dashboard sensors as buttons

This commit is contained in:
2020-03-28 15:27:05 +02:00
parent 548d5257f5
commit 68866a7cbd
2 changed files with 20 additions and 15 deletions
+19 -14
View File
@@ -12,36 +12,36 @@ cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: light
template: small
entity: light.all_lights
name: All
- type: custom:button-card
template: light
template: small
entity: light.living_room_main_lights
name: Living room
- type: custom:button-card
template: light
template: small
entity: light.master_bedroom_main_lights
name: Bedroom
- type: custom:button-card
template: light
template: small
entity: light.hallway_main_lights
name: Hallway
- type: horizontal-stack
cards:
- type: custom:button-card
template: light
template: small
entity: light.kitchen_main_lights
name: Kitchen
- type: custom:button-card
template: light
template: small
entity: light.pc
- type: custom:button-card
template: light
template: small
entity: light.bedside_light
name: Bedside
- type: custom:button-card
template: light
template: small
entity: light.hallway_entrance_lights
name: Entrance
@@ -82,13 +82,18 @@ cards:
# Column 2: Sensors
- type: vertical-stack
cards:
- type: entities
- type: horizontal-stack
title: Sensors
show_header_toggle: false
entities:
- binary_sensor.front_door_on_off_wrapper
- binary_sensor.living_room_right_window_on_off_wrapper
- binary_sensor.bedroom_right_window_on_off_wrapper
cards:
- type: custom:button-card
template: small
entity: binary_sensor.front_door_on_off_wrapper
- type: custom:button-card
template: small
entity: binary_sensor.living_room_right_window_on_off_wrapper
- type: custom:button-card
template: small
entity: binary_sensor.bedroom_right_window_on_off_wrapper
- type: entities
title: Presence
+1 -1
View File
@@ -8,7 +8,7 @@ custom_header:
decluttering_templates: !include_dir_merge_named lovelace/templates
button_card_templates:
light:
small:
size: 30px
hold_action:
action: more-info