mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-21 13:13:34 +00:00
Continue refactor of speech engine
This commit is contained in:
@@ -155,9 +155,10 @@ automation:
|
||||
entity_id: input_boolean.audible_notifications
|
||||
state: 'on'
|
||||
action:
|
||||
- service: script.jarvis_voice
|
||||
- service: script.ah_report
|
||||
data_template:
|
||||
message: "I thought you might like to know, the {{ trigger.to_state.attributes.friendly_name }} has been standing open for more than a minute."
|
||||
speech_message: " the {{ trigger.to_state.attributes.friendly_name }} has been standing open for more than a minute."
|
||||
call_interuption: 1
|
||||
initial_state: true
|
||||
|
||||
- id: garage_opened_night
|
||||
@@ -202,7 +203,7 @@ automation:
|
||||
entity_id: input_boolean.sentry_mode
|
||||
state: 'on'
|
||||
action:
|
||||
- service: script.jarvis_notify
|
||||
- service: script.jarvis_alert
|
||||
data_template:
|
||||
message: "My security protocols are being overidden,, The {{ trigger.to_state.attributes.friendly_name }} has been opened."
|
||||
- service: script.text_alert
|
||||
@@ -222,9 +223,9 @@ automation:
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
action:
|
||||
- service: script.jarvis_voice
|
||||
data:
|
||||
message: >
|
||||
- service: script.ah_report
|
||||
data_template:
|
||||
speech_message: >
|
||||
{{ [
|
||||
"Barn door protocol has been activated.",
|
||||
"Anchorage House has been secured! ",
|
||||
@@ -241,15 +242,34 @@ automation:
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
action:
|
||||
- service: script.jarvis_voice
|
||||
data:
|
||||
message: >
|
||||
- service: script.ah_report
|
||||
data_template:
|
||||
speech_message: >
|
||||
{{ [
|
||||
"Barn door protocol has been deactivated.",
|
||||
"I am no longer monitoring the access points. ",
|
||||
"Sentry Mode has been switched off. "
|
||||
] | random }}
|
||||
|
||||
- id: guest_mode_feedback
|
||||
alias: Guest Mode Audio Feedback
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_boolean.guest_mode
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
action:
|
||||
- service: script.ah_report
|
||||
data_template:
|
||||
speech_message: >
|
||||
{{ [
|
||||
"Guest Mode has been enabled.",
|
||||
"I have switched to the system to guest mode.",
|
||||
"I have enabled guest mode. ",
|
||||
"Guest Mode is on."
|
||||
] | random }}
|
||||
|
||||
script:
|
||||
lockdown_issue:
|
||||
sequence:
|
||||
@@ -367,25 +387,29 @@ script:
|
||||
|
||||
activate_barn_door_protocol:
|
||||
sequence:
|
||||
- service: script.jarvis_voice
|
||||
data_template:
|
||||
message: !include ../templates/jarvis_confirmations.yaml
|
||||
- service: script.ah_report
|
||||
data:
|
||||
call_confirmation: 1
|
||||
- delay:
|
||||
seconds: 2
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.sentry_mode
|
||||
|
||||
deactivate_barn_door_protocol:
|
||||
sequence:
|
||||
- service: script.jarvis_voice
|
||||
data_template:
|
||||
message: !include ../templates/jarvis_confirmations.yaml
|
||||
- service: script.ah_report
|
||||
data:
|
||||
call_confirmation: 1
|
||||
- delay:
|
||||
seconds: 2
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.sentry_mode
|
||||
|
||||
activate_guest_mode:
|
||||
sequence:
|
||||
- service: script.jarvis_voice
|
||||
data_template:
|
||||
message: !include ../templates/jarvis_confirmations.yaml
|
||||
- service: script.ah_report
|
||||
data:
|
||||
call_confirmation: 1
|
||||
- delay:
|
||||
seconds: 2
|
||||
- service: input_boolean.turn_on
|
||||
|
Reference in New Issue
Block a user