Skip to content

Local calendar all day event not accepted in automation #156420

Description

@Eirik78

The problem

Trying to add a full day event by automation, both start and end date is required. Using a template, setting a date from a sensor, adding this to both fields.

Tried by setting date manually, same result.

Then receiving this:

Expected minimum event duration of 0:00:01 (2025-11-12, 2025-11-12). Got {'type': 'execute_script', 'sequence': [{'action': 'calendar.create_event', 'data': {'summary': 'hhh', 'start_date': '2025-11-12', 'end_date': '2025-11-12'}, 'target': {'entity_id': ['calendar.xxx']}}], 'id': 439}

Only solution I found is using the time and date fields, adding "00:00:01" after the template. But this does not create a full day event.

Expecting this to give same result as when adding event manually.

What version of Home Assistant Core has the issue?

2025.11.1

What was the last working version of Home Assistant Core?

Unknown, first try now

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Local calendar

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

action: calendar.create_event
metadata: {}
data:
  summary: Test
  start_date: "2025-11-12"
  end_date: "2025-11-12"
target:
  entity_id: calendar.xxx

Anything in the logs that might be useful for us?

websocket_api script: Error executing script. Invalid data for call_service at pos 1: Start and end dates must both be specified @ data[<dates>]
websocket_api script: Error executing script. Invalid data for call_service at pos 1: Expected minimum event duration of 0:00:01 (2025-11-12, 2025-11-12)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions