call_service_tool
Execute Home Assistant services via the Hass-MCP server. Specify domain, service, and optional data to control or automate smart home devices and workflows.
Instructions
Call any Home Assistant service (low-level API access)
Args: domain: The domain of the service (e.g., 'light', 'switch', 'automation') service: The service to call (e.g., 'turn_on', 'turn_off', 'toggle') data: Optional data to pass to the service (e.g., {'entity_id': 'light.living_room'})
Returns: The response from Home Assistant (usually empty for successful calls)
Examples: domain='light', service='turn_on', data={'entity_id': 'light.x', 'brightness': 255} domain='automation', service='reload' domain='fan', service='set_percentage', data={'entity_id': 'fan.x', 'percentage': 50}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | No | ||
domain | Yes | ||
service | Yes |