Enhancements and Fixes:
Options Flow Handler Fix:
Fixed how the options flow handler is invoked. Now, the config entry is no longer repeatedly passed, streamlining the process. (PR: #56)
Special thanks to @CloCkWeRX for this fix!
Reference: Home Assistant Config Entries Options Flow Handler Documentation
Dashboard Integration:
Updated README with a simple method to display results in a dashboard card. Users can now easily integrate automation suggestions into their Home Assistant dashboard using the Markdown Card. The following example can be added to the content of the card:
markdown
Copy
{{ state_attr('sensor.ai_automation_suggestions_localai', 'suggestions') }}
Simply replace the sensor entity name to match your own.
Thanks to @wilburCforce for this contribution!
Google Model Update:
Changed the default Google model to gemini-2.0-flash due to a 404 error with the previously used gemini-1.0-pro model.
Thanks to @louispires for this update!
Integration Fix:
Fixed an issue with adding the integration where the default model was set incorrectly. Changing from claude-2.1 to claude-3-7-sonnet-20250219 resolved the issue.
Thanks to @xvlw for identifying and fixing this!