Skip to content

Releases: sbenodiz/ai_agent_ha

V1.08

11 Jan 21:05

Choose a tag to compare

v1.08

version

v1.07

20 Dec 21:27

Choose a tag to compare

Fixes for Home Assistant 2026.2+ Compatibility

  1. 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
  1. 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
  1. 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

26 Nov 22:02

Choose a tag to compare

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

18 Nov 22:39

Choose a tag to compare

v1.02

Fix code formatting with black

V1.01

17 Nov 07:37

Choose a tag to compare

v1.01

Remove test for deleted _get_token_parameter method

v10.00

16 Nov 21:45

Choose a tag to compare

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_response instead of JSON with dashboard_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

  • get_entities_by_device_class(device_class, domain) function to filter entities by device_class attribute
  • get_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-20250929 to 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

16 Nov 12:12

Choose a tag to compare

v0.99.8

Fix code formatting (black and isort)

0.99.7

05 Nov 20:58
38da7aa

Choose a tag to compare

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

28 Oct 22:57

Choose a tag to compare

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>

0.99.5

05 Oct 22:01

Choose a tag to compare

add support to GPT 5