home-assistant.io icon indicating copy to clipboard operation
home-assistant.io copied to clipboard

developer tool - service won't run for google calendar create_event.

Open robertfgoodworth opened this issue 3 years ago • 2 comments

Feedback

Developer tools - Services, when using "Google Calendars: Create event" does not allow you to select the calendar entity-id, therefore you can't call the service. I had multi calendars so may be different if you only have one.

To address this go into "yaml" mode and add your calendar entity id after "service:" and before "data:" as follows. this is sample data: change this to your needs.

service: google.create_event entity_id: calendar. data: summary: Bowling description: Birthday bowling start_date_time: 2022-08-06T09:00:00.000Z end_date_time: 2022-08-07T12:00:00.000Z

Now you can call the service Hope this helps others

URL

https://www.home-assistant.io/integrations/google/

Version

2022.8.0

Additional information

No response

robertfgoodworth avatar Aug 04 '22 05:08 robertfgoodworth

Hey there @allenporter, mind taking a look at this feedback as it has been labeled with an integration (google) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

should be

service: google.create_event entity_id: calendar.replace with your calendar entity name here data: summary: Bowling description: Birthday bowling start_date_time: 2022-08-06T09:00:00.000Z end_date_time: 2022-08-07T12:00:00.000Z

robertfgoodworth avatar Aug 04 '22 05:08 robertfgoodworth

I tested this on a dev build and I was able to use the UI to select an entity and create a calendar event :

Screen Shot 2022-09-04 at 11 28 32 AM

I think I may have seen there was an issue in the frontend with the selector when using an integration so that may explain why it now works if it didn't before.

allenporter avatar Sep 04 '22 18:09 allenporter