Figuring out Odd and even days thanks to @pbysh! Thanks.

This commit is contained in:
CCOSTAN 2017-02-16 01:06:16 +00:00
parent d871f60bba
commit 90a62fb7b6

View File

@ -17,7 +17,8 @@
- service: script.Voice_notify
data_template:
value1: >
"Welcome Home Costanzo Family. Here is what's going on around the house right now:
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day. Please be sure to tell the kids to take out the trash.
{%endif%}
"{% if now().strftime("%j")|int % 2 == 0 %}
Today is Justin's day to do chores.
{% else %}
Today is Paige's day to do chores.
{%endif%}"