Initial implementation of tablet dashboard

This commit is contained in:
2020-03-28 20:03:22 +02:00
parent 68866a7cbd
commit 8403e44659
19 changed files with 170 additions and 27 deletions
+7 -1
View File
@@ -24,12 +24,18 @@ lovelace:
mode: yaml mode: yaml
resources: !include lovelace/resources.yaml resources: !include lovelace/resources.yaml
dashboards: dashboards:
lovelace-yaml: lovelace-main:
mode: yaml mode: yaml
title: Main Dashboard title: Main Dashboard
icon: mdi:home icon: mdi:home
show_in_sidebar: false show_in_sidebar: false
filename: ui-lovelace.yaml filename: ui-lovelace.yaml
lovelace-tablet:
mode: yaml
title: Tablet
icon: mdi:tablet-ipad
show_in_sidebar: true
filename: tablet-lovelace.yaml
lovelace-floorlan: lovelace-floorlan:
mode: yaml mode: yaml
title: Floorplan title: Floorplan
@@ -0,0 +1,12 @@
small:
size: 30px
hold_action:
action: more-info
double_tap_action:
action: more-info
styles:
card:
- height: 100px
- font-size: 14px
name:
- height: 30px
+137
View File
@@ -0,0 +1,137 @@
custom_header:
hide_header: true
hide_config: true
hide_help: true
hide_unused: true
decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates
button_card_templates: !include_dir_merge_named lovelace/button_card_templates
title: Tablet
views:
- title: Home
path: default_view
icon: "mdi:home"
badges: []
cards:
# Column 1
- type: vertical-stack
cards:
- type: vertical-stack
title: Lights
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
entity: light.all_lights
name: All
- type: custom:button-card
template: small
entity: light.living_room_main_lights
name: Living room
- type: custom:button-card
template: small
entity: light.master_bedroom_main_lights
name: Bedroom
- type: custom:button-card
template: small
entity: light.hallway_main_lights
name: Hallway
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
entity: light.kitchen_main_lights
name: Kitchen
- type: custom:button-card
template: small
entity: light.pc
- type: custom:button-card
template: small
entity: light.bedside_light
name: Bedside
- type: custom:button-card
template: small
entity: light.hallway_entrance_lights
name: Entrance
- type: horizontal-stack
title: Devices
cards:
- type: custom:button-card
template: small
entity: switch.camera
- type: custom:button-card
template: small
entity: media_player.living_room_tv
- type: custom:button-card
template: small
entity: media_player.nvidia_shield
- type: custom:button-card
template: small
entity: fan.philips_airpurifier
- type: vertical-stack
title: Sonos
cards:
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.master_bedroom
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.kitchen
# Column 2
- type: vertical-stack
cards:
- type: vertical-stack
title: Manual Overrides
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
entity: input_select.sonos_leader
- type: custom:button-card
template: small
entity: input_boolean.speech_notifications
- type: custom:button-card
template: small
entity: input_boolean.guest_mode
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
entity: input_boolean.domestina
- type: custom:button-card
template: small
entity: input_boolean.sleep_mode
- type: custom:button-card
template: small
entity: input_boolean.georgi_home
- type: horizontal-stack
title: Sensors
cards:
- type: custom:button-card
template: small
entity: binary_sensor.front_door_on_off_wrapper
- type: custom:button-card
template: small
entity: binary_sensor.living_room_right_window_on_off_wrapper
- type: custom:button-card
template: small
entity: binary_sensor.bedroom_right_window_on_off_wrapper
- type: vertical-stack
title: "___"
cards:
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.living_room
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.bathroom
+14 -26
View File
@@ -5,32 +5,20 @@ custom_header:
hide_help: true hide_help: true
hide_unused: true hide_unused: true
decluttering_templates: !include_dir_merge_named lovelace/templates decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates
button_card_templates: !include_dir_merge_named lovelace/button_card_templates
button_card_templates:
small:
size: 30px
hold_action:
action: more-info
styles:
card:
- height: 100px
- font-size: 14px
name:
- height: 30px
title: Sarah title: Sarah
views: views:
- !include lovelace/00_home.yaml - !include lovelace/home_dashboard/00_home.yaml
- !include lovelace/01_living_room.yaml - !include lovelace/home_dashboard/01_living_room.yaml
- !include lovelace/02_master_bedroom.yaml - !include lovelace/home_dashboard/02_master_bedroom.yaml
- !include lovelace/03_kitchen.yaml - !include lovelace/home_dashboard/03_kitchen.yaml
- !include lovelace/04_bathroom.yaml - !include lovelace/home_dashboard/04_bathroom.yaml
- !include lovelace/05_hallway.yaml - !include lovelace/home_dashboard/05_hallway.yaml
- !include lovelace/06_lights.yaml - !include lovelace/home_dashboard/06_lights.yaml
- !include lovelace/07_media.yaml - !include lovelace/home_dashboard/07_media.yaml
- !include lovelace/08_network.yaml - !include lovelace/home_dashboard/08_network.yaml
- !include lovelace/09_system.yaml - !include lovelace/home_dashboard/09_system.yaml
- !include lovelace/10_covid_19.yaml - !include lovelace/home_dashboard/10_covid_19.yaml
- !include lovelace/11_test.yaml - !include lovelace/home_dashboard/11_test.yaml