mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
alias: "Almost Bedtime TTS"
|
|
id: automation_almost_bedtime_tts
|
|
initial_state: off
|
|
trigger:
|
|
trigger: time
|
|
at:
|
|
entity_id: input_datetime.kids_bedtime_announcement_time
|
|
offset: "-300"
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.announce_bedtime
|
|
state: "on"
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.emmett_home
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.bridget_home
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.ebin_home
|
|
state: "on"
|
|
action:
|
|
- action: media_player.volume_set
|
|
data_template:
|
|
entity_id:
|
|
- media_player.bathroom_mini
|
|
- media_player.bathroom_mini
|
|
- media_player.front_room_hub
|
|
- media_player.kitchen
|
|
- media_player.girls_room_clock
|
|
- media_player.bedroom_hub
|
|
volume_level: 0.7
|
|
- delay: "00:00:03"
|
|
- action: tts.speak
|
|
target:
|
|
entity_id: tts.google_translate_en_com
|
|
data:
|
|
media_player_entity_id: media_player.all_speakers
|
|
message: Alright kids. Its almost bedtime. You've got 5 minutes.
|
|
- delay: "00:00:10"
|
|
- action: media_player.turn_off
|
|
entity_id: media_player.all_speakers
|
|
- action: input_select.select_option
|
|
entity_id: input_select.automatic_light_profile
|
|
data:
|
|
option: Dimmed
|