Changing all speech notifications to go through new speech engine.
This commit is contained in:
parent
8793ee9117
commit
7806532123
|
@ -254,7 +254,7 @@
|
||||||
entity_id: binary_sensor.front_door
|
entity_id: binary_sensor.front_door
|
||||||
state: 'off'
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: '{{ [ "I have detected motion at the ", "Someone may be at the
|
message: '{{ [ "I have detected motion at the ", "Someone may be at the
|
||||||
|
|
|
@ -18,6 +18,19 @@ House Conditions:
|
||||||
- sensor.accurite_garage_temperature
|
- sensor.accurite_garage_temperature
|
||||||
- sensor.accurite_garage_humidity
|
- sensor.accurite_garage_humidity
|
||||||
|
|
||||||
|
occupancy:
|
||||||
|
- binary_sensor.kitchen_occupancy
|
||||||
|
- binary_sensor.living_room_occupancy
|
||||||
|
- binary_sensor.master_bedroom_occupancy
|
||||||
|
- binary_sensor.skylar_room_occupancy
|
||||||
|
- binary_sensor.croft_occupancy
|
||||||
|
- binary_sensor.theater_occupancy
|
||||||
|
|
||||||
|
audio_devices:
|
||||||
|
- media_player.kitchen_display
|
||||||
|
- media_player.upstairs_speaker
|
||||||
|
- media_player.master_bedroom_speaker
|
||||||
|
|
||||||
Outside Lights:
|
Outside Lights:
|
||||||
- switch.driveway_light
|
- switch.driveway_light
|
||||||
- switch.front_porch_light
|
- switch.front_porch_light
|
||||||
|
|
|
@ -100,7 +100,7 @@ automation:
|
||||||
to: 'on'
|
to: 'on'
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '07:00:00'
|
after: '06:45:00'
|
||||||
before: '08:30:00'
|
before: '08:30:00'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.good_morning_report
|
entity_id: input_boolean.good_morning_report
|
||||||
|
@ -200,64 +200,66 @@ script:
|
||||||
|
|
||||||
security_briefing:
|
security_briefing:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.alexa_audio.state }}'
|
who: '{{ states.sensor.alexa_audio.state }}'
|
||||||
message: !include ../templates/speech/security_report.yaml
|
message: !include ../templates/speech/security_report.yaml
|
||||||
|
|
||||||
event_briefing:
|
event_briefing:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.alexa_audio.state }}'
|
who: '{{ states.sensor.alexa_audio.state }}'
|
||||||
message: !include ../templates/speech/event_briefing.yaml
|
message: !include ../templates/speech/event_briefing.yaml
|
||||||
|
|
||||||
skylar_morning_briefing_jarvis:
|
skylar_morning_briefing:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.jarvis_voice
|
- service: >
|
||||||
|
{%- 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: main
|
who: >
|
||||||
|
{%- if is_state('binary_sensor.theater_occupancy', 'on') and is_state('media_player.theater_tv', 'on') %}
|
||||||
|
theater
|
||||||
|
{% else %}
|
||||||
|
skylar_bedroom
|
||||||
|
{%- endif %}
|
||||||
message: !include ../templates/speech/skylar_morning_briefing.yaml
|
message: !include ../templates/speech/skylar_morning_briefing.yaml
|
||||||
|
|
||||||
skylar_morning_briefing_alexa:
|
|
||||||
sequence:
|
|
||||||
- service: notify.alexa_media_skylar_s_bedroom
|
|
||||||
data:
|
|
||||||
message: !include ../templates/speech/skylar_morning_briefing.yaml
|
|
||||||
data:
|
|
||||||
type: tts
|
|
||||||
|
|
||||||
skylar_nightly_briefing:
|
skylar_nightly_briefing:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
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.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: !include ../templates/speech/nightly_briefing.yaml
|
message: !include ../templates/speech/nightly_briefing.yaml
|
||||||
|
|
||||||
sundown_briefing:
|
sundown_briefing:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: !include ../templates/speech/sundown_briefing.yaml
|
message: !include ../templates/speech/sundown_briefing.yaml
|
||||||
|
|
||||||
morning_briefing:
|
morning_briefing:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: kitchen
|
who: kitchen
|
||||||
message: !include ../templates/speech/morning_briefing.yaml
|
message: !include ../templates/speech/morning_briefing.yaml
|
||||||
|
|
||||||
morning_wakeup_report:
|
morning_wakeup_report:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: master_bedroom
|
who: master_bedroom
|
||||||
message: !include ../templates/speech/morning_wakeup_report.yaml
|
message: !include ../templates/speech/morning_wakeup_report.yaml
|
||||||
|
|
|
@ -149,7 +149,7 @@ script:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sensor.washer_status
|
entity_id: sensor.washer_status
|
||||||
state: complete
|
state: complete
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
@ -157,10 +157,10 @@ script:
|
||||||
{{ [
|
{{ [
|
||||||
'Just a reminder. Washing machine needs to be emptied.',
|
'Just a reminder. Washing machine needs to be emptied.',
|
||||||
'I am sure you have more inportant things to do, but do not forget to empty the washer.',
|
'I am sure you have more inportant things to do, but do not forget to empty the washer.',
|
||||||
'Looks like the washing machine has completed it is cycle. You know what to do. <break time="1s"/> I hope.',
|
'Looks like the washing machine has completed it is cycle. You know what to do,,I hope.',
|
||||||
'Do not forget to move the clothes to the dryer.',
|
'Do not forget to move the clothes to the dryer.',
|
||||||
'Someone forgot to move the clothes to the dryer. I am not going to name any names. But there is a camera in there. ',
|
'Someone forgot to move the clothes to the dryer. I am not going to name any names. But there is a camera in there. ',
|
||||||
'Do you like when your clothes smell like mildew? Because that is what is happeneing. <break time="1s"/> Right now. '
|
'Do you like when your clothes smell like mildew? Because that is what is happening,,Right now. '
|
||||||
] | random }}
|
] | random }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -113,19 +113,30 @@ sensor:
|
||||||
room_audio:
|
room_audio:
|
||||||
friendly_name: "Room Audio"
|
friendly_name: "Room Audio"
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if is_state('binary_sensor.theater_occupancy', 'on') and is_state('media_player.theater_tv', 'on') %}
|
{% set sensor_count = expand('group.occupancy') | selectattr('state', 'eq', 'on') | list | count %}
|
||||||
theater
|
{% if sensor_count >= 1 %}
|
||||||
{% elif is_state('binary_sensor.kitchen_occupancy', 'on') %}
|
{% for sensor in expand('group.occupancy') %}
|
||||||
kitchen
|
{% if as_timestamp(sensor.last_changed) == as_timestamp(expand('group.occupancy') | selectattr('state', 'eq', 'on') | map(attribute='last_changed') | max) %}
|
||||||
{% elif is_state('binary_sensor.living_room_occupancy', 'on') and is_state('input_boolean.audible_notifications', 'on') %}
|
{%- if sensor.name == 'Theater Occupancy' and is_state('media_player.theater_tv', 'on') %}
|
||||||
main
|
theater
|
||||||
{% elif is_state('binary_sensor.croft_occupancy', 'on') %}
|
{% elif sensor.name == 'Kitchen Occupancy' %}
|
||||||
croft
|
kitchen
|
||||||
{% elif is_state('binary_sensor.master_bedroom_occupancy', 'on') %}
|
{% elif sensor.name == 'Living Room Occupancy' and is_state('input_boolean.audible_notifications', 'on') %}
|
||||||
master_bedroom
|
main
|
||||||
{% else %}
|
{% elif sensor.name == 'Living Room Occupancy' and is_state('input_boolean.audible_notifications', 'off') %}
|
||||||
all_google
|
kitchen
|
||||||
{%- endif %}
|
{% elif sensor.name == 'Croft Occupancy' %}
|
||||||
|
croft
|
||||||
|
{% elif sensor.name == 'Master Bedroom Occupancy' %}
|
||||||
|
master_bedroom
|
||||||
|
{% else %}
|
||||||
|
all_google
|
||||||
|
{%- endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
main
|
||||||
|
{% endif %}
|
||||||
alexa_audio:
|
alexa_audio:
|
||||||
friendly_name: "Alexa Audio"
|
friendly_name: "Alexa Audio"
|
||||||
value_template: >-
|
value_template: >-
|
||||||
|
|
|
@ -185,7 +185,7 @@ automation:
|
||||||
value_template: '{{ states.calendar.skylar_school.state == "Off" }}'
|
value_template: '{{ states.calendar.skylar_school.state == "Off" }}'
|
||||||
action:
|
action:
|
||||||
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: "Blackout time has started."
|
message: "Blackout time has started."
|
||||||
|
@ -204,7 +204,7 @@ automation:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: "Blackout time has ended"
|
message: "Blackout time has ended"
|
||||||
|
@ -272,7 +272,7 @@ script:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sensor.family_status
|
entity_id: sensor.family_status
|
||||||
state: Home
|
state: Home
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: "Skylar, digital learning will begin in about thirty minutes. I have turned on the lighting around your desk. I will be disabling audible notifications during school hours."
|
message: "Skylar, digital learning will begin in about thirty minutes. I have turned on the lighting around your desk. I will be disabling audible notifications during school hours."
|
||||||
|
|
|
@ -20,7 +20,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: group.incense
|
entity_id: group.incense
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: Incense has been turned on.
|
message: Incense has been turned on.
|
||||||
|
@ -35,7 +35,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
entity_id: group.incense
|
entity_id: group.incense
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: Incense has been turned off.
|
message: Incense has been turned off.
|
||||||
|
|
|
@ -198,7 +198,7 @@ automation:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.kat_travel_monitor
|
entity_id: input_boolean.kat_travel_monitor
|
||||||
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: 'Kat has arrived at work.'
|
message: 'Kat has arrived at work.'
|
||||||
|
@ -215,7 +215,7 @@ automation:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.kat_travel_monitor
|
entity_id: input_boolean.kat_travel_monitor
|
||||||
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: Katherine appears to be headed home. Based on current traffic conditions, she should be here in {{states.sensor.kat_ett_home.attributes.duration | round}} minutes.
|
message: Katherine appears to be headed home. Based on current traffic conditions, she should be here in {{states.sensor.kat_ett_home.attributes.duration | round}} minutes.
|
||||||
|
@ -231,7 +231,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- service: script.jeff_destination_home
|
- service: script.jeff_destination_home
|
||||||
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: Jeff appears to be headed home. Based on current traffic conditions, he should be here in {{states.sensor.jeff_ett_home.attributes.duration | round}} minutes.
|
message: Jeff appears to be headed home. Based on current traffic conditions, he should be here in {{states.sensor.jeff_ett_home.attributes.duration | round}} minutes.
|
||||||
|
@ -449,7 +449,7 @@ automation:
|
||||||
- wait_template: "{{ states.binary_sensor.kitchen_door.state == 'on' }}"
|
- wait_template: "{{ states.binary_sensor.kitchen_door.state == 'on' }}"
|
||||||
timeout: '00:01:00'
|
timeout: '00:01:00'
|
||||||
- delay: '00:02:00'
|
- delay: '00:02:00'
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: main
|
who: main
|
||||||
message: >
|
message: >
|
||||||
|
|
|
@ -193,7 +193,7 @@ automation:
|
||||||
entity_id: input_boolean.audible_notifications
|
entity_id: input_boolean.audible_notifications
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
@ -210,8 +210,8 @@ automation:
|
||||||
'The air quality in this house has actually improved.',
|
'The air quality in this house has actually improved.',
|
||||||
'Closing the door would improve the internal climate of the house.',
|
'Closing the door would improve the internal climate of the house.',
|
||||||
'Hey. The door was just opened and this is crazy. But now you know. So close it maybe.',
|
'Hey. The door was just opened and this is crazy. But now you know. So close it maybe.',
|
||||||
'They always say when one door closes another one opens...that must of been waht happened',
|
'They always say when one door closes another one opens...that must of been what happened',
|
||||||
'And the automatic door closer appears to be broken. So...'
|
'And the automatic door closer appears to be broken. So, you know what to do.'
|
||||||
] | random }}
|
] | random }}
|
||||||
|
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
@ -238,7 +238,7 @@ automation:
|
||||||
entity_id: input_boolean.sentry_mode
|
entity_id: input_boolean.sentry_mode
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
@ -358,7 +358,7 @@ automation:
|
||||||
from: 'off'
|
from: 'off'
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
@ -385,7 +385,7 @@ automation:
|
||||||
to: 'off'
|
to: 'off'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
@ -410,7 +410,7 @@ automation:
|
||||||
from: 'off'
|
from: 'off'
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
@ -773,7 +773,7 @@ script:
|
||||||
|
|
||||||
activate_barn_door_protocol:
|
activate_barn_door_protocol:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >-
|
message: >-
|
||||||
|
@ -806,7 +806,7 @@ script:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sensor.family_status
|
entity_id: sensor.family_status
|
||||||
state: "Home"
|
state: "Home"
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >-
|
message: >-
|
||||||
|
@ -837,7 +837,7 @@ script:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: group.external_doors
|
entity_id: group.external_doors
|
||||||
state: "on"
|
state: "on"
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
@ -866,7 +866,7 @@ script:
|
||||||
|
|
||||||
activate_guest_mode:
|
activate_guest_mode:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >-
|
message: >-
|
||||||
|
|
|
@ -66,7 +66,7 @@ automation:
|
||||||
# action:
|
# action:
|
||||||
# - wait_template: >-
|
# - wait_template: >-
|
||||||
# {{((as_timestamp(now()) - states('sensor.launch_window') | float) | abs < 601)}}
|
# {{((as_timestamp(now()) - states('sensor.launch_window') | float) | abs < 601)}}
|
||||||
# - service: script.ah_report
|
# - service: script.speech_engine
|
||||||
# data:
|
# data:
|
||||||
# call_launch: 1
|
# call_launch: 1
|
||||||
# - service: script.text_notify
|
# - service: script.text_notify
|
||||||
|
@ -107,7 +107,7 @@ automation:
|
||||||
# to: 'on'
|
# to: 'on'
|
||||||
# from: 'off'
|
# from: 'off'
|
||||||
# action:
|
# action:
|
||||||
# - service: script.ah_report
|
# - service: script.speech_engine
|
||||||
# data:
|
# data:
|
||||||
# call_interuption: 1
|
# call_interuption: 1
|
||||||
# call_iss: 1
|
# call_iss: 1
|
||||||
|
@ -124,7 +124,7 @@ automation:
|
||||||
entity_id: sensor.moon
|
entity_id: sensor.moon
|
||||||
state: 'full_moon'
|
state: 'full_moon'
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
|
|
@ -121,7 +121,7 @@ automation:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ ((now().hour | int) > 7) and ((now().hour | int) < 16) }}'
|
value_template: '{{ ((now().hour | int) > 7) and ((now().hour | int) < 16) }}'
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >-
|
message: >-
|
||||||
|
@ -178,7 +178,7 @@ automation:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ ((now().hour | int) > 7) and ((now().hour | int) < 16) }}'
|
value_template: '{{ ((now().hour | int) > 7) and ((now().hour | int) < 16) }}'
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
@ -211,7 +211,7 @@ automation:
|
||||||
who: "jeff"
|
who: "jeff"
|
||||||
title: "Delivering Today"
|
title: "Delivering Today"
|
||||||
message: "{{ states('sensor.mail_deliveries_message')}}"
|
message: "{{ states('sensor.mail_deliveries_message')}}"
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >-
|
message: >-
|
||||||
|
@ -255,7 +255,7 @@ automation:
|
||||||
who: "jeff"
|
who: "jeff"
|
||||||
title: "Package Delivered"
|
title: "Package Delivered"
|
||||||
message: "Fedex/UPS just made a delivery"
|
message: "Fedex/UPS just made a delivery"
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >-
|
message: >-
|
||||||
|
|
|
@ -51,33 +51,33 @@ sensor:
|
||||||
- platform: nws_alerts
|
- platform: nws_alerts
|
||||||
zone_id: 'GAZ034,GAC135'
|
zone_id: 'GAZ034,GAC135'
|
||||||
|
|
||||||
- platform: mqtt
|
# - platform: mqtt
|
||||||
name: "Back Porch"
|
# name: "Back Porch"
|
||||||
state_topic: "house/acurite2mqtt/Acurite-6045M_3078"
|
# state_topic: "house/acurite2mqtt/Acurite-6045M_3078"
|
||||||
unit_of_measurement: '°F'
|
# unit_of_measurement: '°F'
|
||||||
value_template: "{{ value_json.temperature_F }}"
|
# value_template: "{{ value_json.temperature_F }}"
|
||||||
json_attributes_topic: "house/acurite2mqtt/Acurite-6045M_3078"
|
# json_attributes_topic: "house/acurite2mqtt/Acurite-6045M_3078"
|
||||||
device_class: temperature
|
# device_class: temperature
|
||||||
|
|
||||||
- platform: mqtt
|
# - platform: mqtt
|
||||||
name: "Crawlspace"
|
# name: "Crawlspace"
|
||||||
state_topic: "house/acurite2mqtt/Acurite-609TXC_73"
|
# state_topic: "house/acurite2mqtt/Acurite-609TXC_73"
|
||||||
unit_of_measurement: '°F'
|
# unit_of_measurement: '°F'
|
||||||
value_template: "{{ value_json.temperature_F }}"
|
# value_template: "{{ value_json.temperature_F }}"
|
||||||
json_attributes_topic: "house/acurite2mqtt/Acurite-609TXC_73"
|
# json_attributes_topic: "house/acurite2mqtt/Acurite-609TXC_73"
|
||||||
device_class: temperature
|
# device_class: temperature
|
||||||
|
|
||||||
- platform: mqtt
|
# - platform: mqtt
|
||||||
name: "Garage"
|
# name: "Garage"
|
||||||
state_topic: "house/acurite2mqtt/Acurite-Tower_10968"
|
# state_topic: "house/acurite2mqtt/Acurite-Tower_10968"
|
||||||
unit_of_measurement: '°F'
|
# unit_of_measurement: '°F'
|
||||||
value_template: "{{ value_json.temperature_F }}"
|
# value_template: "{{ value_json.temperature_F }}"
|
||||||
json_attributes_topic: "house/acurite2mqtt/Acurite-Tower_10968"
|
# json_attributes_topic: "house/acurite2mqtt/Acurite-Tower_10968"
|
||||||
device_class: temperature
|
# device_class: temperature
|
||||||
|
|
||||||
- platform: mqtt
|
# - platform: mqtt
|
||||||
name: "Lightning total count"
|
# name: "Lightning total count"
|
||||||
state_topic: "house/lightning/total_count"
|
# state_topic: "house/lightning/total_count"
|
||||||
|
|
||||||
- platform: statistics
|
- platform: statistics
|
||||||
name: Inside Humidity Stats
|
name: Inside Humidity Stats
|
||||||
|
@ -185,13 +185,13 @@ sensor:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
backporch_weather:
|
backporch_weather:
|
||||||
friendly_name: Back Porch Weather
|
friendly_name: Back Porch Weather
|
||||||
value_template: "{{ states.sensor.back_porch.state | round}} °F / {{ states.sensor.back_porch.attributes.humidity }} %"
|
value_template: "{{ states.sensor.back_porch_temperature.state | round}} °F / {{ states.sensor.back_porch_humidity.state }} %"
|
||||||
garage_weather:
|
garage_weather:
|
||||||
friendly_name: Garage Weather
|
friendly_name: Garage Weather
|
||||||
value_template: "{{ states.sensor.garage.state | round}} °F / {{ states.sensor.garage.attributes.humidity }} %"
|
value_template: "{{ states.sensor.garage_temperature.state | round}} °F / {{ states.sensor.garage_humidity.state }} %"
|
||||||
crawlspace_weather:
|
crawlspace_weather:
|
||||||
friendly_name: Crawlspace Weather
|
friendly_name: Crawlspace Weather
|
||||||
value_template: "{{ states.sensor.crawlspace.state | round}} °F / {{ states.sensor.crawlspace.attributes.humidity }} %"
|
value_template: "{{ states.sensor.crawlspace_temperature.state | round}} °F / {{ states.sensor.crawlspace_humidity.state }} %"
|
||||||
clothing_forecast:
|
clothing_forecast:
|
||||||
friendly_name: "Clothing Forecast"
|
friendly_name: "Clothing Forecast"
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
|
@ -309,7 +309,7 @@ sensor:
|
||||||
value_template: "{{ states.climate.home.attributes.current_humidity }}"
|
value_template: "{{ states.climate.home.attributes.current_humidity }}"
|
||||||
lighting_stike_count:
|
lighting_stike_count:
|
||||||
friendly_name: "Lightning Strike Count"
|
friendly_name: "Lightning Strike Count"
|
||||||
value_template: "{{ states.sensor.back_porch.attributes.strike_count }}"
|
value_template: "{{ states.sensor.back_porch_strike_count.state }}"
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: 'NWS Weather Alert Pop Up Control'
|
- alias: 'NWS Weather Alert Pop Up Control'
|
||||||
|
@ -405,7 +405,7 @@ automation:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ (('Severe' in states.sensor.nws_alerts.attributes.title) or ('Thunderstorm' in states.sensor.nws_alerts.attributes.title)) and 'Warning' in states.sensor.nws_alerts.attributes.title }}"
|
value_template: "{{ (('Severe' in states.sensor.nws_alerts.attributes.title) or ('Thunderstorm' in states.sensor.nws_alerts.attributes.title)) and 'Warning' in states.sensor.nws_alerts.attributes.title }}"
|
||||||
action:
|
action:
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >
|
message: >
|
||||||
|
@ -431,7 +431,7 @@ automation:
|
||||||
{{ [ "/config/www/tweet_images/lightning.jpg",
|
{{ [ "/config/www/tweet_images/lightning.jpg",
|
||||||
"/config/www/tweet_images/lightning-bolt.jpg"] | random }}
|
"/config/www/tweet_images/lightning-bolt.jpg"] | random }}
|
||||||
- delay: '00:00:15'
|
- delay: '00:00:15'
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: main
|
who: main
|
||||||
message: >
|
message: >
|
||||||
|
@ -491,7 +491,7 @@ automation:
|
||||||
- alias: Lightning Detected
|
- alias: Lightning Detected
|
||||||
trigger:
|
trigger:
|
||||||
- platform: template
|
- platform: template
|
||||||
value_template: '{{ states.sensor.back_porch.attributes.strike_count | int > states.sensor.lightning_total_count.state | int }}'
|
value_template: '{{ states.sensor.back_porch_strike_count.state | int > states.sensor.lightning_total_count.state | int }}'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.lightning_warning
|
entity_id: input_boolean.lightning_warning
|
||||||
|
@ -511,7 +511,7 @@ automation:
|
||||||
mode: restart
|
mode: restart
|
||||||
trigger:
|
trigger:
|
||||||
- platform: template
|
- platform: template
|
||||||
value_template: '{{ states.sensor.back_porch.attributes.strike_count | int == states.sensor.lightning_total_count.state | int }}'
|
value_template: '{{ states.sensor.back_porch_strike_count.state | int == states.sensor.lightning_total_count.state | int }}'
|
||||||
for:
|
for:
|
||||||
minutes: 20
|
minutes: 20
|
||||||
condition:
|
condition:
|
||||||
|
@ -605,7 +605,7 @@ script:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data:
|
data:
|
||||||
topic: house/lightning/total_count
|
topic: house/lightning/total_count
|
||||||
payload_template: "{{ states.sensor.back_porch.attributes.strike_count | int }}"
|
payload_template: "{{ states.sensor.back_porch_strike_count.state | int }}"
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
|
|
||||||
|
@ -659,7 +659,7 @@ script:
|
||||||
image: >-
|
image: >-
|
||||||
{{ [ "/config/www/tweet_images/lightning.jpg",
|
{{ [ "/config/www/tweet_images/lightning.jpg",
|
||||||
"/config/www/tweet_images/lightning-bolt.jpg"] | random }}
|
"/config/www/tweet_images/lightning-bolt.jpg"] | random }}
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >-
|
message: >-
|
||||||
|
@ -683,7 +683,7 @@ script:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.day
|
entity_id: binary_sensor.day
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- service: script.jarvis_voice
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_audio.state }}'
|
||||||
message: >-
|
message: >-
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
origin: device_tracker.life360_kat_stone
|
origin: device_tracker.life360_kat_stone
|
||||||
destination: zone.home
|
destination: zone.home
|
||||||
region: 'US'
|
region: 'US'
|
||||||
incl_filter: US-78 W
|
|
||||||
- platform: waze_travel_time
|
- platform: waze_travel_time
|
||||||
name: "Home To Summit"
|
name: "Home To Summit"
|
||||||
# api_key: !secret google_api
|
# api_key: !secret google_api
|
||||||
|
|
|
@ -65,11 +65,11 @@
|
||||||
days: 7
|
days: 7
|
||||||
- platform: statistics
|
- platform: statistics
|
||||||
name: Outside Temp Stats
|
name: Outside Temp Stats
|
||||||
entity_id: sensor.back_porch
|
entity_id: sensor.back_porch_temperature
|
||||||
sampling_size: 500
|
sampling_size: 500
|
||||||
- platform: statistics
|
- platform: statistics
|
||||||
name: Garage Temp Stats
|
name: Garage Temp Stats
|
||||||
entity_id: sensor.garage
|
entity_id: sensor.garage_temperature
|
||||||
sampling_size: 500
|
sampling_size: 500
|
||||||
- platform: min_max
|
- platform: min_max
|
||||||
name: Inside Temp Stats
|
name: Inside Temp Stats
|
||||||
|
|
|
@ -124,11 +124,11 @@
|
||||||
Currently it will take {{states.sensor.home_to_zoo.state|round}} minutes to get to the Zoo.
|
Currently it will take {{states.sensor.home_to_zoo.state|round}} minutes to get to the Zoo.
|
||||||
|
|
||||||
{%- if states.sensor.home_to_summit.state|round > 50 %}
|
{%- if states.sensor.home_to_summit.state|round > 50 %}
|
||||||
Traffic to the Cox Automotive appears heavy than normnal.
|
Traffic to Summit appears heavy than normnal.
|
||||||
{% else %}
|
{% else %}
|
||||||
Traffic to the Cox is normal.
|
Traffic to Summit is normal.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Currently it will take {{states.sensor.home_to_summit.state|round}} minutes to get to Cox Automotive.
|
Currently it will take {{states.sensor.home_to_summit.state|round}} minutes to get to Summit taking {{ states.sensor.home_to_summit.attributes.route }}.
|
||||||
</p>
|
</p>
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue