Skip to content

Releases

Prompt caching and transcription language

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 18 Nov 20:33
50064c6

What's new

  • Automatic prompt caching for Conversation entities. A stable key per account entry, Conversation entity and model helps Mistral reuse matching prefixes across conversations. No setting is needed. Home Assistant supplies the complete prompt, tools and history on every request. See the reused token count as cached_input_tokens in traces and integration debug logs.
  • Transcription language selection for Batch and Realtime. Follow the Assist pipeline, detect automatically, or choose a fixed language. New STT entities follow the pipeline. Existing entities preserve their previous behavior until their language setting is changed.
  • Change the account API key from Reconfigure. Open the account entry's menu under Settings > Devices & services > Mistral AI Conversation, select Reconfigure, and enter a new key. Validation happens before saving. Successful changes keep the existing entities and settings; failed validation preserves the active key. Check model and voice access when switching Mistral accounts.

Compatibility and dependencies

The minimum supported Home Assistant remains 2026.7.4, and the runtime Mistral SDK remains 3.7.0. The primary test baseline is updated to Home Assistant 2026.11.1 with matching fixtures. Test dependencies include mypy 2.4.1, Ruff 0.17.5 and Mutagen 1.48.1. Home Assistant's HTTPX2 2.14.0 constraint is preserved, with 2.16.0 also tested on older supported versions.

Validation

  • All five complete pinned compatibility suites passed: 732 tests on HA 2026.11.1 and 689 tests on each older combination, plus 43 expected evaluation skips. Branch coverage is 87.68–91.55%. Formatting, lint, strict typing, dependency checks and offline HACS validation passed.
  • A backed-up HA 2026.11.2 instance passed the six STT language cases, Realtime STT cancellation/recovery, account reconfiguration, fresh conversations and local-intent follow-ups, read-only tools, structured AI Task and evaluation with images/PDFs.
  • Standard TTS with normalization and Realtime TTS passed audio retrieval/decoding, early download closure/recovery and native Assist streaming using the saved voice. Image generation, reference-image retrieval and private synthetic file deletion also passed. Temporary test entities, pipelines and image files were removed; settings were preserved and final integration logs were clean.
  • The subscribed account now accepts the audio requests that blocked prerelease validation. Live audio checks used synthetic recordings and retrieved generated audio without physical playback.

Full details: QUALITY.md. Public validation run. Release pull request.

v1.2.0b1: prompt caching and transcription language

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 15 Nov 13:32

Experimental prerelease for testing the changes planned for 1.2.0. This is not a stable release.

What's included

  • Automatic Conversation prompt caching: a stable key per account, Conversation entity and model lets Mistral reuse matching prompt prefixes across conversations. Home Assistant still supplies the complete prompt, tools and history on every request. Changed instructions or exposure can reduce reuse, and cache hits or faster responses are not guaranteed.
  • Transcription language selector for Batch and Realtime STT: follow the Assist pipeline, use automatic detection, or choose a fixed language. New entities follow the pipeline. Existing entities preserve their previous behavior until you change the setting.
  • Test dependency refresh: Home Assistant 2026.11.1 and matching fixtures, mypy 2.4.1, Ruff 0.17.5 and Mutagen 1.48.1. The runtime Mistral SDK remains 3.7.0 and the minimum supported Home Assistant remains 2026.7.4.

How to test

  1. Back up Home Assistant. Enable this repository's HACS prerelease switch if needed, following the HACS beta-version guide. In HACS, open this integration, choose Redownload, then Need a different version? and select v1.2.0b1. Restart Home Assistant after downloading. See the HACS version-selection guide.
  2. Reconfigure an STT entity under Settings > Devices & services > Mistral AI Conversation. Test Transcription language with the Assist pipeline language, automatic detection and a fixed language, using your available Batch and Realtime models. Check that existing entities and pipelines retain their settings after the update.
  3. Start separate conversations on the same Conversation entity. Inspect stats.cached_input_tokens in conversation traces, or enable integration debug logging and look for Mistral token usage. Explicit zero means the provider reported no reused tokens; an absent field means no valid cache count was reported. Input totals still include cached tokens.

Please report the selected model, Home Assistant version, transcription mode/language and any redacted error in #106 or #107. Do not include credentials, real prompts, entity inventories, transcripts or audio.

Validation and known limits

  • The combined changes passed all five pinned Home Assistant/HTTPX2 suites: 720 tests on HA 2026.11.1 and 677 tests on each older combination, with 43 expected evaluation skips. Branch coverage is 87.53–91.45%.
  • Public GitHub validation passed all five compatibility suites, HACS and Hassfest on the release commit.
  • Real HA 2026.11.1 checks with ministral-14b-2512 passed fresh conversations, a read-only Assist tool round trip and structured AI Task output. One provider usage record reported 4,608 cached input tokens out of 4,751, confirming prefix reuse with exposed tools. Other requests reported zero; no general latency improvement is claimed.
  • Live audio validation remains incomplete. Fresh direct Realtime transcription and TTS checks still returned HTTP 429 on 2026-11-15 with the maintainer's credentials. TTS reported an effective request limit of zero despite the limits displayed in the account. The cause remains unexplained. Successful live language selection and the remaining audio smoke checks require independent testing before stable 1.2.0.

