1
mirror of https://github.com/home-assistant/core synced 2024-09-03 08:14:07 +02:00
ha-core/homeassistant/components/google/services.yaml
Isabella Gross Alström fbfc674ca5 Add service for adding event to google component (#22473)
* Add service for adding event to google component

* Add service examples for google.add_event

* add refactoring based on reviews

* Fix too long lines

* Order import

* Move to move line

* Remove parenthesis

* Add service for adding event to google component

* Add service examples for google.add_event

* add refactoring based on reviews

* Add check for correct scopes, otherwise re-authenticate

* fix build failure

* fix build failure
2019-06-02 13:58:27 -07:00

31 lines
1.0 KiB
YAML

found_calendar:
description: Add calendar if it has not been already discovered.
scan_for_calendars:
description: Scan for new calendars.
add_event:
description: Add a new calendar event.
fields:
calendar_id:
description: The id of the calendar you want.
example: 'Your email'
summary:
description: Acts as the title of the event.
example: 'Bowling'
description:
description: The description of the event. Optional.
example: 'Birthday bowling'
start_date_time:
description: The date and time the event should start.
example: '2019-03-22 20:00:00'
end_date_time:
description: The date and time the event should end.
example: '2019-03-22 22:00:00'
start_date:
description: The date the whole day event should start.
example: '2019-03-10'
end_date:
description: The date the whole day event should end.
example: '2019-03-11'
in:
description: Days or weeks that you want to create the event in.
example: '"days": 2 or "weeks": 2'