Skip to main content
Glama

Hass-MCP

entity_action

Control Home Assistant entities by performing actions like on, off, or toggle. Specify the entity ID and optional parameters such as brightness or temperature to customize the operation. Integrate with Hass-MCP for direct smart home automation.

Instructions

Perform an action on a Home Assistant entity (on, off, toggle)

Args: entity_id: The entity ID to control (e.g. 'light.living_room') action: The action to perform ('on', 'off', 'toggle') params: Optional dictionary of additional parameters for the service call

Returns: The response from Home Assistant

Examples: entity_id="light.living_room", action="on", params={"brightness": 255} entity_id="switch.garden_lights", action="off" entity_id="climate.living_room", action="on", params={"temperature": 22.5}

Domain-Specific Parameters: - Lights: brightness (0-255), color_temp, rgb_color, transition, effect - Covers: position (0-100), tilt_position - Climate: temperature, target_temp_high, target_temp_low, hvac_mode - Media players: source, volume_level (0-1)

Input Schema

NameRequiredDescriptionDefault
actionYes
entity_idYes
paramsNo

Input Schema (JSON Schema)

{ "properties": { "action": { "title": "Action", "type": "string" }, "entity_id": { "title": "Entity Id", "type": "string" }, "params": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": null, "title": "Params" } }, "required": [ "entity_id", "action" ], "title": "entity_actionArguments", "type": "object" }

Other Tools from Hass-MCP

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/voska/hass-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server