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.