CA
  
You are currently viewing the Canada version of the site.
Would you like to switch to your local site?
17 MIN READ TIME

HOME ASSISTANT

Make your home as smart as possible

Exploring NFC tags, energy monitoring and the Wireguard VPN to add further capabilities to your smart home with Matthew Holder.

OUR EXPERT

Matt Holder has been a fan of the open source methodology for over two decades and uses Linux and other tools where possible.

QUICK TIP

While a lot of configuration takes place using the GUI, YAML is still required in places. See https://bit.ly/lxf289-yaml-ha.

The previous two articles of this series introduced a large number of concepts, which are important in gaining an understanding of how Home Assistant works and how devices can integrate with it.

Other items that have been covered include using data from entities in automations, adding users to the system, customising Lovelace dashboards, adding hardware on the local network and adding integrations that pull in data from online sources.

This article will cover the Energy tracking dashboard in Home Assistant, how to use power-monitoring data from smart plugs to create automations, which can alert you when appliances such as the washing machine or dishwasher has completed a cycle. Also being covered is the WireGuard VPN, which can be used to securely access the system from outside of the home network, and the usage of RFID tags, which can be scanned by a smartphone and used to trigger automations.

As previously discussed, the Raspberry Pi is an excellent device to run Home Assistant. However, the unreliability of micro SD cards can let it down. It’s possible to boot the Raspberry Pi directly from an SSD, which this author currently does.

More recent Raspberry Pi firmware makes direct boot from USB possible for some models. This was used with a USB SSD to enable Home Assistant to be installed directly to the SSD – no Micro SD card was needed. To configure this, a Micro SD card was written with the Bootloader>USB boot image file to configure the Pi in the correct way. This can be written to the SD card by using the Raspberry Pi Imager tool (www.raspberrypi.com/software): under Operating System scroll down to Misc Utility Images and click to open the next menu. From this menu, USB boot can be selected.

The target device can then be selected (be careful that the correct device is selected because this operation will wipe whichever device is chosen), followed by clicking the Write option. Once written, the Micro SD card can then be inserted into the Raspberry Pi and it can then be switched on. Once completed the activity light will flash a uniform pattern and if a HDMI cable is connected the screen will turn green.

With this step completed, the Home Assistant image can be written to the USB SSD. This can be done by following the usual instructions, with special care being taken to select the correct device to write the image to. When booting from an SSD for the first time, Home Assistant will take the necessary steps to ensure that space on the entire drive can be used. If being used for a new installation, simply complete the welcome wizard. If replacing the Micro SD card of an existing installation, then a recent backup file can be used to restore everything to its previous state.

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for $1.39
SUBSCRIBE NOW
30 day trial, then just $13.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
June 2022
VIEW IN STORE

Other Articles in this Issue


