From 90a62fb7b603c7c8d6f00b5a7459e658f15fe2bd Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 16 Feb 2017 01:06:16 +0000 Subject: [PATCH] Figuring out Odd and even days thanks to @pbysh! Thanks. --- automation/Speech/chores.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/automation/Speech/chores.yaml b/automation/Speech/chores.yaml index 3e35b7c8..ef630863 100755 --- a/automation/Speech/chores.yaml +++ b/automation/Speech/chores.yaml @@ -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%}"