mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 18:28:43 +00:00
yamllint
This commit is contained in:
@@ -47,14 +47,18 @@
|
||||
- default
|
||||
- with_state_indicator
|
||||
entity: input_boolean.alarm_enabled
|
||||
state_display: "[[[return states['input_datetime.alarm_time'].state.split(':').slice(0, -1).join(':'); ]]]"
|
||||
state_display: >-
|
||||
[[[
|
||||
const time = states['input_datetime.alarm_time'].state;
|
||||
return time.split(':').slice(0, -1).join(':');
|
||||
]]]
|
||||
show_state: true
|
||||
show_name: false
|
||||
styles:
|
||||
icon:
|
||||
- transform: translateY(-8px) # adjusted for state indicator size
|
||||
- transform: translateY(-8px) # adjusted for state indicator size
|
||||
state:
|
||||
- transform: translateY(-13px) # adjusted for state indicator size
|
||||
- transform: translateY(-13px) # adjusted for state indicator size
|
||||
variables:
|
||||
state_indicator_id: automation.alarm_set_time
|
||||
- type: custom:button-card
|
||||
@@ -160,4 +164,3 @@
|
||||
name: Hallway
|
||||
variables:
|
||||
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
|
||||
|
||||
|
||||
Reference in New Issue
Block a user