// Disable ALL (standard) Flows
Homey.flow.getFlows().then(f => Object.values(f).reduce((r,b)=> Object.assign(r, b.enabled ? Homey.flow.updateFlow( { id : b.id , "flow" : { "enabled" : false }} ): {[b.name]:b.enabled} ), {}) );
// Disable ALL Advanced Flows
Homey.flow.getAdvancedFlows().then(f => Object.values(f).reduce((r,b)=> Object.assign(r, b.enabled ? Homey.flow.updateAdvancedFlow( { id : b.id , "advancedflow" : { "enabled" : false }} ): {[b.name]:b.enabled} ), {}) );
1 Like