Mastering a power outage in the smart home
Thriving Without Power
A power failure can cause the IQ of a smart home to plummet suddenly. An emergency power supply and a script on the SmartThings platform can prevent a total outage and inform the owner. The polyglot Perlmeister embarks on a foray into the territory of the Groovy scripting language in this issue.
Hard to believe but a sad reality: Even in major cities in the United States, power outages from one second to the next are not uncommon, whether because of the wild mess of overhead cables stretching between houses in the City of San Francisco (Figure 1) or because the electrical infrastructure of the substations is outdated and starting to crack under the strain. You should always expect the worst as a smart homeowner and implement strategies, just in case the power stops flowing for a few hours. Even if you live in a country with a more stable power supply, you will still appreciate the fail-safes introduced here. Then, if a shrewd burglar takes the precaution of removing a fuse before invading your privacy, they will definitely get a good scare when the alarm still goes off!
Emergency Power
In case of an outage, I want my key automation components, such as the controlling hub and its connection to the Internet – including the path thereto encompassing the router and cable or DSL modem – to continue working without electricity. If you limit yourself to keeping just a few essential components alive during a power outage, the consumption adds up to just a few watts; even a cheap battery-backed emergency power supply for less than $50 can keep this minimal infrastructure alive for a while.
Choosing the Hardware
Devices known as uninterruptible power supplies (UPSs) typically specify their characteristics in volt-amperes (VA), which is unfortunately not sufficiently helpful to answer the most fundamental question: How long will they keep a consumer with a known power consumption rate running? To find out, you need to know more about the fundamentals of the internal batteries and plug this information into a formula [1] that will give you the number of minutes to the point of exhaustion.
Initially, I bought a cheap UPS for $30, but it kept bugging me with senseless beeping during power outages and wouldn't even let me disable it, because, apparently, it knew better. Finally, I grudgingly plunked down $120 for a solidly crafted UPS by Tripp-Lite (Figure 2), which digitally indicates how many minutes of juice are left for battery-backed operation and has a "quiet" key, which ensures that the device does its job without beeping during a power outage. The wonders of technology!
Smart Home Despite Outage
As mentioned in a previous article [2], the SmartThings home automation kit I set up includes a controlling hub and a set of four different sensors and actuators; until recently, it was only available in the United States. In September 2015, a customized version of the SmartThings hub starter kit [3] for the UK was released for the European market; you can order it on Amazon for about $199 (EUR215/£199). Additional suitable sensors and actuators that support the Z-Wave or ZigBee Protocol are available for about $40 (EUR40/£30).
Most of the components in this smart home solution are battery operated; even the controller is battery-buffered, and when the mains voltage goes missing, no further measures are needed to switch seamlessly to battery. Also, my Arlo wireless surveillance cameras [4] run on battery power, so the UPS only needs to back up the Arlo base station, the router, and the ISP modem. Virtually everything continues running for up to three hours with this simple solution if the power fails. Outages of more than an hour are thankfully rare, even out here in the Wild Wild West.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.
-
Rhino Linux Announces Latest "Quick Update"
If you prefer your Linux distribution to be of the rolling type, Rhino Linux delivers a beautiful and reliable experience.
-
Plasma Desktop Will Soon Ask for Donations
The next iteration of Plasma has reached the soft feature freeze for the 6.2 version and includes a feature that could be divisive.
-
Linux Market Share Hits New High
For the first time, the Linux market share has reached a new high for desktops, and the trend looks like it will continue.
-
LibreOffice 24.8 Delivers New Features
LibreOffice is often considered the de facto standard office suite for the Linux operating system.
-
Deepin 23 Offers Wayland Support and New AI Tool
Deepin has been considered one of the most beautiful desktop operating systems for a long time and the arrival of version 23 has bolstered that reputation.
-
CachyOS Adds Support for System76's COSMIC Desktop
The August 2024 release of CachyOS includes support for the COSMIC desktop as well as some important bits for video.
-
Linux Foundation Adopts OMI to Foster Ethical LLMs
The Open Model Initiative hopes to create community LLMs that rival proprietary models but avoid restrictive licensing that limits usage.
-
Ubuntu 24.10 to Include the Latest Linux Kernel
Ubuntu users have grown accustomed to their favorite distribution shipping with a kernel that's not quite as up-to-date as other distros but that changes with 24.10.