Bringing Shared TODO list (via CalDAV from Nextcloud) to Home Assistant

I have a (self hosted) Nextcloud instance and we use shared Calendar and TODO/Task list (that syncs with our phones and laptops).

It would be amazing to bring this to Home Assistant: Showing the most urgent common TODOs or reminders on the dashboard.

Does something like this exist?
Am I seriously the first person thinking of this?

Edit: To explicitly clarify, I am looking for TODO/task list/reminders over CalDAV, not calendar.

5 Likes

Maybe I did not get the question right but might this help?

Yes, you did not get the question :wink: This can do the calendar. But not TODO/task lists that are supported via CalDAV, Nextcloud etc.

I agree, this would be a nice feature addition.

Yeah saw that a couple of minutes later … sorry

Yup, there seems to be no support for this in CalDAV integration at this time.

I think there should be though, considering the protocol is the same and for display purposes I can’t see much of a difference between an event and a todo — other than perhaps a todo not having a due date at all, but these todos can be skipped for the purposes of mixing them with events.

And VTODO type entries appear to be supported in HA’s CalDAV client, HA just doesn’t see them because it specifies the event filter flag. That said, I’m not entirely sure that shoehorning tasks as events would be “the right thing”, but there’s no entity for tasks right now (edit at 2023-11-26: there is now!). I can imagine the shopping list integration may also benefit from implementing this, maybe some others too.

I’ll file a feature request later, I really think this should be in the core and not a third-party integration. Done :heavy_check_mark:

2 Likes

How straightforward would it be to add CalDAV support for tasks into the Shopping List? I’m sort of at my wits end trying to figure out how to add a shopping list that can talk to my voice assistant through almost any means.

Given that all of the major voice assistants will add items to a named task list, CalDAV integration would take care of everything in one fell swoop.

1 Like

If you’re talking Home Assistant’s shopping list, then… probably quite involved, most of the solution is presently just not there. I don’t think I’ve seen a CalDAV server in HA, only a client. And a server would probably be out of scope of HA, as it’s pretty far from home automation in general.

An external CalDAV server would probably be a better bet, though that depends on your needs of course. Something like Nextcloud Tasks or Baikal. Home Assistant at this time wouldn’t be able to access it though.

Depending on how much you can tweak your VA and what you need, Nextcloud Deck might be a decent choice: nice mobile app, exposes cards as CalDAV tasks (read-only though), reasonably simple HTTP API.

I use Fastmail as my email and calendar provider, and their CalDAV server provides enough functionality to do this kind of simple plugin. I’ve toyed around with the setup in Python and it’s totally capable of handling basic todo list functionality.

The annoying thing is simply that to make it work I would need to mess with the Home Assistant CalDAV implementation itself in order to add these kinds of queries.

Now with ToDo integration, would it be possible to integrate Nextcloud todos?

I am HOPING this is coming. I use the 2do app on my phone but all the “todo’s” just get synced to my caldav on my nextcloud server. Giving me a nice web UI and everything. If i can then get stuff like “House Hold Todo’s” to show up on my HA dashboard that would be amazing!

Yes, this is available in 2023.12, tested with nextcloud

2 Likes

Whoah this would be so amazing! Can’t wait to try it out

You can join the beta and try it out now fwiw

Which integration is this, exactly? I only find “Todoist” and “Local To-Do”.

Nothing on HACS either

CalDAV CalDAV - Home Assistant can support to-do lists form next cloud

Im not gonna lie. I am REALLY digging this feature. Since i use nextcloud tasks EXTENSIVELY this is great. Now if the cards to show the todo’s would catch up :slight_smile: Some of my lists are LONG and would prefer to be able to select X number. For like my “movies to watch” that is a long list lol.

It’s really amazing indeed!

Finally I have “Todo lists” in my menu bar now.

But is there an integration/cars to use todo lists in dashboards as well?

there is a todo card. but has MINIMAL parameters

Hi,

I am also trying to include the tasks from my nextcloud in my HA, to trigger an event if a tasks was completed.

Did someone manage to integrate that yet? (I understand, that @allenporter and @dydx did manage?)

I tired using CalDAV both via the GUI (did not work at all) and via the manual configuration in the configuration.yaml, where I tried to load the calendars using the custom_calendars option.

A calendar containing only events showed up in the calendar tab, but the events are not shown (?).
A calendar containing only tasks created in Nextcloud tasks did not show up anywhere.

The credentials of the calendars are correct, since I tested them in both Thunderbird and a python script.

I also do not get any errors or warnings in the logs. Are there some keywords I could look for in the logs?

I would appreciate any help.