Moving all speech into an include file

pull/76/head
CCOSTAN 9 years ago
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…
Cancel
Save

Powered by TurnKey Linux.