mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-05 08:44:24 +00:00
Speech & timing improvements. Refactoring
This commit is contained in:
@@ -11,14 +11,12 @@ script:
|
||||
- media_player.nvidia_shield
|
||||
- media_player.living_room_tv
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.living_room_all_lights
|
||||
- light.bedside_light
|
||||
entity_id: light.all_lights
|
||||
- delay: "00:00:02"
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.master_bedroom
|
||||
data:
|
||||
volume_level: 0.1
|
||||
volume_level: 0.2
|
||||
# use say_discretely instead of talk, because sleep_mode is already on
|
||||
- service: script.say_discretely
|
||||
data:
|
||||
|
||||
@@ -14,9 +14,11 @@ script:
|
||||
- condition: state
|
||||
entity_id: input_boolean.routine_welcome_home
|
||||
state: "on"
|
||||
- delay: "00:00:01"
|
||||
- delay: "00:00:03"
|
||||
- service: script.coming_home_say_welcome
|
||||
- delay: "00:00:15"
|
||||
|
||||
# TODO: Add condition for time - don't blast music late at night :)
|
||||
- delay: "00:00:03"
|
||||
- service: media_player.shuffle_set
|
||||
entity_id: media_player.master_bedroom
|
||||
data:
|
||||
@@ -25,14 +27,6 @@ script:
|
||||
entity_id: media_player.master_bedroom
|
||||
data:
|
||||
source: Evening Chill
|
||||
# - service: media_player.turn_on
|
||||
# entity_id: media_player.nvidia_shield
|
||||
# - delay: "00:00:10"
|
||||
# - service: spotcast.start
|
||||
# data:
|
||||
# device_name: "Living Room TV"
|
||||
# uri: "spotify:playlist:1dstTefWFQaBFTC6CjcEHd"
|
||||
# random_song: true
|
||||
|
||||
coming_home_say_welcome:
|
||||
alias: Routine - Coming home - Say welcome
|
||||
@@ -48,7 +42,7 @@ script:
|
||||
- !include ../../templates/partials/time.yaml
|
||||
- "Here's the current status:"
|
||||
- !include ../../templates/partials/window_check.yaml
|
||||
- delay: "00:00:02"
|
||||
- delay: "00:00:10"
|
||||
- service: script.talk
|
||||
data_template:
|
||||
message: >-
|
||||
|
||||
@@ -12,6 +12,4 @@ script:
|
||||
- service: media_player.media_stop
|
||||
entity_id: media_player.master_bedroom
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.living_room_all_lights
|
||||
- light.bedside_light
|
||||
entity_id: light.all_lights
|
||||
|
||||
Reference in New Issue
Block a user