Clawd
5cdc4e2ce2
Fix stale data after HA outage recovery
...
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
Clawd
de03a33138
Add circuit breaker for HA connectivity failures
...
Release Drafter / update_release_draft (push) Failing after 5s
When Home Assistant becomes unreachable (WiFi dropout, HA restart, etc.),
the module now:
- Detects connectivity errors (ENETUNREACH, timeout, etc.)
- Opens a circuit breaker that stops ALL template evaluations immediately
- Runs a single coalesced health check with exponential backoff (15s→300s)
- Queues pending evaluations and replays them when HA comes back
- Suppresses error log spam while circuit is open
Previously, each of the 11 sections would independently fail + retry,
flooding the event loop with 30+ error callbacks in the same millisecond
and freezing Electron's renderer.
Fixes repeated MagicMirror freezes during transient network outages.
2026-02-27 15:16:29 +00:00
Clawd
8831ee9e13
Remove debug log spam from hot path entirely
...
Release Drafter / update_release_draft (push) Failing after 4s
The conditional config.debuglogging checks were not working reliably
in node_helper context. Removed debug logging from onStateChangedEvent
entirely (it fires on every entity state change - multiple times per
second for power sensors). WS disconnect promoted to info level since
it's actually useful.
2026-02-23 20:11:51 +00:00
Clawd
a2955ceab4
Fix debug log spam by gating debug logs with config.debuglogging
...
Release Drafter / update_release_draft (push) Failing after 4s
- Added config.debuglogging check to 'Found listening connection' debug log
- Added config.debuglogging check to 'Hass WS Disconnected' debug log
- Prevents log spam when debuglogging is disabled (default)
- Fixes issue causing multi-GB log files from frequent state change events
2026-02-23 19:54:06 +00:00
Clawd
9ba31cbafe
Fix template evaluation timeouts and add retry logic
...
Release Drafter / update_release_draft (push) Failing after 4s
- Add 10 second timeout to template evaluation HTTP calls
- Add retry logic that schedules retry after 30 seconds on failure
- Maintains existing error handling while preventing silent failures
- Fixes issue where template errors cause data to stay stale until next WebSocket event
2026-02-23 18:01:36 +00:00
Brian Towles
51a9aa5cc9
Merge pull request #42 from gonzonia/main
...
Release Drafter / update_release_draft (push) Has been cancelled
Module was displaying even if template resolved to false
2025-03-13 20:45:29 -05:00
Brian Towles
50bfcae3e5
Merge pull request #35 from eltociear/patch-1
...
docs: update README.md
2025-03-13 20:44:12 -05: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
gonzonia
d09d24436b
Update .gitignore
2025-03-13 13:55:43 -04:00
Ikko Eltociear Ashimine
c1d4c6f95f
docs: update README.md
...
Programatic -> Programmatic
2024-11-04 21:22:30 +09:00
Brian Towles
db03d5a5d3
Merge pull request #26 from wonderslug/dependabot/github_actions/release-drafter/release-drafter-6
...
Bump release-drafter/release-drafter from 5 to 6
2024-10-16 20:50:23 -05:00
Brian Towles
e87b360145
Clean up README
2024-10-16 20:45:08 -05:00
Brian Towles
6658734774
Fix issue with stylelint dev dependency
2024-10-16 20:41:53 -05:00
dependabot[bot]
f2e2869bb7
Bump release-drafter/release-drafter from 5 to 6
...
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter ) from 5 to 6.
- [Release notes](https://github.com/release-drafter/release-drafter/releases )
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-18 06:09:46 +00:00
Brian Towles
79a5397342
Merge pull request #18 from wonderslug/dependabot/npm_and_yarn/stylelint-config-standard-34.0.0
...
Bump stylelint-config-standard from 28.0.0 to 34.0.0
2024-03-15 20:34:23 -05:00
Brian Towles
06cfb63ec3
Merge pull request #12 from MinhPho/bugfix/README-usage-correction
...
Update README with correct usage syntax
2024-03-15 20:33:33 -05:00
Brian Towles
ed254bf6d8
Update README.md
...
Fix minor issues in documentation - #24
2024-03-15 12:41:19 -05:00
Brian Towles
21273e227d
Add refresh timer for re-rendering displayTemplate
...
Add refresh timer for re-rendering displayTemplate
2023-10-25 08:02:00 -05: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
7f506931c3
Add information for triggerTimer in README
2023-10-24 15:23:52 -04:00
RJ Fendricks
71e13d6ab3
Add a timer to trigger template re-rendering
2023-10-24 15:23:48 -04:00
dependabot[bot]
0adc955205
Bump stylelint-config-standard from 28.0.0 to 34.0.0
...
Bumps [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard ) from 28.0.0 to 34.0.0.
- [Release notes](https://github.com/stylelint/stylelint-config-standard/releases )
- [Changelog](https://github.com/stylelint/stylelint-config-standard/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint-config-standard/compare/28.0.0...34.0.0 )
---
updated-dependencies:
- dependency-name: stylelint-config-standard
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-13 06:31:04 +00:00
Brian Towles
6a67a6160f
Merge pull request #10 from bphermansson/Update-README
...
Update readme
2023-05-15 08:18:34 -05:00
Brian Towles
beba34b5b0
Merge pull request #13 from MasX/fix-package-json
...
Update package.json
2023-05-15 08:17:30 -05:00
MasX
c70113d298
Update package.json
...
Set `stylelint` and `stylelint-config-standard` versions, because version 15 of stylelint is not compatible with `grunt-stylelint`.
2023-04-10 15:26:23 +02:00
MinhPho
93c467eb6a
Update README with correct usage syntax
...
Update incorrect usage syntax for Programatic Sections code example
2023-04-02 16:39:36 +02:00
Patrik Hermansson
8d9e67b858
Add files via upload
2022-10-25 16:12:04 +02:00
Patrik Hermansson
4c3fdaf0c7
Update README.md
2022-10-25 16:07:28 +02:00
Patrik Hermansson
8b465d2dc5
Update README.md
2022-10-25 16:01:23 +02:00
Brian Towles
26372b9b6c
Update package.json
...
update for version release
2022-05-28 10:05:33 -05:00
Brian Towles
61e248eed2
Merge pull request #7 from wonderslug/reconnecty-issue
...
Fix for #6 reconnect issue.
2022-05-28 10:03:50 -05:00
Brian Towles
4faf5c938b
Fix for #6 reconnect issue.
2022-05-28 10:01:28 -05:00
Brian Towles
2e30ffe5bf
Update README.md
2022-05-05 08:16:11 -05:00
Brian Towles
198fe1d5ad
Update README.md
2022-05-05 08:15:01 -05:00
Brian Towles
44298f04ad
Merge pull request #4 from wonderslug/fixes-examples
...
Fix examples
2022-05-04 19:47:33 -05:00
Brian Towles
d7da354c0c
Fix examples
...
Fixes #2 and #3
2022-05-04 19:46:10 -05:00
Brian Towles
b21a9c78e8
Update README.md
2021-08-25 08:07:20 -05:00
Brian Towles
775183201c
Update README.md
2021-08-21 22:36:17 -05:00
Brian Towles
6e749727dd
Update README.md
2021-08-17 17:10:30 -05:00
Brian Towles
b6aad3f116
Update README.md
2021-08-16 09:01:31 -05:00
Brian Towles
ac74c5b827
Update README.md
2021-08-15 23:11:14 -05:00
Brian Towles
2653307fdf
Added screenshot
2021-08-15 23:06:15 -05:00
Brian Towles
21f4f54785
Update before release
2021-08-15 22:12:03 -05:00
Brian Towles
9f9b8ec40b
Update publish_on_release.yml
2021-08-15 22:01:51 -05:00
Brian Towles
706bd714db
Update README.md
2021-08-15 21:59:01 -05:00
Brian Towles
6fc6325a53
Update publish_on_release.yml
2021-08-15 21:53:30 -05:00
Brian Towles
90a36b4423
Create publish_on_release.yml
2021-08-15 21:50:17 -05:00
btowles
0b9628575a
fix release-drafter
2021-08-16 02:45:50 +00:00