initial commit

This commit is contained in:
Jeffrey Stone
2016-12-30 11:10:09 -05:00
commit be2805457b
12 changed files with 680 additions and 0 deletions

18
alexa/alexa_confirm.yaml Normal file
View File

@@ -0,0 +1,18 @@
>
{{ [
"OK",
"Sure",
"If you insist",
"Done",
"No worries",
"I can do that",
"Leave it to me",
"Consider it done",
"As you wish",
"By your command",
"Affirmative",
"Yes oh revered one",
"I will",
"As you decree, so shall it be",
"No Problem"
] | random }}

40
alexa/intents.yaml Normal file
View File

@@ -0,0 +1,40 @@
intents:
WhereAreWeIntent:
speech:
type: plaintext
text: >
{%- if is_state('device_tracker.jarvis_jeffreysphone', 'home') and
is_state('device_tracker.katheriesiphone', 'home') -%}
You are both home
{%- else -%}
Jeff is at {{ states("device_tracker.jarvis_jeffreysiphone") }}
and Kat is at {{ states("device_tracker.katheriesiphone") }}
{% endif %}
WhereIsJeffIntent:
speech:
type: plaintext
text: >
{%- if is_state('device_tracker.jarvis_jeffreysphone', 'home') -%}
It appears Jeff is here somewhere
{%- else -%}
{%- if is_state('device_tracker.jarvis_jeffreysphone', 'not_home') -%}
Jeff is not here
{%- else -%}
Jeff is at {{ states("device_tracker.jarvis_jeffreysphone") }}
{% endif %}
{% endif %}
WhereIsCatherineIntent:
speech:
type: plaintext
text: >
{%- if is_state('device_tracker.katheriesiphone', 'home') -%}
Kat is at home
{%- else -%}
{%- if is_state('device_tracker.katheriesiphone', 'not_home') -%}
Kat is not here
{%- else -%}
Kat is at {{ states("device_tracker.katheriesiphone") }}
{% endif %}
{% endif %}