Tweak main dashboard

This commit is contained in:
2020-07-26 12:43:57 +03:00
parent 9e30bc3d42
commit 6f4501fadf
@@ -82,46 +82,6 @@
entity: light.hallway_entrance entity: light.hallway_entrance
name: Entrance name: Entrance
- type: horizontal-stack
title: Manual controls
cards:
- type: custom:button-card
template:
- default
- with_state_indicator
entity: input_boolean.alarm_enabled
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
state:
- transform: translateY(-13px) # adjusted for state indicator size
variables:
state_indicator_id: automation.alarm_set_time
- type: custom:button-card
template: default
entity: input_boolean.speech_notifications
name: Speech
- type: custom:button-card
template: default
entity: binary_sensor.house_mode
tap_action:
action: call-service
service: input_select.select_next
service_data:
entity_id: input_select.house_mode
- type: custom:button-card
template: default
entity: input_boolean.guest_mode
tap_action:
action: toggle
- type: vertical-stack - type: vertical-stack
title: Devices title: Devices
cards: cards:
@@ -212,6 +172,46 @@
# Column 2 # Column 2
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: horizontal-stack
title: Manual controls
cards:
- type: custom:button-card
template:
- default
- with_state_indicator
entity: input_boolean.alarm_enabled
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
state:
- transform: translateY(-13px) # adjusted for state indicator size
variables:
state_indicator_id: automation.alarm_set_time
- type: custom:button-card
template: default
entity: input_boolean.speech_notifications
name: Speech
- type: custom:button-card
template: default
entity: binary_sensor.house_mode
tap_action:
action: call-service
service: input_select.select_next
service_data:
entity_id: input_select.house_mode
- type: custom:button-card
template: default
entity: input_boolean.guest_mode
tap_action:
action: toggle
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: vertical-stack - type: vertical-stack
@@ -261,14 +261,6 @@
template: default template: default
entity: binary_sensor.kitchen_window entity: binary_sensor.kitchen_window
name: Kitchen name: Kitchen
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: binary_sensor.front_door
- type: custom:button-card
template: default
entity: binary_sensor.bedroom_door
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
@@ -279,12 +271,12 @@
service: input_boolean.toggle service: input_boolean.toggle
service_data: service_data:
entity_id: input_boolean.georgi_home entity_id: input_boolean.georgi_home
- type: entity - type: custom:button-card
entity: device_tracker.mikrotik_carbon template: default
name: Wifi entity: binary_sensor.front_door
- type: entity - type: custom:button-card
entity: device_tracker.carbon template: default
name: GPS entity: binary_sensor.bedroom_door
- type: vertical-stack - type: vertical-stack
title: Climate title: Climate
cards: cards: