Setup Ecosystems
How to set a schedule or timer on a Shelly
Set a Shelly to switch on and off by itself: weekday times, sunrise and sunset, and auto off timers, from the Shelly app or a browser.
A schedule tells a Shelly to switch its output at a set time, on the days you pick, or at sunrise or sunset. You set it up once in the Shelly app or the device's own web page, and from then on the Shelly runs it by itself: the schedule is stored on the device, not on your phone. If you haven't added your Shelly to the app yet, start with adding a Shelly device.
Before you start
Check the device knows where it is and what time it is. Open the device in the Shelly app, go to its settings and find Geo Location And Time Zone. Set your time zone, then your location, either on the map or with Auto detect location, and tap Save. A sunset schedule works out the time from that location, so a wrong one gives you the wrong sunset.
The Shelly also needs the internet to set its clock. Once it's set, a short outage doesn't stop a schedule, but a power cut with no internet does until the clock syncs again. Does Shelly work without the internet? covers what keeps running.
Add a schedule
Shelly Smart Control
- Open Schedule and tap Add schedule
Open the device in the Shelly app and tap Schedule. Tap Add schedule.
- Pick the days
Leave Simple selected and tick the days under Choose Weekday, then tap Next. Advanced adds even or odd days or months, and specific days of the month or months of the year.
- Set a time, or sunrise or sunset
Under Choose time interval, pick Time and set the hours and minutes. Or pick Sunrise / Sunset, choose one, and set an offset if you want it to run before or after. Tap Next.
- Choose what the output does
Tap Add local action. Control Output sets it On or Off. Tick Toggle value after and enter a number of seconds to switch it back again later: 5400 is 90 minutes. Toggle Output flips it to the opposite of whatever it is. Tap Save, then Next, then Save.
- Check the list
Schedule lists each one with its days, time and action.
Direct access via IP
The device's own web page works without a Shelly account. Type the device's IP address into a browser on the same Wi-Fi. In the Shelly app, open the device, then Device settings, then Device information.
- Click Create schedule
Click Schedules in the menu on the left, then Create schedule.
- Set the time and days
Enter a time, or tick Use sunset or sunrise offset and choose At sunrise or At sunset. Select the days it should run.
- Set the action and save
Set the action's Output State to On or Off, then click Save. The Schedules page lists it alongside any you made in the app, since both read the same list from the device. Use the switch on a schedule to pause it without deleting it.
The web page also has an Advanced schedule. It's built on cron: you pick the seconds, minutes, hours, days, months and weekdays from menus, for patterns a basic schedule can't cover in one go.
On at one time, off at another
Most jobs need two moments: the porch light on at sunset and off at midnight, say. You can do that two ways.
- Two schedules. One sets the output On at sunset, a second sets it Off at 00:00. Use this when the off time is a clock time.
- One schedule with Toggle value after. The schedule turns the output On and switches it back after the number of seconds you enter. Use this when the run is a fixed length, such as a towel rail heating for 90 minutes.
Our outdoor lights at sunset and heated towel rail solutions walk through each one end to end.
Switch off after a set time, every time
A schedule only acts at its own time. If you want the output to switch off a set time after anything turns it on, the wall switch included, use the Timer tab instead. Tick Auto off, enter the time in hours, minutes and seconds, and tap Save. Auto on works the other way round: it switches the output back on a set time after it goes off.
Auto off also applies to a scheduled On. If a schedule turns a pool pump on for four hours, set Auto off to four hours or more, or the timer will cut the run short.
When a schedule and the wall switch disagree
There's no priority between them. A schedule is just a command the Shelly sends itself at a set time, and the relay follows whichever command came last: the schedule, the app, the wall switch or a scene.
So if the schedule turns the light on at sunset and you switch it off at 9 pm, it stays off until the next scheduled On. If you switch it on at 3 am, it stays on until something turns it off, or until an Auto off timer runs out.
For more on how each input setting behaves, see Shelly switch modes.
Frequently asked questions
Do Shelly schedules need the internet?
The schedule runs on the device, so it keeps going through a short internet outage. The Shelly does need the internet to set its clock, so after a power cut with no internet, schedules can't run on time until the clock syncs again.
How many schedules can a Shelly hold?
A Shelly 1 Gen4 holds up to 20. Turning a light on and off again is two schedules, unless you use Toggle value after on the first one.
What happens if I switch it manually while a schedule is set?
The relay does whatever it was told last. A schedule only acts at the moment it's set for, so switching the light off by hand inside the window keeps it off until the next scheduled On.
Does a missed schedule run after a power cut?
No. A scheduled On or Off that falls during the power cut is skipped, and the next one runs as normal.
Can a Shelly schedule follow sunset?
Yes. Under Choose time interval, pick Sunrise / Sunset and choose sunrise or sunset, with an offset before or after if you want one. The time moves with the seasons by itself.
Still need a hand?
We answer most messages within one business day. If your question is about an existing order, have your order number ready. It speeds things up.
Contact us