Just wanted to share how I extract unfinished tasks from Google Tasks

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