Repository navigation
Releases
Releases · fabioscarparo/ha-nnounce
v0.4.3
What's new in v0.4.3
- Translated expired replay errors: The card and panel now also read
translation_keyfromservice_validation_errorresponses and showThere is no recent message to replay.in all 7 languages if Replay is tapped after the 1-hour retention window expires. - Consistent WebSocket and HTTP error codes:
hannounce/replay,hannounce/say, and the upload endpoint now propagatetranslation_keycodes (such asalexa_disabledorexternal_https_required) on playback failures instead of falling back to a genericplay_failed.
v0.4.2
What's new in v0.4.2
- Integration categories: The manifest now declares
media_entertainment.speakers_audio(primary) andsecurity_safety.doorbells_intercoms(intercom cameras), so HA-nnounce is listed under the right categories and the HACS validation no longer warns about missing categories.
v0.4.1
What's new in v0.4.1
- Translated Alexa errors in the card and panel:
Alexa support is disabledandExternal HTTPS URL requirednow show in all 7 languages, instead of a generic message followed by the English server text. - Translated errors from Replay: The card now reads the
translation_keyof action errors, soReplay last messagefailures (quiet hours, Alexa) show in the user's language too. - Clearer privacy notes in the README: Alexa support is the only path where audio leaves the local network (Amazon's servers download it through a signed link that expires after 1 hour), and an Echo in Do Not Disturb stays silent without reporting an error.
v0.4.0
What's new in v0.4.0
- Complete intercom screen translations: Added German (
de), French (fr), Spanish (es), and Dutch (nl) strings to the WebRTC intercom status screen so all 7 supported languages (en,it,de,fr,es,nl,ro) have full parity. - Best-effort playback resume (opt-in): Added the
Resume playback after messages (best effort)option (off by default) for speakers without nativeMEDIA_ANNOUNCEsupport (such as Google Cast and DLNA). Resumes directly playablehttp(s)://streams andmedia-source://tracks after restoring volume and mute, seeking back to the previous position on finite tracks whenSEEKis supported. - Optional Amazon Alexa / Echo support (experimental): Added the opt-in
Amazon Alexa / Echo supportoption (off by default) supporting both Home Assistant's officialalexa_devicesintegration (notify.send_messageto sibling_speakor_announceentities, includingWHAspeaker groups) and HACSalexa_media(notify.alexa_mediawithtype: tts). Transcodes on demand to Amazon SSML-compliant CBR 48 kbps / 24 kHz mono MP3 (capped at 240s) served via signed external HTTPS URL (/api/hannounce/audio/<id>-alexa.mp3), with config flow validation and diagnostics reporting.
v0.3.3
Card & UI Improvements
- Prevent duplicate playback on speaker groups: Selecting
Allor an area shortcut now selects individual speakers instead of also selecting a speaker group alongside its own members (falling back to groups only when no individual speakers exist). - Per-card speaker selection: Cards limited to a custom
entitieslist now store their own selection independently from the sidebar panel and full-home cards, and reload properly when edited in the visual editor. - Cleaner single-speaker cards: Single-speaker cards hide the redundant speaker chip row, keep the header clickable to open more-info, and explain
UnavailableorSilenced by quiet hoursdirectly in the hint when playback is blocked. - Visual & accessibility polish: Added dynamic scroll fade indicators (RTL-aware) on the horizontal area strip, fixed full-width list rows inside the speaker dialog, fixed switch thumb visibility in dark mode, added compact header sizing for narrow (
<= 280px) columns, improvedaria-labelon the compact speaker selector row, and refreshed the README wall previews.
v0.3.2
Fixes
- Non-blocking intercom font loading: Intercom screen fonts are now read from disk once in Home Assistant's executor (
load_fonts()) during camera platform setup and shared across every intercom camera, avoiding blocking file I/O on the event loop. - Non-blocking path validation: Moved
hass.config.is_allowed_path()together withPath.is_file()into a single executor call (async_check_allowed_file) across config flow, services, custom chime HTTP preview, and announcement creation.
v0.3.1
What's changed
- Romanian translation (
ro): Added full Romanian language support across the config flow, options, services, sidebar panel, Cast title, card, card editor, and intercom camera screen (thanks to @robex2005 in #1!). - Intercom screen Unicode fonts: The intercom camera screen now loads a system Unicode TrueType font (
DejaVuSans,LiberationSans,NotoSans,FreeSans,Arial, etc.) when available so diacritics and accented speaker names render cleanly, falling back to diacritic-stripped ASCII when only Pillow's built-in font is present. - Translation checks: Extended automated tests to also enforce server-side
TEXTparity and{placeholder}consistency across all 7 languages (en,it,de,fr,es,nl,ro).
v0.3.0
New features
- Quiet hours (Do Not Disturb): Configure a quiet schedule (including overnight ranges like
22:00to07:00) and/or an optionalinput_booleanorbinary_sensortrigger in the integration options. Choose whether to cap announcement volume (default25%, also clamping speakers whose current volume exceeds the cap when "Keep each speaker's volume" is on) or skip affected speakers completely. Scope quiet hours to all speakers or specific ones (such as bedrooms). - Text mode (TTS): Type an announcement directly from the card or panel using Home Assistant's already-configured text-to-speech engine (Piper, PicoTTS, Home Assistant Cloud, Google Translate, and more; optional
tts_entityoverride in the integration options). Generated speech flows through HA-nnounce's full pipeline (chime, loudness normalization, volume/mute restore, quiet hours, replay, and Media history). On plain HTTP browsers without microphone access, Text mode opens automatically when a TTS engine is available. - Custom chime: Set a local audio file path (MP3, WAV, OGG, FLAC... inside
allowlist_external_dirs, validated on save) in the integration options to unlock a 5thCustomchime option in the card, panel, andhannounce.announceaction, complete with audio preview via the authenticated/api/hannounce/chimeendpoint. - Voice enhancement toggle: New
Voice enhancementoption (enabled by default) in the integration settings. Turn it off to disable browser microphone DSP (echoCancellation,noiseSuppression,autoGainControl), the70 Hzhigh-pass filter, and automatic silence trimming for raw, unprocessed audio.
Card & UI
- Separated Area shortcuts & compact speaker dialog: Area shortcuts (
All+ Home Assistant areas with liveselected/availablecounts) now sit in their own horizontal strip above the speakers so areas and individual speakers are never mixed. Homes with 7+ speakers automatically switch to a compact42pxselector row that opens a searchable, area-grouped dialog (bottom sheet on mobile); override anytime viaspeaker_style: auto | chips | compactin the visual editor. - Auto-growing text box: In Text mode, the full-width text area grows vertically as you type (with
Enterto send andShift+Enterfor a new line) above a full-width Send button. - Quiet hours visual indicators: Displays an indigo moon pill (
Max 25%orQuiet: <speaker>) in the volume header, a volume cap marker on the slider in cap mode, and dashed moon badges on silenced speakers in skip mode. - 5-chime segmented control: Dynamically displays the
Customoption only when configured, with automatic compact sizing so all 5 labels fit cleanly without truncation. - Translations: Updated all 6 languages (
en,it,de,fr,es,nl) across both backend config/services and the frontend card/editor.
Automations, Events & Diagnostics
hannounce.announce: Addedmessage(mutually exclusive withfileandurl), optionaltts_entityandlanguage,chime: custom, andforce: trueto bypass quiet hours for urgent announcements.hannounce.replay: Addedforce: trueto bypass quiet hours.- WebSocket & Event: Added
hannounce/saycommand for TTS announcements;hannounce_announcednow reportssource: "tts"for text messages sent from the card or panel. - Diagnostics: Redacts
custom_chimefile paths (**REDACTED**) and includescustom_chime_configured,tts, andquietruntime status.
0.2.0
- Automatic unmute and mute restoration during announcements (when not using native speaker announcement volume), preserving manual mid-playback volume changes.
- Native Home Assistant targets (
entity_id,area_id,floor_id,device_id,label_id) inhannounce.announceandhannounce.replay. - Chime preview button in the card and panel options dialog (synthesized via Web Audio API).
- Diagnostics download (
Settings > Devices & services > HA-nnounce > Download diagnostics) for troubleshooting without exposing URLs or user data. - Added German (
de), French (fr), Spanish (es), and Dutch (nl) translations for both backend and frontend. - Added GitHub Actions CI workflow running
ruff,pytest, and frontend unit tests.
0.1.1
- Added integration brand icons (
icon.pngandicon@2x.png) for Home Assistant.