AI Automation Suggester 1.8.0
Home Assistant 2026.12 capabilities
- Home Assistant 2026.12 LLM tools (
llm.py): Contributesai_automation_suggester__list_suggestions,ai_automation_suggester__generate_suggestions, andai_automation_suggester__update_suggestion_statusto Home Assistant's admin-onlyhome_assistantLLM API (and Home Assistant's built-in MCP Server). Tools follow the 2026.12LLMTools/ToolResult/ToolAnnotations/integrationtagging contract and remain review-only (no live automations are created or modified automatically). Older Home Assistant versions ignore the platform cleanly. - Action response data (
SupportsResponse.OPTIONAL):ai_automation_suggester.generate_suggestionsnow supportsreturn_response: true(response_variablein scripts, automations, andai_taskworkflows), returning the provider, model, processed entity count, warnings, and generated suggestions while preservingNonefor callers that do not request a response. - 2026.12 prompt & YAML context: Prompt instructions guide models toward modern Home Assistant 2026.12 YAML (
triggers/conditions/actions,trigger/action,targetselectors with optionalexcludeblocks, and purpose-specific button triggers/conditions). Entity context blocks include Floor and Label registry metadata when available, and derive human-readable names from device + entity registry entries whenfriendly_nameis absent. - Template entity validation: Generated YAML validation now checks entity IDs referenced inside common Home Assistant Jinja template functions (
states(),is_state(),is_state_attr(),state_attr(),has_value(),entity_name(),state_translated()) in addition to explicitentity_idfields.
Providers, models, and diagnostics
- Integrates community PR #201 (Opper OpenAI-compatible gateway).
- Integrates community PR #202 (Runcrate OpenAI-compatible gateway).
- Integrates community PR #203 (Atlas Cloud OpenAI-compatible gateway).
- Applies fixed-sampling temperature guards for Claude 4.7+ and OpenAI GPT-5+ /
o-series models across Opper, Runcrate, and Atlas Cloud, and adds explicitgpt-6.1-solandgpt-6-lunaentries to the OpenAI model catalog. - Adds
status_detailon the AI Provider Status diagnostic sensor soinitializingexplicitly explains that setup succeeded and generation is on demand (issue #195).
Validation and limitations
- Validated with Ruff and pytest unit/smoke tests, including loopback HTTP generation tests across Anthropic, OpenRouter, Requesty, Cheaper Inference, Opper, Runcrate, Atlas Cloud, and MiniMax, plus action response and Home Assistant 2026.12 LLM tool tests.
- Home Assistant registries, storage, and LLM helpers are stubbed in unit tests; live cloud API keys for third-party gateways were verified via unauthenticated/invalid-token HTTP status probes (
401on invalid keys) rather than paid inference runs.