This device has no voice for this language. You can add one in your device’s speech settings.
Letting the Clock and the Sun Do the Work
Time is the oldest and simplest form of automation. A mechanical timer that switches a lamp on in the evening is already a small automation system.
Modern home automation can do much more with time: follow the sunrise and sunset, distinguish between weekdays and weekends, wait a certain time after an event, or combine the time of day with information from sensors.
This guide explains the different ways time can be used in automation, and how to avoid the most common pitfalls.
1. Three Ways to Use Time
Time appears in automation in three main forms:
- Schedules – actions at fixed times, such as "every weekday at 06:30".
- Timers and delays – actions a certain time after an event, such as "three minutes after the last motion".
- Time as a condition – a time window that decides whether a rule may run, such as "only between 07:00 and 23:00".
Most useful automations combine at least two of these.
2. Fixed Schedules
Fixed schedules are ideal for routines that rarely change:
- Raising the heating before everyone gets up.
- Switching the water heater on during the cheapest hours.
- Running the garden irrigation early in the morning.
- Switching off decorative lighting at midnight.
Use separate schedules for weekdays and weekends where routines differ. Many controllers also let you define holidays or a holiday mode, so that the working-day schedule is not used when nobody has to get up early.
3. Sunrise and Sunset
The time of sunrise and sunset changes every day and varies greatly with the season – especially far north or south. Rules based on a fixed clock time are therefore often wrong for part of the year.
Most home automation controllers can calculate sunrise and sunset for your location. You can also add an offset:
WHEN it is 20 minutes after sunset,
THEN switch on the outdoor lights.
WHEN it is 23:30,
THEN switch off the outdoor lights.
For lighting, a light sensor is often even better than the sun’s position, because it also reacts to heavy clouds and to the shade of trees and buildings. A good approach is to combine both: "after sunset or when the outdoor light level falls below a set value".
Make sure the location and time zone of your controller are set correctly, otherwise all sun-based times will be wrong.
4. Timers and Delays
Timers make an action happen a certain time after something else:
- Switch off the light three minutes after the last motion.
- Switch off the towel heater two hours after it was switched on.
- Send a reminder if the garage door has been open for 15 minutes.
Two details make a big difference:
- Restarting the timer – for motion lighting, each new movement should restart the countdown, so the light stays on while someone is there.
- Surviving a restart – timers that are running when the controller restarts may be lost. For long timers, check whether your controller can restore them, or store the end time and compare it regularly (see Guide 11).
5. Time Windows as Conditions
A time window limits when a rule is allowed to act. The same motion sensor can then behave differently during the day and at night:
WHEN motion is detected on the stairs,
IF the time is between 23:00 and 06:00,
THEN switch on the stair light at 10% brightness for one minute.
Be careful with windows that cross midnight. "Between 23:00 and 06:00" must be understood by your controller as one window across two days. Most controllers handle this correctly, but it is worth testing.
6. Daylight Saving Time
In many countries the clocks change twice a year. This can affect schedules in surprising ways:
- When the clocks go forward, one hour does not exist – a schedule set to a time within that hour may be skipped or moved.
- When the clocks go back, one hour happens twice – a schedule may run twice.
- Timers and durations are not affected, because they count real time.
Avoid placing important schedules in the hour when the clocks change (usually during the night). Check after each change that heating and other important schedules still run at the right time.
7. Combining Time With Sensors
Time on its own does not know whether anyone is at home, whether it is a cloudy day or whether a window is open. The best results come from combining time with sensor information:
| Time Only | Time Combined With Sensors |
|---|---|
| Heating on at 06:00 every day | Heating on at 06:00 – unless the home is in Away mode |
| Outdoor lights on at 18:00 | Outdoor lights on when it gets dark, off at 23:30 |
| Irrigation every morning | Irrigation every morning, unless it has rained or the soil is moist |
| Hallway light off at 23:00 | Hallway light dimmed after 23:00 and controlled by motion |
8. Making Time-Based Rules Reliable
- Check that the controller’s clock, time zone and location are correct.
- Make sure the controller keeps the correct time after a power cut – most synchronise automatically over the network.
- Add a maximum running time to anything that is switched on by a timer.
- Use a start-up rule that sets the correct state if a scheduled time was missed while the controller was off.
- Keep schedules in one place, so that you can see all of them together.
Final Thoughts
Schedules, timers and time windows are some of the simplest and most useful tools in home automation.
Using sunrise and sunset instead of fixed times, restarting timers when new events arrive and combining time with sensor information makes time-based automation follow real life rather than the clock alone.
Check the clock settings, be aware of daylight saving time and protect long timers against restarts – and your time-based rules will run reliably all year round.
MISOLIMA® – Technology Made Practical.
Practical knowledge for understanding, designing and building home automation.
Continue reading
Back to the topGuide 11
Creating Reliable Automation Rules
Guide 15