mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-19 07:47:27 +00:00
Figuring out Odd and even days thanks to @pbysh! Thanks.
This commit is contained in:
parent
d871f60bba
commit
90a62fb7b6
@ -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%}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user