How to instruct to end script within script itself

Die Verwendung von Skripten liegt im eigenen Ermessen des Benutzers. Unterstützung für Skripte wird vom Autor des Skripts bereitgestellt.
  • Hi there,

    I have a script I'm executing via http request but need to have the script "stop itself" after completing its actions.

    I can do this very inelegantly right now using a Shelly.Call to the shelly's own IP. like this:

    Code
    Shelly.call("HTTP.GET", { url: "http://192.168.xxx.xxx/rpc/Script.Stop?id=1" },null, null);

    but this necessitates hardcoding the IP and the Script ID. Ideally I would love to just have the script run, complete its mission and have it stop itself without having to hardcode IP or Script ID.

    Perhaps I'm missing this somewhere in the documentation - but would be nice to have something like "Script.Stop" that I can place at the end of my desired actions to stop the script.

    Thanks for any pointers.