mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Reduce speech
This commit is contained in:
@@ -47,6 +47,27 @@ script:
|
||||
{%- else -%}
|
||||
{{ message }}
|
||||
{%- endif -%}
|
||||
chat:
|
||||
alias: Speech · Send message
|
||||
sequence:
|
||||
# Don't talk while in night mode.
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.house_mode
|
||||
state: 'night'
|
||||
# Combine partials for speech message.
|
||||
- service: notify.telegram
|
||||
data_template:
|
||||
title: "{{ title | default('💬 *Speech Module*') }}"
|
||||
message: >-
|
||||
{%- if partials is defined -%}
|
||||
{%- for partial in partials -%}
|
||||
{{ partial }}{{ " " }}
|
||||
{%- endfor -%}
|
||||
{%- else -%}
|
||||
{{ message }}
|
||||
{%- endif -%}
|
||||
|
||||
say_discretely:
|
||||
alias: Speech · Say discretely
|
||||
|
||||
@@ -8,9 +8,9 @@ script:
|
||||
- media_player.kitchen
|
||||
- media_player.bathroom
|
||||
|
||||
- service: script.say_discretely
|
||||
data:
|
||||
message: "Entering bed time."
|
||||
# - service: script.say_discretely
|
||||
# data:
|
||||
# message: "Entering bed time."
|
||||
|
||||
# Set master bedroom state
|
||||
- service: fan.turn_on
|
||||
|
||||
@@ -7,9 +7,9 @@ script:
|
||||
- service: media_player.media_stop
|
||||
entity_id: media_player.master_bedroom
|
||||
# Use say_discretely instead of talk, because night mode is already on.
|
||||
- service: script.say_discretely
|
||||
data:
|
||||
message: "Entering night mode. Good night!"
|
||||
# - service: script.say_discretely
|
||||
# data:
|
||||
# message: "Entering night mode. Good night!"
|
||||
|
||||
# Prepare Bed LED brightness to be turned on during night time
|
||||
- service: light.turn_on
|
||||
@@ -54,3 +54,6 @@ script:
|
||||
- light.browser_hallway
|
||||
data:
|
||||
brightness_pct: 1
|
||||
|
||||
- service: cover.close_cover
|
||||
entity_id: cover.living_room
|
||||
|
||||
@@ -24,10 +24,10 @@ script:
|
||||
state: "off"
|
||||
- wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
|
||||
timeout: 00:02:00
|
||||
- delay: 00:00:0
|
||||
- service: script.say
|
||||
data:
|
||||
message: "Here's some music to start the day!"
|
||||
- delay: 00:00:00
|
||||
# - service: script.say
|
||||
# data:
|
||||
# message: "Here's some music to start the day!"
|
||||
- delay: 00:00:02
|
||||
- service: script.music_play
|
||||
|
||||
@@ -48,7 +48,7 @@ script:
|
||||
routine_morning_briefing:
|
||||
alias: Routine · Morning Briefing
|
||||
sequence:
|
||||
- service: script.say
|
||||
- service: script.chat
|
||||
data_template:
|
||||
partials:
|
||||
- !include ../../templates/partials/greeting.yaml
|
||||
|
||||
Reference in New Issue
Block a user