mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-29 06:48:16 +00:00
Tweak bedroom dashboard
This commit is contained in:
@@ -37,50 +37,72 @@
|
|||||||
name: Bedside
|
name: Bedside
|
||||||
|
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: vertical-stack
|
||||||
title: Devices
|
title: Controls
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: horizontal-stack
|
||||||
template:
|
cards:
|
||||||
- default
|
- type: custom:button-card
|
||||||
- with_state_indicator
|
template:
|
||||||
entity: fan.philips_airpurifier
|
- default
|
||||||
variables:
|
- with_state_indicator
|
||||||
state_indicator_id: binary_sensor.purifier_filter_needs_change
|
entity: input_boolean.alarm_enabled
|
||||||
state_indicator_size: 5px
|
state_display: "[[[return states['input_datetime.alarm_time'].state.split(':').slice(0, -1).join(':'); ]]]"
|
||||||
state_indicator_off_size: 0px
|
show_state: true
|
||||||
state_indicator_on_color: var(--color-red)
|
show_name: false
|
||||||
state_on_indicator_on_color: var(--color-red)
|
styles:
|
||||||
- type: custom:button-card
|
|
||||||
template: default
|
|
||||||
entity: media_player.nvidia_shield
|
|
||||||
name: TV
|
|
||||||
icon: mdi:television
|
|
||||||
tap_action:
|
|
||||||
action: toggle
|
|
||||||
state:
|
|
||||||
- value: 'playing'
|
|
||||||
styles: &on_styles
|
|
||||||
card:
|
|
||||||
- background-color: var(--primary-color)
|
|
||||||
- color: black
|
|
||||||
icon:
|
icon:
|
||||||
- color: black
|
- transform: translateY(-8px) # adjusted for state indicator size
|
||||||
- value: 'standby'
|
state:
|
||||||
styles: *on_styles
|
- transform: translateY(-13px) # adjusted for state indicator size
|
||||||
- value: 'on'
|
variables:
|
||||||
styles: *on_styles
|
state_indicator_id: automation.alarm_set_time
|
||||||
- value: 'home'
|
- type: custom:button-card
|
||||||
styles: *on_styles
|
template: default
|
||||||
- value: 'idle'
|
entity: binary_sensor.house_mode
|
||||||
styles: *on_styles
|
- type: horizontal-stack
|
||||||
- type: custom:button-card
|
cards:
|
||||||
template: default
|
- type: custom:button-card
|
||||||
entity: switch.titanium_power
|
template:
|
||||||
- type: custom:button-card
|
- default
|
||||||
template: default
|
- with_state_indicator
|
||||||
entity: switch.camera
|
entity: fan.philips_airpurifier
|
||||||
name: Camera
|
variables:
|
||||||
|
state_indicator_id: binary_sensor.purifier_filter_needs_change
|
||||||
|
state_indicator_size: 5px
|
||||||
|
state_indicator_off_size: 0px
|
||||||
|
state_indicator_on_color: var(--color-red)
|
||||||
|
state_on_indicator_on_color: var(--color-red)
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: media_player.nvidia_shield
|
||||||
|
name: TV
|
||||||
|
icon: mdi:television
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
|
state:
|
||||||
|
- value: 'playing'
|
||||||
|
styles: &on_styles
|
||||||
|
card:
|
||||||
|
- background-color: var(--primary-color)
|
||||||
|
- color: black
|
||||||
|
icon:
|
||||||
|
- color: black
|
||||||
|
- value: 'standby'
|
||||||
|
styles: *on_styles
|
||||||
|
- value: 'on'
|
||||||
|
styles: *on_styles
|
||||||
|
- value: 'home'
|
||||||
|
styles: *on_styles
|
||||||
|
- value: 'idle'
|
||||||
|
styles: *on_styles
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: switch.titanium_power
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: switch.camera
|
||||||
|
name: Camera
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
@@ -96,6 +96,8 @@ homeassistant:
|
|||||||
icon: bha:ceiling-lamp-plafond
|
icon: bha:ceiling-lamp-plafond
|
||||||
light.living_room_all_lights:
|
light.living_room_all_lights:
|
||||||
icon: bha:ceiling-lamp-plafond
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
light.master_bedroom_all_lights:
|
||||||
|
icon: bha:ceiling-lamp-plafond
|
||||||
light.master_bedroom_main_lights:
|
light.master_bedroom_main_lights:
|
||||||
icon: bha:ceiling-lamp-plafond
|
icon: bha:ceiling-lamp-plafond
|
||||||
light.kitchen_main_lights:
|
light.kitchen_main_lights:
|
||||||
|
|||||||
Reference in New Issue
Block a user