Closes #89 - Soft tones in the evening.

This commit is contained in:
CCOSTAN
2017-02-27 17:31:06 +00:00
parent e1d1225340
commit 5b0ae5611f
2 changed files with 5 additions and 5 deletions

View File

@@ -56,9 +56,9 @@ voice_notify:
- media_player.livingroomCC
data_template:
volume_level: >
{% if now().strftime("%H")|int < 12 %}
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
0.25
{% elif now().strftime("%H")|int < 18 %}
{% elif now().strftime("%H")|int > 12 and now().strftime("%H")|int < 17%}
0.45
{% else %}
0.20
@@ -74,9 +74,9 @@ voice_notify:
entity_id: media_player.livingroomCC
data_template:
message: >
{% if now().strftime("%H")|int < 12 %}
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
"Good morning.
{% elif now().strftime("%H")|int < 18 %}
{% elif now().strftime("%H")|int > 12 and now().strftime("%H")|int < 17%}
"Good afternoon.
{% else %}
"Good evening.