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
+157
View File
@@ -0,0 +1,157 @@
title: Home
path: default_view
icon: "mdi:home"
badges: []
cards:
# Column 1: Active Controls
- 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: entities
title: Devices
show_header_toggle: false
entities:
- switch.camera
- media_player.living_room_tv
- media_player.nvidia_shield
- fan.philips_airpurifier
- type: custom:config-template-card
entities:
- input_select.sonos_leader
card:
type: custom:decluttering-card
template: sonos_media_player
variables:
- player: ${states['input_select.sonos_leader'].state}
- type: entities
show_header_toggle: false
entities:
- binary_sensor.sonos_recoverable
- type: entities
title: Manual Overrides
show_header_toggle: false
entities:
- input_select.sonos_leader
- input_boolean.speech_notifications
- input_boolean.guest_mode
- input_boolean.domestina
- input_boolean.sleep_mode
- input_boolean.georgi_home
# Column 2: Sensors
- type: vertical-stack
cards:
- 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: entities
title: Presence
show_header_toggle: false
entities:
- binary_sensor.georgi_home
- device_tracker.carbon
- device_tracker.tile_1bcb2b3021b9f96b
- type: entities
title: Misc Badges
show_header_toggle: false
entities:
- sun.sun
- sensor.carbon_battery_level
- sensor.carbon_steps
- binary_sensor.updater
# Column 3: Misc
- type: vertical-stack
cards:
- type: entities
title: Alarm
entities:
- input_boolean.alarm_enabled
- input_datetime.alarm_time
- type: "custom:weather-card"
current: true
details: true
entity: weather.dark_sky
forecast: true
- type: "custom:aftership-card"
title: Packages
entity: sensor.aftership
show_add: false
style: |
ha-card {
padding-top: 1em;
padding-bottom: 1em;
}
paper-item-body:first-child {
width: 32px;
}
paper-item-body {
width: 45%;
white-space: normal !important;
}
ha-icon {
padding: 0;
}
- type: "custom:travel-time-card"
title: Travel time
columns:
- name
- duration
- distance
entities:
- sensor.home_to_work
- sensor.work_to_home
@@ -0,0 +1,104 @@
title: Living Room
path: living-room
icon: "mdi:sofa"
badges: []
cards:
- type: vertical-stack
cards:
- type: entities
title: Lights
show_header_toggle: false
entities:
- type: custom:slider-entity-row
entity: light.living_room_all_lights
name: All lights
toggle: true
step: 5
- type: custom:fold-entity-row
head:
entity: light.living_room_main_lights
name: Main lights
entities:
- type: custom:slider-entity-row
entity: light.living_room_main_lights
name: Brightness
hide_state: true
step: 5
- type: custom:slider-entity-row
entity: light.living_room_main_lights
name: Temperature
attribute: color_temp
hide_state: true
min: 153
max: 500
step: 5
- type: custom:decluttering-card
template: light_with_fade_and_switch
variables:
- light: light.light_lohas_1
- fade: switch.light_lohas_1_fade
- type: custom:decluttering-card
template: light_with_fade_and_switch
variables:
- light: light.light_lohas_2
- fade: switch.light_lohas_2_fade
- light.light_le_9
- light.light_le_10
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: light_with_fade_and_switch
variables:
- light: light.pc
- fade: switch.pc_light_fade
entities:
- type: custom:slider-entity-row
entity: light.pc
name: Brightness
hide_state: true
step: 5
- type: glance
show_state: false
entities:
- binary_sensor.titanium
- entity: script.titanium_start
name: Start
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.living_room
- type: "custom:mini-media-player"
entity: media_player.living_room_tv
- type: "custom:mini-media-player"
entity: media_player.playstation_4
- type: vertical-stack
cards:
- type: glance
title: Window
show_icon: true
show_name: false
show_state: true
entities:
- binary_sensor.living_room_right_window_on_off_wrapper
- sensor.living_room_right_window_power
- type: vertical-stack
cards:
- type: picture-entity
aspect_ratio: 50%
entity: camera.amcrest_camera
show_name: true
show_state: true
- type: entities
title: Camera Controls
show_header_toggle: false
entities:
- switch.camera
- binary_sensor.amcrest_camera_online
- binary_sensor.amcrest_camera_motion_detected
@@ -0,0 +1,150 @@
title: Master Bedroom
path: master-bedroom
icon: "mdi:bed-empty"
badges: []
cards:
- type: vertical-stack
cards:
- type: entities
title: Lights
show_header_toggle: false
entities:
- type: custom:slider-entity-row
entity: light.master_bedroom_all_lights
name: All lights
toggle: true
step: 5
- type: custom:fold-entity-row
head:
entity: light.master_bedroom_main_lights
name: Main lights
entities:
- type: custom:slider-entity-row
entity: light.master_bedroom_main_lights
name: Brightness
hide_state: true
step: 5
- type: custom:slider-entity-row
entity: light.master_bedroom_main_lights
name: Temperature
attribute: color_temp
hide_state: true
min: 153
max: 500
step: 5
- type: custom:decluttering-card
template: light_with_fade_and_switch
variables:
- light: light.light_le_1
- fade: switch.light_le_1_fade
- type: custom:decluttering-card
template: light_with_fade_and_switch
variables:
- light: light.light_le_2
- fade: switch.light_le_2_fade
- type: custom:decluttering-card
template: light_with_fade_and_switch
variables:
- light: light.light_le_3
- fade: switch.light_le_3_fade
- type: custom:decluttering-card
template: light_with_fade_and_switch
variables:
- light: light.light_le_4
- fade: switch.light_le_4_fade
- light.bedside_light
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.master_bedroom
- type: vertical-stack
cards:
- type: glance
title: Window
show_name: false
entities:
- binary_sensor.bedroom_right_window_on_off_wrapper
- sensor.bedroom_right_window_power
- type: "custom:mini-graph-card"
animate: true
line_width: 3
points_per_hour: 1
show:
average: true
extrema: true
entities:
- entity: sensor.bedroom_weather_temperature
name: Temperature
- type: horizontal-stack
cards:
- type: "custom:mini-graph-card"
name: Humidity
font_size: 75
icon: "mdi:water"
line_color: green
line_width: 8
entities:
- sensor.bedroom_weather_humidity
- type: "custom:mini-graph-card"
name: Pressure
entities:
- sensor.bedroom_weather_pressure
font_size: 75
line_color: var(--accent-color)
line_width: 8
- type: "custom:mini-graph-card"
name: Air Quality
font_size: 75
icon: "mdi:weather-windy"
line_color: "#e74c3c"
line_width: 8
entities:
- sensor.purifier_air_quality
- type: vertical-stack
cards:
- type: entities
title: Air Purifier
show_header_toggle: false
entities:
- entity: fan.philips_airpurifier
name: Purifier Working
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: sensor.purifier_air_quality
name: Sensors
icon: mdi:air-purifier
open: true
entities:
- sensor.purifier_air_quality
- sensor.purifier_allergens
- sensor.purifier_temperature
- sensor.purifier_humidity
- sensor.purifier_water_level
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: sensor.purifier_speed
name: Mode
entities:
- sensor.purifier_speed
- sensor.purifier_mode
- sensor.purifier_brightness
- sensor.purifier_target_humidity
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: sensor.purifier_pre_filter
name: Filters
entities:
- sensor.purifier_pre_filter
- sensor.purifier_hepa_filter
- sensor.purifier_carbon_filter
- sensor.purifier_wick_filter
@@ -0,0 +1,29 @@
title: Kitchen
path: kitchen
icon: "mdi:chef-hat"
badges: []
cards:
- type: entities
title: Lights
show_header_toggle: false
entities:
- type: custom:fold-entity-row
entity: light.kitchen_main_lights
name: Main lights
entities:
- light.light_le_11
- light.light_le_12
- light.light_orbecco_1
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.kitchen
- 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
@@ -0,0 +1,9 @@
title: Bathroom
path: bathroom
icon: "mdi:shower-head"
badges: []
cards:
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.bathroom
@@ -0,0 +1,22 @@
title: Hallway
path: hallway
icon: "mdi:door-closed"
badges: []
cards:
- type: entities
title: Lights
show_header_toggle: false
entities:
- light.hallway_all_lights
- type: custom:fold-entity-row
entity: light.hallway_entrance_lights
name: Entrance lights
entities:
- light.light_le_5
- light.light_le_6
- type: custom:fold-entity-row
entity: light.hallway_main_lights
name: Main lights
entities:
- light.light_le_7
- light.light_le_8
@@ -0,0 +1,52 @@
title: Lights
path: lights
panel: false
icon: mdi:lightbulb
badges: []
cards:
- type: entities
title: Living room
icon: mdi:sofa
entities:
- light.living_room_all_lights
- light.living_room_main_lights
- light.light_lohas_1
- light.light_lohas_2
- light.light_le_9
- light.light_le_10
- light.pc
- type: entities
title: Master bedroom
icon: mdi:bed-empty
entities:
- light.master_bedroom_all_lights
- light.master_bedroom_main_lights
- light.light_le_1
- light.light_le_2
- light.light_le_3
- light.light_le_4
- light.bedside_light
- type: entities
title: Kitchen
icon: mdi:chef-hat
entities:
- light.kitchen_main_lights
- light.light_le_11
- light.light_le_12
- light.light_orbecco_1
- type: entities
title: Hallway
icon: mdi:door-closed
entities:
- light.hallway_all_lights
- light.hallway_main_lights
- light.hallway_entrance_lights
- light.light_le_5
- light.light_le_6
- light.light_le_7
- light.light_le_8
@@ -0,0 +1,61 @@
title: Media
path: media
panel: false
icon: mdi:youtube
badges: []
cards:
- type: entities
style: |
ha-icon {
color: red;
}
title: Youtube controls
icon: mdi:youtube
show_header_toggle: false
entities:
- entity: input_text.youtube_download_url
type: "custom:text-input-row"
- entity: input_text.youtube_download_name
type: "custom:text-input-row"
- type: horizontal-stack
cards:
- type: entity-button
entity: script.youtube_download_selected
name: Download
icon: mdi:download
icon_height: 48px
tap_action:
action: call-service
service: script.youtube_download_selected
- type: entity-button
entity: script.youtube_download_and_play
name: Download & Play
icon: mdi:youtube-tv
icon_height: 48px
tap_action:
action: call-service
service: script.youtube_download_and_play
- type: custom:config-template-card
entities:
- sensor.philip_defranco
- sensor.pds
card:
type: vertical-stack
cards:
- type: picture-entity
entity: sensor.philip_defranco
image: "${states['sensor.philip_defranco'].attributes.entity_picture}"
name: "Play the latest PDS"
show_state: false
tap_action:
action: call-service
service: script.youtube_play_latest_pds
- type: custom:text-element
text: "${states['sensor.philip_defranco'].state}"
- type: custom:text-element
text: "Available:"
- type: custom:text-element
text: "${states['sensor.pds'].attributes.file_list.join('<br />')}"
@@ -0,0 +1,58 @@
title: Network
path: network
icon: "mdi:server-network"
badges: []
cards:
- type: entities
entities:
- sensor.fast_com_download
- sensor.speedtest_download
- sensor.speedtest_upload
- sensor.speedtest_ping
- type: vertical-stack
cards:
- type: entities
title: Pi-Hole
entities:
- switch.pihole_temp_disable
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Total queries
font_size: 75
icon: mdi:radio-tower
line_color: var(--accent-color)
line_width: 8
entities:
- sensor.pi_hole_dns_queries_today
- type: custom:mini-graph-card
name: Queries blocked
font_size: 75
icon: mdi:close-box-outline
line_color: var(--accent-color)
line_width: 8
entities:
- entity: sensor.pi_hole_ads_blocked_today
icon: mdi:pi-hole
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Percent blocked
font_size: 75
icon: mdi:percent
line_color: var(--accent-color)
line_width: 8
entities:
- sensor.pi_hole_ads_percentage_blocked_today
- type: custom:mini-graph-card
name: Seen clients
font_size: 75
icon: mdi:devices
line_color: var(--accent-color)
line_width: 8
entities:
- sensor.pi_hole_seen_clients
@@ -0,0 +1,136 @@
title: System
path: system
icon: "mdi:cogs"
badges: []
cards:
- type: entities
title: Automations
show_header_toggle: false
entities:
- automation.youtube_download_latest_pds
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: binary_sensor.georgi_home
name: Presence
entities:
- input_boolean.routine_welcome_home
- automation.presence_arrival_detection
- automation.presence_coming_home
- automation.presence_leaving_home
- automation.routine_coming_home_left_work
- automation.presence_leaving_work
- type: divider
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: sun.sun
name: Lighting
icon: mdi:lightbulb
entities:
- automation.lighting_turn_on_ceiling_lights_after_sunset
- automation.lighting_turn_off_all_lights_after_sunrise
- automation.lighting_master_bedroom_toggle_main_lights_on_bedisde_switch_single_click
- automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90
- automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180
- automation.lighting_sync_tasmota_states_on_start_up
- type: divider
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: sun.sun
name: Music
icon: mdi:music-note
entities:
- automation.music_play_pause_on_magic_cube_knock
- automation.music_volume_down_on_magic_cube_rotate_left
- automation.music_volume_up_on_magic_cube_rotate_right
- type: divider
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: input_boolean.sleep_mode
entities:
- automation.routine_bedtime_toggle_on_bedside_switch_hold
- automation.sleep_mode_enable
- automation.sleep_mode_disable
- automation.sleep_mode_toggle_on_bedside_switch_double_click
- automation.alarm_wake_up
- type: divider
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: input_boolean.guest_mode
entities:
- automation.guest_mode_enable
- automation.guest_mode_disable
- automation.guest_mode_enable_from_telegram
- automation.guest_mode_disable_from_telegram
- type: divider
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: input_boolean.domestina
entities:
- automation.domestina_automate_start
- automation.domestina_start
- automation.domestina_automate_end
- automation.domestina_end
- type: divider
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: sun.sun
name: Security
icon: mdi:shield-home
entities:
- automation.security_door_opened_while_away
- automation.camera_startup
- type: divider
- type: custom:fold-entity-row
head:
type: custom:dummy-entity-row
entity: sun.sun
icon: mdi:cogs
name: System
entities:
- automation.system_announce_start
- automation.system_telegram_announce_status
- automation.speech_telegram_action_do_nothing
- automation.ifttt_call_service
- type: entities
title: Batteries
show_header_toggle: false
entities:
- type: custom:battery-entity
entity: sensor.front_door_power
- type: custom:battery-entity
entity: sensor.living_room_right_window_power
- type: custom:battery-entity
entity: sensor.bedroom_right_window_power
- type: custom:battery-entity
entity: sensor.bedroom_weather_power
- type: custom:battery-entity
entity: sensor.cube_power
- type: custom:battery-entity
entity: sensor.master_bedroom_bedside_switch_power
- type: custom:battery-entity
entity: sensor.motion_1_power
- type: custom:battery-entity
entity: sensor.motion_2_power
@@ -0,0 +1,38 @@
title: COVID-19
path: covid-19
panel: true
icon: "mdi:biohazard"
badges: []
cards:
- type: custom:layout-card
max_columns: 3
cards:
- type: custom:decluttering-card
template: covid_19
variables:
- name: Worldwide
- location: worldwide
- type: custom:decluttering-card
template: covid_19
variables:
- name: Bulgaria
- location: bulgaria
- type: custom:decluttering-card
template: covid_19
variables:
- name: Italy
- location: italy
- type: custom:decluttering-card
template: covid_19
variables:
- name: France
- location: france
- type: custom:decluttering-card
template: covid_19
variables:
- name: USA
- location: us
+112
View File
@@ -0,0 +1,112 @@
title: test
path: test
badges: []
cards:
- type: glance
entities:
- entity: binary_sensor.motion_1_ias_zone
- entity: sensor.motion_1_illuminance
- entity: binary_sensor.motion_1_occupancy
- entity: sensor.motion_1_power
- type: glance
entities:
- entity: binary_sensor.motion_2_ias_zone
- entity: sensor.motion_2_illuminance
- entity: binary_sensor.motion_2_occupancy
- entity: sensor.motion_2_power
- type: entities
entities:
- entity: sensor.cube_analog_input
- entity: sensor.cube_multistate_input
- entity: sensor.cube_power
- entity: sensor.carbon_activity
- entity: sensor.carbon_last_update_trigger
- type: "custom:light-entity-card"
brightness: true
brightness_icon: weather-sunny
color_picker: true
color_temp: true
color_wheel: true
effects_list: true
entity: light.pc
full_width_sliders: false
group: false
persist_features: false
show_slider_percent: false
smooth_color_wheel: true
temperature_icon: thermometer
white_icon: file-word-box
white_value: true
- type: "custom:light-entity-card"
brightness: true
brightness_icon: weather-sunny
color_picker: true
color_temp: true
color_wheel: true
effects_list: true
entity: light.bedside_light
full_width_sliders: false
group: false
show_slider_percent: true
smooth_color_wheel: true
temperature_icon: thermometer
white_icon: file-word-box
white_value: true
- type: "custom:mini-graph-card"
animate: true
entities:
- entity: sensor.purifier_temperature
index: 0
name: Purifier Temperature
- entity: sensor.bedroom_weather_temperature
index: 1
name: Weather Temperature
line_color:
- "#e74c3c"
- var(--accent-color)
line_width: 3
points_per_hour: 1
hours_to_show: 72
- type: "custom:mini-graph-card"
animate: true
entities:
- entity: sensor.purifier_humidity
index: 0
name: Purifier humidity
- entity: sensor.bedroom_weather_humidity
index: 1
name: Weather humidity
line_color:
- "#e74c3c"
- var(--accent-color)
line_width: 3
points_per_hour: 1
hours_to_show: 72
- type: entities
entities:
- binary_sensor.lumi_lumi_vibration_aq1_b8c6c402_ias_zone
- type: horizontal-stack
cards:
- type: button
tap_action:
action: call-service
service: script.alarm_start
name: start
icon: mdi:home-alert
- type: button
tap_action:
action: call-service
service: script.alarm_stop
name: stop
icon: mdi:home
- type: custom:gui-sandbox