Calendar platform: expose delete_event and update_event actions, include uid in get_events #3773
Unanswered
ragio579
asked this question in
Core functionality
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request
The calendar platform currently only exposes
calendar.create_eventandcalendar.get_eventsas actions. There is no way to programmatically delete or update calendar events.The frontend can delete events via the WebSocket command
calendar/event/delete, but this is not exposed as a service/action and is not accessible via the REST API.Additionally, the
calendar.get_eventsservice (called viaPOST /api/services/calendar/get_events?return_response) does not return theuidfield for events. However, the REST endpointGET /api/calendars/<entity_id>?start=...&end=...does returnuid. This inconsistency makes it impossible to identify events for deletion/update even if those actions existed.Expected behavior
calendar.delete_eventandcalendar.update_eventshould be available as actions, acceptingentity_idanduid(and updated fields for update).calendar.get_eventsshould returnuidin its response, consistent with the REST GET endpoint.Use case
I import work shifts from a Google Sheets document into a
local_calendarvia an n8n workflow. When shifts change, I need to clear the existing events for a given month and re-import them. Withoutdelete_eventas an action, the only workaround is directly manipulating the.icsfile and reloading the integration — which is fragile and undocumented.This would also benefit anyone using calendars as structured logs (e.g., logging appliance runs, doorbell events, cleaning sessions) who needs to clean up or correct entries programmatically.
Environment
local_calendar, likely all calendar integrations that support theCalendarEntitymethodsOriginally filed as home-assistant/core#170251, redirected here as requested.
Beta Was this translation helpful? Give feedback.
All reactions