From d9bbeb68bfd39527d6f6f463b3221598dd8f2990 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Tue, 7 Feb 2017 21:53:28 +0000 Subject: [PATCH] Make some Modifications to the notifications. --- automation/announcements.yaml | 3 +-- automation/home_today.yaml | 10 ++++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/automation/announcements.yaml b/automation/announcements.yaml index 91c22baf..a64f5a3f 100755 --- a/automation/announcements.yaml +++ b/automation/announcements.yaml @@ -27,5 +27,4 @@ action: - service: script.Voice_notify data_template: - value1: "{{ trigger.entity_id.split('.')[1]|replace('_', ' ')|replace('garadget large', 'The large garage ')|replace('garadget small', 'The small garage ') }} is {{ (trigger.to_state.state)|replace('_', ' ') }}. - {{ trigger.entity_id.split('.')[1]|replace('_', ' ')|replace('garadget large', 'The large garage ')|replace('garadget small', 'The small garage ') }} was {{(trigger.to_state.state)|replace('_', ' ') }} for {{trigger.for}}." \ No newline at end of file + value1: "{{ trigger.entity_id.split('.')[1]|replace('_', ' ')|replace('garadget large', 'The large garage ')|replace('garadget small', 'The small garage ') }} is {{ (trigger.to_state.state)|replace('_', ' ') }}." \ No newline at end of file diff --git a/automation/home_today.yaml b/automation/home_today.yaml index 97bfffbd..791282f2 100755 --- a/automation/home_today.yaml +++ b/automation/home_today.yaml @@ -19,11 +19,17 @@ {%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%} Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is trash day. Please be sure to tell the kids to take out the trash. {%endif%} - Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with {{states('sensor.downstairs_thermostat_humidity')}} around percent humidity. Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}} + Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with around {{states('sensor.downstairs_thermostat_humidity')}} percent humidity. Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}} {% if is_state('cover.garadget_large', 'open') -%} Also, The Large Garage Door is still open {% endif -%} {% if is_state('cover.garadget_small', 'open') -%} {% if is_state('cover.garadget_large', 'open') -%}and {%- endif %} The small Garage Door is still open. - {% endif %} \ No newline at end of file + {% endif %} + There are + {% for state in states.light if state.state == 'on' -%} + {%- if loop.last -%} + {{ loop.index }} + {%- endif -%} + {%- endfor %} lights on right now." \ No newline at end of file