Updated Speech Notifications for #391 - Phyn Unit.
This commit is contained in:
parent
b7f87c1085
commit
eabad7870d
|
@ -26,7 +26,7 @@
|
|||
{% if states.group.bed.state == 'off' %}
|
||||
media_player.livingroomCC
|
||||
{% else %}
|
||||
media_player.bedroom_alarm_panel
|
||||
media_player.bedroom
|
||||
{% endif %}
|
||||
media_content_id: >
|
||||
{% if trigger.to_state.state == 'on' %}
|
||||
|
|
|
@ -31,6 +31,14 @@ automation:
|
|||
who: 'family'
|
||||
url: 'https://github.com/CCOSTAN/Home-AssistantConfig/raw/master/config/www/custom_ui/floorplan/images/branding/pipeleak.png'
|
||||
|
||||
- service: script.speech_engine
|
||||
data_template:
|
||||
value1: >
|
||||
{{ [
|
||||
"Phyn has detected a possible leak. Please verify there are no leaks in the house. "
|
||||
] | random }}
|
||||
call_no_announcement: 1
|
||||
|
||||
- service: script.tweet_engine_image
|
||||
data_template:
|
||||
tweet: >
|
||||
|
|
|
@ -32,7 +32,7 @@ speech_engine:
|
|||
{% if media_player | length == 0 %}
|
||||
{% set media_player = [
|
||||
'media_player.livingroomcc',
|
||||
'media_player.bedroom_alarm_panel'
|
||||
'media_player.bedroom'
|
||||
] %}
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ speech_processing:
|
|||
{% if states.group.bed.state == 'off' %}
|
||||
media_player.livingroomCC
|
||||
{% else %}
|
||||
media_player.tap
|
||||
media_player.bedroom
|
||||
{% endif %}
|
||||
message: >-
|
||||
<speak>
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
{%- elif states('sensor.fathers_countdown') | int < 30 -%}
|
||||
and don't forget, there are {{ states.sensor.fathers_countdown.state }} days until Fathers day!
|
||||
{%- elif states('sensor.easter_countdown') | int < 15 -%}
|
||||
and don't forget, there are {{ states.sensor.easter_countdown.state }} days until Easter Sunday!
|
||||
and don't forget, there are {{ states.sensor.easter_countdown.state }} days until Easter Sunday!
|
||||
{%- elif states('sensor.thanksgiving_day_countdown') | int < 30 -%}
|
||||
and don't forget, there are {{ states.sensor.thanksgiving_day_countdown.state }} days until Thanksgiving!
|
||||
{%- elif states('sensor.halloween_countdown') | int < 30 -%}
|
||||
|
@ -225,13 +225,13 @@
|
|||
{# ********************************************* #}
|
||||
|
||||
{% 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 %}
|
||||
{% 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 %}
|
||||
|
||||
{# Called from Annoucenments #}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 8.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 8.9 KiB |
Loading…
Reference in New Issue