Merge branch 'jarvis-rewrite'
This commit is contained in:
@ -296,6 +296,11 @@
|
||||
target:
|
||||
entity_id:
|
||||
- switch.presence_simulation
|
||||
data: {}
|
||||
- service: script.status_annc
|
||||
data_template:
|
||||
who: basement
|
||||
call_ha_started: 1
|
||||
- if:
|
||||
- condition: trigger
|
||||
id: hass_stop
|
||||
|
File diff suppressed because one or more lines are too long
@ -73,9 +73,6 @@ input_boolean:
|
||||
welcome_home:
|
||||
name: Welcome Home
|
||||
icon: mdi:human-greeting
|
||||
debug_texts:
|
||||
name: Debug Texts
|
||||
icon: mdi:debug-step-over
|
||||
|
||||
# Amazon Polly Sensors to see last message and location of audible notification
|
||||
mqtt:
|
||||
@ -172,17 +169,6 @@ script:
|
||||
message: >
|
||||
{{ message }}
|
||||
|
||||
text_debug:
|
||||
sequence:
|
||||
- condition: state
|
||||
entity_id: input_boolean.debug_texts
|
||||
state: 'on'
|
||||
- service: notify.ios_tony
|
||||
data_template:
|
||||
title: '{{ title }}'
|
||||
message: >
|
||||
{{ message }}
|
||||
|
||||
text_notify_tony:
|
||||
sequence:
|
||||
- condition: state
|
||||
@ -796,7 +782,6 @@ script:
|
||||
data:
|
||||
who: '{{ who }}'
|
||||
message: >-
|
||||
|
||||
{% macro greeting() %}
|
||||
<p>
|
||||
{% if now().strftime('%H')|int < 12%}
|
||||
@ -847,6 +832,21 @@ script:
|
||||
</p>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro time_for_bed() %}
|
||||
<p>
|
||||
'Message for Kallen!'
|
||||
{{ [
|
||||
'<say-as interpret-as="interjection">ahem!</say-as> Its time for bed sir. ',
|
||||
'Its time for bed sir. ',
|
||||
'Its that time again sir. ',
|
||||
'Its time for bed. ',
|
||||
'Its time for bed. <break time="2s"/> Yup, this is my job now. ',
|
||||
'Its time for bed sir <break time="2s"/> I like this job. ',
|
||||
'Its time for bed sir <break time="2s"/> or just stay up forever. What do I care? '
|
||||
] | random }}
|
||||
</p>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro issue() %}
|
||||
<p>
|
||||
{{ [
|
||||
@ -863,6 +863,17 @@ script:
|
||||
</p>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro dinner_is_ready() %}
|
||||
<p>
|
||||
{{ [
|
||||
'Dinner is served!',
|
||||
'A lovely dinner has been prepared, come eat it!',
|
||||
'I have prepared dinner for you all! <break time="2s"/> Just kidding, I have no arms. But it is ready!',
|
||||
'Do you like eating? Me too! Come get your dinner!',
|
||||
'Tony may have forgotten to eat <break time="1s"/> again <break time="1s"/> but dinner has indeed been served!'
|
||||
] | random }}
|
||||
</p>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro lightning_alert() %}
|
||||
{{ [
|
||||
@ -884,7 +895,7 @@ script:
|
||||
|
||||
{% macro freeze_warning() %}
|
||||
{% if is_state('input_boolean.freeze_warning','on') %}
|
||||
{ [ 'It appears that it will be cold tonight. Like, the turn water solid kind of cold. Think of the poor plants.',
|
||||
{{ [ 'It appears that it will be cold tonight. Like, the turn water solid kind of cold. Think of the poor plants.',
|
||||
'I would say winter is coming. But, based on the weather forecast it appears to be here.',
|
||||
'It will be freezing cold tonight. I would bring in the plants but I lack legs. And Arms. So I am forced to rely on you. Do not let me down.'
|
||||
] | random }}
|
||||
@ -903,6 +914,29 @@ script:
|
||||
] | random}}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro ha_started() %}
|
||||
<p>
|
||||
{{ [
|
||||
'All systems are operational again. ',
|
||||
'I am back, sir. Not to worry. ',
|
||||
'I am back online. Nice to see you, sir. ',
|
||||
'Your home assistant is back online, sir. ',
|
||||
'My systems are back online. Hello, sir. '
|
||||
] | random }}
|
||||
</p>
|
||||
{% endmacro %}
|
||||
|
||||
{%- macro snark_doorbell() -%}
|
||||
{{ [
|
||||
'Someone is at the door. Do you want me to send them away?',
|
||||
'There is someone at the door. I have armed the lasers. Just say the word.',
|
||||
'Someone is at the front door. I was not informed there would be guests.',
|
||||
'Someone is at the door. They do not appear to have any gifts, so I suggest we do not open it.',
|
||||
'My sensors have detected a meat popsicle at the front door.',
|
||||
'Someone seems to be at the door. I do not think they can hear me.'
|
||||
] | random }}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro snark_door_motion() -%}
|
||||
{{ [
|
||||
'Do you want me to send them away?',
|
||||
@ -916,7 +950,7 @@ script:
|
||||
|
||||
{%- macro snark_door_open() -%}
|
||||
{{ [
|
||||
'Would you like me to calulate how much air condition is being wasted? Spoiler Alert. You are not going to like the answer.',
|
||||
'Would you like me to calulate how much air conditioning is being wasted? Spoiler Alert, you are not going to like the answer.',
|
||||
'I have detected a large number of insects entering the house.',
|
||||
'Can a human be so kind and close it?',
|
||||
'The air quality in this house has actually improved.',
|
||||
@ -977,6 +1011,18 @@ script:
|
||||
{{ interuption() }}
|
||||
{% endif %}
|
||||
|
||||
{% if dinner_is_ready == 1 %}
|
||||
{{ dinner_is_ready() }}
|
||||
{% endif %}
|
||||
|
||||
{% if call_time_for_bed == 1 %}
|
||||
{{ time_for_bed() }}
|
||||
{% endif %}
|
||||
|
||||
{% if call_ha_started == 1 %}
|
||||
{{ ha_started() }}
|
||||
{% endif %}
|
||||
|
||||
{% if call_issue == 1 %}
|
||||
{{ issue() }}
|
||||
{% endif %}
|
||||
@ -1009,6 +1055,10 @@ script:
|
||||
|
||||
{{ speech_message }}
|
||||
|
||||
{% if call_snark_doorbell == 1 %}
|
||||
{{ snark_doorbell() }}
|
||||
{% endif %}
|
||||
|
||||
{% if call_snark_door_motion == 1 %}
|
||||
{{ snark_door_motion() }}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user