Detecting unresponsive devices

Thanks for your script. As I’ve not yet used scripts that call other actions with variables, I am currently trying to figure out how to adapt your script to send a simple notification instead, with a comma separated list of unresponsive devices. And as I was searching, I found First script with data_template where a moderator wrote three years ago: “data_template: was deprecated many releases ago in favor of data:”. I assume there is a good reason why you use data_template:, could you explain? Thanks a lot!

(I’m also so unfamiliar with jinja that it surprises me that repeat: in your script first is a command that starts a loop but later seems to be a variable holding an array of items, see repeat.item[0], how can it be both, is the variable automatically assigned when calling a loop?)