Basic greeting in place
This commit is contained in:
@ -2,7 +2,23 @@
|
|||||||
{# Script Name Here #}
|
{# Script Name Here #}
|
||||||
{%- macro getReport() -%}
|
{%- macro getReport() -%}
|
||||||
<p>
|
<p>
|
||||||
Oh dear, I seem to have forgotten how to welcome you home!
|
"Welcome home, "
|
||||||
|
{% if is_state('person.tony_stork','home') and is_state('person.christina_stork','home') %}
|
||||||
|
"Stork family. "
|
||||||
|
{% elif is_state('person.tony_stork','home') %}
|
||||||
|
"Tony. "
|
||||||
|
{% elif is_state('person.christina_stork','home') %}
|
||||||
|
"Tina. "
|
||||||
|
{% else %}
|
||||||
|
"Whoever you are, Tony must have broken me again. "
|
||||||
|
{% endif %}
|
||||||
|
{% if now().strftime('%H')|int < 12 %}
|
||||||
|
"I hope you're having a great morning!"
|
||||||
|
{% elif now().strftime('%H')|int >= 12 and now().strftime('%H')|int < 17 %}
|
||||||
|
"I hope your afternoon has been a good one!"
|
||||||
|
{% else %}
|
||||||
|
"and good evening. I hope you had a good day!"
|
||||||
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user