Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End of all day calendar event not triggered #1373

Open
sebcou21 opened this issue May 5, 2024 · 2 comments
Open

End of all day calendar event not triggered #1373

sebcou21 opened this issue May 5, 2024 · 2 comments
Labels
bug Something isn't working node:calendar

Comments

@sebcou21
Copy link

sebcou21 commented May 5, 2024

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'
}```
Copy link
Contributor

github-actions bot commented Jul 5, 2024

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 github-actions bot added the Stale label Jul 5, 2024
@sebcou21
Copy link
Author

sebcou21 commented Jul 5, 2024

This is still an issue.

@zachowj zachowj added bug Something isn't working and removed Stale labels Jul 5, 2024
@zachowj zachowj moved this to Bugs / Quick Fixes / High Priority in Node-RED/Home Assistant Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node:calendar
Projects
Status: Bugs
Development

No branches or pull requests

2 participants