-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
CalDAV binding: fix openHAB 2 config compatibility #4917
Comments
I updated to the build from yesterday and the caldav-command binding isn't woking anymore. Is there something changed in the runtime? No log outputs for the binding. |
Quite strange here. It works yesterday but after restart, i'v got error about unkown calendar id. Copy all config file (caldavio.cfg and caldavcommand.cfg with prefix) uninstall binding, delete cadav* files in userdata dir. |
@fab33 Did your workaround survive the restart? Just to be clear: Edit: at least the binding reads some of my owncloud entries, but get lots of errors: I'll give it up at the moment and hope for a fix, soon. |
Works fine here after few restart |
I've been looking for a document that describes where the freaking prefix comes from, but no luck so far. From what I see so far, the system is creating a cached config file for every "prefix" it finds:
|
As far as I can tell, there's nothing that can be done on the OH1 side of things to fix this. I think this should be opened against OH2 or ESH. |
@kaikreuzer any advice on how to move forward? Would be nice to finally fix this issue. |
What is the outcome of the debugging and analysis? I just briefly scanned through the linked issues, but couldn't really get a consolidated picture. It seems that exactly the same mechanism is working in other bindings? So did anybody find out the difference? There must be one... |
@kaikreuzer Here's what I found. with the prefix on each config item in caldavio.cfg, I see the configuration keys were sent to the CalDAV IO binding (see the TRACE messages). But if the prefix is omitted, it appears that updated() is never called at all. (There's obviously something wrong with the line numbers in this log, but I haven't figured out how to fix that yet, either.) Log messages WITH prefix configured:
Log messages WITHOUT prefix configured:
|
Summarizing what was found here:
When configuring the CalDAV binding, it's needed to prepend the binding prefix inside the specific config files - other than known from all other bindings. Example:
caldavio.cfg:
@kaikreuzer Who's best able to fix this?
The text was updated successfully, but these errors were encountered: