- Add detailed documentation for various tools and management interfaces - Create development best practices and interface documentation - Expand tools section with device management, automation, and event subscription guides - Include configuration, usage examples, and error handling for each tool - Update MkDocs navigation to reflect new documentation structure
2.9 KiB
2.9 KiB
Home Assistant MCP Tools
This section documents all available tools in the Home Assistant MCP.
Available Tools
Device Management
-
- List all available Home Assistant devices
- Group devices by domain
- Get device states and attributes
-
- Control various device types
- Support for lights, switches, covers, climate devices
- Domain-specific commands and parameters
History and State
-
- Fetch device state history
- Filter by time range
- Get significant changes
-
- List available scenes
- Activate scenes
- Scene state information
Automation
-
- List automations
- Toggle automation state
- Trigger automations manually
-
- Create new automations
- Update existing automations
- Delete automations
- Duplicate automations
Add-ons and Packages
-
- List available add-ons
- Install/uninstall add-ons
- Start/stop/restart add-ons
- Get add-on information
-
- Manage HACS packages
- Install/update/remove packages
- List available packages by category
Notifications
- Notify
- Send notifications
- Support for multiple notification services
- Custom notification data
Real-time Events
-
- Subscribe to Home Assistant events
- Monitor specific entities
- Domain-based monitoring
-
- Get SSE connection statistics
- Monitor active subscriptions
- Connection management
Using Tools
All tools can be accessed through:
- REST API endpoints
- WebSocket connections
- Server-Sent Events (SSE)
Authentication
Tools require authentication using:
- Home Assistant Long-Lived Access Token
- JWT tokens for specific operations
Error Handling
All tools follow a consistent error handling pattern:
{
success: boolean;
message?: string;
data?: any;
}
Rate Limiting
Tools are subject to rate limiting:
- Default: 100 requests per 15 minutes
- Configurable through environment variables
Tool Development
Want to create a new tool? Check out:
Examples
Each tool documentation includes:
- Usage examples
- Code snippets
- Common use cases
- Troubleshooting tips
Support
Need help with tools?
- Check individual tool documentation
- See Troubleshooting Guide
- Create an issue on GitHub