Power-User · Level 3 of 3
The best first Home Assistant automations are the ones that pay off every day with almost no upkeep: lights that follow you around the house, climate that adjusts itself, and alerts that catch a problem before it becomes a repair bill. You do not need a complicated setup to get there. You need a short list of automations that each do one useful thing reliably.
Home Assistant is the free, open-source home-automation hub you self-host — on a Raspberry Pi, a Home Assistant Green box, or a small mini PC. It is the brain that ties your devices together and runs these automations. If you already have it set up, everything below is yours to copy.
This guide lists 20, ordered roughly by how much they give back for the effort. Each one names the trigger and the action so you can recreate it, whether you build automations in the Home Assistant UI (Settings → Automations & Scenes) or in YAML. Start at the top and stop whenever your house feels like it is running itself.
Start here: five automations that earn their keep on day one
These are high payoff and low effort. Most use sensors or entities you already have, and you will notice them working within hours.
- Motion-activated lights that turn themselves off. Trigger on a motion sensor, turn the light on, then turn it off after a few minutes of no motion. This single automation removes more daily friction than anything else on the list, especially in hallways, closets, and bathrooms.
- Lights that follow the sun. Trigger on the
sunentity at sunset, turn on your main living-area lights. Pair it with a sunrise trigger to turn them off. No more walking into a dark house at 5pm in winter. - A one-tap goodnight. Trigger on a button, a dashboard tap, or a voice phrase. Turn off every light, lock the doors, drop the thermostat, and arm the alarm in one action. Replacing a five-stop walk through the house with one tap is the kind of automation people keep.
- Auto-off for anything that should not run forever. Trigger when a smart plug for an iron, space heater, or curling iron has been on past a safe window, then turn it off and send a notification. This is a safety automation disguised as a convenience one.
- Tell you when the laundry is done. Trigger on a vibration or power sensor on the washer or dryer dropping to idle, then send a phone notification. Small, but it ends the cycle of forgotten wet laundry.
Comfort: automations you stop noticing because they just work
These shape the house around your routine. Once they are dialed in, you forget they exist, which is the goal.
- Thermostat setback when everyone leaves. Trigger when presence detection shows the house is empty, then set the thermostat back a few degrees. Reverse it when the first person heads home.
- Warm or cool the house before the alarm. Trigger a fixed time before your wake-up alarm, then move the thermostat to your daytime setpoint so the house is comfortable when you get up rather than an hour later.
- Adaptive lighting through the day. Trigger on time or sun position, then shift your bulbs from cool white in the morning to warm in the evening. It is subtle, and it makes evenings feel calmer without you touching a switch.
- Close the blinds when the sun hits the room. Trigger on a sun-position condition plus a temperature or lux sensor, then close motorized shades on the sun-facing side. It keeps rooms cooler and protects furniture from fading.
- A welcome-home scene. Trigger when a person arrives after dark, then turn on entry lights and unlock the door. Walking into a lit house beats fumbling for a switch with your arms full of groceries.
Safety and security: the automations that matter when something is wrong
These do nothing most of the time, which is exactly why they are worth setting up. The one night a sensor catches a leak or an open door, it pays for the whole system.
- Leak sensor to shut-off valve. Trigger on a water-leak sensor under the sink, water heater, or washer, then close a smart shut-off valve and send a high-priority alert. Water damage is slow, expensive, and almost entirely preventable with this one automation.
- Door or window left open alert. Trigger when a contact sensor has been open for longer than it should be, then notify your phone. Useful for the garage side door, a basement window, or a fridge that did not latch.
- Smoke or CO alarm response. Trigger on a smoke or carbon-monoxide sensor, then turn every light in the house to full brightness and push a notification. Lit escape paths matter most when it is dark and you are disoriented.
- Away mode that fakes occupancy. Trigger when the house is empty for an extended period, then turn lights on and off in a believable pattern in the evening. It is the modern version of leaving a lamp on a timer, and it works.
- Garage-left-open reminder. Trigger at a set time each night, check whether the garage door is open, and if it is, notify you or close it automatically. This is the automation people wish they had the morning after they did not.
Energy: small automations that quietly cut the bill
None of these change how the house feels. They just stop it from wasting power in the background.
- Cut standby power overnight. Trigger late at night, then switch off smart plugs feeding entertainment centers, monitors, and chargers that draw power even when idle. Switch them back on in the morning.
- Run high-draw appliances on off-peak hours. If your utility has time-of-use pricing, trigger the dishwasher, EV charger, or water heater to run during the cheap window instead of at peak.
- Lights off when a room stays empty. A longer-timeout cousin of automation one: trigger when a room has shown no motion for a longer stretch, then turn off any lights left on. It catches the times a manual switch got missed.
Going further once the basics are solid
Save these until the foundation is in place. They are more rewarding once you trust your sensors.
- Per-person routines. Trigger on which person arrives or wakes, then run a routine tailored to them: their lighting, their music, their thermostat preference. This is where presence detection starts to feel personal rather than mechanical.
- A single house-is-asleep master automation. Trigger once a night when motion has stopped everywhere and doors are locked, then run a final pass: lights off, thermostat to night setpoint, alarm armed, garage checked. One automation that supervises the rest.
How to actually build one, step by step
Take automation one — motion-activated lights that turn themselves off — and build it end to end. Every other automation on the list is a variation of these same steps.
In Home Assistant, go to Settings → Automations & Scenes → Create Automation → Create new automation, then choose Start with an empty automation.
1. Trigger that turns the light on. Click Add Trigger → Entity → State. Set Entity to your motion sensor (for example binary_sensor.hallway_motion) and To to Detected. Give it the trigger ID motion_on so you can refer to it later.
2. Trigger that turns the light off. Add a second State trigger on the same sensor, this time To → Clear, and set For to 00:05:00. That is the five minutes of no motion before the light shuts off. Give it the ID motion_off.
3. Branch the action. Under Then do, add a Choose action with two options: if motion_on fired, turn the light on; if motion_off fired, turn it off. The Choose block is what lets one automation handle both directions.
If you would rather skip the clicking, switch to the YAML editor (the three-dot menu → Edit in YAML) and paste this. Change the two entity IDs and you have the same automation in the next room in under a minute:
alias: Hallway motion light
triggers:
- trigger: state
entity_id: binary_sensor.hallway_motion
to: "on"
id: motion_on
- trigger: state
entity_id: binary_sensor.hallway_motion
to: "off"
for: "00:05:00"
id: motion_off
actions:
- choose:
- conditions:
- condition: trigger
id: motion_on
sequence:
- action: light.turn_on
target:
entity_id: light.hallway
- conditions:
- condition: trigger
id: motion_off
sequence:
- action: light.turn_off
target:
entity_id: light.hallway
Get this one working and watch it for a day before you build the next. Once you trust it, it is the template for the rest of the list: the same trigger-and-action shape, pointed at different entities. A door sensor and a notification instead of a motion sensor and a light, and you have automation 12.
Where to start
Get one motion-light automation working end to end, watch it for a day, then use it as the template for the rest of the list. Most of these are the same trigger-and-action shape pointed at different entities, so the second one takes minutes once the first is solid. Work down the list in the order above and stop whenever the house feels like it runs itself.
Leave a Reply