mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 01:14:42 +00:00
Add state indicator to alarm
This commit is contained in:
@@ -166,16 +166,20 @@
|
|||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template:
|
||||||
|
- default
|
||||||
|
- with_state_indicator
|
||||||
entity: input_boolean.alarm_enabled
|
entity: input_boolean.alarm_enabled
|
||||||
state_display: "[[[return states['input_datetime.alarm_time'].state.split(':').slice(0, -1).join(':'); ]]]"
|
state_display: "[[[return states['input_datetime.alarm_time'].state.split(':').slice(0, -1).join(':'); ]]]"
|
||||||
show_state: true
|
show_state: true
|
||||||
show_name: false
|
show_name: false
|
||||||
styles:
|
styles:
|
||||||
icon:
|
icon:
|
||||||
- transform: translateY(-10px)
|
- transform: translateY(-8px) # adjusted for state indicator size
|
||||||
state:
|
state:
|
||||||
- transform: translateY(-15px)
|
- transform: translateY(-13px) # adjusted for state indicator size
|
||||||
|
variables:
|
||||||
|
state_indicator_id: automation.alarm_set_time
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: input_boolean.speech_notifications
|
entity: input_boolean.speech_notifications
|
||||||
|
|||||||
Reference in New Issue
Block a user