[APP][Pro] Better Logic Library - Just some better logic, variable and library management

Does anybody else have problem getting BL-variables from Homeyscript since Athoms recent change from athom-api to homey-api? My current script works but when I try to migrate to the new api I get an error saying “TypeError: BLApp.apiGet is not a function”.

My code is:
let BLApp = await Homey.apps.getApp({id: “net.i-dev.betterlogic”});
let BLVar = await BLApp.apiGet(“/Ecodan_DHW_Temp_Offset/”);

/Håkan

The new HS test app is just for testing.
I’d suggest you install the stable version.

Thank you for the link! I have HS v3.5.1 and as far as I know that’s not a testversion. But my old scripts still works fine, I’m just trying to migrate in case they suddenly decides not to support the old API anymore.

1 Like

Ah, my bad. It’s live already :grimacing: