mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 17:34:42 +00:00
Implement home dashboard sensors as buttons
This commit is contained in:
@@ -12,36 +12,36 @@ cards:
|
|||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: light
|
template: small
|
||||||
entity: light.all_lights
|
entity: light.all_lights
|
||||||
name: All
|
name: All
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: light
|
template: small
|
||||||
entity: light.living_room_main_lights
|
entity: light.living_room_main_lights
|
||||||
name: Living room
|
name: Living room
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: light
|
template: small
|
||||||
entity: light.master_bedroom_main_lights
|
entity: light.master_bedroom_main_lights
|
||||||
name: Bedroom
|
name: Bedroom
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: light
|
template: small
|
||||||
entity: light.hallway_main_lights
|
entity: light.hallway_main_lights
|
||||||
name: Hallway
|
name: Hallway
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: light
|
template: small
|
||||||
entity: light.kitchen_main_lights
|
entity: light.kitchen_main_lights
|
||||||
name: Kitchen
|
name: Kitchen
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: light
|
template: small
|
||||||
entity: light.pc
|
entity: light.pc
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: light
|
template: small
|
||||||
entity: light.bedside_light
|
entity: light.bedside_light
|
||||||
name: Bedside
|
name: Bedside
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: light
|
template: small
|
||||||
entity: light.hallway_entrance_lights
|
entity: light.hallway_entrance_lights
|
||||||
name: Entrance
|
name: Entrance
|
||||||
|
|
||||||
@@ -82,13 +82,18 @@ cards:
|
|||||||
# Column 2: Sensors
|
# Column 2: Sensors
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: entities
|
- type: horizontal-stack
|
||||||
title: Sensors
|
title: Sensors
|
||||||
show_header_toggle: false
|
cards:
|
||||||
entities:
|
- type: custom:button-card
|
||||||
- binary_sensor.front_door_on_off_wrapper
|
template: small
|
||||||
- binary_sensor.living_room_right_window_on_off_wrapper
|
entity: binary_sensor.front_door_on_off_wrapper
|
||||||
- binary_sensor.bedroom_right_window_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
|
- type: entities
|
||||||
title: Presence
|
title: Presence
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ custom_header:
|
|||||||
decluttering_templates: !include_dir_merge_named lovelace/templates
|
decluttering_templates: !include_dir_merge_named lovelace/templates
|
||||||
|
|
||||||
button_card_templates:
|
button_card_templates:
|
||||||
light:
|
small:
|
||||||
size: 30px
|
size: 30px
|
||||||
hold_action:
|
hold_action:
|
||||||
action: more-info
|
action: more-info
|
||||||
|
|||||||
Reference in New Issue
Block a user