Home

Awesome

AI Automation Suggester

Validate with hassfest HACS Validation GitHub release (latest by date) hacs_badge

An integration for Home Assistant that leverages AI models to understand your unique home environment and propose intelligent automations. By analyzing your entities, devices, areas, and existing automations, the AI Automation Suggester helps you discover new, context-aware use cases you might not have considered, ultimately streamlining your home management and improving efficiency, comfort, and convenience.


Purpose and Problem Statement

As a modern smart home grows in complexity—encompassing lights, sensors, locks, climate systems, cameras, and more—it can be challenging to figure out how these devices should interact to achieve a seamless, automated living experience. Many users find themselves overwhelmed by the sheer number of possibilities, unsure which triggers and conditions would genuinely enhance their daily routines.

This integration solves that challenge by acting as a personal automation consultant. It taps into advanced AI language models to:

In essence, the AI Automation Suggester turns the complexity of a large Home Assistant environment into actionable insights and tangible benefits.


The Solution and How It Works

  1. Entity and Automation Analysis:
    The integration collects data on your Home Assistant entities (like sensors, switches, lights, and climate devices) and existing automations. It also pulls in device and area information for richer context. Instead of generic, one-size-fits-all suggestions, the AI can consider, for example, that a temperature sensor in the living room and a motion sensor in the hallway could jointly trigger specific lighting or climate adjustments.

  2. AI-Powered Suggestions:
    By using cutting-edge AI models (OpenAI, Anthropic, Google, Groq, LocalAI, and Ollama), the integration transforms this snapshot of your home into meaningful suggestions. These suggestions can include:

    • Energy-saving strategies: Turn off lights or appliances automatically when certain conditions are met.
    • Security enhancements: Alert you if doors remain open too long or if certain presence conditions are detected.
    • Comfort improvements: Adjust lights, climate, or media devices based on time of day, occupancy, or environmental conditions.
    • Maintenance and convenience: Remind you when it's time to run appliances, or combine multiple conditions into a single efficient routine.
  3. Prompt Customization and Scope Control:
    You’re not stuck with a single set of suggestions. Filter entities by domain, limit how many entities the AI considers, and provide custom prompts (e.g., "Focus on presence-based lighting control" or "Suggest cost-saving automations"). Randomized entity selection ensures that each analysis can present fresh ideas rather than repeating the same suggestions.

  4. Integration with Your Workflow:
    Suggestions appear as persistent notifications, allowing you to review and implement them at your own pace. They’re presented as Home Assistant YAML snippets, making it straightforward to adapt and integrate them into your actual automation.yaml or UI-based automations.


Expected Output and Benefits

Expected Output:

Key Benefits:


Table of Contents


Features


Prerequisites


Installation

Installing via HACS (Recommended)

  1. Install HACS if not already done.
  2. Add Custom Repository:
    In HACS > Integrations, add https://github.com/ITSpecialist111/ai_automation_suggester.
  3. Install Integration from HACS.
  4. Restart Home Assistant.

Manual Installation

  1. Download this repository.
  2. Copy ai_automation_suggester to custom_components/.
  3. Restart Home Assistant.

Configuration

  1. Add Integration via UI:
    Go to Settings > Devices & Services > Add Integration > AI Automation Suggester.
  2. Select Provider and Keys:
    Provide API keys or local model details as needed.
  3. Set Model and Max Tokens:
    Choose your model variant and output length.
  4. (Optional) Custom Prompt:
    Add a custom system prompt during integration setup or when triggering services.

Usage

Automatic Suggestions

Manual Trigger


Customization and Advanced Usage

Random Entity Selection

Ensures that each run may surface new or previously overlooked entities, sparking fresh automation ideas.

Domain Filtering

Focus suggestions on light, sensor, or any domain to refine the results and avoid irrelevant suggestions.

Entity Limit

Set a maximum number of entities analyzed to avoid overwhelming the AI model or hitting token limits.

Custom Prompts

Add directions like "Focus on cost-saving strategies" or "Emphasize presence-based lighting" to shape the AI’s recommendations to your current priorities.


Implementing Automations


Sensors


Important Notes


Troubleshooting


Roadmap


License

This project is licensed under the MIT License. See LICENSE for details.


Acknowledgments


Contributions

We welcome pull requests, feature suggestions, and translations. Please open an issue or submit a PR on GitHub.


Disclaimer

This is a custom component, not affiliated with or endorsed by Home Assistant or the AI providers mentioned.


Support the Project

If you find this helpful, consider supporting development:

Buy Me A Coffee

Your support helps maintain and enhance this project!


Additional Information

For questions or issues, open an issue on GitHub. We appreciate user feedback to guide future improvements.


FAQ

  1. How do I update the integration?
    If installed via HACS, update through the HACS interface. Otherwise, replace the files manually and restart.

  2. Can I use it without an API key?
    Yes, if you choose LocalAI or Ollama, no external API keys are required.

  3. Is my data safe?
    Using local models keeps data local. For cloud providers, refer to their privacy policies.

  4. I found a bug or have a feature request.
    Open an issue on GitHub. Your feedback is valuable.

  5. Can I get suggestions in languages other than English?
    English and German are included. We welcome community translations!


With the AI Automation Suggester, you gain an AI-powered ally to help you unlock your home’s full potential. Instead of being overwhelmed by possibilities, receive thoughtful, context-aware suggestions that make your Home Assistant automations more impactful, efficient, and enjoyable.