mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-20 20:56:44 +00:00
initial commit
This commit is contained in:
18
alexa/alexa_confirm.yaml
Normal file
18
alexa/alexa_confirm.yaml
Normal 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
40
alexa/intents.yaml
Normal 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 %}
|
Reference in New Issue
Block a user