Full architecture and validation details: QUALITY.md.

AI Task evaluation

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 09 Nov 12:38
bdb3198

Existing Mistral AI Task entities now support ai_task.evaluate on Home Assistant 2026.11 and newer. The action uses the entity's configured data model to evaluate state and compatible image or PDF attachments.

  • Answer noul (probability of yes), choice, and score questions in one request.
  • Return Home Assistant's native answers after validating the complete response and its probabilities.
  • Use the YAML example to get started.

Validation

All five compatibility environments passed, including 645 tests on HA 2026.11.0 and 602 tests in each older environment. Public HACS and Hassfest checks passed.

Live validation on HA 2026.11.0 used synthetic inputs and covered evaluation with state, PNG, and PDF evidence, structured data, Assist follow-ups and a read-only tool, batch and realtime STT, TTS retrieval, and image generation with and without a reference. The existing configuration and pipelines were verified after the restart and tests.

HACS/Marketplace packaging

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 06 Nov 23:59
b9f3bf2

HACS and Home Assistant Marketplace now install the attached mistral_conversation.zip, allowing GitHub to count future ZIP downloads, including updates and redownloads. The integration is listed under AI and voice.

Packaging and metadata only: Python files, dependency pins and existing settings are unchanged. ZIP contents and version were verified. The preceding packaging CI passed; runtime tests and live Home Assistant smoke checks were not repeated for this release.

Patch Realtime TTS playback

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 06 Nov 09:50
e7856fa

Fix Realtime TTS playback when a voice selected from the list is identified by UUID and Mistral acknowledges its official slug. The selected voice is preserved; unrelated voices are still rejected.

Validated with 602 tests across five compatibility environments and on real Home Assistant. Browser and mobile playback confirmed. SDK and minimum HA requirements are unchanged.

Realtime text-to-speech

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 06 Nov 00:15
377ba12

Changes

TTS entities now offer an explicit Standard / Realtime synthesis mode. Realtime sends text progressively over Mistral's WebSocket speech endpoint and returns audio through Home Assistant's native streaming TTS interface.

To enable it, reconfigure a TTS entity, choose a compatible model and an explicit voice, select Realtime, and disable Normalize speech loudness. Standard remains the default and keeps whole-clip two-pass normalization. Migration 1.6 preserves existing model, voice, audio and pipeline settings.

The implementation validates session settings and the final speech event, enforces the 5,000-character/25 MiB limits and request deadlines, and cleans up cancellation/unload. Bounded audio buffering keeps WebSocket control frames responsive when HA's audio conversion is slower than the provider. Failures do not retry through HTTP. Native audio-to-audio conversation is not included.

Home Assistant minimum remains 2026.7.4; Mistral SDK remains 3.7.0.

Validation

  • 580 tests passed in each of five pinned Home Assistant/HTTPX2 environments, with 90.00–90.13% branch coverage; formatting, linting, typing, dependency and offline HACS checks passed.
  • A real HA 2026.11.0 instance passed backup/restart, migration/settings preservation, Conversation/local follow-ups, a read-only tool round trip, structured AI Task, STT cancellation/recovery and Standard/Realtime TTS retrieval.
  • In one synthetic Assist run, audio arrived at 4.95 s before intent completion at 8.45 s. Complete audio retrieval took 38.20 s and decoded successfully. These are API-stream measurements, not physical playback latency guarantees.
  • Image generation/reference validation hit the Mistral account's HTTP 429 rate limit (I have a free tier account) and was not revalidated in this run. The last successful live image validation is recorded under 0.6.0.
  • Physical satellite behavior was not tested.

See QUALITY.md and CHANGELOG.md for the full validation boundaries.

Mistral SDK 3 and Voxtral 3

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 05 Nov 19:38
ee5b589

Changes

  • Upgrade to mistralai[realtime]==3.7.0 and HTTPX2, validated with 2.14.0 and 2.16.0, while keeping Home Assistant 2026.7.4+ support. HA 2026.11 supplies the shared HTTPX2 client; older versions install the transport through the SDK and use a verified account-owned client.
  • Support Voxtral 3 file transcription, Realtime turn events and speech synthesis. STT now offers Automatic, Batch and Realtime transport selection.
  • Offer curated model menus while retaining custom IDs and existing selections. New audio entities default to Realtime 3 and Voxtral TTS 3; new image-tool settings default to Large 4. Conversation and data tasks keep Small as their default.
  • Restore images returned as signed storage URLs, with the original Files API path retained. Image references and Home Assistant's native image results are supported.
  • Update test-only PyTurboJPEG to 2.6.1 and simplify the user, contributor and quality guides.

