mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Add button-card. Use for lights on home dashboard
This commit is contained in:
@@ -6,64 +6,44 @@ cards:
|
|||||||
# Column 1: Active Controls
|
# Column 1: Active Controls
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: glance
|
- type: vertical-stack
|
||||||
title: Lights
|
title: Lights
|
||||||
entities:
|
cards:
|
||||||
- entity: light.all_lights
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: custom:button-card
|
||||||
|
template: light
|
||||||
|
entity: light.all_lights
|
||||||
name: All
|
name: All
|
||||||
tap_action:
|
- type: custom:button-card
|
||||||
action: call-service
|
template: light
|
||||||
service: light.toggle
|
entity: light.living_room_main_lights
|
||||||
service_data:
|
|
||||||
entity_id: light.all_lights
|
|
||||||
- entity: light.living_room_main_lights
|
|
||||||
name: Living room
|
name: Living room
|
||||||
tap_action:
|
- type: custom:button-card
|
||||||
action: call-service
|
template: light
|
||||||
service: light.toggle
|
entity: light.master_bedroom_main_lights
|
||||||
service_data:
|
|
||||||
entity_id: light.living_room_main_lights
|
|
||||||
- entity: light.pc
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: light.toggle
|
|
||||||
service_data:
|
|
||||||
entity_id: light.pc
|
|
||||||
- entity: light.master_bedroom_main_lights
|
|
||||||
name: Bedroom
|
name: Bedroom
|
||||||
tap_action:
|
- type: custom:button-card
|
||||||
action: call-service
|
template: light
|
||||||
service: light.toggle
|
entity: light.hallway_main_lights
|
||||||
service_data:
|
|
||||||
entity_id: light.master_bedroom_main_lights
|
|
||||||
- entity: light.bedside_light
|
|
||||||
name: Bedside
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: light.toggle
|
|
||||||
service_data:
|
|
||||||
entity_id: light.bedside_light
|
|
||||||
- entity: light.kitchen_main_lights
|
|
||||||
name: Kitchen
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: light.toggle
|
|
||||||
service_data:
|
|
||||||
entity_id: light.kitchen_main_lights
|
|
||||||
- entity: light.hallway_entrance_lights
|
|
||||||
name: Entrance
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: light.toggle
|
|
||||||
service_data:
|
|
||||||
entity_id: light.hallway_entrance_lights
|
|
||||||
- entity: light.hallway_main_lights
|
|
||||||
name: Hallway
|
name: Hallway
|
||||||
tap_action:
|
- type: horizontal-stack
|
||||||
action: call-service
|
cards:
|
||||||
service: light.toggle
|
- type: custom:button-card
|
||||||
service_data:
|
template: light
|
||||||
entity_id: light.hallway_main_lights
|
entity: light.kitchen_main_lights
|
||||||
|
name: Kitchen
|
||||||
|
- type: custom:button-card
|
||||||
|
template: light
|
||||||
|
entity: light.pc
|
||||||
|
- type: custom:button-card
|
||||||
|
template: light
|
||||||
|
entity: light.bedside_light
|
||||||
|
name: Bedside
|
||||||
|
- type: custom:button-card
|
||||||
|
template: light
|
||||||
|
entity: light.hallway_entrance_lights
|
||||||
|
name: Entrance
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Devices
|
title: Devices
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
- type: module
|
- type: module
|
||||||
url: /hacsfiles/aftership-card/aftership-card.js
|
url: /hacsfiles/aftership-card/aftership-card.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/button-card/button-card.js
|
||||||
- type: module
|
- type: module
|
||||||
url: /hacsfiles/config-template-card/config-template-card.js
|
url: /hacsfiles/config-template-card/config-template-card.js
|
||||||
- type: module
|
- type: module
|
||||||
|
|||||||
@@ -7,6 +7,19 @@ custom_header:
|
|||||||
|
|
||||||
decluttering_templates: !include_dir_merge_named lovelace/templates
|
decluttering_templates: !include_dir_merge_named lovelace/templates
|
||||||
|
|
||||||
|
button_card_templates:
|
||||||
|
light:
|
||||||
|
size: 30px
|
||||||
|
hold_action:
|
||||||
|
action: more-info
|
||||||
|
styles:
|
||||||
|
card:
|
||||||
|
- height: 100px
|
||||||
|
- font-size: 14px
|
||||||
|
name:
|
||||||
|
- height: 30px
|
||||||
|
|
||||||
|
|
||||||
title: Sarah
|
title: Sarah
|
||||||
views:
|
views:
|
||||||
- !include lovelace/00_home.yaml
|
- !include lovelace/00_home.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user