
Claude can turn a loosely phrased request about sunshine and a home battery into a proposed boiler automation, then ask permission before creating it. Smart Life built the assistant around Home Assistant, combining conversational follow-ups with access to devices and sensor data. Unlike the tightly phrased commands often associated with Alexa or Google Assistant, the setup does not require you to remember every entity name. Discover how the connection works and what it costs to run.
Follow-Up Questions Put Home Data To Work
TL;DR Key Takeaways :
- Claude can answer follow-up questions using Home Assistant sensor data and propose automations.
- Simple commands can stay with Home Assistant, avoiding a Claude API call.
- The setup uses Anthropic and HA MCP integrations, a phone shortcut and Sonos for spoken responses.
- API costs depend on the model, tools and information processed; limiting device access reduced the data sent.
- Review automation safety conditions before enabling changes to critical systems.
Home Assistant voice control can handle a straightforward request without sending it to Claude. In the setup, asking to turn on the living-room lamp goes directly to Home Assistant, producing a fast response without a cloud API charge. More complicated questions go to Claude, with conversation context retained for a few minutes so a follow-up can build on the previous answer.
That context is useful when questions draw on several readings. Claude can read data from the inverter and battery system alongside a solar forecast, then combine those figures to explain what they might mean for the home. Forecasts remain estimates, so the answer depends on both the current readings and production that may not materialize.
Asked whether the battery would last until tomorrow, the assistant reported an 83% charge and about 22 kWh of solar production still expected that day. It said the battery would easily last until tomorrow and gave a next-day forecast of about 35 kWh from the east and west arrays combined. When asked when to run the boiler the next day, it recommended roughly 11:00 to 3:00, when the panels peak, citing the 35 kWh forecast against 26 kWh for that day.
A Conversation Can Become An Automation
After the energy discussion, a request to start the boiler when the battery was full and there was plenty of sunshine produced a proposed automation. It would turn on the boiler socket at a battery level of 95% or more, with solar power above 3 kW, between 10:00 a.m. and 4:00 p.m. Claude identified the relevant devices and battery sensors without being given their names, using Model Context Protocol tools rather than requiring manual YAML, entity ID searches or the automation editor.
Claude also noticed an existing solar surplus controllable automation that already managed the boiler and asked whether to proceed. After confirmation, it created and activated an automation called “boiler on when battery full and sunny.” The existing automation remained responsible for switching the boiler off, including at sunset.
The same access can help investigate an automation that fails. Given relevant automation traces and history, Claude can examine a problem such as a hallway motion light not turning on and help explain what happened. This brings home data into the conversation as well as allowing requests to change it.
Connect The Conversation Agent And Phone
The setup combines Home Assistant’s official Anthropic integration with the community HA MCP integration, a voice script, a phone shortcut and Sonos. Claude Cowork offers a different place to work with Claude, while this configuration connects it to the home. A free PDF guide provides the complete configuration, including the scripts and commands.
These are the main parts of the configuration, in order:
- Create an API key in the Anthropic console, add it to the Home Assistant Anthropic integration and select the Claude model to use.
- Add the HA MCP integration so Claude can use tools to read sensors, inspect automations and history, control devices and create or modify automations without a separate computer running.
- Create a Home Assistant script that receives text from the phone and routes simple commands to Home Assistant and more complicated questions to Claude.
- Configure Home Assistant to convert the response to speech and play it through Sonos. Its integration can announce a response while music is playing and resume the music afterward; the speaker needs neither Claude installed nor a microphone.
- Create an Apple shortcut that listens to speech, converts it to text and sends it to Home Assistant. Assign it to the iPhone action button, then press the button and speak.
On the iPhone 17 Pro used in the setup, the action button starts listening without a wake word, and the response comes through Sonos. On a supported iPhone without an action button, the shortcut can instead be assigned to Back Tap for a double or triple tap, or launched from the home screen or lock screen.
On Android, Home Assistant Assist can be launched through a shortcut, widget or the phone’s digital assistant controls, depending on the device. Connecting it to the same Claude workflow may require additional configuration. Other languages can be configured too, provided both the chosen speech-recognition and text-to-speech services support them.
Movie Recommendations Need A Separate Playback Script
Beyond home controls, Claude can search the web for movies available on Netflix, check ratings and choose a title that fits a request. A Home Assistant watchlist records movies played through the assistant so it can avoid recommending them again. Asked for a family movie for Sunday afternoon, it suggested Dogman, an animated comedy about a half-dog, half-cop superhero, and reported a 6.3 IMDb rating.
After the selection was accepted, the assistant turned on the Philips Android TV, opened Netflix and started the movie. To do this, Claude finds the Netflix movie ID and passes it to a separate Home Assistant script, which turns on the TV and sends a direct link to the movie in the app. Create that script to accept the ID, and add a watched-movies list to track what the assistant has played.
Netflix does not offer an official way to perform this playback flow. The working solution uses a special link format, and the TV needs the link sent twice when starting from standby. Integration with streaming services such as Spotify has also been described as a way to provide personalized playlist recommendations.
Limit API Spending And Review Device Access
Claude API usage is billed separately from a Claude Pro subscription, and the cost depends on usage, the model, the number of tools and the amount of information processed. During the first morning of testing, approximately $5 was spent in a few hours because every command, including simple lamp controls, went to Claude with information about roughly 300 devices.
The configuration was changed so Home Assistant handled simple commands and Claude had access to around 60 relevant devices, reducing the information sent with each request. With the model used in the setup, a more complicated battery question cost around 15 cents, while a movie recommendation using web search could cost a little more. Those are testing costs rather than fixed prices.
A smaller model such as Claude Haiku can cost significantly less. Spending controls were configured in the Anthropic console and automatic credit reloading was disabled to help manage costs. Claude runs in the cloud, so its functions require an internet connection and information made available to it is sent to Anthropic; the overall assistant is not completely local.
We would begin with a limited set of relevant devices and let Home Assistant handle simple commands, rather than sending every request and the full device list to Claude. The early spending and the later battery-question cost show why it is worth watching usage as you build the setup. The ability to propose an automation is useful, but permission to create one should remain under your control, especially when the request affects equipment such as a boiler.
Review new automations before enabling them, particularly when they involve heating, electricity, security or other critical systems. For a boiler, check the safety conditions and what happens if the battery level changes. The setup instructs Claude to request confirmation before important changes, but a confirmation prompt is not a substitute for proper safety conditions.
More on Claude:
- Build an ESP32-P4 Home Assistant Panel for Room Controls
- Why the Home Assistant Green Price Hike Points to a Bigger Problem
- IKEA Smart Home Without Dirigera : Homey Pro, Home Assistant & HomeKit
- Smart Home Assistants Compared Homey Pro vs Home Assistant : Find the Perfect Fit for Your Home
Media Credit: Smart Life
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.