Thanks for quick reply.
Moving command line worked!
Checked the documentation ant yes, command line should be a seperate section, like you just mentioned.
For clarification it worked and before, just got this error/notification that it will not work since the 2023.12
As the developer, I am seeing almost 500 people clicked the link to the repo, but Iām not sure if itās really being used, and how. I have almost zero feedback.
If anyone wants to tell their story and comment on the card, that would definitely be helpful (and motivational).
I would be especially interested in case people have found other uses besides the basic shopping list or to-do list. If anyone has this more connected to Home Assistant itself, due to the ālow-codeā features, the ability to distinguish users, etc.
Dev tool complain about things not be a string, I had created an issue in Git.
Thanks for this card, excited about to use it
Enregistreur: homeassistant.config
Source: config.py:1335
Sāest produit pour la premiĆØre fois: 17:25:28 (1 occurrences)
Dernier enregistrement: 17:25:28
Invalid config for āsensorā from integration ārestā at sensors.yaml, line 51: template value should be a string for dictionary value āparams->json_attributesā, got [āprojectā, āitemsā, āsectionsā, āproject_notesā], please check the docs at RESTful - Home Assistant
Ok, so this is my first time digging into yaml and Iām not a porgram0r as my friends say. I fly jets. Which takes far fewer brain cells. I grabbed yours and the other todoist hacs frontend. Iām using your code in the yaml which seems to differ from the other project only in the order it is in.
When adding both cards, the other one comes up fine (except I really want the ātodayā list, not a project. However ātodayā doesnāt have a project ID so for testing Iām using a random project). Your code shows āSensors donāt have any data yet. Please wait a few seconds and refresh.ā It has been saying that for over ten minutes now and Iāve modify the list on todoist to see if it was looking for recent modifications.
Happy to help you delve into what isnāt working right (more than willing to admit itās me, but what am I doing wrong and how can we prevent others from doing that) and also, how do I show āTodayā items since I take from my various projects and grab just what I need done today and donāt give a rats whatās on the project list outside of that?
My dream is creating an HA dakboardish thing, if that matters.
Hi. You seem to have a problem with the sensor configuration, which means that HASS is not able to grab your data from Todoist. My code only kicks in after that, so to speak.
Did you follow the exact instructions provided in my README, not the other add-onās README?
When setting things up I always advise ensuring youāre seeing data from Todoist before any other configurations of my add-on settings. This can be done be checking Developer tools / States and filtering for the sensor entity you created.
About the Today view, I donāt know exactly how it works since I donāt use it. But you should be able to re-create it in Power-Todoist with the date filtering options, which are quite powerful.
I think my original issue might have been as simple as a typo, not sure as I napalmed and started over copying your code exactly and I can load data from a project.
RE: the Today part though, again, Iām very very new to all of this. I fly jets for a living so this is a whole new rodeo. No matter what filters I use, they are always restricted to the original project defined in the code (under project_id). So even if I figure out the date filtering options, which I havenāt, seems all other filters Iāve tried only pull from the originally define project. But my today is from all sorts of projects (see image)
Iām so confused how people use todoist without using Today! You are not the only one. I feel like a todo list is all about knowing what you need to do today on any given project. Todoist is so powerful and so many ways to use it, Iām just surprised at how many people while digging into this are telling me they donāt. Itās the home screen. HA and these tools are so awesome because they can fit what we all need, but damn that makes it harder to address all uses.
Sorry Iām dumb. I know most of the people reaching out have something to offer but then again, I used to do software QA and if anything, I learned coding to the lowest common denominator is a good thing. I am the lcd now.
Itās not that people donāt use āTodayā in todoist, they just donāt use it from inside Home Assistant.
Todoist is a great mobile and web app, thatās what you should be using to get your tasks going.
From within HASS, your experience is always going to be a lot more limited (but potentially more connected to your home devices, or to home users).
One of the primordial limitations is the project. Since this card loads information from the Todoist API as a sensor, and it queries the API specifying a project_id, it will always be limited to a single project, youāre never going to see combined information from several projects.
The most you could get is having several sensors, one for each project, and then several cards showing information from each, filtered by dates if you want.
I thought Iād circle back here since I started using this card again. The current version is working exactly as I hoped when I first tried it. And I also wanted to share a photo, in case folks were having difficulties visualizing how or why this might be practical:
This is a Google Nest Hub Max in my kitchen. Tasks are only those due today (or overdue, but that doesnāt happpen), and are in time-order (thus breakfast before lunch, etc).
Thanks for all of your hard work on this - itās greatly appreciated!
I would also like to see more people sharing their stories of how they use the card, Iām really curious if anyone is actually using this for a full Kanban, or to trigger Home Assistant automations, etc
Basically - Iāve been playing with espresense and Iād like to be able to use it hand in hand with Todoist; So if I enter a particular room (read: espresense senses me in said room), Iād like for an automation or script to check if a task is complete, and if not, prompt me to do it.
I already had issues with executive dysfunction, but a recent cancer diagnosis confirmed also that Iāve been dealing with additional ābrain fogā on top of that. So I really need to be reminded more than the average bear.
Thanks for any thoughts you might be able to spare.
Hi! Sorry to hear those news - I will pray for you
I am not sure how to achieve what you want, but I think it should be possible. With scripts, you could do basically anything, but that requires some Python which is not my thing.
With simple automations, it should also be possible, I think you could try first creating a sensor directed specifically at the task you want to know if it is done. So, instead of having a sensor that gets everything from Todoist API, so that my add-on then filters and organizes what to show, you would have a separate sensor (totally unrelated to my add-on) that grabs a specific task and (probably using a value template) compresses the returned info into a simple boolean true/false indicating if the task is done.
This should then be straight-forward to use in the automation.
Good luck and if you get it working, tell us how you did it. If you have difficulties I suggest asking in the forums, in a more generic format (āI have this sensor that grabs everything, help me get a duplicate sensor with just the state of one itemā).
Thank you on all counts - I think Iām following what youāre saying.
The mini pc I have running Proxmox (which holds HA) decided to kick the bucket (better it than me?) so Iāll have to attack this again once Iām back online.
hey @pgr ! As I noted in my last comment, I (unintentionally) nuked my Proxmox server and then made the decision to quasi start over rather than rebuild. Well, I rebuilt enough to be able to copy information over but the new system is much better equiped for anything. I digressā¦
Iāve been doing a LOT of copy/pasting, including cards that I had working just fine beforehand that are now showing this instead:
The sensors are pulling in data (you can see itās due today):
Any ideas? Surgery is Monday, and Iād at least like to have this working again in the kitchen (the one you saw in the photo I posted a month or so ago) so my caretaker will be able to mark down when sheās fed the furkids.
Hi. I think this has to be a sensor problem, getting data from sensors is really happening before my code ever gets to do anything.
I suggest a full OS-level reboot, sometimes Iāve seen this āunblockā sensors.
Other than that, check that you really have fresh data showing in the sensor, not just todayās date which could have been set days ago, but add a task with a funny name and see it appear.
Sorry for never getting back to you. I did solve the issue. I donāt remember now what it was, but I feel like it was something pretty dumb on my end.
Hi, thx for this implementation.
I now tried a few hours and got the entity filed with values from the webside and can see them under the developer stuff.
Now I put the js file in the config/ww folder manual (it was missed after the instalation) but in the UI I only get this:
Fixed it. Problem was that I put all sensors in my sensor.yaml.
But I need to relocate the 'platform: command_line" - part to my configuration.yaml and have to change it like this: