How to add a Script

How to add a Script

Insert and prepare script​

It’s easy to add a script to a Shelly device.
You can do it from the App/Webapp or directly from the device’s Web Interface.

The benefit from using the web interface is that you can se what happens in the consol log (Debugging)

Here we will show a quick overview on how to add a script from both the Web interface and the App/Webapp.

From the Web interface

  • Find the IP address of your Shelly device (you can check this in your router or the Shelly App under device settings).
  • Open a web browser and enter the IP address (e.g., http://192.168.1.xxx).
  • Go to “Scripts” from the left menu.
  • Click “Create Script” and give it a name.
  • Paste your script into the editor.
  • Click “Save” and then Start the script.
  • Note: You might need to enbale “websocket debug” to se output in the Console

  • Remember to toggle “Run on startup” to make sure the script auto starts after reboot.

From the App/Webapp

  • Open the Shelly App on your phone or tablet, or go to control.shelly.cloud
  • Select your Shelly device from the list.
  • Go to Scripts { }
  • Tap on Create new script and give it a name.
  • Enter or paste your script in the provided editor.
  • Tap Save (disc) and Enable (play) to activate the script.

  • Remember to toggle “Run on startup” to make sure the script auto starts after reboot. and to check if the script is running.