mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 18:28:43 +00:00
Add with_state_indicator button template. Use for motion
This commit is contained in:
@@ -236,17 +236,27 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
template:
|
||||
- default
|
||||
- with_state_indicator
|
||||
entity: binary_sensor.motion_2_ias_zone
|
||||
name: Hallway
|
||||
variables:
|
||||
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
|
||||
state_indicator_on_color: "var(--accent-color)"
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: binary_sensor.browser_kitchen
|
||||
name: Kitchen
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
template:
|
||||
- default
|
||||
- with_state_indicator
|
||||
entity: binary_sensor.motion_1_ias_zone
|
||||
name: Kitchen 2
|
||||
variables:
|
||||
state_indicator_id: automation.lighting_kitchen_day_mode_motion_turn_lights_on_after_sunset
|
||||
state_indicator_on_color: "var(--accent-color)"
|
||||
|
||||
- type: vertical-stack
|
||||
title: Presence
|
||||
|
||||
Reference in New Issue
Block a user