Releases: ITSpecialist111/ai_automation_suggester
V1.05
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
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:
-
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."
-
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.
-
Option to Disable Automatic Scanning:
- Users can now disable automatic scanning entirely by setting the
scan_frequency
to0
. This allows manual triggering of automation suggestions via Developer Tools, giving users more control over how and when automations are generated.
- Users can now disable automatic scanning entirely by setting the
-
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.
- Introduced a new
-
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'
. Theprevious_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.
- Scan Frequency: Set the interval for automatic scanning, or set to
How to Update:
- Update your Home Assistant integration via HACS or by manually copying the files into the
custom_components/ai_automation_suggester/
directory. - Reconfigure the integration if necessary to take advantage of the new
scan_frequency
andinitial_lag_time
options.
Acknowledgements:
Thanks to the community for the valuable feedback that helped shape this release!
V1.02
Updates to refine codebase. Possible issue with calling newer API's from OpenAI.
V1.0.1
Some changes on the error handling for the OpenAI key that was causing false positives in the configuration screen.
V1.0
🚀 Features
Will look at existing entities and provide scheduled suggestions of automations that you can create.
📦 Dependencies
OpenAI API Key