mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-22 21:30:33 +00:00
Continue refactor of speech engine
This commit is contained in:
@@ -6,56 +6,16 @@
|
||||
###############################################################################
|
||||
|
||||
automation:
|
||||
- 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.jarvis_voice
|
||||
data_template:
|
||||
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 }}
|
||||
- id: sentry_mode_feedback
|
||||
alias: Sentry Mode Audio Feedback
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_boolean.sentry_mode
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
action:
|
||||
- service: script.jarvis_voice
|
||||
data_template:
|
||||
message: >
|
||||
{{ [
|
||||
"Sentry Mode has been enabled.",
|
||||
"Anchorage House is secure.",
|
||||
"I have enabled sentry mode. ",
|
||||
"I am monitoring Anchorage House."
|
||||
] | random }}
|
||||
|
||||
|
||||
script:
|
||||
activate_house_party_protocol:
|
||||
sequence:
|
||||
- service: script.jarvis_voice
|
||||
data_template:
|
||||
message: !include ../templates/jarvis_confirmations.yaml
|
||||
- delay:
|
||||
seconds: 3
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.house_party_protocol
|
||||
- service: script.jarvis_voice
|
||||
- service: script.ah_report
|
||||
data_template:
|
||||
message: >
|
||||
speech_message: >
|
||||
{{ [
|
||||
"Anchorage House has been configured for a House Party.",
|
||||
"Incense has been turned on.",
|
||||
|
Reference in New Issue
Block a user