What Is Your Most Useful Automation?

I use home assistant automation to unlock my door and disarm my alarm, with the following security measures:

  1. require VPN to access my home assistant from external
  2. require MFA (TOTP) for my home assistant login
  3. a script to unlock door and disarm alarm
  4. homeassistant app on iphone requires face ID (available since ios18)
  5. an ios shortcut to run the homeassistant script

If someone get my iphone, they still face id to open home assistant app.

1 Like

My latest is to better manage my heat tape. I only want them to run 10 am - 4 pm when the temperature is below 32F and if it’s been 24 hours (still working to optimize that time frame to base it on how long the conditions were ā€œsnowyā€ and or figuring out where to get total snowfall) since the end of the last snowfall. Already saving me $100’s over the old turn on/off manually at start/end of storm or even worse on in the fall / off in the spring…

For me honestly I use home assistant as a backup for when internet down. My most useful automations are probably:

  1. Phillips hue hub with Phillips hue lights.
    Sometimes hub won’t turn on/off lights properly with sunset/sunrise so I have home assistant making sure it does.

  2. For my office and kitchen I use Lutron casetta, my kitchen and office lights are dimmable with toggled tube lights. This works flawlessly and gives me proper lighting in those 2 spaces. I only wish I could change colors of tube lights but looks so professional and clean. Probably add their motion detector to turn on office lights anytime I enter shortly.

  3. Lutron casetta outdoor plug for switching between grid and solar in my basement. I started off with cheap plugs like tp-link but found them very unreliable. I usually automate with python discharging my solar batteries each night to let new sun into them. This is custom in a cronjob, I read battery voltage from victron solar charge controller then turn on/off Lutron plug based on that voltage which I update voltage every season.

I started with all the cheap light bulbs, cheap smart plugs, but I found going reputable more expensive brands has given me flawless operation and no issues like the cheap devices when it matters like dealing with your solar setup etc. Casetta line no issues, might even do their smart shades at some point. I think if you want to up the value of your house, anything you do with Lutron casetta will do exactly that.

If internet goes down I can ask Nabu to operate my devices with their voice assistant. I virtualized home assistant under freebsd vm-bhyve on my server so it has very powerful hardware to work with and take regular zfs snapshots of all the VMs just in case.

So when I think of automating something, I think if I ever sold this house, I could leave behind Lutron hub etc for them and they good to go.

I’ve done most things myself, other times I called an electrician if I was unsure about something like getting toggled tube lights dimmable with extra wire etc. Didn’t want to crawl around in attic anyways :slight_smile:

I’ve run fiber optic from cheap QNAP switch in basement to QNAP switches in office and livingroom along with 12/2 wire from triplite grid/solar redundancy switch, same they use in datacenters to my livingroom and office, power goes out, does not interrupt me on ps5 or my PC.

Keep in mind I never started off even wanting to do solar, I just wanted a battery backup for good amount of hours if grid failed where my electronics were unaffected. Then I thought why not get a solar charge controller and toss some solar panels outside so I can charge batteries for free instead, works out great. Just don’t get those hybrid inverters, a good giandel inverter, feeding into a data center grade triplite off eBay will give you those sub 2ms switching times. You don’t need any expensive victron equipment, only part I would is their solar charge controllers, their app rocks. I just feed a serial cable from my server into it to pull voltage of battery.

Better than my first cheap ass setup, modified UPS hooked up to 2 car batteries lol, a bunch of Will Prowse YouTube videos and sourcing my lifepov4 batteries directly from Alibaba later, so much cleaner setup and batteries will actually last 10+ years.

For a cleaner look plan on hiring an electrician again at some point and install proper wall outlets for the 12/2 wire and the fiber optics. At least this way gives you upgrade path from 10gb to 100gb just changing out the switches and transceivers easily since I’ll run om5 fiber.

So I think things like fiber runs with professional wall plating, custom solar/grid outlets, Lutron casetta of anything that doesn’t use third party cloud providers is probably your best investment, maybe you could leave behind a cheap mini PC with home assistant on it and a Nabu voice assistant to with all your other automations with zwave/ZigBee to.

1 Like

Avoid using device_id like that. Use named entities only

1 Like

My automations:

  • Door contact on the fridge and freezer that gives a notification after a minute if they are still open. A light in the living room will also start flashing.
  • Also, a door sensor on the mailbox flap that gives a notification if it has been opened.
  • The washing machine can only be set to start on full hours in advance. A Zigbee cube with a lever stuck to the washing machine that presses the start button, so that I can set it to turn on at the full hour days or hours/minutes in advance. This is in connection with a dynamic electricity contract.
  • Future: moisture measurement in flower boxes in the garden to see if they are too dry (it’s just difficult to find a reliable and cheap one)

