This repository was archived by the owner on Sep 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintent_scripts.yaml
More file actions
40 lines (36 loc) · 1.41 KB
/
intent_scripts.yaml
File metadata and controls
40 lines (36 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Temperature:
# speech: The temperature at home is {{ states('sensor.home_temp') }} degrees
# LocateIntent:
# speech: >
# {%- for state in states.device_tracker -%}
# {%- if state.name.lower() == User.lower() -%}
# {{ state.name }} is at {{ state.state }}
# {%- elif loop.last -%}
# I am sorry, I do not know where {{ User }} is.
# {%- endif -%}
# {%- else -%}
# Sorry, I don't have any trackers registered.
# {%- endfor -%}
WhereAreWeIntent:
speech: >
{% if is_state("device_tracker.glenn_glenn", "home") and
is_state("device_tracker.lola_lola", "home") and
is_state("device_tracker.eleanor_eleanor", "home") -%}
You are all home, you silly
{%- else -%}
Glenn is at {{ states("device_tracker.glenn_glenn") }} and Eleanor is at {{ states("device_tracker.eleanor_eleanor") }} and Lola is at {{ states("device_tracker.lola_lola") }}
{%- endif %}
# TurnLights:
# speech: Turning {{ Room }} lights {{ OnOff }}
# action:
# - service: notify.pushbullet
# data_template:
# message: Someone asked via apiai to turn {{ Room }} lights {{ OnOff }}
# - service_template: >
# {%- if OnOff == "on" -%}
# switch.turn_on
# {%- else -%}
# switch.turn_off
# {%- endif -%}
# data_template:
# entity_id: "switch.light_{{ Room | replace(' ', '_') }}"