Fancy Voice Messages!

This commit is contained in:
CCOSTAN
2017-02-04 21:47:28 +00:00
parent f5fb65059a
commit f366eb1df7
2 changed files with 11 additions and 3 deletions

View File

@@ -40,7 +40,15 @@ voice_notify:
- service: tts.google_say
entity_id: media_player.whole_house
data_template:
message: "{{ value1 }}"
message: >
{% if now().strftime("%H")|int < 12 %}
"Good morning.
{% elif now().strftime("%H")|int < 18 %}
"Good afternoon.
{% else %}
"Good evening.
{% endif %}
{{ value1 }}"
cache: true