Skip to content

v2.3.5 — SSE Broadcast Fix

Choose a tag to compare

@rusty4444 rusty4444 released this 05 Jul 16:12

v2.3.5 — SSE Broadcast Fix

Bug Fix

  • Fix SSE null broadcasts during active playback (#108, #112). The add-on's Server-Sent Events (/api/events) endpoint previously broadcast null (blanking the kiosk overlay) when an unrelated media player in the house changed state during active playback. The state-change handler now recomputes the Now Showing payload from all Home Assistant media_player states after a 300ms debounce window, matching the same computation /api/state serves. A new stateBroadcaster module with full test coverage handles debouncing, error resilience, and graceful shutdown.

Maintenance

  • Extracted state broadcast logic from server.js into dedicated stateBroadcaster.js module with 3 tests: full-state recompute, debounce coalescing, and transient error resilience.