Search
Close this search box.

10 Must-Have Home Assistant Automations for Beginners

The 10 automations that turned my Home Assistant from an expensive light switch app into a genuinely smart home. All beginner-friendly, most take under 15 minutes.

You’ve got Home Assistant running. Maybe you’ve added a few devices. But now you’re staring at the dashboard thinking… “what do I actually do with this thing?”

I remember that exact moment. I had a $50 Raspberry Pi running a $0 open-source platform connected to a $15 Zigbee dongle — and zero automations. It was basically an expensive light switch app on my phone. Not exactly the smart home dream.

Here are the 10 automations that changed everything for me. They’re all beginner-friendly, most take under 15 minutes to set up, and they’ll make your house feel genuinely intelligent. Not “I have to pull out my phone to turn on a light” intelligent — actually intelligent.

1. Lights On at Sunset (With a Twist)

This is the “Hello World” of home automation, but don’t skip it — there’s a trick that makes it way better than the basic version.

Most people set lights to turn on at sunset. That’s fine, but sunset in Denver in June is 8:30 PM. In December it’s 4:30 PM. Your house shouldn’t blast every light at 4:30 when it’s still bright inside with west-facing windows.

Instead, use a light level sensor combined with sunset. The automation fires at sunset, but only if the illuminance is below a threshold. Here’s the YAML:

automation:
  - alias: "Living Room Lights - Smart Sunset"
    trigger:
      - platform: sun
        event: sunset
        offset: "-00:30:00"
    condition:
      - condition: numeric_state
        entity_id: sensor.living_room_illuminance
        below: 40
    action:
      - service: light.turn_on
        target:
          area_id: living_room
        data:
          brightness_pct: 70
          color_temp_kelvin: 3000

The offset of -30 minutes means it triggers before sunset, when it’s actually getting dark. The illuminance check prevents it from firing on bright evenings. And 70% brightness at 3000K is warm and cozy without being blinding.

2. Motion-Activated Hallway Lights

I can’t tell you how many times I’ve walked down a dark hallway carrying laundry or groceries, fumbling for a switch. This automation kills that problem forever.

Grab an Aqara Motion Sensor P1 ($20-25 on Amazon) and stick it in the hallway. The P1 is my favorite because it has adjustable sensitivity and a 30-second reset time (most cheap sensors make you wait 60+ seconds).

automation:
  - alias: "Hallway Motion Lights"
    trigger:
      - platform: state
        entity_id: binary_sensor.hallway_motion
        to: "on"
    condition:
      - condition: numeric_state
        entity_id: sensor.hallway_illuminance
        below: 30
    action:
      - service: light.turn_on
        target:
          entity_id: light.hallway
        data:
          brightness_pct: 50
      - wait_for_trigger:
          - platform: state
            entity_id: binary_sensor.hallway_motion
            to: "off"
            for: "00:02:00"
      - service: light.turn_off
        target:
          entity_id: light.hallway

The illuminance check means it won’t fire during the day when the hallway is already lit. And the 2-minute wait after the last motion gives you time to not get plunged into darkness mid-stride.

3. “Goodnight” Scene

One tap (or voice command) that does everything you’d normally spend 5 minutes doing manually: turn off all downstairs lights, lock the doors, set the thermostat to sleep mode, arm the security system. Done.

Don’t overthink this one. Start with the obvious stuff and add to it over time:

script:
  goodnight:
    alias: "Goodnight"
    sequence:
      - service: light.turn_off
        target:
          area_id: 
            - living_room
            - kitchen
            - dining_room
      - service: lock.lock
        target:
          entity_id: lock.front_door
      - service: climate.set_temperature
        target:
          entity_id: climate.thermostat
        data:
          temperature: 68
      - service: notify.mobile_app
        data:
          message: "House locked, lights off. Goodnight! 🌙"

The notification at the end is a nice touch — it confirms everything ran without you having to check. My wife loved this one because she’d always ask “did you lock the front door?” Now the house tells her.

4. Door Open Too Long Alert

Kids leave the garage door open. I leave the back door cracked in summer and forget. This catches it.

An Aqara Door/Window Sensor on each exterior door runs you about $15 apiece. They’re tiny, battery-powered, and last 2+ years on a single CR1632.

automation:
  - alias: "Door Left Open Alert"
    trigger:
      - platform: state
        entity_id: binary_sensor.front_door_contact
        to: "on"
        for: "00:05:00"
    action:
      - service: notify.mobile_app
        data:
          title: "Door Alert"
          message: "Front door has been open for 5 minutes!"
          data:
            push:
              sound: default

Five minutes is the sweet spot — long enough that you don’t get alerted every time someone walks in, short enough that you catch the “oops I left it open” moments. Adjust per door — I use 2 minutes for the garage (expensive tools in there) and 10 minutes for the back door in summer.

5. Welcome Home Lights

Your phone’s GPS knows when you’re pulling into the driveway. Use it. Home Assistant’s Companion App has built-in location tracking that creates a device_tracker entity. When you transition from “away” to “home” and it’s dark out, lights come on.

automation:
  - alias: "Welcome Home"
    trigger:
      - platform: state
        entity_id: person.wayne
        to: "home"
    condition:
      - condition: state
        entity_id: sun.sun
        state: "below_horizon"
    action:
      - service: light.turn_on
        target:
          entity_id: 
            - light.porch
            - light.entryway
        data:
          brightness_pct: 100
      - delay: "00:10:00"
      - service: light.turn_on
        target:
          entity_id: light.porch
        data:
          brightness_pct: 30

The porch light goes full brightness when you arrive, then dims to 30% after 10 minutes. No more fumbling with keys in the dark, and it doesn’t stay on all night wasting electricity.

6. Smart Plug Energy Monitor

