node-red-contrib-home-assistant-websocket icon indicating copy to clipboard operation
node-red-contrib-home-assistant-websocket copied to clipboard

End of all day calendar event not triggered

Open sebcou21 opened this issue 1 year ago • 2 comments

Describe the bug

Start and end events are triggered fine with calendar events having a start and end time. Start of all day events is triggered, however end is not.

I believe it might be due to timezone: CalendarItem start and end values are date objects for all day events (no timezone information), whereas they are dateTime objects for events with start and end time (see logging below).

To Reproduce

  1. Create calendar events relative to start and end, debug output to system console
  2. Create full day event in monitored calendar and wait
  3. Check addon logs

Expected behavior

No response

Screenshots

No response

Example Flow

No response

Environment Information

Version: 0.64.0

Home Assistant version: 2024.5.1 Companion version: 4.0.0

Node-RED version: 3.1.9 Docker: yes Add-on: no

Node.js version: v18.20.2 arm64 linux OS: Linux 6.1.73-haos-raspi arm64

Additional context

All day event (notice it is triggered at 02:00 UTC+2 instead of midnight). No end event recorded.

4 May 02:00:00 - [info] [debug:ha_calendar_event_started] 
{
  payload: CalendarItem {
    start: { date: '2024-05-04' },
    end: { date: '2024-05-05' },
    summary: 'Test ',
    description: '\n',
    location: '',
    uid: null,
    recurrence_id: null,
    rrule: null
  },
  _msgid: '3b18dbaa016709e4'
}

Event from 10:30 to 11:00 UTC+2:

5 May 10:30:00 - [info] [debug:ha_calendar_event_started] 
{
  payload: CalendarItem {
    start: { dateTime: '2024-05-05T10:30:00+02:00' },
    end: { dateTime: '2024-05-05T11:00:00+02:00' },
    summary: 'TEST2',
    description: '\n',
    location: '',
    uid: null,
    recurrence_id: null,
    rrule: null
  },
  _msgid: 'f2a956a0a1a7eb95'
}
5 May 11:00:00 - [info] [debug:ha_calendar_event_ended] 
{
  payload: CalendarItem {
    start: { dateTime: '2024-05-05T10:30:00+02:00' },
    end: { dateTime: '2024-05-05T11:00:00+02:00' },
    summary: 'TEST2',
    description: '\n',
    location: '',
    uid: null,
    recurrence_id: null,
    rrule: null
  },
  _msgid: '947ec639977be750'
}```

sebcou21 avatar May 05 '24 09:05 sebcou21

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 05 '24 06:07 github-actions[bot]

This is still an issue.

sebcou21 avatar Jul 05 '24 06:07 sebcou21

I am not seeing all day events fire at all. I have several via Google Calendar and they do not fire at start or end.

veilofsecurity avatar Aug 01 '25 16:08 veilofsecurity