mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
Improve documentation for service google.create_event (#24313)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
77953ba168
commit
04fb877f2b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user