More voice notification updates...minor stuff tweaking routing and such
This commit is contained in:
parent
47c5f0c275
commit
7d64e92426
|
@ -137,6 +137,7 @@ automation:
|
||||||
- wed
|
- wed
|
||||||
- thu
|
- thu
|
||||||
- fri
|
- fri
|
||||||
|
- sat
|
||||||
action:
|
action:
|
||||||
- service: script.morning_wakeup_report
|
- service: script.morning_wakeup_report
|
||||||
|
|
||||||
|
@ -151,12 +152,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
entity_id: scene.skylar_room_morning
|
entity_id: scene.skylar_room_morning
|
||||||
- service: >
|
- service: script.skylar_morning_briefing_jarvis
|
||||||
{%- if is_state('binary_sensor.theater_occupancy', 'on') and is_state('media_player.theater_tv', 'on') %}
|
|
||||||
script.skylar_morning_briefing_jarvis
|
|
||||||
{% else %}
|
|
||||||
script.skylar_morning_briefing_alexa
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
- id: bbbafc52-eab1-44cd-ac24-4f9b7f4210b6
|
- id: bbbafc52-eab1-44cd-ac24-4f9b7f4210b6
|
||||||
alias: set skylar morning report time
|
alias: set skylar morning report time
|
||||||
|
@ -214,12 +210,7 @@ script:
|
||||||
|
|
||||||
skylar_morning_briefing:
|
skylar_morning_briefing:
|
||||||
sequence:
|
sequence:
|
||||||
- service: >
|
- service: script.speech_engine
|
||||||
{%- if is_state('binary_sensor.theater_occupancy', 'on') and is_state('media_player.theater_tv', 'on') %}
|
|
||||||
script.speech_engine
|
|
||||||
{% else %}
|
|
||||||
script.alexa_voice
|
|
||||||
{%- endif %}
|
|
||||||
data:
|
data:
|
||||||
who: >
|
who: >
|
||||||
{%- if is_state('binary_sensor.theater_occupancy', 'on') and is_state('media_player.theater_tv', 'on') %}
|
{%- if is_state('binary_sensor.theater_occupancy', 'on') and is_state('media_player.theater_tv', 'on') %}
|
||||||
|
@ -233,21 +224,21 @@ script:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: main
|
||||||
message: !include ../templates/speech/skylar_nightly_briefing.yaml
|
message: !include ../templates/speech/skylar_nightly_briefing.yaml
|
||||||
|
|
||||||
nightly_briefing_report:
|
nightly_briefing_report:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: main
|
||||||
message: !include ../templates/speech/nightly_briefing.yaml
|
message: !include ../templates/speech/nightly_briefing.yaml
|
||||||
|
|
||||||
sundown_briefing:
|
sundown_briefing:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: kitchen
|
||||||
message: !include ../templates/speech/sundown_briefing.yaml
|
message: !include ../templates/speech/sundown_briefing.yaml
|
||||||
|
|
||||||
morning_briefing:
|
morning_briefing:
|
||||||
|
|
|
@ -117,7 +117,7 @@ sensor:
|
||||||
{% if sensor_count >= 1 %}
|
{% if sensor_count >= 1 %}
|
||||||
{% for sensor in expand('group.occupancy') %}
|
{% for sensor in expand('group.occupancy') %}
|
||||||
{% if as_timestamp(sensor.last_changed) == as_timestamp(expand('group.occupancy') | selectattr('state', 'eq', 'on') | map(attribute='last_changed') | max) %}
|
{% if as_timestamp(sensor.last_changed) == as_timestamp(expand('group.occupancy') | selectattr('state', 'eq', 'on') | map(attribute='last_changed') | max) %}
|
||||||
{%- if sensor.name == 'Theater Occupancy' and is_state('media_player.theater_tv', 'on') %}
|
{%- if is_state('media_player.theater_tv', 'on') %}
|
||||||
theater
|
theater
|
||||||
{% elif sensor.name == 'Kitchen Occupancy' %}
|
{% elif sensor.name == 'Kitchen Occupancy' %}
|
||||||
kitchen
|
kitchen
|
||||||
|
|
|
@ -444,11 +444,7 @@ automation:
|
||||||
object_id: "arriving"
|
object_id: "arriving"
|
||||||
add_entities: >-
|
add_entities: >-
|
||||||
{{ trigger.to_state.entity_id }}
|
{{ trigger.to_state.entity_id }}
|
||||||
- service: script.standby
|
- delay: '00:03:00'
|
||||||
- service: script.washer_finished_notification_audible
|
|
||||||
- wait_template: "{{ states.binary_sensor.kitchen_door.state == 'on' }}"
|
|
||||||
timeout: '00:01:00'
|
|
||||||
- delay: '00:02:00'
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: main
|
who: main
|
||||||
|
@ -532,7 +528,6 @@ script:
|
||||||
entity_id: sensor.family_status
|
entity_id: sensor.family_status
|
||||||
state: Away
|
state: Away
|
||||||
- service: script.standby
|
- service: script.standby
|
||||||
- service: script.washer_finished_notification_audible
|
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data:
|
data:
|
||||||
topic: house/family/status
|
topic: house/family/status
|
||||||
|
|
Loading…
Reference in New Issue