Repository navigation
1.1.0 Beta 5
Pre-release
Pre-release
Fixed
Runtime robustness (crashes and leaks, no behavior change):
cleanupDOMno longer deletes Home Assistant's own stylesheets. It removed every<style>element inhui-root's shadow root, stripping HA styling and silently breaking card-mod theming after navigating between dashboards. Only the plugin's own tagged stylesheet is removed now.- A config with
entitybut nostate_urlno longer crashes the plugin. The runtime threw an uncaught TypeError on every render poll in that state - a plausible half-finished config the editor itself warns about. The default background renders instead. restart()no longer leaks its polling interval when invoked repeatedly during rapid navigation (the handle was shadowed by a hoisted local, so the clear call was a no-op).clearMemes()resets its iteration counter, so the view-background clearing window is always the full two seconds. A partially spent counter previously shortened it, causing intermittent opaque backgrounds on view switches.- Loading before Home Assistant mounts no longer throws. If the resource loads before the
home-assistantelement exists, the plugin waits via the existing poll loop instead of dying at startup.
Opacity and per-render state:
- Single-digit
opacityvalues are no longer off by a factor of ten. Values were concatenated after0., soopacity: 5produced 0.50 instead of 0.05. Now computed numerically and clamped to 1-99. - Per-view
opacitynow applies on navigation. The stylesheet was only written on the first render of a page load, so the first view's value persisted until a full reload. refresh_intervaledits restart the timer instead of waiting for a page reload.- README now documents the opacity range as 1-99, matching the runtime (0 has never applied) and the editor's validation.
Hardening:
- The background iframe is built with element properties instead of interpolating
srcdocinto an HTML attribute, where a double quote in a URL or overlay color would blank the background with no diagnostic. - Duplicate resource registration (e.g. a leftover
/local/entry plus the/hacsfiles/one) is now detected and logged instead of running two competing render loops.
Changed
-
Exclusions always win over inclusions. Previously a user in
included_userswho was also on anexcluded_deviceslist still got the background. Precedence is now explicit and documented in the README:- Any
excluded_users/excluded_devicesmatch (root or view/group config) disables the background. - An explicit
enabled: true/enabled: falseon a view or group config applies next - it can override inclusion lists, never exclusions. - Inclusion lists act as allowlists: if any is configured, the current user or device must match at least one of them. Empty inclusion lists no longer disable everything.
- Any
Update
- HACS - Animated Background - Update to 1.1.0 Beta 5 (beta versions enabled)
- Hard-refresh the browser (Ctrl/Cmd+Shift+R)
- If updating manually, replace
dist/animated-background.jsand delete the sibling.gzso HACS does not serve the stale compressed copy
The console banner reads ANIMATED-BACKGROUND v1.1.0 - that label is shared across the 1.1.0 betas.
Re-tested against Home Assistant 2026.8.