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.
Say what should happen.
The workflow builds itself.
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
delete_stateDelete stateDELETERemoves an entity from the Home Assistant state machine.get_stateGet stateGETReturns the current state and attributes of one Home Assistant entity.list_statesList statesGETReturns the current state and attributes of every Home Assistant entity.set_stateSet statePOSTWrites a state value into the Home Assistant state machine for an entity.
Config, 2 operations
check_configCheck configPOSTValidates the Home Assistant configuration and reports any errors.get_configGet configGETReturns the Home Assistant version, location, unit system and loaded components.
Event, 2 operations
fire_eventFire eventPOSTFires a custom event on the Home Assistant event bus.list_eventsList eventsGETReturns the Home Assistant event types and their listener counts.
Service, 2 operations
call_serviceCall servicePOSTCalls a Home Assistant service to control devices or run integrations.list_servicesList servicesGETReturns every callable Home Assistant service grouped by domain.
Calendar, 1 operation
list_calendarsList calendarsGETReturns the Home Assistant calendar entities.
Calendar event, 1 operation
get_calendar_eventsGet calendar eventsGETReturns the events of a Home Assistant calendar within a time window.
Camera image, 1 operation
get_camera_snapshotGet camera snapshotGETDownloads the current still image from a Home Assistant camera as a file.
History, 1 operation
get_historyGet historyGETReturns recorded Home Assistant state changes over a time period.
Logbook entry, 1 operation
get_logbookGet logbookGETReturns Home Assistant logbook entries for a time period.
Status, 1 operation
get_api_statusGet api statusGETConfirms 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.
