mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-22 00:55:18 +00:00
Moving all speech into an include file
This commit is contained in:
parent
8d09b9fcb1
commit
ae5c2e49b0
@ -11,3 +11,13 @@
|
|||||||
person ~ "! You're home!"
|
person ~ "! You're home!"
|
||||||
] | random }}
|
] | random }}
|
||||||
{% endmacro %}
|
{% 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
|
- service: script.Voice_notify
|
||||||
data_template:
|
data_template:
|
||||||
value1: >
|
value1: >
|
||||||
{{ [
|
!include voice.macros
|
||||||
"It is pretty dark outside. I will turn on the outside lights now.",
|
{{ dark_outside() }}
|
||||||
"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 }}
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
- alias: 'Sunset Stuff off'
|
- alias: 'Sunset Stuff off'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user