mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
Closes #89 - Soft tones in the evening.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user