Can't connect to Apple iCal using icalendar binding

I’m trying to connect to my Apple Calendar using iCal.

I first had to find out the correct url of the calendar and create a application specific password in the iCloud settings.
The Url and the credentials are working in an Outlook plugin (CalDac Synchronizer) - so I’m very sure everything is correct.
Neverthless I get this response in the Openhab logfile

2024-08-02 07:24:31.871 [WARN ] [g.icalendar.internal.handler.PullJob] - Response status for getting “https://p151-caldav.icloud.com/xxxxxxxxxx/calendars/6b882245-4ce5-4280-a89c-xxxxxxxxxxx/was 400 instead of 200. Ignoring it.

In the outlook plugin are two settings that can’t be set in the binding:

  • Use preemptive authentication
  • Force Basic authentication

Both of them are activated. Could this be the reason for the error message?
I was also not able to find out was the respons 400 actually means??

Anyone has the same issue?
Any solution for this?

Thanks
Andy

Hi Andy,
did you make the iCloud Calendar public?

At least for me this is working.
regards, Kai

Hi Kai,
thanks for your reply - no I didn’t.
Wanted to prevent this since the outlook plugin is also working with the authentification.
Regards
Andy

I tested your scenario as well and removed the “public” flag from iCloud calendar, added user and app-specific password: now I get the “was 404 instead of 200. Ignoring it” error as well.

1 Like

Thanks for testing!
I highly appreciate.

If have explicitly shared the calender with my family members and I’m scared that I have to redo the whole setup once I change this. I can’t simply change it to public with a switch.

grafik

I can I find out the maintainer of the binding and ask him whether he would be willing to look into this authentification issue.In the end I assume that it’s possible the change the programming in a way that it properly does the authentification.

Anyway, thanks for your testing.

1 Like

did you see this? Maybe the same topic.
https://community.openhab.org/t/icalender-authentication-method/157559

Thanks for highlighting this.
I‘ve filed a feature request on GitHub

Regards
Andy

2 Likes