Skip to content
shelly.guide
Getting started
Add a device
Wi-Fi & router setup
Update firmware
The web interface
Reset a device
Find an installer
See all in Getting started →
The app
Dashboard
Scenes & automations
Schedules
Alarms
Grouping
Energy dashboard
See all in The app →
Installations
Building new with Shelly
Lighting control
Dimming with BLU Wall Switch
Dimming with input module
LED strip control
Water-based underfloor heating
Electric underfloor heating
Thermostat setup
Heat pump control
Radiator thermostat
Cover control
Garage door control
Access control
IHC conversion
Shelly to Shelly without Wi-Fi
Wi-Fi rescue plug
See all in Installations →
Tools
Device finder
IHC conversion calculator (in Danish)
Panel heat calculator
LNM setup generator
BLU pairing guide
Product catalogues
See all in Tools →
Scripting
How to add a script
Live electricity prices
Cheapest hours in a row
EV charging spot-price tracker
BTHome components
NTC sensor control
RGBW loop controller
3EM on Wall Display
Shelly LoRa Add-on
See all in Scripting →
Integrations
Webhooks & HTTP(S)
Philips Hue
See all in Integrations →
Home Assistant
Shelly in Home Assistant
Battery devices
BLE devices
Wall Display screen control
See all in Home Assistant →
Troubleshooting
Pending connection
Owned by another user
Update problems
See all in Troubleshooting →
Professionals
Search
EN
English
Dansk
Svenska
Suomi
Menu
Esc
Home
Scripting
Scripting
Running JavaScript on the device itself, with scripts you can paste and adapt.
Getting started
How to add a script
Install a script on a Gen2 device so it survives the first power cut.
Energy and prices
Live electricity prices
Heat, charge and switch when power is cheap — start with the guide for your country.
Cheapest hours in a row
Pick how many hours the relay has to be on and when it has to be done — for example, the car charged by 07:00. The device finds the cheapest run of hours before then and says when it starts and ends.
EV charging SPOT-price tracker
Get a per-session charging cost at spot plus transfer plus tax.
3EM consumption on a Wall Display
Put whole-house consumption on a Wall Display — the one number it cannot show alone.
Sensors and devices
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.
Shelly LoRa Add-on
Link two Shelly devices kilometres apart, with no Wi-Fi and no subscription.