I’ve recently moved from the HACS gtasks integration to the official integration with Google Tasks now that Home Assistant supports due dates.
This should probably work with any todo lists that have due_dates, used on a pixel clock as a long string but could probably be edited to display on a screen through ESPHome or anything else with a physical display.
The reason I’m sharing is because I spent more than a few hours muddling through trying to get it working and hoping it helps anyone else.
Thanks for sharing. Could I tweak what you have done to create a template that returns a count of the ToDo list items that have a due_date equal to today’s date?
No. In my attempts to avoid using the namespace, the value was reset to 0 when exiting the ‘for’ loop.
BTW, if you’d like to avoid doing the entire loop you can probably add an ‘if’ in the loop to check for the value and then {break} the loop. You’re only checking if there’s 1 or more right?
If you’d like to experiment with the template, here’s a great guide on how to use the “new” way of getting a starting variable that will match what ends up in your yaml: Debugging templates and service response_variables