My most usefull automations are that I get a push notification when the flap of letterbox is opened. I live in an apartment so it’s useful that I know it when the post is brought.
The second is that my windowblinds are automatically closed 30 minutes after sunset.

Lighting scenes (ish, becuse they’re not all static scenes)

We have a Zigbee wall control for the IKEA colour temperature dimmable smart lights in our kitchen/diner, which are also controlled by the Adaptive Lighting integration.

The four scene buttons are designed to recall a Zigbee scene for one of the four groups of lights bound to the control, but this requires pressing one of the number buttons then the scene. Generally we just want to recall a scene for the whole space, so we ended up having to press 1, 2, 3, 4 then the scene button.

I therefore got rid of the Zigbee scenes and wrote an automation that listens for the button presses:

  1. All lights 100% brightness but with colour temperature controlled by Adaptive Lighting.
  2. All lights adaptive except dining table light set to a reasonably bright level for eating.
  3. All lights adaptive brightness and colour temperature.
  4. All lights off.

Not rocket science but really useful because we use that controller several times a day.

Sleep/wake stuff

Not a single automation, but I like our automations around sleeping/waking.

Closing our daughter’s bedroom door at a particular time of day turns her input boolean helper on. This in turn dims the light outside her door (using Adaptive Lighting ā€˜sleep mode’. If we open the door in the night time for any reason, the light will stay on even if motion isn’t detected on the landing, so that we’re not plunged into darkness in her room.

When we go into our bedroom in the evening, the motion sensor turns our bedside lamps on at 40%. My wife and I each have an IKEA remote on our bedside tables to press when we go to sleep, triggering an input boolean helper each. If one of us presses our sleep button, our bedside lamp turns off and the other one dims to 1%. If one of us is out and the other presses the sleep button, the lamps turn off.

When either adult is sleeping, the (motion-activated, adaptive brightness) hall light will only turn on very dimly (Adaptive Lighting ā€˜sleep mode’) to avoid light spill into the bedroom.

When we’re both asleep, a script runs to do all the usual turning things off. It also closes some blinds if the first sleeper hasn’t been asleep for a while (because we don’t want to disturb the other with the noise).

Turning our iPhone alarms off in the morning turns the relevant boolean helper off (via an iPhone automation that runs a script), turns our bedroom lamps on if it’s dark and opens the kitchen blinds if it’s light enough.

Lighting triggered by TV

Simple, but playing stuff on our TV in the evening dims the lights, and turning the TV power off after a certain time brings the lights back up a bit. Just avoids having to reach for the dimmer switch!

1 Like

I have an automation for my backyard lights.
When the sun sets all the lights go on to a preset color and a set percentage to create a mood.
When I open the door to the yard (contact sensor), they go to white, full brightness. This is usefull for when I have my hands full with garbage to dispose. The lights return to color mode when 5 minutes have passed or when the door opens again to go inside.

Dimi,

I have basically the same automation except my outside lights turn off at 10pm. If one of the motion detectors or the door is opened after 10pm, then my lights come back on until either 1) the door is closed for 10 minutes, 2) 10 minutes has passed without any movement outside.

Not just a single automation, but RGB bulbs are my most useful automation. I have bulbs sprinkled throughout the house, and I use them for tons of things!

Solid colors:

  • A red light outside my home office turns on when my webcam is on, so I don’t get visitors during a meeting.
  • Motion-triggered, dim blue night-lights throughout the house.
  • A light in the entryway activates at dusk, and I must appease it before going to bed:
    • Orange means the coffee hasn’t been prepped.
    • Yellow means the back door is open.
    • Aqua means that some automation is armed that could cause the garage door to open by itself.
    • Red means the security alarm is armed, but there’s a window open somewhere on the main floor.

Flashing light patterns for ā€˜events’:

  • Pulsing blue light if it starts raining heavily and the windows are open.
  • Flashing red and orange when the doorbell rings.
  • 3D printer events are prefaced with three slow ā€˜aqua’ flashes followed by:
    • Blue: Printer booted.
    • Green: Print success.
    • Red: Print failure.

…and a bunch of others.

I made an integration to handle all of these events, so I can actually quickly filter them in Home Assistant to be able to say that by ā€œa bunch of others,ā€ I mean I have 32 total things that the lights show. :sweat_smile:

The integration shows each defined ā€˜event’ as a Switch entity. Each event has colors, optional auto-clearing, priority, and other attributes associated with it. The integration allows lights to ā€˜subscribe’ to these events, so I can easily select which lights get which events. Then, I just flip the switches on when they’re relevant and don’t have to think about it further.

