tybritten / ical-sensor-homeassistant

an iCal Sensor for Home Assistant
102 stars 31 forks source link

Recurring events doesn't show #69

Open skalman77 opened 2 years ago

skalman77 commented 2 years ago

I retreiving ical-events from Zoho mail and "all day" events are ignored. The structure of "all day" events in the downloaded file are as followed:

BEGIN:VCALENDAR PRODID:-//Zoho Corporation//Zoho Calendar-US//EN VERSION:2.0 X-WR-CALNAME:henrik X-WR-TIMEZONE:Europe/Stockholm CALSCALE:GREGORIAN METHOD:PUBLISH BEGIN:VEVENT SUMMARY:xxxxxxxx DESCRIPTION: DTSTART;VALUE=DATE:20170215 DTEND;VALUE=DATE:20170218 LOCATION: CLASS:PUBLIC IMPORTANT:1 STATUS:CONFIRMED UID:xxxxxxx@zoho.com TRANSP:OPAQUE PRIORITY:5 CREATED:20170206T142912Z LAST-MODIFIED:20170206T142912Z DTSTAMP:20210226T053138Z ORGANIZER;CN=xxxxxxxxx END:VEVENT

What is wrong, why don't they show up as sensor?

Olen commented 2 years ago

This event seems to be so far in the past (2017) that it will be ignored.

skalman77 commented 2 years ago

I just took an example of the structure. I have all-day events at todays date. But i believe that it's a structure issue. So ignore the dates. Think of it as an event for today.

Olen commented 2 years ago

Please enable debugging of the integration, and paste the relevant log entries. Anonymize any private information about the events before you submit them.

skalman77 commented 2 years ago

I have now enabled debug and what i can see is that some of the events does not show up in the log.

I can now see that the plugin is picking up some of "all day" events and set 00:00 as start time.

After checking the ics file i found that the events that do not show is recurring events. Below is an example of such an event. How to get the recurring events to show up in the sensors?

This is a event that does NOT show up: BEGIN:VEVENT SUMMARY:Malena fyller år DESCRIPTION: DTSTART;VALUE=DATE:20190202 DTEND;VALUE=DATE:20190203 LOCATION: CLASS:PUBLIC IMPORTANT:0 STATUS:CONFIRMED UID:xxxx TRANSP:OPAQUE PRIORITY:5 CREATED:20190120T143014Z LAST-MODIFIED:20190120T143014Z DTSTAMP:20210226T053142Z ORGANIZER;CN=xxxxxx:MAILTO:xxxxxx RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=2;BYMONTHDAY=2 END:VEVENT

frankhommers commented 2 years ago

I have the same problem with quite recent events. Other tools (Like BusyCal) do show the items (Same ICAL URL)

scaarup commented 2 years ago

Same issue here. Using kopano ical-server.

Maltis commented 1 year ago

same issue here: Using OX App Suite (provider: mailbox.org) Some single allday events are visible in 00:00 o'clock format, every 3 days recurring allday events are not visible.

From the log

2023-02-21 22:36:17.719 ERROR (MainThread) [custom_components.ical] Exception can't compare datetime.datetime to datetime.date in starts/ends: EventName - Start: 2022-01-02 00:00:00+01:00 - End: 2022-01-03 00:00:00+01:00, RRule: vRecur({'FREQ': ['DAILY'], 'INTERVAL': [3]})