WELCOME
Jammy upgrades
It’s LTS time again! If you’re down with
MEET THE TEAM
With this issue’s focus on the latest LTS release of Ubuntu, will you be upgrading to version 22.04 Jammy Jellyfish? If not, what are you installing instead?
REGULARS AT A GLANCE
Newsdesk
FOSS community stands up to Russian atrocities
VisionFive V1 RISC-V SBC on sale
After the cancellation of the BeagleV StarFive, a new SBC based on a RISC-V processor is now on sale
Linux comes to the Apple M1
The first Asahi Linux Alpha release is very promising
OPINION
FILESYSTEM MONITORING Gabriel Krisman Bertazix is a senior
Rolling Rhino announced
A new community remix of Ubuntu turns the popular distro into a rolling-release project
Fedora drops 32-bit app support
Others are likely to follow the mainstream distro’s actions
Drawing 1.0.0 released
The open-source MS Paint alternative hits a milestone
Distro watch
What’s down the side of the free software sofa?
KERNEL WATCH
Jon Masters summarises the latest happenings in the Linux kernel, because someone has to…
Answers
Got a burning question about open source or the kernel? Whatever your level, email it to lxf.answers@futurenet.com
Mailserver
WRITE TO US Do you have a burning
FireDM
DOWNLOAD MANAGER
Mplayer
Version: 1.5 Web: http://mplayerhq.hu R ecently there’s
Rnote
Version: 0.3.5 Web: https://github.com/flxzt/rnote R unning Linux
Mailspring
Version: 1.10 Web: https://github.com/foundry376/mailspring M ailspring is
AirSane
Version: 0.3.2 Web: https://github.com/simulpiscator/airsane A irSane is
Fbcat
Version: 0.5.2 Web: https://github.com/jwilk/fbcat T he Linux
Topgrade
Version: 8.2.0 Web: https://github.com/r-darwish/topgrade O ne of
Superdux
Version: GIT Web: https://github.com/snowymouse/superdux S uperdux is
Winterapples
Version: GIT Web: https://gitlab.com/darkforce/winterapples M any of
Casper-fs
Version: 0.2 Web: https://github.com/CoolerVoid/casper-fs N ormally, you’d
Xplora
Version: GIT Web: https://github.com/hicodersofficial/xplora T his isn’t
REVIEWS
REVIEWS
Seagate EXOS 20TB
HostGator
A basic website hosing option for small and medium businesses that Shashank Sharma thinks should be on your short list
Linux Mint DE 5
Whenever there’s a new LMDE release, Mayank Sharma can’t help but think of the old adage: “It’s the thought that counts.”
Fedora 36
Mayank Sharma calls the latest Fedora release just as boring as its predecessors. But is that a bad thing?
Ubuntu 22.04 LTS
If there’s one thing Mayank Sharma likes even less than Ubuntu, it’s Ubuntu LTS releases, which are notably stable but not notable generally
A Musical Story
Fun, folk and funk are three things that Management hate with a passion, so Tom Sykes has turned down his speakers
The Last Cube
Management isn’t keen on sentient anything, it’s bad for productivity, so Neil Mohr keeps the thinking to a minimum which isn’t helping here at all…
ROUNDUP
Roundup
Open source app stores
First-launch experience
Do the stores load quickly, so that you’re not left watching the clock?
App description
How much useful information is in each product card?
Variety of app sources
Do these stores give you enough choice?
System upgrade capability
Can our stores upgrade not just single programs, but the whole OS?
Task queueing
Can you tell your software store to batch-install new programs?
Reliability
How stable are the software stores that you want to rely on?
Extra features
What else can each store do and make you want to use it?
The Verdict
Open source app stores
BULLET-PROOF
UBUNTU 22.O4
Of jams and jellies
It’s Ubuntu LTS time, so let’s see what will be the shape of Ubuntu for the next few years…
Escape Windows
Whether you’re a complete novice or Windows has driven you to seek out other operating systems, Ubuntu can help
Customise Ubuntu
Discover new software. Change settings. Install a new desktop (or three)
Tweaking and rewiring
Some final edits to perfect your installation, plus a little Ubuntu nostalgia
Pi USER
BITTEN BY THE FOSS BUG
Has worked in IT for 15 years, with
Consumers last in the queue for Pi resupplies
After warnings early in 2022, stock remains a challenge for the Raspberry Pi Foundation
Arm powered
Not that sort!
It’s another SBC
New Portenta X8 board
Armbian 22.02 Jammy XFCE
Les Pounder takes a look at a distro that supports 64 different Linux single board computers, and now he has to buy them all
Arducam Auto-focus 16MP Camera module
Quick-off-the-draw Les Pounder can’t shoot shots faster than this camera
Build a Python-based reaction game
Les Pounder goes back to the early days of the Raspberry Pi to look at a board that made a big difference to his career
TOP OF THE FOSS
GET PACKING!
Keen to give back to the FOSS community, but don’t know where to start? Mike McCallister shows you one way to do a good deed
TUTORIALS
Bringing stories to the command line
Shashank Sharma knows that the Linux CLI, once seen as the domain of the uber geek, also serves as the pathway to the myriad worlds of stories
Quickly track down & delete unwanted files
Nick Peers takes a deep dive into this fast-evolving and brilliant tool for finding and removing redundant files from your PC
Emulate the classic Amstrad PCW
Les Pounder goes back to school, a time when his form room was full of Z80 computers and noisy dot matrix printers
Get more from Wine and Windows
Michael Reed teaches you everything you need to know about using Microsoft Windows compatibility system WINE with some handy tips
Take full control over your email
David Rutland does the impossible and sets up a VPS-based email server and a webmail front-end, then writes a tutorial about it – all in one afternoon
Easily create instant virtual machines
Stuart Burns helps you to master Multipass, the virtualisation platform that runs on any desktop platform
IN-DEPTH
ALL HANDS ON DECK
Jonni Bidwell pries Valve’s Steam Deck from PC Gamer’s cold, anthropomorphised hands and gets his game on
CODING ACADEMY
Develop Linux filesystem tools in Rust
Mihalis Tsoukalos explains how to manipulate and examine files and directories in Rust so you can write filesystem tools
Update and improve old blackjack code
Updating old projects can be fun and educational. Andrew Smith ensures that your cards are dealt correctly at any resolution
Chat
X
Pocketmags Support