I set up Home Assistant voice control for my to-do list — here’s what actually worked


Far too often, I think of something to add to my to-do list, but then by the time I’ve gotten around to opening the list and adding the tasks, I’ve forgotten what it was. I decided to see if I could quickly add tasks to a to-do list with my voice by using Home Assistant.

Why Home Assistant’s built-in commands aren’t enough

The default adds tasks to the shopping list

An iPhone showing a to-do list in Home Assistant with multiple tasks. Credit: Adam Davidson / How-To Geek

Home Assistant has its own voice assistant called Assist. By default, Assist relies on predefined sentence patterns rather than an LLM to interpret what you mean. Instead, it looks for matches between the command that you speak and a file containing predefined sentence templates.

If a match is found, the appropriate action is taken, but if the command doesn’t match one of the predefined sentences, Assist won’t understand the command. It can work well for basic smart home controls that use common patterns, such as “turn on the bedroom light” or “start a five-minute timer.”

The predefined sentences include commands such as “add X to my list.” Unfortunately, the default action for this command is to add something to the native Home Assistant shopping list. While this is really useful for using Assist to add things to your shopping list using your voice, it was of no use for my intended purpose, so I needed to do some customization.

You can hook up Assist to an LLM, which can help it determine your intent using natural language processing. I wanted to see if I could get this working without the help of an LLM.

The Seeed Studio reSpeaker Lite on a white background.

Brand

Seeed Studio

CPU

ESP32-S3R8

The reSpeaker Lite Voice Assistant Kit includes a two-mic array, a pre-soldered XIAO ESP32-S3 controller, and an XMOS XU316 audio processor with onboard natural language understanding, interference cancellation, acoustic echo cancellation, noise suppression, and automatic gain control. Hooked up a 5W speaker, you can create your own local voice assistant that you can connect to Home Assistant via ESPHome.


Using custom sentences in Home Assistant

Teaching Assist how you actually speak

As well as the predefined sentences that Assist uses to match what you’ve said to the right commands, you can also set up your own custom sentences. This gives Assist additional sentences to match against your spoken commands. For example, I could add a custom sentence such as “add [task] to my important tasks”.

These custom sentences can then be referenced by an intent script, which translates the matched command into a specific action. In this case, the intent would be to create a new to-do item using the [task] data.

This allows me to decide exactly how I want to ask for to-do list items to be added, and exactly how those tasks are then added to the appropriate list. It lets me create my own custom voice commands and define what those commands do.


Pi-Hole content blocker with the Star Trek LCARS theme applied.


5 Home Assistant integrations that make my smart home feel like it came from the future

The future is now, old man.

Generating sentence variations is now a lot easier

An AI chatbot can do the hard work

Claude Code terminal running on an iPad with a keyboard case on a wooden desk. Credit: Patrick Campanale / How-To Geek

The problem with using custom sentences is that we don’t always ask for things in the same way. I might not remember that I need to use the exact phrase “add [task] to my important tasks,” and I might say something such as “put [task] on my important task list” instead. Since this sentence doesn’t match the pattern of the custom sentence, Assist won’t recognize it, and it won’t add anything to my to-do list.

A simple way to solve this problem is to add variations of how you might say the phrase to your custom sentences. I can add “put [task] on my important task list” to the list of custom sentences and have the intent script perform the same action if that phrase is recognized. I can then say either phrase to add an item to my to-do list.

The more variations I add, the more different phrasings I can cover, but thinking up all the different options, typing them out, and pasting them into Home Assistant can get pretty tedious. Thankfully, these days there’s a much easier way.

This is the kind of text-based task that an LLM is perfect for. I asked Claude to generate alternative ways of asking to add tasks to my important task list, gave it the format required for custom sentences, and it generated a ton of different variations that I then pasted into Home Assistant.

Custom sentences aren’t perfect

They’re good enough for what I wanted

An Echo Show 5 showing a reminder with incomplete to-do list tasks. Credit: Adam Davidson / How-To Geek

On the whole, the system works really well. I can say, “Hey Jarvis, add ‘write an article about setting up voice control for my to-do list’ to my important tasks,” and remarkably, it will understand that the entire wall of text in the middle of that request is the task that I want to add.

When I use alternative phrasing, it usually works; I don’t have to worry about remembering any specific way of asking. It’s not perfect, however. Occasionally, it will fail if the phrase I used is one that Claude and I both failed to think of, but the vast majority of the time, it does exactly what I need.


Local voice control doesn’t have to rely on AI

Without the help of AI, local voice assistants still aren’t as capable as cloud-based options such as Alexa. If you want them to do specific tasks, however, then they can do the job well. It takes a little more setup, but the results can be solid. Now what was it I was going to add to my to-do list again?



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


