Skip to content

v1.3.6.2

Choose a tag to compare

@djdevil djdevil released this 09 Jul 17:02
ed6399c

AlertTicker Card — v1.3.6.2

🩹 Patch Fix

Weather widget stops displaying after HA restart (#181)

After a Home Assistant restart, the weather forecast widget went blank and required a browser refresh to recover.

Root cause — two separate problems that compound each other:

  1. WebSocket reconnect not detected: When HA restarts, the weather/subscribe_forecast WebSocket subscription is killed on the server side. The card uses a subscribe guard (entity !== forecastEntity) to avoid redundant re-subscriptions during normal operation — but this guard also blocked re-subscription after the reconnect, since the entity name hadn't changed. _forecastData became permanently stale and the forecast panel went blank.

  2. Card remount not triggering re-subscribe: disconnectedCallback nulled _forecastUnsub but left _forecastEntity set. If Lovelace remounted the card (dashboard navigation, panel reload), the subscribe guard again prevented a fresh subscription.

Fix:

  • hass.connection.socket is tracked on every hass update. When it becomes a new object (a new WebSocket is opened after HA reconnects), _forecastEntity is reset to null, forcing a fresh weather/subscribe_forecast subscription.
  • _forecastEntity is also reset to null in disconnectedCallback so any remount always starts a clean subscription.

No configuration changes needed.


disable_animation / clear_disable_animation — sun, halo, shooting star, and snowflakes still animating (#172)

Four weather elements were not included in the animation-play-state: paused !important rule and continued to animate even when disable_animation or clear_disable_animation was enabled:

  • Sun core glow pulse (.sun-coresunBreath)
  • Sun halo float (.sun-halohaloFloat)
  • Shooting star trail (.w-shooting-starshootingStar)
  • Falling snowflakes (.w-snowflakesnowFall)

All four selectors are now included, completing full animation suppression for the All Clear weather widget.

No configuration changes needed.


📦 Update Instructions

  1. Download alert-ticker-card.js and alert-ticker-card-editor.js
  2. Replace both files in your www/ folder (or the path you set in Resources)
  3. Hard-reload the browser: Ctrl+Shift+R / Cmd+Shift+R

HACS users: update from the HACS panel — no manual steps needed.


Full changelog: CHANGELOG.md


☕ If this card saves you time, consider buying me a coffee — it keeps the updates coming!

Buy Me A Coffee