ITSpecialist111/ai_automation_suggester
This custom Home Assistant integration automatically scans your entities, detects new devices, and uses AI (via cloud and local APIs) to suggest tailored automations. It supports multiple AI providers, including OpenAI, Anthropic, Google, Groq, Ollama and more! The integration provides automation suggestions via HASS notifications
What it solves
This project provides an AI-powered assistant for Home Assistant that helps users overcome "automation writer's block" and underutilized smart home hardware. It analyzes a user's specific smart home environment—including devices, areas, and existing automations—to suggest intelligent, actionable YAML configurations for new automations, reducing the effort and guesswork involved in designing complex smart home behaviors.
How it works
The integration follows a five-step process to generate suggestions:
- Snapshot: It collects data on entities, devices, areas, and existing automations, with configurable filters and limits.
- Prompt Building: This data is embedded into a detailed system prompt, which can be further customized by the user to steer the AI toward specific goals.
- Provider Call: The prompt is sent to a configured AI provider (supporting a wide range of cloud services like OpenAI, Anthropic, Google, and local options like Ollama or LocalAI).
- Parsing: The integration processes the AI's response, preferring structured JSON or falling back to fenced YAML parsing and validation.
- Surface: Suggestions are delivered as Home Assistant persistent notifications, sensor attributes, and a stored history for use in dashboards.
Who it’s for
Home Assistant users who have complex smart home setups and want to discover new automation possibilities or need help translating their ideas into functional YAML code.
Highlights
- Broad Model Support: Compatible with over 100 backends via providers like LiteLLM, OpenRouter, and native integrations for OpenAI, Anthropic, and Google.
- Context-Aware: Uses actual device and area data from the user's home for realistic recommendations.
- Customizable Control: Offers domain filters, entity limits, and custom system prompts to refine the AI's output.
- Safe Implementation: Suggestions are presented for review and must be manually implemented by the user.
- Integrated Workflow: Provides built-in example automations for weekly reviews or triggering suggestions when new entities are added.
Related
- Project
- Project
- Project
- Project