
Beginner-Friendly Home Assistant Automations, Part 2: Time and Daily Routines
In the first part of this beginner-friendly Home Assistant series, we looked at practical automations based on lighting and presence detection.
Those automations react to what is happening right now: motion is detected, someone arrives home, or a light is left on.
This time, we are moving to another important automation category:
Time-based automations and daily routines.
These automations make your home follow predictable patterns throughout the day. Instead of manually adjusting lights, heating, or devices, Home Assistant can automatically handle it based on schedules, sunrise and sunset, temperature, and even energy consumption.
For many users, this is where a smart home starts feeling truly intelligent.
Understanding Time-Based Automations
Time-based automations use the same three core components we covered in Part 1:
Trigger
The event that starts the automation.
Examples:
- 06:30 every weekday
- Sunset
- Every 15 minutes
- Electricity price drops below a threshold
Condition
Optional rules that decide if the automation should continue.
Examples:
- Indoor temperature is below 20 °C
- Daily energy usage exceeds 8 kWh
- It is a weekday
- Someone is home
Action
What Home Assistant should do.
Examples:
- Set heating to 21 °C
- Turn on lights
- Start charging
- Turn off unnecessary devices
The big advantage of time-based automations is consistency.
They quietly create routines that happen automatically every day.
1. Turn On Outdoor Lights at Sunset
This is one of the most useful automations for any home.
Instead of manually adjusting outdoor lights throughout the year as daylight hours change, Home Assistant can track sunset automatically.
What You Need
- Smart outdoor lights or a smart relay
- Home Assistant with location configured
How It Works
Trigger: Sunset
Condition: None
Action: Turn on outdoor lights
YAML Example
alias: Outdoor Lights at Sunset
trigger:
- platform: sun
event: sunset
action:
- service: light.turn_on
target:
entity_id: light.outdoor
mode: single
Because Home Assistant calculates sunset based on your location, the timing adjusts automatically throughout the seasons.
This is especially useful in Northern Europe, where sunset can vary dramatically between summer and winter.
2. Lower Heating Automatically at Night
Heating is one of the biggest contributors to household energy use.
A simple scheduled automation can reduce unnecessary energy consumption while you sleep.
What You Need
- Smart thermostat or radiator valves
- Temperature control integration
How It Works
Trigger: 22:30
Condition: Heating is active
Action: Lower temperature to 18 °C
YAML Example
alias: Night Temperature Reduction
trigger:
- platform: time
at: "22:30:00"
action:
- service: climate.set_temperature
target:
entity_id: climate.living_room
data:
temperature: 18
mode: single
This automation helps reduce energy use while still maintaining comfort.
Even reducing heating by 2–3 °C overnight can save noticeable energy over time, especially during winter months when total daily heating usage may exceed 20 kWh.
3. Morning Warm-Up Routine
The opposite of lowering temperatures at night is preparing your home before the day begins.
This automation raises indoor temperature before you wake up.
What You Need
- Smart thermostat
- Time scheduling
How It Works
Trigger: 06:00
Condition: Weekdays only
Action: Set temperature to 21 °C
YAML Example
alias: Morning Heating Routine
trigger:
- platform: time
at: "06:00:00"
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: climate.set_temperature
target:
entity_id: climate.house
data:
temperature: 21
mode: single
This creates a more comfortable start to the day without wasting energy overnight.
It also demonstrates how combining time triggers with weekday conditions creates smarter schedules.
4. Automatically Turn Off Standby Devices at Night
Many homes have devices quietly consuming electricity around the clock.
Televisions, chargers, entertainment systems, and office equipment often draw standby power continuously.
A scheduled shutdown can reduce this.
What You Need
- Smart plugs or controllable switches
- Devices safe to power off
How It Works
Trigger: Midnight
Condition: No active use
Action: Turn devices off
YAML Example
alias: Night Standby Shutdown
trigger:
- platform: time
at: "00:00:00"
action:
- service: switch.turn_off
target:
entity_id:
- switch.tv_power
- switch.office_equipment
- switch.media_center
mode: single
If these devices consume even small standby loads, they can add up.
A combined standby draw of 40 W can consume almost 1 kWh per day if left running continuously.
That quickly becomes a measurable annual cost.
5. Run Appliances During Low Energy Price Periods
If your electricity provider offers dynamic pricing, this is where Home Assistant becomes extremely powerful.
You can schedule energy-intensive devices when electricity is cheaper.
What You Need
- Energy price sensor
- Smart plug or controllable appliance
- Optional Nord Pool integration
How It Works
Trigger: Electricity price drops below threshold
Condition: Device is ready
Action: Start appliance
YAML Example
alias: Start Washing Machine on Low Price
trigger:
- platform: numeric_state
entity_id: sensor.electricity_price
below: 0.80
condition:
- condition: state
entity_id: input_boolean.washing_ready
state: "on"
action:
- service: switch.turn_on
target:
entity_id: switch.washing_machine
mode: single
Running a 2 kWh appliance when electricity prices are lower can reduce costs significantly over time.
This is one of the easiest ways for beginners to start using Home Assistant for energy optimization.
Combining Multiple Time-Based Rules
Once you are comfortable with simple schedules, you can combine multiple triggers and conditions.
For example:
A winter evening comfort automation:
Trigger: Sunset
Conditions:
- Indoor temperature below 20 °C
- Someone is home
Actions:
- Turn on living room lights
- Raise temperature to 21 °C
This creates a home that adapts naturally to daily life.
Why Time-Based Automations Matter
Presence automations react to events.
Time-based automations create rhythm.
They help your home:
- Follow your daily schedule
- Reduce wasted electricity
- Improve comfort
- Optimize heating
- Make routines predictable
They also teach important Home Assistant concepts such as:
- Time triggers
- Sun-based triggers
- Numeric thresholds
- Weekday scheduling
- Energy-aware conditions
These are foundational skills you will use in more advanced automations later.
Common Beginner Mistakes
When creating time-based automations, beginners often:
Using fixed sunset times
Always use Home Assistant’s sun integration instead of manually entering times.
Scheduling too aggressively
Avoid excessive automation changes every few minutes.
Simple schedules are easier to maintain.
Ignoring manual overrides
If someone manually changes a setting, your automation should not immediately undo it.
Forgetting seasonal adjustments
A heating schedule that works in January may not make sense in July.
What Comes Next?
This article is Part 2 in the beginner automation series.
Next up:
Part 3: Useful Notifications and Smart Monitoring
We will cover:
- Battery alerts
- Appliance completion notifications
- Door and window monitoring
- Smart reminders
- Practical home status alerts
Notifications are where Home Assistant becomes a true assistant rather than just a scheduler.
Final Thoughts
Time-based automations are where your smart home starts building daily habits.
They create structure, reduce manual tasks, and often lower electricity consumption at the same time.
Start with something simple:
- Outdoor lights at sunset
- Lower heating overnight
- Turn devices off automatically
Small routines quickly add up to a smarter, more efficient home.
And once you understand timing, schedules, and conditions, you are ready for the final step:
Building a smart home that keeps you informed.
Some of the links in this article are "affiliate links", a link with a special tracking code. This means if you click on an affiliate link and purchase the item, we will receive an affiliate commission. The price of the item is the same whether it is an affiliate link or not. Regardless, we only recommend products or services we believe will add value to our readers. By using the affiliate links, you are helping support our Website, and we genuinely appreciate your support.