As someone who finds multi-leveled amusement in things that are taboo and inappropriate, I love a good dark comedy. Through sharp, cynical wit, they highlight and critique the absurdities of life while also serving as bridges between comedies and tragedies, with intentional goals of provoking thought from discomfort while simultaneously providing a cathartic release.

As we slide into this special mid-April weekend, we’re doing so with three darkly hilarious shows on Amazon Prime Video—our top pick being a newly released series inspired by true events.

3

Weeds

Illegal suburban activity with biting humor

The two-time Emmy Award-winning show Weeds is a darkly hilarious, must-see suburban satire that took a simple comedic premise to an unexpected place. Its complex narrative revolves around an upper-middle-class mother who turns to selling marijuana to support her family in the wake of her husband’s death. The Institute’s Mary-Louise Parker stars alongside Jeffrey Dean Morgan, Bob Odenkirk, Jennifer Jason Leigh, the late Kevin Nealon, and more.

When her husband dies, housewife Nancy Botwin (Parker) is buried under a mound of debt, with a family to support and an expensive lifestyle in an elite Southern California neighborhood. Needing money fast, she starts slinging weed on the DL with her brother-in-law’s friend, Conrad (The 40-Year-Old Virgin‘s Romany Malco), and his family. As the story unfolds, audiences get a fascinating look at how the maven of Mary Jane and her family engage with and push against the status quo and societal expectations of the time. It also explores immigration, privilege, body-shaming, religion, sexuality, and the war in Iraq.

Though the eight-part show is genuinely laugh-out-loud funny, contains an easy-to-root-for protagonist, and is riddled with the kinds of dramatic twists you’d see in a soap opera, we’re still unpacking all the ugly societal truths its narrative calls out, including the ways in which the suburbs push conformity on the middle class. You’ll love the biting satirical humor, dysfunctional family dynamics, and all the questionable moral decisions.

2

The Horror of Dolores Roach

A comedic descent into becoming a serial killer

A dark comedy-horror series acting as a modern-day Sweeney Todd tale, The Horror of Dolores Roach is set in gentrified Washington Heights in New York City and is an urban legend created by Aaron Mark, who also developed the story into a one-woman off-Broadway play as well as a popular Spotify podcast. Fans of shows like Dexter and Hannibal will love it.

After 16 years in prison, former marijuana dealer Dolores (Justina Machado) seeks a new life upon her release, only to find everything about the life she knew destroyed. With nowhere to go, she lives and works as an unlicensed masseuse in the basement of a friend’s empanada shop. When her stability is threatened and her desperation for revenge and survival awakens, Dolores experiences outbursts of murderous rage. To help keep her safe, her friend Luis (New Amsterdam‘s Alejandro Hernandez) chops up her victims’ bodies and uses them as a secret ingredient in his empanada fillings.

These modern Sweeney Todd-like episodes are fast-paced with a 30-minute runtime and a campy, entertaining tone, so the one-season show makes for a quick, easy binge in its satirical take on gentrification and its thematic explorations of wrongful conviction and survival.

1

Population: 11

Comedy meets thriller meets true crime

A very newly released comedy-crime series, Population: 11 is an Australian-based story about a man searching for his estranged, now-missing father in an extremely tiny Outback town with a population of 12 people. Though the premise is quirky, it is loosely inspired by true events and heavily influenced by the 2017 vanishing of a man and his dog without a trace from a small Australian Outback town with 11 residents, where local feuds made everyone a suspect.

American Andy Pruden (Superstore‘s Ben Feldman) travels to the remote, desolate Outback town to visit his estranged father. Upon his arrival, he learns his father has vanished into thin air. None of the town’s 11 residents, who all seem to harbor secrets and what Andy calls “murderer energy,” know his whereabouts. After meeting local podcaster Cassie (Gold Diggers’ Perry Mooney), the two decide, along with a “motley crew” of locals, to investigate what’s really going on.

The show does an excellent job of balancing tension with well-timed wit, and its peculiar blend of, at times, violent, dark comedy is rooted in an underlying foundation of oddball sweetness that keeps you engaged from start to finish. If you like peppy, quirky, fast-paced mysteries chock-full of cleverness and suspense, you’ll enjoy Population: 11, especially if you are a fan of shows like The Tourist. With just 12 half-hour episodes, you can binge this engaging series in one afternoon.


Though Prime Video recently increased its fees, don’t let that deter you from keeping your subscription, as there are variably priced options. Plus, with all the new content set to come our way soon, you don’t want to be left out on all the fun!

The Prime Video logo.

Subscription with ads

Yes, via Prime membership or $9/month

Simultaneous streams

3




Source link