Commit Graph

7 Commits

Author SHA1 Message Date
Clawd
5cdc4e2ce2 Fix stale data after HA outage recovery
Some checks failed
Release Drafter / update_release_draft (push) Failing after 5s
Two bugs caused the module to show outdated data permanently after HA
came back online:

1. refreshTimer was only checked at section level, but config sets it at
   the module config level. The setInterval never started, so there was
   no periodic re-render fallback when the WebSocket died.

2. _closeCircuit replayed queued templates but never reconnected the
   WebSocket. Without WS, no state_changed events fire, so the only
   render path was the (broken) refreshTimer.

Also fixes a race condition in _healthCheck where breaker.state was
briefly set to 'closed' before calling _openCircuit on failure. Now
uses 'half-open' state instead.
2026-03-01 08:59:15 +00:00
gonzonia
d5fb5308aa Update MMM-HomeAssistantDisplay.js
Fixed missing bracket
2025-03-13 20:51:16 -04:00
gonzonia
6e1d78e4bc Update MMM-HomeAssistantDisplay.js
Was showing the module despite template resolving to false. Adjusted the code to check differently and set this.displayModule accordingly.
2025-03-13 13:57:21 -04:00
RJ Fendricks
4e530bc9eb Set the refreshTimer to expect seconds 2023-10-24 21:00:33 -04:00
RJ Fendricks
805ec290ec Rename triggerTimer to refreshTimer 2023-10-24 17:13:44 -04:00
RJ Fendricks
71e13d6ab3 Add a timer to trigger template re-rendering 2023-10-24 15:23:48 -04:00
btowles
392ef6ccc0 Initial Commit 2021-08-16 02:36:15 +00:00