From f9a579529b01cb3ecc7394155c448f32439574c7 Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Sun, 15 Mar 2026 17:46:50 +0100 Subject: [PATCH] stop script before upload, restart after Required since recent Shelly firmware update: Script.PutCode fails with error -103 if the script is running. Co-Authored-By: Claude Sonnet 4.6 --- upload_script | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upload_script b/upload_script index 522d3f1..106782b 100755 --- a/upload_script +++ b/upload_script @@ -2,4 +2,6 @@ source $(dirname $0)/shelly.conf +curl -s "$SHELLY_RPC/Script.Stop?id=$SCRIPT_ID" | jq . $ROOT_DIR/put_script $SHELLY_HOST $SCRIPT_ID $ROOT_DIR/$SCRIPT_FILENAME +curl -s "$SHELLY_RPC/Script.Start?id=$SCRIPT_ID" | jq .