mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 02:54:41 +00:00
More consolidation for #56
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user