mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 20:16:52 +00:00
Moving all speech into an include file
This commit is contained in:
@@ -10,4 +10,14 @@
|
|||||||
"Hey there " ~ person,
|
"Hey there " ~ person,
|
||||||
person ~ "! You're home!"
|
person ~ "! You're home!"
|
||||||
] | random }}
|
] | 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 %}
|
{% 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'
|
||||||
|
Reference in New Issue
Block a user