I need to set a variable in BetterLogic from a HomeyScript

Finanly I managed it…
Not much useable docu out there :frowning:

If anyone is searching for the same,
here a working extract from me code:

let BLApp = await Homey.apps.getApp({id:"net.i-dev.betterlogic" });
const resBLput = await BLApp.put({path: '/BatteryLoadState/' + "100"});
console.log ("setVar", resBLput)

let check = await BLApp.get({path: '/BatteryLoadState'});
console.log("getVar", check);
1 Like