mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-29 06:48:16 +00:00
More dashboards
This commit is contained in:
@@ -141,11 +141,19 @@
|
||||
template:
|
||||
- xs
|
||||
- with_state_background
|
||||
- with_state_indicator
|
||||
entity: binary_sensor.motion_1_ias_zone
|
||||
name: Motion
|
||||
variables:
|
||||
state_indicator_id: automation.lighting_kitchen_day_mode_motion_turn_lights_on_after_sunset
|
||||
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- xs
|
||||
- with_state_background
|
||||
- with_state_indicator
|
||||
entity: binary_sensor.motion_2_ias_zone
|
||||
name: Hallway
|
||||
variables:
|
||||
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
|
||||
|
||||
|
||||
197
config/lovelace/home_dashboard/living_room_dashboard.yaml
Normal file
197
config/lovelace/home_dashboard/living_room_dashboard.yaml
Normal file
@@ -0,0 +1,197 @@
|
||||
- type: custom:mod-card
|
||||
style:
|
||||
layout-card:
|
||||
$:
|
||||
.: |
|
||||
#columns {
|
||||
padding: 0 10px;
|
||||
}
|
||||
#columns .column {
|
||||
padding: 10px 10px;
|
||||
}
|
||||
card:
|
||||
type: custom:layout-card
|
||||
layout: horizontal
|
||||
max_columns: 2
|
||||
cards:
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: horizontal-stack
|
||||
title: Lights
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: light.living_room_all_lights
|
||||
name: Living room
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: light.living_room_main_lights
|
||||
name: Main
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: light.pc
|
||||
name: PC
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: half
|
||||
entity: light.hallway_entrance_lights
|
||||
name: Entrance
|
||||
- type: custom:button-card
|
||||
template: half
|
||||
entity: light.tuya_hallway_main_lights
|
||||
name: Hallway
|
||||
styles:
|
||||
card:
|
||||
- height: 46px
|
||||
|
||||
- type: horizontal-stack
|
||||
title: Devices
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- xs
|
||||
- with_state_background
|
||||
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:
|
||||
- xs
|
||||
- with_state_background
|
||||
entity: switch.titanium_power
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- xs
|
||||
- with_state_background
|
||||
entity: sensor.synology_type_volume_1
|
||||
name: Platinum
|
||||
icon: mdi:nas
|
||||
tap_action:
|
||||
action: more-info
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- xs
|
||||
- with_state_background
|
||||
entity: switch.camera
|
||||
name: Camera
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- xs
|
||||
- with_state_background
|
||||
entity: binary_sensor.pi_hole_enabled
|
||||
name: Pi-Hole
|
||||
icon: mdi:pi-hole
|
||||
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: vertical-stack
|
||||
title: Media
|
||||
cards:
|
||||
- type: custom:decluttering-card
|
||||
template: sonos_media_player
|
||||
variables:
|
||||
- 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
|
||||
cards:
|
||||
- type: horizontal-stack
|
||||
title: Sensors
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: binary_sensor.living_room_right_window_on_off_wrapper
|
||||
name: Window
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- default
|
||||
- with_state_indicator
|
||||
entity: binary_sensor.motion_2_ias_zone
|
||||
name: Hallway
|
||||
variables:
|
||||
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
|
||||
- type: vertical-stack
|
||||
title: Camera
|
||||
cards:
|
||||
- type: picture-entity
|
||||
aspect_ratio: 50%
|
||||
entity: camera.amcrest_camera
|
||||
show_name: true
|
||||
show_state: true
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: binary_sensor.amcrest_camera_online
|
||||
name: Online
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: binary_sensor.amcrest_camera_motion_detected
|
||||
name: Motion
|
||||
186
config/lovelace/home_dashboard/master_bedroom_dashboard.yaml
Normal file
186
config/lovelace/home_dashboard/master_bedroom_dashboard.yaml
Normal file
@@ -0,0 +1,186 @@
|
||||
- type: custom:mod-card
|
||||
style:
|
||||
layout-card:
|
||||
$:
|
||||
.: |
|
||||
#columns {
|
||||
padding: 0 10px;
|
||||
}
|
||||
#columns .column {
|
||||
padding: 10px 10px;
|
||||
}
|
||||
card:
|
||||
type: custom:layout-card
|
||||
layout: horizontal
|
||||
max_columns: 2
|
||||
cards:
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: horizontal-stack
|
||||
title: Lights
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: light.master_bedroom_all_lights
|
||||
name: M. Bedroom
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: light.master_bedroom_main_lights
|
||||
name: Main
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: light.bed_led
|
||||
name: LED
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: light.bedside_light
|
||||
name: Bedside
|
||||
|
||||
|
||||
- type: horizontal-stack
|
||||
title: Devices
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- default
|
||||
- with_state_indicator
|
||||
entity: fan.philips_airpurifier
|
||||
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
|
||||
cards:
|
||||
- type: vertical-stack
|
||||
title: Media
|
||||
cards:
|
||||
- type: custom:decluttering-card
|
||||
template: sonos_media_player
|
||||
variables:
|
||||
- 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
|
||||
cards:
|
||||
- type: horizontal-stack
|
||||
title: Sensors
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: binary_sensor.bedroom_right_window_on_off_wrapper
|
||||
name: M. Bedroom
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- small
|
||||
- progress
|
||||
name: Temperature
|
||||
entity: sensor.bedroom_weather_temperature
|
||||
variables:
|
||||
degrees: 200
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- small
|
||||
- progress
|
||||
name: Humidity
|
||||
entity: sensor.bedroom_weather_humidity
|
||||
variables:
|
||||
min_value: 25
|
||||
max_value: 90
|
||||
normal_value: 40
|
||||
high_value: 65
|
||||
low_color: "var(--color-red)"
|
||||
normal_color: "var(--color-green)"
|
||||
high_color: "var(--color-red)"
|
||||
degrees: 200
|
||||
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- default
|
||||
- with_state_indicator
|
||||
entity: binary_sensor.motion_2_ias_zone
|
||||
name: Hallway
|
||||
variables:
|
||||
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: bedroom_temperature_card
|
||||
@@ -1,6 +1,10 @@
|
||||
custom_header:
|
||||
hide_header: true
|
||||
disable_sidebar: false
|
||||
compact_mode: true
|
||||
hide_config: true
|
||||
hide_help: true
|
||||
hide_unused: true
|
||||
hide_reload_resources: true
|
||||
indicator_top: true
|
||||
|
||||
decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates
|
||||
button_card_templates: !include_dir_merge_named lovelace/button_card_templates
|
||||
@@ -13,3 +17,18 @@ views:
|
||||
icon: "mdi:home"
|
||||
panel: true
|
||||
cards: !include lovelace/home_dashboard/main_dashboard.yaml
|
||||
- title: Living room
|
||||
path: living_room
|
||||
icon: "mdi:sofa"
|
||||
panel: true
|
||||
cards: !include lovelace/home_dashboard/living_room_dashboard.yaml
|
||||
- title: Master bedroom
|
||||
path: master_bedroom
|
||||
icon: "mdi:bed-empty"
|
||||
panel: true
|
||||
cards: !include lovelace/home_dashboard/master_bedroom_dashboard.yaml
|
||||
- title: Kitchen
|
||||
path: kitchen
|
||||
icon: "mdi:chef-hat"
|
||||
panel: true
|
||||
cards: !include lovelace/home_dashboard/kitchen_dashboard.yaml
|
||||
|
||||
Reference in New Issue
Block a user