From 04fb877f2bb2755eb01823af97914eb916eb4ec2 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Mon, 3 Oct 2022 05:27:31 -0700 Subject: [PATCH] Improve documentation for service google.create_event (#24313) Co-authored-by: Franck Nijhof --- source/_integrations/google.markdown | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/_integrations/google.markdown b/source/_integrations/google.markdown index a7375813175..a78b9497cc9 100644 --- a/source/_integrations/google.markdown +++ b/source/_integrations/google.markdown @@ -135,6 +135,8 @@ This will only be available if you have given Home Assistant `read-write` access +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 +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