You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.