I want to call a script from wihtin another script.
I tried this, no errors but also the script called is not executed. I can’t figure out what’s wrong with the code.
let HomeyScript= await Homey.apps.getApp({id:“com.athom.homeyscript/”});
HomeyScript.apiPost({script:“reset-testvars/run”});
I also need to pass some parameters, but tried the simple version first.
Tried several variations on the syntax, but no luck. What am I missing ?
Any help appreciated.
Thanks Theo
Open the list of scripts on https://my.homey.app, open your browser’s developer console, open the “Network” tag, reload the page, then look at the response for the request to /api/app/com.athom.homeyscript/script