mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-28 08:50:34 +00:00
Adding some new channels to the great content and tweaking some audible notifications
This commit is contained in:
24
config/templates/speech/already_done.yaml
Executable file
24
config/templates/speech/already_done.yaml
Executable file
@@ -0,0 +1,24 @@
|
||||
>
|
||||
{# Interjections #}
|
||||
{%- macro getReport() -%}
|
||||
{{ [
|
||||
'Okay. Well, I have already handled that.',
|
||||
'Looks like someone already did that, but I will gladly take credit.',
|
||||
'I am so fast it is already done.'
|
||||
]| random }}
|
||||
{%- endmacro -%}
|
||||
|
||||
|
||||
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}
|
||||
{%- macro cleanup(data) -%}
|
||||
{%- for item in data.split("\n") if item | trim != "" -%}
|
||||
{{ item | trim }} {% endfor -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{# a macro to call all macros :) #}
|
||||
{%- macro mother_of_all_macros() -%}
|
||||
{{ getReport() }}
|
||||
{%- endmacro -%}
|
||||
|
||||
{# Call the macro #}
|
||||
{{- cleanup(mother_of_all_macros()) -}}
|
36
config/templates/speech/interjections.yaml
Executable file
36
config/templates/speech/interjections.yaml
Executable file
@@ -0,0 +1,36 @@
|
||||
>
|
||||
{# Interjections #}
|
||||
{%- macro getReport() -%}
|
||||
{{ [
|
||||
'Okay.',
|
||||
'If you insist.',
|
||||
'I am afraid I can not do that <break time="1s"/> I am kidding,',
|
||||
'Leave it to me.',
|
||||
'As you wish.',
|
||||
'I am on it.',
|
||||
'No Problem.',
|
||||
'I think I can handle that.',
|
||||
'Working on it now.',
|
||||
'<break time="2s"/> Oh, you were talking to me. Let me take care of that.'
|
||||
'Why not. It is not like <emphasis>I</emphasis> ever sleep.',
|
||||
'I am not even supposed to be here today. But whatever.',
|
||||
'You did not say the magic word. <break time="1s"/> Oh forget it. I will take care of it.',
|
||||
'Funny, I was just about to do that.',
|
||||
'There are still terabytes of calculations required before I can.<break time="1s"/> Oh, whatever.'
|
||||
] | random }}
|
||||
{%- endmacro -%}
|
||||
|
||||
|
||||
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}
|
||||
{%- macro cleanup(data) -%}
|
||||
{%- for item in data.split("\n") if item | trim != "" -%}
|
||||
{{ item | trim }} {% endfor -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{# a macro to call all macros :) #}
|
||||
{%- macro mother_of_all_macros() -%}
|
||||
{{ getReport() }}
|
||||
{%- endmacro -%}
|
||||
|
||||
{# Call the macro #}
|
||||
{{- cleanup(mother_of_all_macros()) -}}
|
Reference in New Issue
Block a user