Skip to content

Commit 8834f50

Browse files
committed
chore: bump version to 1.8.0
1 parent d41576c commit 8834f50

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

homeassistant-addon/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to the C-Gate Web Bridge Home Assistant add-on will be docum
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.8.0] - 2026-04-29
9+
10+
### Changed
11+
- **MQTT pre-connect log noise**: when the bridge starts before the MQTT broker is reachable, `MqttManager` now warns once per disconnect window instead of per-publish. On reconnect, a single rolled-up info line reports how many publishes were dropped while disconnected. Eliminates ~17 startup warnings per restart and bounds spam if the broker stays unreachable.
12+
- **Network auto-discovery fallback**: when `tree //PROJECT` returns a 4xx/5xx (e.g. C-Gate 402 "Operation not supported"), the discovery handler now claims the response so the default error logger does not also fire, and the discovery messages are demoted from WARN/ERROR to INFO since the fallback to configured `getall_networks` is the expected path on C-Gate versions that do not support project-level tree queries.
13+
14+
### Refactor
15+
- Extracted entity-id field construction (`default_entity_id` + `object_id`) into a shared `entityIdFields(component, objectId)` helper in `src/constants.js` and replaced six inline callsites across `haDiscovery`, `haBridgeDiagnostics`, and `staleDeviceDetector`.
16+
- Replaced raw `'sensor'`, `'binary_sensor'`, and `'cgateweb_bridge'` string literals with `HA_COMPONENT_SENSOR`, `HA_COMPONENT_BINARY_SENSOR`, and `HA_DEVICE_VIA` constants for consistency with the rest of the HA discovery code.
17+
818
## [1.7.2] - 2026-04-19
919

1020
### Fixed

homeassistant-addon/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "C-Gate Web Bridge"
2-
version: "1.7.2"
2+
version: "1.8.0"
33
slug: cgateweb
44
description: "Bridge between Clipsal C-Bus systems and MQTT/Home Assistant"
55
url: "https://github.com/dougrathbone/cgateweb"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cgateweb",
3-
"version": "1.7.2",
3+
"version": "1.8.0",
44
"description": "Node.js bridge connecting Clipsal C-Bus automation systems to MQTT for Home Assistant integration",
55
"keywords": [
66
"cbus",

0 commit comments

Comments
 (0)