DIY circadian rhythm based lighting

This returns the ID (and the value) when you input your var name :upside_down_face:

// Replace MyVar with your var name
let varName = "MyVar"
const logicVars = await Homey.logic.getVariables();
for (var iLogicVar in logicVars){
  if (logicVars[iLogicVar].name == varName)
log("Variable: " + logicVars[iLogicVar].name + "\nValue:\t  " + logicVars[iLogicVar].value + "\nID:\t  " + logicVars[iLogicVar].id)
}

Screenshot from 2022-04-22 03-19-53

.

This is possible on 7.3.0 also @DirkG
just like Homey.logic.getVariables().then(r => log(r))
which returns all of your variables & ID’s