Add kitchen dashboard

This commit is contained in:
2020-04-25 13:08:37 +03:00
parent d495b548ae
commit e1a2843a53
7 changed files with 476 additions and 303 deletions
+7 -1
View File
@@ -30,7 +30,13 @@ lovelace:
title: Home title: Home
icon: mdi:home icon: mdi:home
show_in_sidebar: true show_in_sidebar: true
filename: home-lovelace.yaml filename: ui-lovelace.yaml
lovelace-kitchen:
mode: yaml
title: Kitchen
icon: mdi:chef-hat
show_in_sidebar: false
filename: kitchen-lovelace.yaml
lovelace-floorlan: lovelace-floorlan:
mode: yaml mode: yaml
title: Floorplan title: Floorplan
+24
View File
@@ -0,0 +1,24 @@
custom_header:
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
popup_cards: !include lovelace/popup_cards.yaml
title: Kitchen
views:
- title: Kitchen
path: default_view
icon: "mdi:chef-hat"
cards: !include lovelace/home_dashboard/kitchen_dashboard.yaml
- title: Home
path: home_view
icon: "mdi:home"
panel: true
cards: !include lovelace/home_dashboard/main_dashboard.yaml
@@ -0,0 +1,25 @@
xs:
size: 20px
hold_action:
action: more-info
styles:
card:
- height: 70px
- font-size: 12px
name:
- height: 24px
state:
- value: 'on'
styles:
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black
- value: 'home'
styles:
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black
@@ -0,0 +1,119 @@
- 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: 1
cards:
- type: horizontal-stack
title: Lights
cards:
- type: custom:button-card
template: small
entity: light.tuya_kitchen_all_lights
name: All lights
- type: custom:button-card
template: small
entity: light.tuya_kitchen_main_lights
name: Main
- type: custom:button-card
template: small
entity: light.tuya_kitchen_secondary_lights
name: Secondary
- type: horizontal-stack
title: Hallway
cards:
- type: custom:button-card
template: small
entity: light.hallway_all_lights
name: All lights
- type: custom:button-card
template: small
entity: light.hallway_entrance_lights
name: Entrance
- type: custom:button-card
template: small
entity: light.tuya_hallway_main_lights
name: Main
- type: vertical-stack
cards:
- type: vertical-stack
title: Media
cards:
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.kitchen
- type: horizontal-stack
cards:
- type: custom:button-card
template: xs
entity: sensor.philip_defranco
name: Latest 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
entity: script.sonos_join_bedroom
name: Bedroom
icon: mdi:speaker-multiple
tap_action:
action: toggle
- type: custom:button-card
template: xs
entity: script.sonos_join_tv
icon: mdi:speaker-multiple
name: TV
tap_action:
action: toggle
- type: horizontal-stack
cards:
- type: custom:button-card
template: xs
entity: binary_sensor.browser_kitchen
name: Motion
- type: custom:button-card
template: xs
entity: binary_sensor.motion_1_ias_zone
name: Motion 2
- type: custom:button-card
template: xs
entity: binary_sensor.motion_2_ias_zone
name: Hallway
- type: custom:button-card
template: xs
entity: media_player.nvidia_shield
name: Shield
- type: custom:button-card
template: xs
entity: switch.titanium_power
+290 -295
View File
@@ -1,312 +1,307 @@
title: Home - type: custom:mod-card
path: default_view style:
icon: "mdi:home" layout-card:
panel: true $:
cards: .: |
- type: custom:mod-card #columns {
style: padding: 0 10px;
layout-card: }
$: #columns .column {
.: | padding: 10px 10px;
#columns { }
padding: 0 10px; card:
} type: custom:layout-card
#columns .column { layout: horizontal
padding: 10px 10px; max_columns: 3
} cards:
card: # Column 1
type: custom:layout-card - type: vertical-stack
layout: horizontal cards:
max_columns: 3 - type: vertical-stack
cards: title: Lights
# Column 1 cards:
- type: vertical-stack - type: horizontal-stack
cards: cards:
- type: vertical-stack - type: custom:button-card
title: Lights template: small
cards: entity: light.ceiling_lights
- type: horizontal-stack name: Ceiling
cards: - type: custom:button-card
- type: custom:button-card template: small
template: small entity: light.living_room_main_lights
entity: light.ceiling_lights name: Living room
name: Ceiling - type: custom:button-card
- type: custom:button-card template: small
template: small entity: light.pc
entity: light.living_room_main_lights - type: horizontal-stack
name: Living room cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: light.pc entity: light.master_bedroom_main_lights
- type: horizontal-stack name: "M. Bedroom"
cards: - type: custom:button-card
- type: custom:button-card template: small
template: small entity: light.bedside_light
entity: light.master_bedroom_main_lights name: Bedside
name: "M. Bedroom" - type: custom:button-card
- type: custom:button-card template: small
template: small entity: light.bed_led
entity: light.bedside_light name: Bed
name: Bedside - type: horizontal-stack
- type: custom:button-card cards:
template: small - type: custom:button-card
entity: light.bed_led template: small
name: Bed entity: light.tuya_kitchen_all_lights
- type: horizontal-stack name: Kitchen
cards: - type: custom:button-card
- type: custom:button-card template: small
template: small entity: light.tuya_hallway_main_lights
entity: light.tuya_kitchen_all_lights name: Hallway
name: Kitchen - type: custom:button-card
- type: custom:button-card template: small
template: small entity: light.hallway_entrance_lights
entity: light.tuya_hallway_main_lights name: Entrance
name: Hallway
- type: custom:button-card
template: small
entity: light.hallway_entrance_lights
name: Entrance
- type: vertical-stack - type: vertical-stack
title: Devices title: Devices
cards: cards:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: media_player.nvidia_shield entity: media_player.nvidia_shield
tap_action: tap_action:
action: call-service action: call-service
service: media_player.toggle service: media_player.toggle
service_data: service_data:
entity_id: media_player.nvidia_shield entity_id: media_player.nvidia_shield
state: state:
- value: 'playing' - value: 'playing'
styles: styles:
card: card:
- background-color: var(--primary-color) - background-color: var(--primary-color)
- color: black - color: black
icon: icon:
- color: black - color: black
- value: 'standby' - value: 'standby'
styles: styles:
card: card:
- background-color: var(--primary-color) - background-color: var(--primary-color)
- color: black - color: black
icon: icon:
- color: black - color: black
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: media_player.living_room_tv entity: media_player.living_room_tv
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: switch.titanium_power entity: switch.titanium_power
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: switch.camera entity: switch.camera
name: Camera name: Camera
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: fan.philips_airpurifier entity: fan.philips_airpurifier
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: sensor.synology_dsm_type_volume_1 entity: sensor.synology_dsm_type_volume_1
name: Platinum name: Platinum
icon: mdi:nas icon: mdi:nas
tap_action: tap_action:
action: more-info action: more-info
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: binary_sensor.pi_hole_enabled entity: binary_sensor.pi_hole_enabled
name: Pi-Hole name: Pi-Hole
icon: mdi:pi-hole icon: mdi:pi-hole
- type: vertical-stack - type: vertical-stack
title: Presence title: Presence
cards: cards:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: binary_sensor.georgi_home entity: binary_sensor.georgi_home
tap_action: tap_action:
action: call-service action: call-service
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: custom:button-card - type: custom:button-card
template: small template: small
entity: device_tracker.mikrotik_carbon entity: device_tracker.mikrotik_carbon
name: Wifi name: Wifi
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: device_tracker.carbon entity: device_tracker.carbon
name: GPS name: GPS
# Column 2 # Column 2
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: vertical-stack - type: vertical-stack
title: Manual controls title: Manual controls
cards: cards:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: input_boolean.speech_notifications entity: input_boolean.speech_notifications
name: Speech name: Speech
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: binary_sensor.house_mode entity: binary_sensor.house_mode
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: input_boolean.guest_mode entity: input_boolean.guest_mode
tap_action: tap_action:
action: call-service action: call-service
service: script.house_mode_next service: script.house_mode_next
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: input_boolean.alarm_enabled entity: input_boolean.alarm_enabled
name: Alarm name: Alarm
styles: styles:
card: card:
- width: 150px - width: 150px
- type: entities - type: entities
entities: entities:
- entity: input_datetime.alarm_time - entity: input_datetime.alarm_time
name: Time name: Time
- type: vertical-stack - type: vertical-stack
title: Sensors title: Sensors
cards: cards:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: binary_sensor.front_door_on_off_wrapper entity: binary_sensor.front_door_on_off_wrapper
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: binary_sensor.living_room_right_window_on_off_wrapper entity: binary_sensor.living_room_right_window_on_off_wrapper
name: Living room name: Living room
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: binary_sensor.bedroom_right_window_on_off_wrapper entity: binary_sensor.bedroom_right_window_on_off_wrapper
name: M. Bedroom name: M. Bedroom
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: binary_sensor.browser_kitchen entity: binary_sensor.browser_kitchen
name: Kitchen motion name: Kitchen motion
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: binary_sensor.motion_1_ias_zone entity: binary_sensor.motion_1_ias_zone
name: Kitchen motion 2 name: Kitchen motion 2
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: binary_sensor.motion_2_ias_zone entity: binary_sensor.motion_2_ias_zone
name: Hallway motion name: Hallway motion
- type: vertical-stack - type: vertical-stack
title: Temperature title: Temperature
cards: cards:
- type: "custom:mini-graph-card" - type: "custom:mini-graph-card"
name: M. Bedroom name: M. Bedroom
font_size: 75 font_size: 75
line_color: var(--color-blue) line_color: var(--color-blue)
line_width: 4 line_width: 4
height: 40 height: 40
show: show:
fill: fade fill: fade
labels: hover labels: hover
legend: false legend: false
entities: entities:
- sensor.bedroom_weather_temperature - sensor.bedroom_weather_temperature
# Column 3 # Column 3
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: vertical-stack - type: vertical-stack
title: Media title: Media
cards: cards:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: sensor.philip_defranco entity: sensor.philip_defranco
name: Latest PDS name: Latest PDS
tap_action: tap_action:
action: call-service action: call-service
service: script.youtube_play_latest_pds service: script.youtube_play_latest_pds
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: script.music_play entity: script.music_play
name: Chill name: Chill
icon: mdi:music icon: mdi:music
tap_action: tap_action:
action: toggle action: toggle
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: script.music_play entity: script.music_play
name: Retro name: Retro
icon: mdi:music icon: mdi:music
tap_action: tap_action:
action: call-service action: call-service
service: script.music_play service: script.music_play
service_data: service_data:
playlist: "Retro" playlist: "Retro"
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: script.tv_fireplace entity: script.tv_fireplace
name: Fireplace name: Fireplace
tap_action: tap_action:
action: toggle action: toggle
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: script.sonos_join_bedroom entity: script.sonos_join_bedroom
name: Sonos from Bedroom name: Sonos from Bedroom
icon: mdi:speaker-multiple icon: mdi:speaker-multiple
tap_action: tap_action:
action: toggle action: toggle
- type: custom:button-card - type: custom:button-card
template: small template: small
entity: script.sonos_join_tv entity: script.sonos_join_tv
icon: mdi:speaker-multiple icon: mdi:speaker-multiple
name: Sonos from TV name: Sonos from TV
tap_action: tap_action:
action: toggle action: toggle
- type: custom:decluttering-card - type: custom:decluttering-card
template: sonos_media_player template: sonos_media_player
variables: variables:
- player: media_player.master_bedroom - player: media_player.master_bedroom
- type: custom:decluttering-card - type: custom:decluttering-card
template: sonos_media_player template: sonos_media_player
variables: variables:
- player: media_player.living_room - player: media_player.living_room
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:decluttering-card - type: custom:decluttering-card
template: sonos_media_player_small template: sonos_media_player_small
variables: variables:
- player: media_player.kitchen - player: media_player.kitchen
- type: custom:decluttering-card - type: custom:decluttering-card
template: sonos_media_player_small template: sonos_media_player_small
variables: variables:
- player: media_player.bathroom - player: media_player.bathroom
+6 -6
View File
@@ -125,16 +125,16 @@ media_player.nvidia_shield:
card: card:
type: vertical-stack type: vertical-stack
cards: cards:
- type: custom:decluttering-card - type: "custom:mini-media-player"
template: sonos_media_player entity: media_player.nvidia_shield
variables:
- player: media_player.living_room
- type: "custom:mini-media-player" - type: "custom:mini-media-player"
entity: media_player.living_room_tv entity: media_player.living_room_tv
- type: "custom:mini-media-player" - type: custom:decluttering-card
entity: media_player.nvidia_shield template: sonos_media_player
variables:
- player: media_player.living_room
light.living_room_main_lights: light.living_room_main_lights:
title: Living room lights title: Living room lights
+5 -1
View File
@@ -7,4 +7,8 @@ popup_cards: !include lovelace/popup_cards.yaml
title: Home title: Home
views: views:
- !include lovelace/home_dashboard/main_dashboard.yaml - title: Home
path: default_view
icon: "mdi:home"
panel: true
cards: !include lovelace/home_dashboard/main_dashboard.yaml