Setting Logic Variable by HomeyScript

After digging into the Homey developer API, Ive finally discovered the right syntax to get the tokens (which contain the Better Logic variables)!
It should be:
let allTokens = await Homey.flowToken.getFlowTokens();
Apparently Athom changed the syntax. So if anyone stumbles on the same problem, this is the code to use.

3 Likes