I shared my integration here in case anyone is interested: Color Notify: Simplify Showing Multiple Alerts on One Smart Bulb - Design Colorful Event Alerts and Pair Them with Your Smart Lights

1 Like

It’s not too exciting, but I use an RGB lamp to indicate which outside motion sensor has just been triggered. To avoid memorizing color codes, I just assign points around the house corresponding to their position on an elementary school art class color wheel with red pointing North. As the mailman walks by I see a blue violet followed by a violet then a red violet IIRC my Crayola 64-pack from my childhood.

1 Like

Hi everyone,

I wanted to share a simple but effective project I set up in my Home Assistant. I have a full security alarm system, but I don’t always want it fully armed with sirens, especially when I’m home. However, I still wanted to have peace of mind and be aware of any doors or windows opening unexpectedly.

So, I built what I like to call my ā€œElectronic Fence.ā€ It’s an automation that acts as a less intrusive perimeter monitor.

What It Does: When I flip a switch on my dashboard, the system is ā€œactive.ā€ From that moment on, if any of my designated doors or windows are opened, one of my speakers will immediately announce which specific sensor was triggered. For example: ā€œAttention, the kitchen window has just been opened.ā€

Why I Find It So Useful:

  • Peace of Mind: It feels much safer when I’m home alone, especially at night. A calm voice alert is much better than a startling siren for a non-emergency event.
  • Child Safety: It’s fantastic for keeping track of the kids. I get an instant notification if they open a door to the backyard or the front of the house without me noticing.
  • A ā€œSoftā€ Alarm Mode: It’s the perfect middle ground between having no security active and having the full, loud alarm system armed.

How I Built It: For those who are curious about the setup, the logic is based on a single automation. The key components I used are:

  • An input_boolean to serve as the master on/off switch for the entire system.
  • A label in Home Assistant. I applied the same label (e.g., perimeter_sensors) to all my door and window sensors. This makes the automation incredibly flexible; I can add or remove sensors just by changing their label, without ever touching the automation’s code.
  • The automation itself uses a template trigger that checks if the count of ā€œonā€ sensors with that label is greater than zero.
  • The action is a TTS service call that generates a message on the fly, listing the friendly names of all sensors that are currently open.

It’s been a really effective solution for me and adds a great layer of practical, everyday security. I hope this gives some of you a few ideas for your own homes!

2 Likes

I do the same but to indicate ā€œscenesā€. Smart lights around the house illuminate a given color to indicate states, like the laundry being done ready (cyan), the garage door open (dark green), any house entry unsecured (light green)…

I wrote a similar automation to control my heat tape as well. I get temperature and precipitation information from a Tempest weatherstation mounted on the roof of my garage. Works great!

1 Like

Monitoring the kids screen time without having to nag them. My son gets an hour of screen time per day on the Mac and his countdown timer activates when he opens games or YouTube etc, but if he launches editing software or educational content his timer goes back up allowing him to buy time. When the timer ends, the screens go off and he gets logged out. We’ve got NFC on our devices which allow us to override limits easily without the kids working out passwords etc. One tap on a discrete tag and all the TV’s go off, iPads fall off the network, and it’s time to read a good old book!

4 Likes

I am guessing it’s a bunch of sensors to know which app opening on which device, correct?
How did you implement those sensors to begin with? I’m struggling on this cross-device-content-aware sensor thingy and could not figure out. Any pointers would be very helpful.

You can use the last used app sensor?

What I would do then is to create a template grouping apps to two categories, games and useful.
Then this sensor can be used in a history states sensor to count how much time is used in games or useful.

Thanks. So this covers devices that could install HA apps.

What if the kids tuning on YouTube from the TV, or opening some game console, or opening youtube.com from a web browser…?

Just trying to see what the options are available out there.

You could combine that garage opener with a camera. I have an automation that starts my robot vacuum at a certain time. It checks my security camera to see if my car is present (I gave it a pretty detailed description for reference). If my car is not in the image, the vacuuming will proceed. If my car is in the image home assistant will send me an interactive phone verification "Would you like the vacuuming to proceed? Then I have to click yes or no. You could probably do something similar if you have a security camera.

After 5 years, most valuable ā€œautomationā€, despite triggered manually, is turning off all lights in the house by long press on wall switch located in entry hall.

Actually we have very similar one triggered by longpress on a wall switch next to bedroom, though it skips bedroom lights

There are many other that got high level of wife acceptance, like sending notification if last person left lights turned on. turning entrance lights on on an arrival, nagging notifications to members staying in house about washing/drying finished or trash collection (starting immediately to just arrived person).

Hard to tell how ā€œusefulā€ are automations like controlling FVE inverter. For sure they are valuable.