More consolidation for #56

This commit is contained in:
CCOSTAN
2017-04-13 16:03:32 +00:00
parent f0deff928a
commit 83115dde77
3 changed files with 20 additions and 11 deletions

View File

@@ -64,11 +64,7 @@ voice_notify:
0.20
{% endif %}
- service: mqtt.publish
data_template:
payload: '{{ value1 }}'
topic: 'polly/lastmsg'
retain: true
- service: tts.amazon_polly_say
entity_id: media_player.livingroomCC
@@ -82,6 +78,8 @@ voice_notify:
"Good evening.
{% endif %}
{{ personarriving }}
{%- macro responsibilities() -%}
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day.
@@ -99,10 +97,17 @@ voice_notify:
{% if is_state('input_boolean.responsibilities', 'on') %}
{{responsibilities()}}
{%endif%}
{{ DoorOpened }}
{{ value1 }}"
cache: true
- service: mqtt.publish
data_template:
payload: '{{ value1 }}'
topic: 'polly/lastmsg'
retain: true
- service: input_boolean.turn_off
entity_id:
- input_boolean.last_message