Dunno if you have the scripts alr?
Developer ‘playground’:
Hscript:
// Get Trigger counts for Flows
let myFlowsArr = await Homey.flow.getFlows().then(f => Object.values(f).reduce((r,b)=>Object.assign(r, {[b.name]:b.triggerCount}), {}));
let myFlows = JSON.stringify(myFlowsArr);
console.log ('All flow triggers:' , myFlowsArr);
// Create / Update Hscript variable
await tag("FlowTriggers", myFlows);
// // Timeline notification:
// Homey.flow.runFlowCardAction({
// uri: 'homey:manager:notifications',
// id: 'create_notification',
// args: {
// text: 'All flow triggers: ' + myFlows + ' - Direct from script: GetTriggerCountOfFlows.js '
// }
// });