Releases: sbenodiz/ai_agent_ha
Releases · sbenodiz/ai_agent_ha
V1.08
v1.07
Fixes for Home Assistant 2026.2+ Compatibility
- Lovelace Dashboard API Migration (Issue #38)
- Fixed deprecated dictionary-style access to Lovelace dashboard data
- Changed from lovelace_data['dashboards'] to lovelace_data.dashboards (property access)
- Updated both get_dashboards() and get_dashboard_config() methods
- Added backward compatibility checks with hasattr() guards
- Recorder History API Update
- Migrated from deprecated homeassistant.components.history module
- Now uses homeassistant.components.recorder.history.get_significant_states
- Ensures history queries continue working in future HA versions
- Code Quality Improvements
- Added type narrowing for mypy compatibility
- Removed unused imports and dead code (MockConnection class, unused variables)
- Applied black formatting
Files Modified
- custom_components/ai_agent_ha/agent.py
- custom_components/ai_agent_ha/manifest.json
v1.06
Remove broken logbook functionality The get_logbook_entries feature was using a non-existent logbook.get_events API that doesn't exist in Home Assistant 2025.11+. This caused errors when the AI tried to answer questions about recent events/activity. Fixes #35 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
V1.02
V1.01
v10.00
Fixed
- CRITICAL: Fixed Anthropic API system prompt being overwritten by data payloads
- Data responses now correctly use "user" role instead of "system" role
- Ensures Claude receives all formatting instructions for dashboard/automation creation
- Resolves issue where Claude would return YAML in
final_responseinstead of JSON withdashboard_suggestion
- Fixed climate dashboard creation for users with only temperature/humidity sensors (no climate.* entities)
- Added
get_entities_by_device_class()helper function - Added
get_climate_related_entities()to combine climate.* entities with temperature/humidity sensors
- Added
Added
get_entities_by_device_class(device_class, domain)function to filter entities by device_class attributeget_climate_related_entities()function for comprehensive climate dashboard support- Includes climate.* entities (thermostats, HVAC)
- Includes sensor.* entities with device_class: temperature
- Includes sensor.* entities with device_class: humidity
- Automatic deduplication to prevent duplicate entities
- Enhanced dashboard templates with temperature/humidity sensor support
- History graphs for temperature and humidity visualization
- Entity cards showing current sensor values
- Properly categorized sensor groups by device_class
- Updated Anthropic provider to use Claude Sonnet 4.5 as default model
- Added
claude-sonnet-4-5-20250929to available Anthropic models - Enhanced
get_entity_registry()to include device_class, state_class, and unit_of_measurement attributes - Device class guidance in system prompts for improved AI understanding
- Unit tests for new climate-related functions and critical system prompt fix
0.99.8
0.99.7
Version 0.99.7 - Gemini Provider Fixes
Fixed
- Gemini 404 Errors: Updated Gemini models from retired 1.x versions to current 2.x models
- Replaced gemini-1.0-pro (retired April 2025)
- Replaced gemini-1.5-flash (retired September 2025)
- Replaced gemini-1.5-pro (retired September 2025)
- Added gemini-2.5-flash (new default), gemini-2.5-pro, gemini-2.0-flash
- Added preview models: gemini-2.5-flash-preview, gemini-2.5-pro-preview
- Gemini API Key Validation Errors: Fixed "API key not valid" errors caused by whitespace and special characters
- API keys now automatically strip leading/trailing whitespace
- API keys are properly URL-encoded when sent to Google's API
- Prevents validation errors from copy-paste issues
Changed
- Updated default Gemini model from gemini-1.5-flash to gemini-2.5-flash throughout codebase
- All Gemini API calls now use v1beta endpoint for compatibility with latest models
Migration Notes
- Existing users: Select a new Gemini model from the updated list in integration settings
- New users: Integration now defaults to gemini-2.5-flash
- No breaking changes - just reconfigure your Gemini provider with a current model
0.99.6
Fix UI: Clear Chat button overlap and add local testing - Replace ha-button with native button element to fix z-index issues - Add proper positioning and z-index to header and clear button - Improve button styling with native CSS properties - Add local frontend testing environment - tests/frontend/test_panel.html for standalone testing - tests/frontend/serve.py as simple HTTP server - Update README with local testing instructions This fixes the issue where the Clear Chat button was overlapping with other UI elements in the header. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>