<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-installed-a-ups-for-my-smart-home-and-home-assistant-still-couldn-t-save-my-automations-eshozds3p" -->

---
title: I installed a UPS for my smart home and Home Assistant...
description: A UPS keeps Home Assistant's brain running during a power outage, but smart plugs, bulbs, and hubs on regular outlets still lose power, breaking automations...
canonical: https://daily.dev/posts/i-installed-a-ups-for-my-smart-home-and-home-assistant-still-couldn-t-save-my-automations-eshozds3p
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I installed a UPS for my smart home and Home Assistant still couldn't save my automations | daily.dev
og:description: A UPS keeps Home Assistant's brain running during a power outage, but smart plugs, bulbs, and hubs on regular outlets still lose power, breaking automations...
og:url: https://daily.dev/posts/i-installed-a-ups-for-my-smart-home-and-home-assistant-still-couldn-t-save-my-automations-eshozds3p
og:image: https://api.daily.dev/og/posts/EshOzds3P.png
og:image:alt: I installed a UPS for my smart home and Home Assistant still couldn't save my automations
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I installed a UPS for my smart home and Home Assistant still couldn't save my automations

**[XDA Developers](https://daily.dev/sources/xda-developers)** · 4 min read · 0 upvotes · 0 comments

## Summary

A UPS keeps Home Assistant's brain running during a power outage, but smart plugs, bulbs, and hubs on regular outlets still lose power, breaking automations that fire once and never retry. Testing showed a scheduled automation sent a command to a plug it still believed was online, the action failed silently after 72 seconds, and the light never turned back on. Home Assistant's own docs confirm that 'for:', 'delay', and 'wait_for_trigger' states don't survive restarts, and a related flooding bug report was closed as not planned. The fix is to redesign automations to trigger on schedule, on Home Assistant startup, and on device reconnection, then use a condition to decide whether the action still applies, plus favor local protocols like Matter, Zigbee, and ESPHome and add the Network UPS Tools integration for catch-up passes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.xda-developers.com/ups-to-protect-my-smart-home-not-enough-to-save-home-assistant-automations>

## Questions this post answers

### Why did my Home Assistant automation fail to turn a light back on after a power outage even though I have a UPS?

A UPS only keeps the Home Assistant server running; smart plugs, bulbs, and hubs on regular outlets still lose power. When the schedule trigger fires while a device is mid-outage, Home Assistant still thinks the device is available, sends the action, waits about 72 seconds, then fails with 'Operation aborted' with no retry, so the light stays off.

_Anyone chasing flaky smart-home automations after outages can find similar troubleshooting write-ups on daily.dev._

### Does the Home Assistant 'for:' option on triggers survive a restart?

No, Home Assistant's own documentation states that the 'for:' option on triggers will not survive a Home Assistant restart or an automation reload, and running delay and wait_for_trigger steps get cut off the same way. Since updates cause regular restarts, automations should not rely on remembering elapsed wait states across a restart.

_Developers building reliable Home Assistant automations can track quirks like this via daily.dev._

### How do I make a Home Assistant automation recover correctly after a power outage instead of just firing once at a scheduled time?

Add multiple triggers: the original time trigger, a homeassistant start event trigger, and a state trigger for the device changing from unavailable, then use a time condition to gate whether the action still applies, and set continue_on_error true with restart mode. This way the automation re-evaluates the desired end state instead of firing once and giving up.

_Those hardening home automation setups against outages can follow similar patterns on daily.dev._

## Similar posts on daily.dev

- [I turned off constant polling in my automations, and Home Assistant finally ran cool](https://daily.dev/posts/i-turned-off-constant-polling-in-my-automations-and-home-assistant-finally-ran-cool-i8mnzspua) · XDA Developers · 0 upvotes · 0 comments
- [DIY UPS Keeps Home Assistant Running](https://daily.dev/posts/diy-ups-keeps-home-assistant-running-byjqqrarm) · Hackaday · 0 upvotes · 0 comments
- [I connected these 4 devices to smart plugs, and automation changed everything](https://daily.dev/posts/i-connected-these-4-devices-to-smart-plugs-and-automation-changed-everything-8mt5cuzld) · XDA Developers · 0 upvotes · 0 comments
- [A Java geek](https://daily.dev/posts/a-java-geek-7qp8jmxxz) · A Java geek · 0 upvotes · 0 comments
- [I automated my 20-year-old appliances with Home Assistant, and they're more reliable than anything new](https://daily.dev/posts/i-automated-my-20-year-old-appliances-with-home-assistant-and-they-re-more-reliable-than-anything-n-cubr5pmm9) · XDA Developers · 1 upvotes · 0 comments

---

Tags: [#tech-news](https://daily.dev/tags/tech-news), [#automation](https://daily.dev/tags/automation)

[View this post on daily.dev](https://daily.dev/posts/i-installed-a-ups-for-my-smart-home-and-home-assistant-still-couldn-t-save-my-automations-eshozds3p)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I installed a UPS for my smart home and Home Assistant still couldn't save my automations","url":"https://daily.dev/posts/i-installed-a-ups-for-my-smart-home-and-home-assistant-still-couldn-t-save-my-automations-eshozds3p","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-installed-a-ups-for-my-smart-home-and-home-assistant-still-couldn-t-save-my-automations-eshozds3p"},"datePublished":"2026-09-19T12:01:57.848Z","dateModified":"2026-09-19T12:02:37.700Z","description":"A UPS keeps Home Assistant's brain running during a power outage, but smart plugs, bulbs, and hubs on regular outlets still lose power, breaking automations...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/57499615bc917763755c6359b1b7d373?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/57499615bc917763755c6359b1b7d373?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"XDA Developers","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"XDA Developers","logo":"https://media.daily.dev/image/upload/s--kCg6yyAP--/f_auto,q_auto/v1774964407/logos/xda-developers?_a=BAMAMiWQ0","url":"https://daily.dev/sources/xda-developers"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-installed-a-ups-for-my-smart-home-and-home-assistant-still-couldn-t-save-my-automations-eshozds3p","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"tech-news,automation","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"XDA Developers","item":"https://daily.dev/sources/xda-developers"},{"@type":"ListItem","position":3,"name":"I installed a UPS for my smart home and Home Assistant still couldn't save my automations"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/i-installed-a-ups-for-my-smart-home-and-home-assistant-still-couldn-t-save-my-automations-eshozds3p#faq","mainEntity":[{"@type":"Question","name":"Why did my Home Assistant automation fail to turn a light back on after a power outage even though I have a UPS?","acceptedAnswer":{"@type":"Answer","text":"A UPS only keeps the Home Assistant server running; smart plugs, bulbs, and hubs on regular outlets still lose power. When the schedule trigger fires while a device is mid-outage, Home Assistant still thinks the device is available, sends the action, waits about 72 seconds, then fails with 'Operation aborted' with no retry, so the light stays off. Anyone chasing flaky smart-home automations after outages can find similar troubleshooting write-ups on daily.dev."}},{"@type":"Question","name":"Does the Home Assistant 'for:' option on triggers survive a restart?","acceptedAnswer":{"@type":"Answer","text":"No, Home Assistant's own documentation states that the 'for:' option on triggers will not survive a Home Assistant restart or an automation reload, and running delay and wait_for_trigger steps get cut off the same way. Since updates cause regular restarts, automations should not rely on remembering elapsed wait states across a restart. Developers building reliable Home Assistant automations can track quirks like this via daily.dev."}},{"@type":"Question","name":"How do I make a Home Assistant automation recover correctly after a power outage instead of just firing once at a scheduled time?","acceptedAnswer":{"@type":"Answer","text":"Add multiple triggers: the original time trigger, a homeassistant start event trigger, and a state trigger for the device changing from unavailable, then use a time condition to gate whether the action still applies, and set continue_on_error true with restart mode. This way the automation re-evaluates the desired end state instead of firing once and giving up. Those hardening home automation setups against outages can follow similar patterns on daily.dev."}}]}
```

