mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-19 07:47:27 +00:00
Moving all speech into an include file
This commit is contained in:
parent
8d09b9fcb1
commit
ae5c2e49b0
@ -10,4 +10,14 @@
|
||||
"Hey there " ~ person,
|
||||
person ~ "! You're home!"
|
||||
] | random }}
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro dark_outside() %}
|
||||
{{ [
|
||||
"It is pretty dark outside. I will turn on the outside lights now.",
|
||||
"It's a little past Sunset. Time to turn on the outside lights. I'm on it.",
|
||||
"I'll switch on the outside lights. It's getting dark outside.",
|
||||
"Time to turn on the front lights. I'll take care of it."
|
||||
] | random }}
|
||||
{% endmacro %}
|
@ -25,12 +25,8 @@
|
||||
- service: script.Voice_notify
|
||||
data_template:
|
||||
value1: >
|
||||
{{ [
|
||||
"It is pretty dark outside. I will turn on the outside lights now.",
|
||||
"It's a little past Sunset. Time to turn on the outside lights. I'm on it.",
|
||||
"I'll switch on the outside lights. It's getting dark outside.",
|
||||
"Time to turn on the front lights. I'll take care of it."
|
||||
] | random }}
|
||||
!include voice.macros
|
||||
{{ dark_outside() }}
|
||||
######################################################################
|
||||
|
||||
- alias: 'Sunset Stuff off'
|
||||
|
Loading…
x
Reference in New Issue
Block a user