mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 12:56:54 +00:00
Update intent_script docs to use correct service call (#30461)
This commit is contained in:
parent
12bc5e1edd
commit
028b950bb6
@ -98,7 +98,7 @@ conversation:
|
|||||||
intent_script:
|
intent_script:
|
||||||
EventCountToday:
|
EventCountToday:
|
||||||
action:
|
action:
|
||||||
- service: calendar.list_events
|
- service: calendar.get_events
|
||||||
target:
|
target:
|
||||||
entity_id: calendar.my_calendar
|
entity_id: calendar.my_calendar
|
||||||
data_template:
|
data_template:
|
||||||
@ -108,7 +108,7 @@ intent_script:
|
|||||||
- stop: ""
|
- stop: ""
|
||||||
response_variable: result # and return it
|
response_variable: result # and return it
|
||||||
speech:
|
speech:
|
||||||
text: "{{ action_response.events | length }}" # use the action's response
|
text: "{{ action_response['calendar.my_calendar'].events | length }}" # use the action's response
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user