Skip to content
shelly.guide
Unofficial
Getting started
Add a device
Wi-Fi & router setup
Update firmware
The web interface
Reset a device
Find an installer
The app
Dashboard
Scenes & automations
Schedules
Alarms
Grouping
Energy dashboard
Installations
Lighting control
Dimming with BLU Wall Switch
Dimming with input module
LED strip control
Underfloor heating
Heat pump control
Radiator thermostat
Cover control
Garage door control
Access control
IHC conversion
Shelly to Shelly without Wi-Fi
Tools
Device finder
IHC conversion calculator
Panel heat calculator
Product catalogues
Scripting
How to add a script
Live electricity prices
EV charging spot-price tracker
BTHome components
NTC sensor control
RGBW loop controller
3EM on Wall Display
Shelly LoRa Add-on
Integrations
Webhooks & HTTP(S)
Philips Hue
Home Assistant
Shelly in Home Assistant
Battery devices
BLE devices
Wall Display screen control
Troubleshooting
Pending connection
Owned by another user
Update problems
Professionals
Become a Shelly installer
Webinars
Search
EN
English
Dansk
Not translated yet
Svenska
Not translated yet
Norsk
Not translated yet
Suomi
Not translated yet
Menu
Esc
Home
Scripting
Overview
Scripting
Running JavaScript on the device itself, with scripts you can paste and adapt.
How to add a script
Install a script on a Gen2 device so it survives the first power cut.
Live electricity prices
Heat, charge and switch when power is cheap, from a script on the device.
EV charging SPOT-price tracker
Get a per-session charging cost at spot plus transfer plus tax.
BTHome components
Bind a BLU sensor straight to a relay — no script, no Wi-Fi, no cloud.
Control Shelly from an NTC sensor
Reuse the floor sensor already in the screed instead of chasing a new probe.
RGBW loop controller
Run a colour loop entirely on the device, edited from its own web page.
3EM consumption on a Wall Display
Put whole-house consumption on a Wall Display — the one number it cannot show alone.
Shelly LoRa Add-on
Link two Shelly devices kilometres apart, with no Wi-Fi and no subscription.