Created
July 17, 2020 19:24
-
-
Save KTibow/bfcdf8cf6b6bc7411c962acd0ed07e72 to your computer and use it in GitHub Desktop.
Welcome a person in Home Assistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cards: | |
- content: > | |
# <center>{% if is_state('binary_sensor.evening', 'on') %} Good evening {% | |
elif is_state('binary_sensor.night', 'on') %} Have a good night {% elif | |
is_state('binary_sensor.morning', 'on') %} Good morning {% endif | |
%} {{user}}</center> | |
style: | |
.: | | |
ha-card { | |
--paper-card-background-color: none !important; | |
box-shadow: none !important; | |
height: 30px; | |
} | |
ha-markdown: | |
$: | | |
h1 { | |
font-size: 26px; | |
font-weight: bold; | |
font-family: Helvetica; | |
letter-spacing: '-0.01em'; | |
} | |
type: markdown | |
- content: > | |
# <center> {% if is_state('binary_sensor.daddy_home', 'on') and | |
is_state('binary_sensor.mama_home', 'on') %} <u>Daddy</u> and <u>Mama</u> | |
are both home {% elif is_state('binary_sensor.daddy_home', 'off') and | |
is_state('binary_sensor.mama_home', 'on') %} <u>Mama</u> is home and | |
<u>Daddy</u> is away {% elif is_state('binary_sensor.daddy_home', 'on') | |
and is_state('binary_sensor.mama_home', 'off') %} <u>Daddy</u> is home and | |
<u>Mama</u> is away {% else %}<u>Daddy</u> and <u>Mama</u> are both away | |
{% endif %} {% if state_attr('sensor.trash_takeout', 'days') < 3 %} | |
<br>The trash is going out <u>{{ states('sensor.trash_takeout') }}</u> {% | |
endif %} {% if is_state('sun.sun', 'below_horizon') %} <br>The sun has | |
<u>set</u> {% endif %} </center> | |
style: | |
.: | | |
ha-card { | |
--paper-card-background-color: none !important; | |
box-shadow: none !important; | |
} | |
ha-markdown: | |
$: | | |
h1 { | |
font-size: 13px; | |
font-weight: 100; | |
font-family: Helvetica; | |
letter-spacing: '-0.01em'; | |
} | |
type: markdown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment