Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Create Home Assistant Rules From Conversation

Overview

Connect Claude Desktop to Home Assistant's MCP server so Claude reads your devices and history and drafts automations you describe, such as a left-on stove alert, which you add yourself.

Problem or Objective

More in Home and Devices

AI Agents and Models

Tools and Integrations

Tools
Claude Desktop · Home Assistant
Prerequisites
A Home Assistant instance reachable from outside your network, an administrator account for the MCP connection, a power-measuring plug or circuit monitor for the appliance, and Claude Desktop with custom connectors.

How It Works

Add the Model Context Protocol integration in Home Assistant. Reading an entity's history, such as the smart plug or energy monitor on the stove circuit, needs the Home Assistant tool set, which requires an administrator account and sees all entities, not only the ones you expose; turn on the integration's Read-only option so the main URL leaves out tools that change anything, such as Call action. Make your instance reachable from outside, since Claude connects from the cloud, then add it in Claude Desktop under Settings, Connectors as a custom connector and connect. Ask Claude to read the stove circuit's power history and suggest a threshold and a duration that mean the stove is on. Then describe the rule you want, for example: if the stove has been on for 45 minutes and nobody is home, send a phone notification. Ask Claude for the automation in YAML with every entity ID it used. Check each ID, then add the automation in Home Assistant yourself (check whether your automation editor accepts YAML), and test it by recreating the trigger and checking that it fires as expected before relying on it.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up Claude Desktop, Home Assistant.
  2. Connect the toolsConnect the tools this workflow relies on: Claude Desktop, Home Assistant.
  3. Check the prerequisitesA Home Assistant instance reachable from outside your network, an administrator account for the MCP connection, a power-measuring plug or circuit monitor for the appliance, and Claude Desktop with custom connectors.
  4. Gather your detailsCollect what the prompt asks for: Power sensor entity, Days of history to read, Appliance, Rule in plain words.
  5. Run the starter promptPaste the starter prompt below into Claude Desktop and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at home-assistant.io before you rely on it.

Practical Starter Prompt: Draft a Home Assistant automation for me

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
Using the Home Assistant tools, look at the power history of [Power sensor entity] over the last [Days of history to read] days and suggest a power threshold and duration that reliably mean [Appliance] is on. Then draft an automation in YAML that does this: [Rule in plain words]. Use only entity IDs you can see, list each one with what it is, and explain how I can test the automation safely. Do not run any action or change any device; I will review the draft, then add and test the automation myself.

Keep the integration's Read-only option and Claude's tool permission prompts on, check every entity ID, add the automation yourself and test that it fires as expected before relying on it.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. Home Assistant's documentation says its MCP server lets an AI app such as Claude control exposed devices and see the current state of the home, with an administrator-only tool set that can read all entities, logs and history and perform any action. It does not describe Claude writing automations, so the drafts and the power threshold are yours to check.

Limitations and Considerations

The Home Assistant tool set this needs can read all entities, logs and history and, without the Read-only option, perform any action; keep Read-only on, and keep Claude's permission prompts on, since Claude asks before it uses a tool unless you choose to always allow it. Claude reaches your instance from the cloud, so use Home Assistant Cloud or another secure remote access method. A rule inferred from power draw is a convenience alert, not a safety device; keep smoke alarms and check the threshold against several days of readings. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Sources

  1. Model Context Protocol - Home Assistant (opens in a new tab)

    Project documentation · home-assistant.io · Undated · Source checked 26 Nov 2026, 23:34 UTC

    What this source supports
    • An AI app such as ChatGPT or Claude can connect to Home Assistant and then control your devices and see the current state of your home.
    • Device control reads and controls the entities you expose to voice assistants; the Home Assistant set can read all entities, logs, and history, list and reload integrations, and perform any action, and only administrators can use it.
    • Claude connects to your MCP server from the cloud, also when you use Claude Desktop; use Home Assistant Cloud or another method of remote access.
    • In Claude Desktop, go to Settings > Connectors and select Add > Add custom connector; Claude asks for your permission before it uses an AI tool, unless you choose to always allow it.
  2. home-assistant/core README (opens in a new tab)

    Project documentation · github.com · Undated · Source checked 26 Nov 2026, 23:34 UTC

    What this source supports
    • Open source home automation that puts local control and privacy first, suited to a Raspberry Pi or a local server.
Report a problem

More with Claude Desktop

Planned, not done

Organize Overdue Tax Records and Locate Missing Receipts

Use Claude Desktop with the Filesystem MCP server to sort a backlog of your own invoices and receipts into years and categories, build an index of every expense, and list which ones still have no receipt.

modelcontextprotocol.io
Planned, not done

Replace Paid Receipt Tracking With a Self-Hosted Finance App

Use Claude Code inside the Claude Desktop app to build a small receipt tracker that runs on your own computer, reads receipt photos with OCR, and exports a yearly CSV for your accountant.

claude.com
Planned, not done

Orchestrate Research and Coding Agents Around Financial Data

Use Claude Code in the Claude desktop app to write and maintain a small team of role-based analysis agents that study a financial research dataset, with you reviewing code and findings.

claude.com

View all: Claude Desktop