Find flows where a certain variable is used

in previous homey releases this was not possible, but is there now a way natively or using a script to find all flows where a certain variable is used ?

Not with a built in Homey tool, but it is possible, for a long time actually, with this community app card:

It takes variables as “object type” and it can filter results by var name.

App: https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287?u=peter_kawa

The Flow Checker app provides information about variables.

Overview of logical variables used per flow

Overview of the Use of Logic Variables in Flows

Thanks, i will test both. and then do some var cleanup. test,test1,test_final etc etc

For those who would like to dive into the deep end of the pool, here is a Homeyscript that could be used as a start to build a HomeyScript that finds flows with a certain variable:

////declare variables
vname = "dim-dusk"
fname = "flowwithvar"

////get all Homey variables
const vars = await Homey.logic.getVariables()

////get that variable
for (e of Object.values(vars)){
  // log(e.name)
  // log(e.id)
  if (e.name == vname){
    log(e.name)
    var v = await Homey.logic.getVariable({id: e.id}) 
  }
}
log(v)

////get all Homey flows
const flows = await Homey.flow.getFlows()
//log(flows)


////get that flow
for (f of Object.values(flows)){
  if (f.name == fname){
    log (f.name)
    log(f)
    log(f.conditions.args)
  }
}