var timer={};
var target = <#door or window_[12|53]_N#>;
target.forEach(function(t){
t.opened=function(){
timer[t.uuid]=KumoApp.setInterval(function(){
<~devices to send notification~>.push(t.name + " remains open");
},<%interval in minute_N%>*1000*60);
};
t.closed=function(){
KumoApp.stopTimer(timer[t.uuid]);
};
});