home-assistant-blade-mcp
v0.8.0Home Assistant MCP Server — entities, control, automations, history, energy, multi-site
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ha_info Ha Info
Health check: instances, connection status, HA version, component count, write gate status.
| Parameter | Type | Description |
|---|---|---|
instance | Target HA instance (omit for all) |
ha_config Ha Config
HA configuration: location, units, elevation, currency, time zone, component count.
| Parameter | Type | Description |
|---|---|---|
instance | Target HA instance (omit for all) |
ha_error_log Ha Error Log
Recent error log entries from Home Assistant.
| Parameter | Type | Description |
|---|---|---|
instance | Target HA instance (omit for all) | |
lines | integer | Number of recent log lines |
ha_areas Ha Areas
List all areas with floor assignment and aliases. Uses WebSocket registry. Sorted by area_id ascending.
| Parameter | Type | Description |
|---|---|---|
instance | Target HA instance (omit for all) |
ha_devices Ha Devices
List devices, optionally filtered by area or manufacturer. Uses WebSocket registry.
| Parameter | Type | Description |
|---|---|---|
area | Filter by area_id | |
instance | Target HA instance (omit for all) | |
limit | integer | Max results |
manufacturer | Filter by manufacturer name | |
scope | DD-278 scope tag — home/family/personal accepted; out-of-vocab rejected |
ha_entities Ha Entities
List entities from the registry with metadata (area, device, platform, labels). Uses WebSocket.
| Parameter | Type | Description |
|---|---|---|
area | Filter by area_id | |
domain | Filter by domain (e.g. light, sensor) | |
instance | Target HA instance (omit for all) | |
label | Filter by label | |
limit | integer | Max results |
scope | DD-278 scope tag — home/family/personal accepted; out-of-vocab rejected |
ha_floors Ha Floors
List floors with their level and icon. Uses WebSocket registry. Sorted by floor_id ascending.
| Parameter | Type | Description |
|---|---|---|
instance | Target HA instance (omit for all) |
ha_labels Ha Labels
List all labels with color and description. Uses WebSocket registry. Sorted by label_id ascending.
| Parameter | Type | Description |
|---|---|---|
instance | Target HA instance (omit for all) |
ha_search Ha Search
Find related entities, devices, areas, and automations for a given item. Graph traversal. Outer item-type traversal preserves upstream relevance order; each per-item-type list is sorted ascending.
| Parameter | Type | Description |
|---|---|---|
item_id * | string | ID of the item to find relations for |
item_type * | string | Type to search from: entity, device, area, automation, script, scene |
instance | Target HA instance (omit for all) |
ha_services_list Ha Services List
List available service domains and their services. Use domain= to filter. Deterministic ordering: domains sorted ascending, service names sorted ascending (upheld by format_services).
| Parameter | Type | Description |
|---|---|---|
domain | Filter to a specific domain | |
instance | Target HA instance (omit for all) |
ha_state Ha State
Get current state and attributes of a single entity.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | Entity ID (e.g. light.living_room) |
fields | Specific attributes to include (omit for smart defaults) | |
instance | Target HA instance |
ha_states Ha States
Get states for multiple entities in one call. More efficient than repeated ha_state calls. Returned entities sorted by entity_id ascending (also upheld by format_entity_list).
| Parameter | Type | Description |
|---|---|---|
entity_ids * | array | List of entity IDs |
fields | Specific attributes to include | |
instance | Target HA instance |
ha_states_by_domain Ha States By Domain
Get all entity states in a domain (e.g. all lights, all sensors). Optional area filter.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Entity domain (e.g. light, sensor, climate) |
area | Filter by area_id | |
fields | Specific attributes to include | |
instance | Target HA instance | |
limit | integer | Max results |
scope | DD-278 scope tag — home/family/personal accepted; out-of-vocab rejected |
ha_history Ha History
State change history for entities in a time range. Use minimal=true (default) for token efficiency.
| Parameter | Type | Description |
|---|---|---|
entity_ids * | array | Entity IDs to query history for |
start * | string | Start time (ISO 8601) |
end | End time (ISO 8601, default: now) | |
instance | Target HA instance | |
minimal | boolean | Minimal response (state changes only) |
ha_logbook Ha Logbook
Logbook entries for a time range. Human-readable event descriptions.
| Parameter | Type | Description |
|---|---|---|
start * | string | Start time (ISO 8601) |
end | End time (ISO 8601, default: now) | |
entity_id | Filter by entity | |
instance | Target HA instance | |
limit | integer | Max entries |
ha_statistics Ha Statistics
Recorder statistics (pre-aggregated). More efficient than raw ha_history for trends.
| Parameter | Type | Description |
|---|---|---|
entity_ids * | array | Statistic IDs (usually entity IDs) |
start * | string | Start time (ISO 8601) |
end | End time (ISO 8601, default: now) | |
instance | Target HA instance | |
period | string | Aggregation: 5minute, hour, day, week, month |
scope | DD-278 scope tag — home/family/personal accepted; out-of-vocab rejected | |
types | Stat types: mean, min, max, sum, change |
ha_statistics_list Ha Statistics List
List available statistic IDs and their metadata. Discover what can be queried with ha_statistics. Sorted by statistic_id ascending.
| Parameter | Type | Description |
|---|---|---|
instance | Target HA instance | |
statistic_type | Filter: mean or sum |
ha_calendar_events Ha Calendar Events
Get events from a Home Assistant calendar entity in a time range.
| Parameter | Type | Description |
|---|---|---|
end * | string | End time (ISO 8601) |
entity_id * | string | Calendar entity ID |
start * | string | Start time (ISO 8601) |
instance | Target HA instance |
ha_call_service Ha Call Service
Generic service call. Covers any HA service domain. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Service domain (e.g. light, switch, cover) |
service * | string | Service name (e.g. turn_on, set_temperature) |
data | Service data parameters | |
instance | Target HA instance | |
target | Target: {entity_id, device_id, area_id, label_id} (string or list) |
ha_light Ha Light
Control lights: on/off/toggle, brightness, colour, temperature. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
action | string | on, off, or toggle |
area | Target all lights in area | |
brightness | Brightness 0-255 | |
color_temp | Color temperature in mireds | |
entity_id | Light entity ID | |
instance | Target HA instance | |
rgb_color | RGB color [r, g, b] | |
transition | Transition time in seconds |
ha_climate Ha Climate
Control HVAC: mode, temperature, fan, preset. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
area | Target all climate in area | |
entity_id | Climate entity ID | |
fan_mode | Fan mode: auto, low, medium, high | |
hvac_mode | HVAC mode: heat, cool, heat_cool, auto, dry, fan_only, off | |
instance | Target HA instance | |
preset_mode | Preset: away, home, eco, boost | |
target_temp_high | Upper target for heat_cool | |
target_temp_low | Lower target for heat_cool | |
temperature | Target temperature |
ha_scene Ha Scene
Activate a scene. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | Scene entity ID (e.g. scene.movie_night) |
instance | Target HA instance |
ha_lock Ha Lock
Lock or unlock a door. Security-sensitive: requires HA_WRITE_ENABLED=true AND confirm=true.
| Parameter | Type | Description |
|---|---|---|
action | string | lock, unlock, or open |
area | Target all locks in area | |
code | Lock code if required | |
confirm | boolean | Must be true — security-sensitive operation |
entity_id | Lock entity ID | |
instance | Target HA instance |
ha_alarm Ha Alarm
Arm, disarm, or trigger an alarm panel. Security-sensitive: requires confirm=true.
| Parameter | Type | Description |
|---|---|---|
action * | string | arm_away, arm_home, arm_night, disarm, or trigger |
entity_id * | string | Alarm control panel entity ID |
code | Alarm code if required | |
confirm | boolean | Must be true — security-sensitive operation |
instance | Target HA instance |
ha_automations Ha Automations
List all automations with state (on/off) and last triggered time. Sorted by entity_id ascending.
| Parameter | Type | Description |
|---|---|---|
instance | Target HA instance | |
limit | integer | Max results |
ha_automation_get Ha Automation Get
Get full YAML configuration of an automation by ID.
| Parameter | Type | Description |
|---|---|---|
automation_id * | string | Automation ID (from entity_id after 'automation.') |
instance | Target HA instance |
ha_automation_trigger Ha Automation Trigger
Manually trigger an existing automation. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | Automation entity ID |
instance | Target HA instance |
ha_automation_toggle Ha Automation Toggle
Enable or disable an automation. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | Automation entity ID |
action | string | turn_on or turn_off |
instance | Target HA instance |
ha_automation_create Ha Automation Create
Create a new automation. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
action * | array | Action configuration list |
alias * | string | Human-readable name |
automation_id * | string | Unique ID for the automation |
trigger * | array | Trigger configuration list |
condition | Condition list | |
description | Automation description | |
instance | Target HA instance | |
mode | single, restart, queued, parallel |
ha_automation_delete Ha Automation Delete
Delete an automation. Destructive: requires HA_WRITE_ENABLED=true AND confirm=true.
| Parameter | Type | Description |
|---|---|---|
automation_id * | string | Automation ID to delete |
confirm | boolean | Must be true to confirm deletion |
instance | Target HA instance |
ha_script_run Ha Script Run
Run a script with optional variables. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
script_id * | string | Script entity ID or slug |
instance | Target HA instance | |
variables | Script variables |
ha_template Ha Template
Render a Jinja2 template server-side. Powerful for complex queries without multiple round trips.
| Parameter | Type | Description |
|---|---|---|
template * | string | Jinja2 template string |
instance | Target HA instance (omit for all) |
ha_camera_snapshot Ha Camera Snapshot
Get camera snapshot URL. Returns authenticated proxy URL, not image bytes (token-efficient).
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | Camera entity ID |
instance | Target HA instance |
ha_webhook Ha Webhook
Fire a webhook on the HA instance. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | Webhook ID registered in HA |
data | JSON payload | |
instance | Target HA instance |
ha_events Ha Events
Recent events from the logbook (poll-based). Alias for ha_logbook with event-oriented framing.
| Parameter | Type | Description |
|---|---|---|
start * | string | Start time (ISO 8601) |
end | End time (ISO 8601, default: now) | |
entity_id | Filter by entity | |
instance | Target HA instance | |
limit | integer | Max entries |
ha_notify Ha Notify
Send a notification via HA notify service. Requires HA_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
message * | string | Notification message |
service * | string | Notify service name (e.g. mobile_app_phone) |
data | Extra notification data | |
instance | Target HA instance | |
title | Notification title |