mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-13 05:20:27 +00:00
Ability to skip the greeting when responding to a command.
This commit is contained in:
parent
6cc4a6b237
commit
fc0897434c
@ -26,7 +26,7 @@ voice_notify:
|
||||
conditions:
|
||||
- condition: time
|
||||
after: '09:00:00'
|
||||
before: '22:00:00'
|
||||
before: '21:30:00'
|
||||
- condition: state
|
||||
entity_id: input_boolean.alert_mode
|
||||
state: 'on'
|
||||
@ -71,12 +71,14 @@ voice_notify:
|
||||
data_template:
|
||||
message: >
|
||||
<speak>
|
||||
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
|
||||
Good morning.
|
||||
{% elif now().strftime("%H")|int > 12 and now().strftime("%H")|int < 17%}
|
||||
Good afternoon.
|
||||
{% else %}
|
||||
Good evening.
|
||||
{% if call_no_announcement != 1 %}
|
||||
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
|
||||
Good morning.
|
||||
{% elif now().strftime("%H")|int > 12 and now().strftime("%H")|int < 17%}
|
||||
Good afternoon.
|
||||
{% else %}
|
||||
Good evening.
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{%- macro responsibilities() -%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user