You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: retry HA Discovery TreeXML on C-Gate startup race
C-Gate accepts TCP connections on the command port before its project's
networks are loaded, so the initial TREEXML query at bridge startup could
return 401 "Network not found" and HA Discovery would silently give up.
Devices never appeared in Home Assistant even though events flowed normally.
HaDiscovery now retries failed TreeXML requests with exponential backoff
(2s up to 60s, max 8 attempts), driven by both the 401 fast-fail and an
8s no-response watchdog. Once the retry limit is exhausted, the warning
explains how to recover via cbus/write/<network>///gettree.
Bumps to 1.8.1.
Copy file name to clipboardExpand all lines: homeassistant-addon/CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,11 @@ All notable changes to the C-Gate Web Bridge Home Assistant add-on will be docum
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [1.8.1] - 2026-05-04
9
+
10
+
### Fixed
11
+
-**HA Discovery startup race**: C-Gate accepts TCP connections on the command port before its project's networks are loaded, so the initial `TREEXML` query could return `401 Network not found` and HA Discovery would silently give up — devices never appeared in Home Assistant even though events flowed normally. `HaDiscovery` now retries failed TreeXML requests with exponential backoff (2s → 60s, up to 8 attempts), driven both by the `401 Network not found` fast-fail and an 8s no-response watchdog. After the retry limit, a clear warning explains how to recover via `cbus/write/<network>///gettree`.
this.logger.warn(`Received a new TreeXML start before previous tree completed; dropping incomplete tree for network ${this.activeTreeSession.network}`);
0 commit comments