mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Updated example documentation (#3223)
Updated example documentation to match with version 0.50 and later
This commit is contained in:
parent
0ac98d7f89
commit
71d04a18ec
@ -70,29 +70,33 @@ apiai:
|
|||||||
|
|
||||||
intent_script:
|
intent_script:
|
||||||
Temperature:
|
Temperature:
|
||||||
speech: The temperature at home is {{ states('sensor.home_temp') }} degrees
|
speech:
|
||||||
|
text: The temperature at home is {{ states('sensor.home_temp') }} degrees
|
||||||
LocateIntent:
|
LocateIntent:
|
||||||
speech: >
|
speech:
|
||||||
{%- for state in states.device_tracker -%}
|
text: >
|
||||||
{%- if state.name.lower() == User.lower() -%}
|
{%- for state in states.device_tracker -%}
|
||||||
{{ state.name }} is at {{ state.state }}
|
{%- if state.name.lower() == User.lower() -%}
|
||||||
{%- elif loop.last -%}
|
{{ state.name }} is at {{ state.state }}
|
||||||
I am sorry, I do not know where {{ User }} is.
|
{%- elif loop.last -%}
|
||||||
{%- endif -%}
|
I am sorry, I do not know where {{ User }} is.
|
||||||
{%- else -%}
|
{%- endif -%}
|
||||||
Sorry, I don't have any trackers registered.
|
{%- else -%}
|
||||||
{%- endfor -%}
|
Sorry, I don't have any trackers registered.
|
||||||
|
{%- endfor -%}
|
||||||
WhereAreWeIntent:
|
WhereAreWeIntent:
|
||||||
speech: >
|
speech:
|
||||||
{%- if is_state('device_tracker.adri', 'home') and
|
text: >
|
||||||
is_state('device_tracker.bea', 'home') -%}
|
{%- if is_state('device_tracker.adri', 'home') and
|
||||||
You are both home, you silly
|
is_state('device_tracker.bea', 'home') -%}
|
||||||
{%- else -%}
|
You are both home, you silly
|
||||||
Bea is at {{ states("device_tracker.bea") }}
|
{%- else -%}
|
||||||
and Adri is at {{ states("device_tracker.adri") }}
|
Bea is at {{ states("device_tracker.bea") }}
|
||||||
{% endif %}
|
and Adri is at {{ states("device_tracker.adri") }}
|
||||||
|
{% endif %}
|
||||||
TurnLights:
|
TurnLights:
|
||||||
speech: Turning {{ Room }} lights {{ OnOff }}
|
speech:
|
||||||
|
text: Turning {{ Room }} lights {{ OnOff }}
|
||||||
action:
|
action:
|
||||||
- service: notify.pushbullet
|
- service: notify.pushbullet
|
||||||
data_template:
|
data_template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user