Skip to content

1.1.0 Beta 5

Pre-release
Pre-release

Choose a tag to compare

@imonlinux imonlinux released this 03 Sep 20:13

Fixed

Runtime robustness (crashes and leaks, no behavior change):

  • cleanupDOM no longer deletes Home Assistant's own stylesheets. It removed every <style> element in hui-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 entity but no state_url no 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-assistant element exists, the plugin waits via the existing poll loop instead of dying at startup.

Opacity and per-render state:

  • Single-digit opacity values are no longer off by a factor of ten. Values were concatenated after 0., so opacity: 5 produced 0.50 instead of 0.05. Now computed numerically and clamped to 1-99.
  • Per-view opacity now 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_interval edits 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 srcdoc into 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_users who was also on an excluded_devices list still got the background. Precedence is now explicit and documented in the README:

    1. Any excluded_users / excluded_devices match (root or view/group config) disables the background.
    2. An explicit enabled: true / enabled: false on a view or group config applies next - it can override inclusion lists, never exclusions.
    3. 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.

Update

  1. HACS - Animated Background - Update to 1.1.0 Beta 5 (beta versions enabled)
  2. Hard-refresh the browser (Ctrl/Cmd+Shift+R)
  3. If updating manually, replace dist/animated-background.js and delete the sibling .gz so 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.