π v1.4.0 - The most advanced Home Assistant AI configuration tool with conversational chat interface!
π Documentation & Demo | π¦ Download Latest | π¬ Community
Aight is a powerful Home Assistant integration that uses AI to help you create configurations through natural language. No more YAML editing - just chat with the AI and get working configurations instantly!
π¬ Conversational Chat Interface: Chat naturally with AI - no forms, no interruptions, just results!
π€ Smart Entity Detection: Automatically finds relevant entities based on your prompt
π One-Click Deployment: Deploy automations, scripts, and scenes directly to Home Assistant
π Iterative Refinement: Say "also turn on the TV" or "but only on weekdays" to modify configurations
π Multi-LLM Support: OpenAI, Anthropic Claude, Google Gemini, Groq, Ollama, and OpenRouter
π οΈ Advanced Error Handling: Detailed error logs with progressive disclosure for easy debugging
π± Mobile Responsive: Beautiful interface that works perfectly on phones, tablets, and desktops
- Automations: Create complex automations with triggers, conditions, and actions
- Scripts: Build reusable script sequences
- Scenes: Define lighting and device scenes
- Dashboards: Generate Lovelace dashboard configurations
- Cards: Create individual dashboard cards
- Template Sensors: Build template sensors and binary sensors
v1.4.0 includes the revolutionary conversational chat interface:
- π¬ Natural chat experience - just type what you want!
- π― Automatic entity detection - no manual selection needed
- π One-click deployment to Home Assistant
- π Iterative refinement with follow-up messages
- π οΈ Advanced error logging for easy debugging
- π± Mobile-first responsive design
-
Install HACS if you haven't already: HACS Installation
-
Add this repository to HACS:
- Open HACS in your Home Assistant instance
- Go to "Integrations"
- Click the "..." menu in the top right
- Select "Custom repositories"
- Add this repository URL:
https://github.com/toml0006/aight - Category: "Integration"
- Click "Add"
-
Install the integration:
- Search for "Aight" or "AI Configuration Assistant" in HACS
- Click "Download"
- Restart Home Assistant
- Copy the
custom_components/ai_config_assistantdirectory to your Home Assistantcustom_componentsdirectory - Copy the contents of the
wwwdirectory to your Home Assistantwwwdirectory - Restart Home Assistant
- Go to Settings β Devices & Services
- Click "Add Integration"
- Search for "Aight" or "AI Configuration Assistant"
- Follow the setup wizard
Choose from supported providers and add your API key:
- Models: GPT-4, GPT-4-turbo, GPT-3.5-turbo
- API Key: Get from OpenAI Platform
- Models: Claude-3 Opus, Sonnet, Haiku
- API Key: Get from Anthropic Console
- Models: Gemini Pro, Gemini Pro Vision
- API Key: Get from Google AI Studio
- Mistral: Mistral Large, Medium, Small
- Groq: Llama3-70B, Mixtral-8x7B
- Ollama: Local models (no API key required)
- Open the Chat Tab: Navigate to "AI Config" panel and click the "Chat" tab
- Just Type: Describe what you want in natural language
- Get Results: The AI automatically detects entities and generates configuration
- Deploy Instantly: Click the Deploy button to add it to Home Assistant
- Refine as Needed: Say "also turn on the TV" or "but only on weekdays"
You: Alert me when the garage door is left open for more than 10 minutes
π€ Assistant: Great! I've created an automation for you:
[Shows YAML configuration with Deploy button]
You: Also send the alert to my phone
π€ Assistant: I've updated the automation to include phone notifications:
[Shows updated configuration]
- "reload" - Reload automations after deployment
- "also [action]" - Add additional actions
- "but only [condition]" - Add conditions
- "change [detail]" - Modify specific parts
- Navigate to the "AI Config" panel in your Home Assistant sidebar
- Click the "Form" tab for the traditional interface
- Select the configuration type you want to create
- Describe what you want in natural language
- Click "Generate Configuration"
- Review the generated YAML and live preview
- Copy or save the configuration
Automations:
- "Turn on living room lights when motion is detected after sunset"
- "Send notification when front door is left open for 5 minutes"
- "Turn off all lights when everyone leaves home"
Scripts:
- "Good night routine: turn off all lights and lock doors"
- "Movie mode: dim lights to 20% and turn on TV"
- "Morning routine: turn on coffee maker and bathroom lights"
Dashboards:
- "Create a security dashboard with all cameras and door sensors"
- "Make a climate control panel for all thermostats"
- "Build an energy monitoring dashboard with power sensors"
- Start typing entity names to get intelligent suggestions
- Suggestions are context-aware based on your prompt
- Shows entity states and locations
- See how your configuration will look with real entity data
- Preview automations with current trigger states
- Visualize dashboard layouts
- Built-in YAML syntax validation
- Entity existence checking
- AI-powered logic validation with suggestions
The integration provides several REST API endpoints for advanced usage:
POST /api/ai_config_assistant/generate
{
"prompt": "Turn on lights when motion detected",
"type": "automation",
"context": {}
}
POST /api/ai_config_assistant/validate
{
"config": "yaml configuration",
"type": "automation"
}
POST /api/ai_config_assistant/entity_suggestions
{
"query": "light",
"limit": 10,
"domain_filter": ["light", "switch"]
}
alias: "Motion Light Control"
trigger:
- platform: state
entity_id: binary_sensor.living_room_motion
to: "on"
condition:
- condition: sun
after: sunset
action:
- service: light.turn_on
target:
entity_id: light.living_room_mainalias: "Good Night Routine"
sequence:
- service: light.turn_off
target:
area_id: all
- service: lock.lock
target:
entity_id: lock.front_door
- service: alarm_control_panel.alarm_arm_home
target:
entity_id: alarm_control_panel.home_securityIntegration not loading:
- Check Home Assistant logs for errors
- Ensure all dependencies are installed
- Verify the integration files are in the correct location
API key errors:
- Verify your API key is correct and active
- Check that your account has sufficient credits/quota
- Ensure the selected model is available for your account
Generation not working:
- Check your internet connection
- Verify the LLM service is operational
- Try with different prompts or models
Entities not found:
- Refresh the entity cache by restarting the integration
- Check that entity IDs are correct
- Ensure entities are not disabled
Enable debug logging by adding to your configuration.yaml:
logger:
default: warning
logs:
custom_components.ai_config_assistant: debugContributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License. See the LICENSE file for details.
- β Added user-friendly error messages for common LLM issues (quota, auth, network)
- π³ OpenAI quota exceeded errors now show direct billing link
- π API key errors provide clear configuration instructions
- π Network and timeout errors have helpful messages
- π¬ Service layer now properly surfaces errors to chat UI
- ποΈ Errors appear in chat instead of just logs
- π Added detailed service response logging for troubleshooting
- β Removed test response and restored actual AI configuration generation
- π Added OpenRouter provider support with proper API configuration
- π Improved service logging to be less verbose while maintaining debugging
- π§ Fixed service response detection works perfectly with HA 2025.7
- π οΈ Enhanced error handling and response formatting
- π€ Service now properly calls AI models for real configuration responses
- π¨ Fixed critical issue where return_response was always False
- β Now checks both call.return_response and call.data.get('return_response')
- π― Returns hardcoded success response for testing
- π Enhanced logging to show both response flags
- π§ Service now properly detects when response is requested
- π Changed all service debug logs to WARNING level for visibility
β οΈ Added explicit check for return_response parameter- π Enhanced test response with data_received field
- π οΈ Service now always returns data for debugging purposes
- π‘ Better error messages to diagnose service call issues
- π¨ Fixed AttributeError: SupportsResponse.REQUIRED doesn't exist in older HA versions
- β Reverted to SupportsResponse.OPTIONAL for compatibility
- π§ Integration now loads properly without errors
- π§ Fixed service response issue by changing to SupportsResponse.REQUIRED
- β Service now properly returns configuration data instead of just context
- π Added comprehensive response logging for debugging
- π οΈ Fixed malformed services.yaml with proper entity field support
- π― Synced all fixes to packages directory
- π Added comprehensive service call debugging and logging
- π Enhanced error logs now show full service responses
- π οΈ Better error classification and troubleshooting information
- π‘ Console logging for real-time debugging of service issues
- π― Improved error context for faster issue resolution
- π― Fixed "Unknown error" issue by implementing intelligent entity filtering
- π Added location-based entity detection (e.g., "gym lights" finds gym-specific entities)
- β‘ Limited entity payload to 100 entities max to prevent service timeout
- π Enhanced error logs with detailed entity filtering information
- π Added console debugging for troubleshooting entity selection
- π§ Fixed send button styling to be perfectly circular
- π Added progressive error disclosure with detailed debug logs
- π οΈ Enhanced error context for better troubleshooting
- π¨ Improved UI polish and visual feedback
- π« Removed entity confirmation UI - fully automatic now
- π€ Smart domain detection sends only relevant entities to LLM
- π Working Deploy button for automations, scripts, and scenes
- π¬ Added "reload" command and refinement capabilities
- β Fixed "Unknown error" issue with service response handling
- π Added backward compatibility for older Home Assistant versions
- π§ Improved entity ID extraction in chat flow
- π¬ Revolutionary chat-first interface with message bubbles
- π― Automatic entity detection and confirmation cards
- π Multi-turn conversation support with context management
- π± Mobile-responsive design with smooth animations
- π Documentation: Visit toml0006.github.io/aight for full documentation and examples
- π Issues: Report bugs and request features on GitHub Issues
- π¬ Discussions: Join the conversation in GitHub Discussions
- π‘ Community: Visit the Home Assistant Community Forum
This integration uses third-party AI services. Please review the privacy policies and terms of service of your chosen LLM provider. Generated configurations should always be reviewed before deployment in production environments.