Skip to content

Releases: ITSpecialist111/ai_automation_suggester

V1.05

22 Oct 06:29
Compare
Choose a tag to compare

This update introduces a migration handler to ensure smooth upgrades from previous versions. It automatically adds default values for new configuration options (scan_frequency and initial_lag_time), preventing errors during updates and ensuring seamless transitions without manual intervention.

** If you experience errors, please uninstall, remove the codebase and download from Hacs **

V1.04

21 Oct 14:38
Compare
Choose a tag to compare

AI Automation Suggester v1.04 – Feature Update and Enhancements

Release Highlights:

Version 1.04 focuses on improving the user experience by refining automation suggestions and introducing new customization options for better control over how and when suggestions are triggered. Key improvements include preventing unnecessary notifications, adding customizable lag time for automations, and enhancing the AI's ability to generate relevant, actionable automations based on the discovered entities.

New Features and Enhancements:

  1. Improved AI-Generated Automation Suggestions:

    • The AI now provides more contextually aware and detailed automation suggestions. The system comprehends each entity’s function and state (e.g., sensor, switch, light) and generates more relevant, actionable recommendations, avoiding generic responses.
    • Example suggestions now include specific scenarios like:
      • "If the front door sensor detects it is open for more than 5 minutes, send a notification."
      • "Turn on the air conditioner if the temperature sensor detects a rise above 25°C."
  2. Prevention of Notifications on Home Assistant Restart:

    • Prevents the integration from triggering new persistent notifications immediately after a Home Assistant restart or integration reload, unless the configured scan frequency has passed. This avoids unnecessary notifications.
  3. Option to Disable Automatic Scanning:

    • Users can now disable automatic scanning entirely by setting the scan_frequency to 0. This allows manual triggering of automation suggestions via Developer Tools, giving users more control over how and when automations are generated.
  4. Configurable Initial Lag Time for Suggestions:

    • Introduced a new initial_lag_time option, allowing users to delay the initial scan for automations. This prevents generic suggestions immediately after setup and ensures that more relevant entities are detected and analyzed.
  5. Better Error Handling:

    • Improved logging and error messages, especially related to missing or invalid OpenAI API keys, making it easier to troubleshoot issues.

Bug Fixes:

  • Fixed an issue where the integration would fail to initialize correctly with the error: 'AIAutomationCoordinator' object has no attribute 'previous_entities'. The previous_entities attribute is now properly initialized during setup.

Configuration Changes:

  • New options available in the configuration flow:
    • Scan Frequency: Set the interval for automatic scanning, or set to 0 to disable automatic scans.
    • Initial Lag Time: Configure the delay (in minutes) before the first scan is triggered after initial setup, defaulting to 10 minutes.

How to Update:

  1. Update your Home Assistant integration via HACS or by manually copying the files into the custom_components/ai_automation_suggester/ directory.
  2. Reconfigure the integration if necessary to take advantage of the new scan_frequency and initial_lag_time options.

Acknowledgements:

Thanks to the community for the valuable feedback that helped shape this release!

V1.02

20 Oct 08:12
Compare
Choose a tag to compare

Updates to refine codebase. Possible issue with calling newer API's from OpenAI.

V1.0.1

20 Oct 07:55
Compare
Choose a tag to compare

Some changes on the error handling for the OpenAI key that was causing false positives in the configuration screen.

V1.0

19 Oct 12:22
Compare
Choose a tag to compare

🚀 Features
Will look at existing entities and provide scheduled suggestions of automations that you can create.
📦 Dependencies
OpenAI API Key