Improve documentation for service google.create_event (#24313)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Allen Porter 2022-10-03 05:27:31 -07:00 committed by GitHub
parent 77953ba168
commit 04fb877f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,8 @@ This will only be available if you have given Home Assistant `read-write` access
</div>
A calendar `target` is selected with a [Target Selector](/docs/blueprint/selectors/#target-selector) and the `data` payload supports the following fields:
| Service data attribute | Optional | Description | Example |
| ---------------------- | -------- | ----------- | --------|
| `summary` | no | Acts as the title of the event. | Bowling
@ -151,6 +153,18 @@ You either use `start_date_time` and `end_date_time`, or `start_date` and `end_d
</div>
This is a full example of service call in YAML:
```yaml
service: google.create_event
target:
entity_id: calendar.device_automation_schedules
data:
summary: "Example"
start_date: "2022-10-1"
end_date: "2022-10-2"
```
{% enddetails %}
## More Configuration