This custom Home Assistant integration automatically scans your entities, detects new devices, and uses AI (via cloud and local APIs) to suggest tailored automa
This custom Home Assistant integration automatically scans your entities, detects new devices, and uses AI (via cloud and local APIs) to suggest tailored automa
An AI‑powered assistant for Home Assistant that leverages large language models to understand your unique smart home environment – your entities, areas, devices, and existing automations. It proposes intelligent, actionable YAML suggestions tailored to your specific setup, helping you unlock your home's full potential.
As your Home Assistant setup grows, managing its complexity and identifying new opportunities for automation can become challenging. You might find yourself with:
The result is often an under-automated house despite having powerful hardware.
The AI Automation Suggester integration solves these challenges by acting as a personal automation consultant. It intelligently analyzes your Home Assistant instance to:
In essence, this integration turns the complexity of a large Home Assistant environment into actionable insights and tangible benefits, guiding you toward a more efficient, comfortable, and secure smart home.
The integration follows a simple, effective process:
| Step | What happens? | Details |
|---|---|---|
| 1 · Snapshot | Collects data about your home. | On manual trigger or schedule, the integration gathers information on your entities (including attributes), devices, areas, and existing automations. You can control the scope using filters and limits. |
| 2 · Prompt Building | Structures the data for the AI. | This snapshot is embedded into a detailed system prompt describing your specific Home Assistant setup. You can enhance this with a custom prompt to steer suggestions towards specific goals (e.g., "focus on presence lighting"). |
| 3 · Provider Call | Sends the prompt to the AI. | The crafted prompt is sent to your configured AI provider (OpenAI, Azure OpenAI, Anthropic, Google, Groq, LocalAI, Ollama, Mistral, Perplexity, OpenRouter, Requesty, MiniMax, LiteLLM, or another OpenAI-compatible endpoint). |
| 4 · Parsing | Processes the AI's response. | The integration asks capable providers for structured JSON, falls back to fenced YAML parsing, validates returned YAML, and records warnings for missing or possibly truncated output. |
| 5 · Surface | Delivers and stores the suggestions. | Suggestions appear as Home Assistant persistent notifications, sensor attributes, and stored history that can be used by the bundled dashboard card or your own cards. |
Randomized entity selection (configurable) helps ensure each analysis run can surface fresh ideas rather than repeating the same suggestions.
Suggestions are delivered directly within Home Assistant notifications:
AI suggestions delivered right inside Home Assistant
You can also build custom dashboard cards to display suggestions using sensor attributes:
Dashboard showing human-readable description and extracted YAML block
Here's an example of displaying suggestions on a dashboard:
Example of a dashboard displaying AI-suggested automations
Leveraging the AI Automation Suggester provides several key benefits:
think: false and the legacy /no_think prompt hint. Leaving it off preserves the model's default thinking behavior.ai_automation_suggester.generate_suggestions service with full parameter control.+ button.AI Automation Suggester.AI Automation Suggester.When a GitHub release is published, HACS can detect the new version and show it as an available update. Update through HACS, then restart Home Assistant so the custom integration is reloaded.
custom_components/ai_automation_suggester folder to your Home Assistant custom_components directory./
└── custom_components/
└── ai_automation_suggester/
├── __init__.py
└── ... (other files)AI Automation Suggester.AI Automation Suggester.You can adjust these settings later via the integration options in Settings → Devices & Services.
Temperature Control:
Token Management:
History and Filtering:
Model APIs change quickly, so the integration keeps a compatibility catalog and still allows custom model names. Existing configured model values are preserved on upgrade.
| Provider | New default for new configs | Compatibility notes |
|---|---|---|
| OpenAI | gpt-5.4-mini |
GPT-5-style models use the Responses API, max_output_tokens, and reasoning effort. Temperature is not sent to models known to reject it. gpt-5.5 and gpt-5.5-pro are supported when available on your account. |
| Azure OpenAI | gpt-5.4-mini deployment name |
Azure uses deployment names. Configure the deployment ID, endpoint, and API version that match your Azure resource. |
| Anthropic | claude-sonnet-4-6 |
Supports current Claude Sonnet/Opus model IDs such as claude-sonnet-4-6 and claude-opus-4-7. |
| Google Gemini | gemini-3.5-flash |
Stable replacement for Gemini 2.5 Flash, which is unavailable to new users. Custom model IDs are still allowed. |
| Groq | openai/gpt-oss-120b |
Replaces llama-3.3-70b-versatile, retired for free/developer accounts on 2026-08-16. openai/gpt-oss-20b is another production option. qwen/qwen3.6-27b is a preview alternative. Enterprise Llama access may remain. |
| Mistral AI | mistral-small-latest |
Supports current *-latest aliases and custom published IDs. |
| Perplexity AI | sonar |
Supports Sonar, Sonar Pro, reasoning, and research-style model IDs where your account has access. |
| OpenRouter | openai/gpt-5.4-mini |
OpenRouter remains dynamic. Use provider-prefixed IDs from OpenRouter's model catalog. |
| Requesty | openai/gpt-4o-mini |
OpenAI-compatible router (https://router.requesty.ai) providing 300+ mod |
No open issues yet, or sync has not completed.