This one surprised me. I put a TP-Link Kasa Smart Plug KP125 on my washing machine and dryer. The plug monitors energy usage, so I get a notification when the cycle is done (power drops below 5 watts for 3 minutes).

automation:
  - alias: "Washing Machine Done"
    trigger:
      - platform: numeric_state
        entity_id: sensor.washing_machine_plug_power
        below: 5
        for: "00:03:00"
    condition:
      - condition: numeric_state
        entity_id: sensor.washing_machine_plug_power
        above: 0.5
    action:
      - service: notify.mobile_app
        data:
          title: "Laundry"
          message: "Washing machine is done! Time to switch to the dryer."

The “above 0.5” condition prevents false triggers when the machine is just sitting there idle. The 3-minute wait avoids alerts during mid-cycle pauses. And honestly? Getting a phone ping when the laundry is done has saved me from rewashing more loads than I’d like to admit.

7. Morning Routine

Instead of a single alarm, set up a gradual morning wake-up. Lights slowly brighten over 15 minutes, the thermostat bumps up from sleep mode, and you get a TTS announcement with the weather.

automation:
  - alias: "Morning Wake Up"
    trigger:
      - platform: time
        at: "06:30:00"
    condition:
      - condition: time
        weekday:
          - mon
          - tue
          - wed
          - thu
          - fri
    action:
      - service: light.turn_on
        target:
          entity_id: light.bedroom
        data:
          brightness_pct: 10
          color_temp_kelvin: 2700
          transition: 900
      - service: climate.set_temperature
        target:
          entity_id: climate.thermostat
        data:
          temperature: 72

The transition: 900 makes the lights ramp up over 15 minutes (900 seconds). Starting at 2700K keeps it warm and gentle — nobody wants to wake up to a fluorescent interrogation room. If your bulbs support it, you can also increase the color temperature gradually to mimic a sunrise.

8. Presence-Based Thermostat

Why heat an empty house? If everyone leaves, drop the thermostat. When someone comes home, bring it back. This one saves real money — I estimated about $15-20/month in the winter.

automation:
  - alias: "Away - Eco Mode"
    trigger:
      - platform: state
        entity_id: zone.home
        to: "0"
        for: "00:15:00"
    action:
      - service: climate.set_preset_mode
        target:
          entity_id: climate.thermostat
        data:
          preset_mode: "away"
      
  - alias: "Home - Comfort Mode"
    trigger:
      - platform: state
        entity_id: zone.home
        from: "0"
    action:
      - service: climate.set_preset_mode
        target:
          entity_id: climate.thermostat
        data:
          preset_mode: "home"

The 15-minute delay before switching to away prevents the thermostat from going haywire when you’re just checking the mail. And using preset modes instead of specific temperatures means your thermostat’s built-in schedule still works — you’re just adding an “everyone left” override.

9. Water Leak Detection

This isn’t glamorous, but it might be the most valuable automation on this list. A single water leak sensor under your water heater, washing machine, or kitchen sink can save you thousands in damage.

The Aqara Temperature/Humidity Sensor doesn’t do water detection, but Aqara makes a dedicated water leak sensor for about $18. Or use any Zigbee water sensor — they all work the same way in Home Assistant.

automation:
  - alias: "Water Leak Alert - CRITICAL"
    trigger:
      - platform: state
        entity_id: binary_sensor.water_heater_leak
        to: "on"
    action:
      - service: notify.mobile_app
        data:
          title: "🚨 WATER LEAK DETECTED"
          message: "Water detected near the water heater! Check immediately."
          data:
            push:
              sound:
                name: default
                critical: 1
                volume: 1.0
      - service: light.turn_on
        target:
          entity_id: all
        data:
          color_name: red
          brightness_pct: 100

The critical: 1 flag on iOS makes the notification break through Do Not Disturb — because a water leak at 3 AM is exactly the kind of thing you want to wake up for. The lights turning red is a bonus visual alert.

10. Vacation Mode

Going out of town? One toggle that makes your house look occupied: randomly turn lights on and off throughout the evening, vary the timing each day, maybe play some music during the day.

automation:
  - alias: "Vacation - Simulate Presence"
    trigger:
      - platform: state
        entity_id: input_boolean.vacation_mode
        to: "on"
    action:
      - repeat:
          while:
            - condition: state
              entity_id: input_boolean.vacation_mode
              state: "on"
          sequence:
            - delay:
                minutes: "{{ range(30, 90) | random }}"
            - service: light.toggle
              target:
                entity_id: "{{ state_attr('group.indoor_lights','entity_id') | random }}"
            - condition: state
              entity_id: sun.sun
              state: "above_horizon"

The random delay between 30-90 minutes makes it look natural. A perfectly timed 7:00 PM on, 10:00 PM off pattern screams “automated.” Random toggling with varying intervals looks like actual human behavior.

Getting Started

Don’t try to set up all 10 at once. Pick the two that solve your biggest annoyances right now. For most people, that’s the motion lights (#2) and the goodnight scene (#3). Once those are running and you trust them, add more.

The hardware investment is minimal. Two motion sensors, a few door sensors, and a couple of smart plugs will get you through most of these automations for under $100. If you haven’t set up Home Assistant yet, check out our complete Raspberry Pi setup guide first.

And if you’re wondering which protocol to use for all these devices, our Zigbee vs Z-Wave vs Matter comparison breaks it all down.

What automation would you add to this list? Drop it in the comments — I’m always looking for ideas to steal.

Share the Article!

Facebook
Twitter
LinkedIn

1 thought on “10 Must-Have Home Assistant Automations for Beginners”

  1. Pingback: Smart Home Security on a Budget: DIY with Home Assistant and Frigate - Home Automation Workshop

Comments are closed.

Related Posts