I forked the existing Todoist-card and this is what I came up with
Have a look at the Documentation, It is highly configurable and you can actually do many useful things with it in HASS, apart from the basic Todoist to-do list.
I am looking for Beta testers, people who want to play with it and can help me iron out the quirks and bugs. Thanks!
Going to install this today and put it in place on my Kitchenâs dashboard (that gets casted to a Google Hub Max) ⌠Iâm interested in seeing if I can configure it to use the âcheckingâ of a task to start a script, the completion of which starts an automation.
is the .yaml I have configured in my card. My expectation is that Iâll get a list of the remaining tasks due today, in time order (as theyâre presented on Todoist, like so):
I also needed clearer instructions on how to implement the automation function. As I mentioned in my previous post, my intent is to use the completion of a task (eating breakfast) to start a helper timer, that on completion, reminds me to do another task, elsewhere. Feel free to presume Iâm an idiot here and need basic instructions, because thatâs probably accurate.
Remove this item, itâs deprecated - the other date filter options include everything that that used to do.
Add this, if you want (this forces HASS to sort by due date, regardless of the order that Todoist provides in the API, which I believe is what your currently getting):
sort_by_due_date: true
Those are just details.
For the main issue you have, which is the task selection not filtering what you want, I need a bit more information. Please pick a task that shows, but should not be showing (for example, if I understand correctly, âeat breakfastâ) and tell me how it looks in Todoist. I assume you checked it as done, and todoist re-generated it because itâs a daily repeat task. Which due date/time did it get now?
running a script is currently not possible. You can, however, run an automation, and have that run the script. I will look into adding a way to run scripts directly, it shouldnât be too hard.
Unfortunately, the visual is still the same as my previous post - all of the various kitchen tasks, regardless of due date. And thatâs the main issue Iâm having - Iâd ideally like it to not just show the tasks for that sensor (in this case, my kitchen) for that day only but to put them in order by TIME. So like in one of my previous images, where âFeed Cats Dry Foodâ was due at 1:15 PM, and then âEat Lunchâ at 1:30 PM (etc). Am I making sense?
And will I need to do anything to get the script function working? Github is still showing the most current version as 2 days ago.
After installing it, please change the sort command to this:
sort_by_due_date: "ascending"
It should now sort by time as you expect.
But regarding items that are showing, that shouldnât be showing, did you read the ââ part above? I need to reproduce your issue exactly, here. So it helps to know the full YAML (you already gave me that), the current time of day, and the item as shown in Todoist (so I can see what date and time it has over there).
After installing it, you can use this additional option:
show_dates: true
It should show the due date of the item, at the start of the labels row, like Todoist does. This is quite helpful while debugging due dates configurations.
This new feature is still a work in progress, I know that the formatting is unsatisfactory, and people will ask for colors and relative dates (today, 2 days ago), etc. but thatâs for later.
Unfortunately, itâs still showing all the tasks in that project, not the ones only do that day (which I thought filter_show_dates_ending: '0' was supposed to resolve).
I canât make much of that list without knowing the due date values in Todoist.
And I suspect that it still hasnât refreshed yet; make sure you restart Home assistant, and give your browser a Ctrl-F5 to hard refresh. A sign that the new code has loaded would be that some due dates start showing on the list, like this:
As I wrote in the other thread, donât try it with the card. Try it in Developer Tools / States, to see if itâs there and it has items from Todoist API. Only when you have the sensor configuration right, then you move on to trying things on a card.
EDIT: your configuration has asterisks instead of dashes?
No, itâs scripts, because itâs a copy-paste from their github. In sensor states it makes me unknown, as if it did not exist. And in this part: âBearer myapiâ I simply omit my api but it is well put.