Skip to content

Instantly share code, notes, and snippets.

@zsarnett
Created April 24, 2020 16:58
Show Gist options
  • Save zsarnett/ce06cdab873d7fd6f211f35ed9b7f23c to your computer and use it in GitHub Desktop.
Save zsarnett/ce06cdab873d7fd6f211f35ed9b7f23c to your computer and use it in GitHub Desktop.
Lovelace YAML
########### Main Dashboard ###############
- badges: []
cards:
- cards:
- content: |
{% if now().month in (1,) %}
## January {{ now().day -}} ,
{% elif now().month in (2,) %}
## February {{ now().day -}},
{% elif now().month in (3,) %}
## March {{ now().day -}},
{% elif now().month in (4,) %}
## April {{ now().day -}}
{% elif now().month in (5,) %}
## May {{ now().day -}},
{% elif now().month in (6,) %}
## June {{ now().day -}},
{% elif now().month in (7,) %}
## July {{ now().day -}},
{% elif now().month in (8,) %}
## August {{ now().day -}},
{% elif now().month in (9,) %}
## September {{ now().day -}},
{% elif now().month in (10,) %}
## October {{ now().day -}},
{% elif now().month in (11,) %}
## November {{ now().day -}},
{% elif now().month in (12,) %}
## December {{ now().day -}},
{% endif -%}
{% if now().hour < 12 %} ![Image](/local/sunny-24px.png)
### Good Morning, {{user}}
{% elif now().hour < 16 %}
### Good Afternoon, {{user}}
{% elif now().hour < 19 %}
### Have a Nice Evening, {{user}}
{% else %} ![Image](/local/night-24px.png)
### Have a Good Night, {{user}}
{% endif %}
theme: transparent-card
type: markdown
- entity: weather.dark_sky
name: Home
type: weather-forecast
type: vertical-stack
- cards:
- entity: sensor.mail_usps_mail
name: Mail
type: entity
- entity: sensor.mail_packages_in_transit
name: Packages
type: entity
type: horizontal-stack
- cards:
- entity: sensor.days_until_wedding
icon: 'mdi:ring'
name: Days until Wedding
type: sensor
- entity: sensor.days_until_move
icon: 'mdi:package'
name: Days until Move
type: sensor
type: horizontal-stack
- cards:
- aspect_ratio: 0%
entities:
- entity: person.zack
show_state: true
- entity: light.zacks_office
show_state: true
- entity: sensor.pixel_2_xl_battery_level
show_state: true
entity: person.zack
image: /local/Zack-square.jpg
type: picture-glance
- aspect_ratio: 0%
entities:
- entity: person.madison
show_state: true
- entity: sensor.madisons_iphone_battery_level
show_state: true
- entity: light.madisons_office
show_state: true
image: /local/madison.png
type: picture-glance
type: horizontal-stack
icon: 'mdi:view-dashboard'
path: home_assistant
########### Rooms Lists ###############
- title: ''
badges: []
cards:
- cards:
- aspect_ratio: 40%
entity: light.bedroom
image: /local/bedroom.jpg
name: Bedroom
show_state: false
tap_action:
action: navigate
navigation_path: /lovelace-bedroom/room
type: picture-entity
- aspect_ratio: 40%
entity: light.zacks_office
image: /local/zack_office.jpg
name: Zack's Office
show_state: false
tap_action:
action: navigate
navigation_path: /zacks-office/room
type: picture-entity
- aspect_ratio: 40%
entity: light.madisons_office
image: /local/madison_office.jpg
name: Madison's Office
show_state: false
tap_action:
action: navigate
navigation_path: /madisons-office/room
type: picture-entity
- aspect_ratio: 40%
camera_image: camera.living_room_camera
camera_view: live
entity: camera.living_room_camera
name: Downstairs
show_state: false
tap_action:
action: navigate
navigation_path: /living-room/room
type: picture-entity
- aspect_ratio: 40%
camera_image: camera.dog_room_camera
camera_view: live
entity: camera.dog_room_camera
name: Dog Room
show_state: false
tap_action:
action: navigate
navigation_path: /dog-room/room
type: picture-entity
- type: picture-entity
entity: cover.garage_door
image: /local/garage.jpg
aspect_ratio: 40%
tap_action:
action: navigate
navigation_path: /lovelace-garage/room
show_name: true
show_state: false
name: Garage
type: vertical-stack
icon: 'mdi:home'
path: rooms
########### Bedroom Dashboard ###############
- badges: []
cards:
- cards:
- hold_action:
action: none
name: Back to Room Select
show_icon: false
show_name: true
tap_action:
action: navigate
navigation_path: /lovelace/rooms
type: button
- content: |-
# Bedroom
---
theme: transparent-card
type: markdown
- entity: light.bedroom
hold_action:
action: more-info
type: light
- entity: climate.upstairs
name: ' '
type: thermostat
- entity: media_player.bedroom_display
type: media-control
- entity: media_player.bedroom_tv
type: media-control
- entity: vacuum.bedroom
footer:
entities:
- entity: script.turn_on_vacuum
icon: 'mdi:power'
type: buttons
name: Vacuum
type: entity
type: vertical-stack
icon: 'mdi:blank'
path: room
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment