mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 04:46:49 +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:
|
||||
EventCountToday:
|
||||
action:
|
||||
- service: calendar.list_events
|
||||
- service: calendar.get_events
|
||||
target:
|
||||
entity_id: calendar.my_calendar
|
||||
data_template:
|
||||
@ -108,7 +108,7 @@ intent_script:
|
||||
- stop: ""
|
||||
response_variable: result # and return it
|
||||
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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user