mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 02:18:43 +00:00
Dashboards refactoring
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
brita_card:
|
||||||
|
card:
|
||||||
|
type: vertical-stack
|
||||||
|
cards:
|
||||||
|
- type: entities
|
||||||
|
entities:
|
||||||
|
- input_number.brita_remaining_liters
|
||||||
|
- input_datetime.brita_next_change
|
||||||
|
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
name: New filter
|
||||||
|
entity: script.brita_new_filter
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
name: Pour water
|
||||||
|
entity: script.brita_pour_water
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
name: Filter
|
||||||
|
entity: binary_sensor.brita_should_change_filter
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
media_with_controls:
|
||||||
|
card:
|
||||||
|
type: vertical-stack
|
||||||
|
title: Media
|
||||||
|
cards:
|
||||||
|
- type: custom:decluttering-card
|
||||||
|
template: sonos_media_player
|
||||||
|
variables:
|
||||||
|
- player: "[[player]]"
|
||||||
|
- sync_volume: false
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: custom:button-card
|
||||||
|
template: xs
|
||||||
|
entity: sensor.philip_defranco
|
||||||
|
name: PDS
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: script.youtube_play_latest_pds
|
||||||
|
- type: custom:button-card
|
||||||
|
template: xs
|
||||||
|
entity: script.music_play
|
||||||
|
name: Chill
|
||||||
|
icon: mdi:music
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
|
- type: custom:button-card
|
||||||
|
template: xs
|
||||||
|
entity: script.music_play
|
||||||
|
name: Retro
|
||||||
|
icon: mdi:music
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: script.music_play
|
||||||
|
service_data:
|
||||||
|
playlist: "Retro"
|
||||||
|
- type: custom:button-card
|
||||||
|
template:
|
||||||
|
- xs
|
||||||
|
- with_state_background
|
||||||
|
entity: binary_sensor.sonos_is_bedroom_master
|
||||||
|
name: Bedroom
|
||||||
|
icon: mdi:speaker-multiple
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: script.sonos_join_bedroom
|
||||||
|
- type: custom:button-card
|
||||||
|
template:
|
||||||
|
- xs
|
||||||
|
- with_state_background
|
||||||
|
entity: binary_sensor.sonos_is_living_room_master
|
||||||
|
name: TV
|
||||||
|
icon: mdi:speaker-multiple
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: script.sonos_join_tv
|
||||||
@@ -15,59 +15,8 @@
|
|||||||
max_columns: 1
|
max_columns: 1
|
||||||
cards:
|
cards:
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
|
||||||
- type: vertical-stack
|
|
||||||
title: Media
|
|
||||||
cards:
|
cards:
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: sonos_media_player
|
template: media_with_controls
|
||||||
variables:
|
variables:
|
||||||
- player: media_player.bathroom
|
- player: media_player.bathroom
|
||||||
- sync_volume: false
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: sensor.philip_defranco
|
|
||||||
name: PDS
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.youtube_play_latest_pds
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Chill
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: toggle
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Retro
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.music_play
|
|
||||||
service_data:
|
|
||||||
playlist: "Retro"
|
|
||||||
- type: custom:button-card
|
|
||||||
template:
|
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: binary_sensor.sonos_is_bedroom_master
|
|
||||||
name: Bedroom
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_bedroom
|
|
||||||
- type: custom:button-card
|
|
||||||
template:
|
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: binary_sensor.sonos_is_living_room_master
|
|
||||||
name: TV
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_tv
|
|
||||||
|
|
||||||
|
|||||||
@@ -77,62 +77,10 @@
|
|||||||
template: default
|
template: default
|
||||||
entity: switch.titanium_power
|
entity: switch.titanium_power
|
||||||
|
|
||||||
- type: vertical-stack
|
|
||||||
cards:
|
|
||||||
- type: vertical-stack
|
|
||||||
title: Media
|
|
||||||
cards:
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: sonos_media_player
|
template: media_with_controls
|
||||||
variables:
|
variables:
|
||||||
- player: media_player.kitchen
|
- player: media_player.kitchen
|
||||||
- sync_volume: false
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: sensor.philip_defranco
|
|
||||||
name: PDS
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.youtube_play_latest_pds
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Chill
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: toggle
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Retro
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.music_play
|
|
||||||
service_data:
|
|
||||||
playlist: "Retro"
|
|
||||||
- type: custom:button-card
|
|
||||||
template:
|
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: binary_sensor.sonos_is_bedroom_master
|
|
||||||
name: Bedroom
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_bedroom
|
|
||||||
- type: custom:button-card
|
|
||||||
template:
|
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: binary_sensor.sonos_is_living_room_master
|
|
||||||
name: TV
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_tv
|
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
@@ -162,18 +110,3 @@
|
|||||||
name: Hallway
|
name: Hallway
|
||||||
variables:
|
variables:
|
||||||
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
|
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
|
||||||
|
|
||||||
- type: vertical-stack
|
|
||||||
cards:
|
|
||||||
- type: vertical-stack
|
|
||||||
title: Brita
|
|
||||||
cards:
|
|
||||||
- type: entities
|
|
||||||
title: Brita Filter
|
|
||||||
icon: mdi:filter-outline
|
|
||||||
entities:
|
|
||||||
- input_number.brita_remaining_liters
|
|
||||||
- input_datetime.brita_next_change
|
|
||||||
- binary_sensor.brita_should_change_filter
|
|
||||||
- script.brita_new_filter
|
|
||||||
- script.brita_pour_water
|
|
||||||
|
|||||||
@@ -88,61 +88,11 @@
|
|||||||
icon: mdi:pi-hole
|
icon: mdi:pi-hole
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
|
||||||
- type: vertical-stack
|
|
||||||
title: Media
|
|
||||||
cards:
|
cards:
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: sonos_media_player
|
template: media_with_controls
|
||||||
variables:
|
variables:
|
||||||
- player: media_player.living_room
|
- player: media_player.living_room
|
||||||
- sync_volume: false
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: sensor.philip_defranco
|
|
||||||
name: PDS
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.youtube_play_latest_pds
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Chill
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: toggle
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Retro
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.music_play
|
|
||||||
service_data:
|
|
||||||
playlist: "Retro"
|
|
||||||
- type: custom:button-card
|
|
||||||
template:
|
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: binary_sensor.sonos_is_bedroom_master
|
|
||||||
name: Bedroom
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_bedroom
|
|
||||||
- type: custom:button-card
|
|
||||||
template:
|
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: binary_sensor.sonos_is_living_room_master
|
|
||||||
name: TV
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_tv
|
|
||||||
|
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
|
|||||||
@@ -71,95 +71,11 @@
|
|||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: binary_sensor.house_mode
|
entity: binary_sensor.house_mode
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- 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
|
|
||||||
cards:
|
|
||||||
- type: vertical-stack
|
|
||||||
title: Media
|
|
||||||
cards:
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: sonos_media_player
|
template: media_with_controls
|
||||||
variables:
|
variables:
|
||||||
- player: media_player.master_bedroom
|
- player: media_player.master_bedroom
|
||||||
- sync_volume: false
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: sensor.philip_defranco
|
|
||||||
name: PDS
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.youtube_play_latest_pds
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Chill
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: toggle
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Retro
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.music_play
|
|
||||||
service_data:
|
|
||||||
playlist: "Retro"
|
|
||||||
- type: custom:button-card
|
|
||||||
template:
|
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: binary_sensor.sonos_is_bedroom_master
|
|
||||||
name: Bedroom
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_bedroom
|
|
||||||
- type: custom:button-card
|
|
||||||
template:
|
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: binary_sensor.sonos_is_living_room_master
|
|
||||||
name: TV
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_tv
|
|
||||||
|
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
|
|||||||
@@ -248,25 +248,8 @@ script.brita_pour_water:
|
|||||||
title: Brita
|
title: Brita
|
||||||
style: *popup_style
|
style: *popup_style
|
||||||
card:
|
card:
|
||||||
type: vertical-stack
|
type: custom:decluttering-card
|
||||||
cards:
|
template: brita_card
|
||||||
- type: entities
|
|
||||||
entities:
|
|
||||||
- input_number.brita_remaining_liters
|
|
||||||
- input_datetime.brita_next_change
|
|
||||||
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:button-card
|
|
||||||
template: default
|
|
||||||
name: New filter
|
|
||||||
entity: script.brita_new_filter
|
|
||||||
tap_action:
|
|
||||||
action: toggle
|
|
||||||
- type: custom:button-card
|
|
||||||
template: default
|
|
||||||
name: Filter
|
|
||||||
entity: binary_sensor.brita_should_change_filter
|
|
||||||
|
|
||||||
sensor.outlet_1_power:
|
sensor.outlet_1_power:
|
||||||
title: Desk power
|
title: Desk power
|
||||||
|
|||||||
Reference in New Issue
Block a user