CalDAV synchronization problem

I relaunched the auto-configuration, I even deleted the application password to replace it. Does anyone else have this problem?

CalDAV no longer works, impossible to synchronize Google Calendars.

Hi @elfedagger! Do you have any errors in the Gladys logs when you run the synchronization (docker logs gladys on your Pi)?

I tested it at home, and my Google Calendar synchronization works fine

I managed to retrieve this, but I need your help to translate it.

2022-10-17T17:27:19+0200 \u003cwarn\u003e poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2022-10-17T17:27:22+0200 \u003cwarn\u003e poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2022-10-17T17:27:49+0200 \u003cwarn\u003e poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2022-10-17T17:27:52+0200 \u003cwarn\u003e poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2022-10-17T17:27:53+0200 \u003cinfo\u003e calendar.requests.js:53 () CalDAV : Found calendar XXXXXXXXXXXXXXXXXX
2022-10-17T17:27:53+0200 \u003cinfo\u003e calendar.requests.js:53 () CalDAV : Found calendar alimentation pc
2022-10-17T17:27:53+0200 \u003cinfo\u003e calendar.requests.js:53 () CalDAV : Found calendar alimentation pc
2022-10-17T17:27:53+0200 \u003cinfo\u003e calendar.requests.js:53 () CalDAV : Found calendar Jours fériés en France
2022-10-17T17:27:53+0200 \u003cinfo\u003e calendar.requests.js:53 () CalDAV : Found calendar Contacts
2022-10-17T17:27:53+0200 \u003cinfo\u003e calendar.syncUserCalendars.js:38 (CalDAVHandler.syncUserCalendars) CalDAV : Found 5 calendars.
2022-10-17T17:28:00+0200 \u003cinfo\u003e scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 17 Oct 2022 15:28:00 GMT
2022-10-17T17:28:00+0200 \u003cwarn\u003e functionsWrapper.js:15 (EventEmitter.\u003canonymous\u003e) Error while executing function () { [native code] }
2022-10-17T17:28:00+0200 \u003cwarn\u003e functionsWrapper.js:16 (EventEmitter.\u003canonymous\u003e) TypeError: Cannot read property 'length' of undefined
    at SQLiteQueryGenerator._whereParseSingleValueObject (/src/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:1904:19)
    at SQLiteQueryGenerator.whereItemQuery (/src/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:1725:21)
    at /src/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:1646:25
    at Array.forEach (\u003canonymous\u003e)
    at SQLiteQueryGenerator.whereItemsQuery (/src/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:1644:35)
    at SQLiteQueryGenerator.getWhereConditions (/src/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:1987:19)
    at SQLiteQueryGenerator.selectQuery (/src/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:932:28)
    at SQLiteQueryInterface.select (/src/server/node_modules/sequelize/lib/dialects/abstract/query-interface.js:396:59)
    at Function.findAll (/src/server/node_modules/sequelize/lib/model.js:1128:47)
    at async /src/server/lib/scene/scene.checkCalendarTriggers.js:104:28

I don’t know how to edit your message, but you should remove your email address :wink:

1 Like

Yes, that’s true, not very clever. :grin:

1 Like

Hi @elfedagger, the errors that appear in the logs don’t seem to be directly associated with CalDAV but with checks of scene triggers based on calendar events (it might be related).

On the synchronization side, I wonder if the fact that you have 2 calendars with the same name is causing a problem. You can try renaming one of the two calendars alimentation pc on the Google side (to alimentation pc bis for example), then click on Remettre à zero then Synchroniser.

1 Like

I deleted one of the two PC power calendars, I had the same synchronization problem. I also deleted the second one, same result. I’m going to look at the scenes I’ve already created with my main calendar.

Thank you vonOx

I only have reminder-type scenes for medical or veterinary appointments or for taking out the trash.


Maybe the variable mentioned in the second photo, but I don’t see what it’s used for.

I found out thanks to Phil’s tutorial [Calendar Integrations and

@bertrandda is there a way to ignore these calendars if that’s what’s causing the problem?

I should look into what’s causing the problem with that calendar. Temporarily, @elfedagger you can go to this address https://calendar.google.com/calendar/u/0/syncselect and deselect the calendar that’s causing you problems (the « contact » one if I understood correctly) then restart the synchronization process from scratch in Gladys — all the other calendars should be there.
I’ll try to investigate your problem and I’ll keep you posted.

1 Like

@bertrandda, would it be possible to integrate this address into the « Account » page or synchronization with a short blurb:

Indeed I see that you often repeat yourself on this point, so might as well have it directly, right? (It was very useful to me for certain calendars ^^)

1 Like

Good evening,
Bertrandda, I made good progress thanks to your link. I disabled the « contacts » calendar and I was able to recreate my « prise pcs » calendar


synchronized these calendars and this time I see in the Gladys calendar the events I added.

My problem now is that in the scenes that announced my appointments via Telegram and that worked very well and the one I wanted to create with the « prise pcs » calendar and which is supposed to activate charging of my PCs every 2 hours for 2 hours, I can no longer select the calendar for that scene.

I really feel that adding an extra calendar causes a problem for Gladys on my setup.

Are your calendars properly shared in the CalDAV integration?
If they’re not, it’s normal that you don’t see anything in the dropdown list.

3 Likes

And yet it said « In the following shared calendars » and it didn’t even register. No calendars were shared, now it works. Thanks everyone for your help :flexed_biceps::flexed_biceps::flexed_biceps:.

2 Likes

Indeed, good idea — I’ll see where to display it on the page and maybe also in the documentation

2 Likes