New: Optional Local HTTP Support
Added an opt-in toggle for unsecured HTTP connections on local networks.
Supports private IP addresses and .local hostnames.
Automatically supports WebSocket connections over ws://.
HTTPS remains the default for security.
Improved connection validation and added security warnings.
Note: Unsecured HTTP should only be used on trusted local networks.
Major release: Complete Home Assistant integration with reusable audio streaming for Pebble applications
Home Assistant Bridge 1.0 introduces a standardized connection between Pebble applications and Home Assistant, including secure device access, conversation processing, speech generation, and reusable audio streaming.
### What's New
- Reusable audio SDK: Developers can now integrate Home Assistant speech playback into their own Pebble applications using a documented JavaScript and C audio library.
- Native watch audio support: Streams Home Assistant speech to compatible Pebble speakers using efficient IMA ADPCM encoding.
- Progressive WAV streaming: Verified audio chunks can be delivered as they become available rather than waiting for an entire recording.
- Multi-sentence speech support: Enables longer spoken responses with next-sentence preparation and more consistent audio playback.
- Shared voice configuration: Centralized selection of Home Assistant conversation agents, text-to-speech engines, speech-to-text engines, and Assist pipelines.
- Expanded Home Assistant API: Provides supported plugin actions for reading entities, processing conversations, rendering templates, controlling devices, and triggering events.
- Developer documentation: New integration examples, audio SDK source files, and implementation instructions.
### Improvements and Fixes
- Fixed WAV corruption and static caused by binary transfer encoding.
- Improved support for Home Assistant's streaming WAV files and nonstandard audio length headers.
- Added automatic normalization and resampling to 8 kHz mono, 16-bit PCM audio.
- Added per-chunk checksums and complete WAV integrity verification.
- Fixed truncated WAV playback and premature audio-session expiration.
- Improved temporary audio-session storage, retrieval, and cleanup.
- Reduced speech preparation latency by including the first verified audio chunk in the preparation response.
- Improved audio transfer performance and reduced unnecessary delays between sentences.
- Added automatic retries for transient Home Assistant HTTP 429, 500, 502, 503, and 504 errors.
- Improved handling of unavailable TTS engines and failed audio requests.
- Expanded diagnostics for audio generation, download, processing, and delivery.
- Added automated audio, API, security, and compatibility regression tests.
### Security and Compatibility
- Home Assistant credentials remain securely managed by the Bridge plugin.
- Applications can access Home Assistant through declared plugin permissions without independently storing server credentials.
- Home Assistant AI v1.0.0 uses this Bridge as its required connection and speech provider.
- Other Pebble developers can reuse the same audio implementation without rebuilding the speech transport.
### For Developers
The new audio SDK includes:
- `ha_audio.js` — TTS requests, verified WAV streaming, ADPCM encoding, and Bluetooth transfer management.
- `ha_audio.c` — Native Pebble speaker playback, buffering, decoding, and audio statistics.
- `ha_audio.h` — Public C integration interface.
Integration guide: https://github.com/ericlmccormick/Pebble-HA-plug-in/tree/main/sdk
Version 1.0 establishes Home Assistant Bridge as a reusable foundation for Home Assistant-enabled Pebble applications.
The plugin settings now have a Voice & AI defaults section with four selectors:
- Speech-to-text engine: Available engines identified through configured Assist pipelines.
- Text-to-speech engine: Available TTS entities and engines.
- Conversation agent: Available Home Assistant agents, including compatible AI agents.
- Assist pipeline: Available pipelines, including the preferred default.
Adds proper category for the store