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.
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 mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Home Assistant
Create your workspace
Sign up free. Nothing to install.
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.
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
Instagram API with Instagram Login (graph.instagram.com). Manage a Business/Creator Instagram account…
Messaging platform API for building bots and integrations. Send messages, manage chats and channels, handle…
Google's video platform API for accessing video, channel, playlist, and comment data
Social media platform API for content creators and businesses. Access user info, manage videos, get…
Social media platform API for posting, reading, and managing Twitter/X content. Post tweets, read timelines,…
Google email service API for sending, receiving, and managing emails. Access messages, threads, labels,…
AI API from xAI (Elon Musk's AI company) powering Grok models. Access state-of-the-art language models with…
Professional networking platform API for managing profiles, connections, and content. Share posts, manage…