Explore the Power of Scripting

Shelly devices offer unparalleled flexibility, thanks to built-in scripting capabilities. With our easy-to-follow tutorials and examples, you can enhance automation, integrate with third-party services, and create custom triggers for smart homes, business & businesses and industrial automations enhancements.

Get Started with Shelly Scripts in 6 Easy Steps

embedded web interface

Step 1: Create an Empty Script

  1. Open the Web interface of your Shelly device and navigate to the Scripts menu. Your device Web interface is accessible through its IP address - just click on it in Shelly Cloud App or type it in your browser.
  2. Click Add Script.
A dark interface with a left sidebar showing menu options. The main screen has a blue Add script button, circled in red, next to a Library button in the upper right area. Various icons are in the top bar.
Shelly Cloud App

Step 1: Create an Empty Script

  1. Open the Shelly Cloud App in web -> pick your Shelly device and navigate to the Scripts menu (curly braces icon).
  2. Click Add Script.
A smart home interface shows two devices, BedroomHeater and AC 0 room, with power indicators at zero. The right panel is open to the AC 0 room scripts section, prompting to create or import scripts.
SHELLY CLOUD APP

Step 2: Upload and Run Your Script

  1. Write or Copy your automation script in the embedded Shelly code editor, name it (e.g., my_idle_alert_script), and click Save.
  2. After saving, you will have the option to Run the script.
A code editor window titled my_new_script shows code: let greeting = Hello world!; followed by print(greeting);. Various control and file management icons appear at the top right.

Scripts Library