Moving all speech into an include file

This commit is contained in:
CCOSTAN 2017-02-15 01:51:58 +00:00
parent 8d09b9fcb1
commit ae5c2e49b0
2 changed files with 12 additions and 6 deletions

View File

@ -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 %}

View File

@ -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'