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
Name | Required | Description | Default |
---|---|---|---|
action | Yes | ||
entity_id | Yes | ||
params | No |