Upgrading

Restart Home Assistant after installing. Dependencies are installed automatically. Configuration migration 1.5 preserves existing model choices, saved voices, normalization settings and pipelines; TTS voice selection remains explicit.

URL-only image responses have no Files API ID and cannot be deleted through that API. The expiration of a signed link does not establish provider retention. Returned file IDs retain their existing deletion behavior.

Validation

502 automated tests pass in each of five Python 3.14 environments: HA 2026.7.4, 2026.10.4 and 2026.11.0 with HTTPX2 2.14.0, plus older HA baselines with 2.16.0. Branch coverage is above 89%. Ruff, strict typing, dependency checks and local HACS validation pass.

All five test jobs and the public HACS/Hassfest checks passed on both the release PR and the final main commit.

Real HA 2026.11 checks cover Conversation, tools, structured AI Task, STT/TTS, Realtime cancellation/recovery, image generation, references and media retrieval. Files API download/deletion was checked with a private synthetic PNG. Further image/reference attempts were rate-limited by the provider; earlier successful checks used identical runtime code. Physical microphone/speaker behavior was not tested.

See QUALITY.md for assurance boundaries and the changelog for release history.

v0.5.5

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 01 Nov 14:42
b135956

Maintenance release for the test environment and dependency validation.

  • Update Home Assistant tests to 2026.10.4 with matching pytest fixtures 0.13.375, intents 2026.10.27, and Ruff 0.17.3.
  • Keep Mistral SDK 2.10.1. HTTPX2 is merged into Home Assistant's development branch but remains absent from stable Home Assistant 2026.10.4.
  • Keep PyTurboJPEG 1.8.3; its major upgrade is outside this maintenance.
  • Runtime code and the Home Assistant 2026.7.4 minimum are unchanged.

Validation: 385 tests passed locally, with 94.07% total coverage and 88.34% branch coverage. Ruff formatting/lint, strict mypy, dependency checks, and offline HACS validation passed. Public Python, HACS, and Hassfest validation also passed on the exact release commit.

Real-instance checks on Home Assistant 2026.10.4 used the unchanged installed 0.5.4 runtime, whose 23 files other than the versioned manifest matched this candidate. Conversation, follow-ups after local intents, a read-only tool round trip, structured AI Task, STT, and complete TTS generation/retrieval without playback passed. Audio validation used available Voxtral 3 batch STT and TTS model IDs with the existing saved voice and normalization settings. The two model IDs were corrected after a protected backup; pipelines were preserved. The observed validation logs contained no Mistral warnings, errors, or blocking warnings. Physical microphone and speaker behavior was not tested.

I will work on a major update after the publication of HA 2026.11 to adapt to the new Mistral AI SDK functionalities.

v0.5.4

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 12 Oct 09:35
34a203e

Changed

  • Update the test environment to Home Assistant 2026.10.1 with its matching
    pytest fixtures 0.13.372, intents 2026.10.6, mypy 2.4.0, and Ruff 0.16.10.
  • Keep Mistral SDK 2.10.1 until a supported Home Assistant release provides
    the shared HTTPX2 transport. The core migration is merged, but HTTPX2 is
    absent from stable Home Assistant 2026.10.1.

Fixed

  • Read native Home Assistant tool results without deprecated access, while
    preserving support for legacy conversation history.
  • Align schema typing with Home Assistant's Probatio runtime alias while
    retaining compatibility with older Home Assistant releases.

Validation

  • 385 tests passed on both Home Assistant 2026.10.1 and 2026.9.4. The newer
    baseline reached 94.07% total coverage and 88.34% branch coverage locally,
    with Ruff, strict mypy, dependency checks, and offline HACS validation passing.
  • On Home Assistant 2026.10.1, fresh Conversation, follow-ups after one and two local
    intents, a read-only tool round trip, structured AI Task, STT,
    and TTS generation without playback passed. No Mistral errors or blocking warnings in the observed logs.

v0.5.3

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 08 Oct 12:40
eab7af6

Fix conversation history after locally handled Assist commands (#77). With Prefer handling commands locally enabled, a later Mistral turn using the same conversation ID now succeeds. The local command and spoken reply remain in history; internal external-tool pairs are omitted from the provider request.

I validated the fix with 384 passing tests, 94.15% total coverage, 88.50% branch coverage, Ruff, strict mypy, and HACS structure validation. Live checks on Home Assistant 2026.10.0 passed for fresh conversations, one and two local turns followed by Mistral, history preservation, a read-only tool round trip, structured AI Task, synthetic STT, and TTS generation without playback. Satellite playback was not tested.