Get started free
All integrations

Home Assistant integration

Home Assistant REST API for a self-hosted instance: read the state of every entity, call services to actually control lights, switches and other devices, fire and list events, read recorded state history and logbook entries, list calendars and their events, download a camera still, validate the configuration and read the instance configuration. Point the credential at your own Home Assistant host and authenticate with a long-lived access token created from your user profile.

16 toolsTokenAPI docs

Common Home Assistant use cases

  • validating a new Home Assistant credential
  • turning a light or switch on from a workflow
  • cleaning up a virtual sensor a workflow created earlier
  • validating the configuration before triggering a restart
  • charting how a temperature sensor moved over the last day
  • checking that an event type has a listener before firing it
  • explaining in plain language why a light turned on last night
  • attaching a camera snapshot to an alert when motion is detected
  • discovering the exact service name and fields before calling it
  • finding the calendar entity identifier before reading its events

What you can do with Home Assistant

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

State, 4 operations

  • DELETEdelete_state

    Removes an entity from the Home Assistant state machine.

  • GETget_state

    Returns the current state and attributes of one Home Assistant entity.

  • GETlist_states

    Returns the current state and attributes of every Home Assistant entity.

  • POSTset_state

    Writes a state value into the Home Assistant state machine for an entity.

Config, 2 operations

  • POSTcheck_config

    Validates the Home Assistant configuration and reports any errors.

  • GETget_config

    Returns the Home Assistant version, location, unit system and loaded components.

Event, 2 operations

  • POSTfire_event

    Fires a custom event on the Home Assistant event bus.

  • GETlist_events

    Returns the Home Assistant event types and their listener counts.

Service, 2 operations

  • POSTcall_service

    Calls a Home Assistant service to control devices or run integrations.

  • GETlist_services

    Returns every callable Home Assistant service grouped by domain.

Calendar, 1 operation

  • GETlist_calendars

    Returns the Home Assistant calendar entities.

Calendar event, 1 operation

  • GETget_calendar_events

    Returns the events of a Home Assistant calendar within a time window.

Camera image, 1 operation

  • GETget_camera_snapshot

    Downloads the current still image from a Home Assistant camera as a file.

History, 1 operation

  • GETget_history

    Returns recorded Home Assistant state changes over a time period.

Logbook entry, 1 operation

  • GETget_logbook

    Returns Home Assistant logbook entries for a time period.

Status, 1 operation

  • GETget_api_status

    Confirms the Home Assistant API is reachable and the token is accepted.

Use Home Assistant from Claude Code, Cursor or Codex

Connect Home Assistant in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Home Assistant operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Home Assistant

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Home Assistant once

    Add your Home Assistant connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Home Assistant integration FAQ

What can you do with the Home Assistant integration?
LiveContext exposes 16 operations on Home Assistant, covering state, config, event and service. Common uses include validating a new Home Assistant credential, turning a light or switch on from a workflow and cleaning up a virtual sensor a workflow created earlier.

Popular integrations

Browse the whole catalog