Run a HomeyScript script
homey_script_runExecute a script on Homey and get its return value. Debug scripts by viewing errors and line numbers, and return intermediate values to check.
Instructions
Runs a script on the Homey now and reports what it returned. A script that throws is reported here as a normal answer with the error and the line it happened on, so this is also how a script gets debugged. This server cannot see log() output: it goes to the HomeyScript app console and no route here reads it. What comes back is the return value, so return whatever needs checking rather than logging it. While a script is being written, return an object with the intermediate values in it; trim it to the real answer once it works. It really runs: anything the script does to the house, it does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The script id, or its exact name. |