@tplnet/homebridge-tahoma 2.3.9 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,17 +28,26 @@ jobs:
28
28
  run: npm install -g npm@latest && npm --version
29
29
  - name: Check tag matches package.json version
30
30
  run: test "v$(node -p "require('./package.json').version")" = "${GITHUB_REF_NAME}"
31
+ - name: Check release notes in CHANGELOG.md
32
+ run: node scripts/release-notes.mjs "${GITHUB_REF_NAME#v}" > /dev/null
31
33
  - run: npm ci
32
34
  - name: CVE check (runtime dependencies)
33
35
  run: npm audit --omit=dev --audit-level=low
34
36
  - run: npm run lint
35
37
  - run: npm run build
36
38
  - name: Compatibility check with the newest Homebridge release
37
- run: npm install --no-save homebridge@latest && npm run smoke
39
+ run: |
40
+ npm install --no-save homebridge@latest && npm run smoke
41
+ echo "HOMEBRIDGE_VERSION=$(node -p "require('homebridge/package.json').version")" >> "$GITHUB_ENV"
38
42
  - name: Stage the package on npm
39
43
  shell: bash # -eo pipefail: fail the step if npm fails despite tee
40
44
  run: |
41
- npm stage publish 2>&1 | tee stage.log
45
+ TAG_ARGS=""
46
+ if [[ "$GITHUB_REF_NAME" == *-* ]]; then
47
+ # pre-releases (e.g. v1.4.0-beta.1) must not become the default version in the Homebridge UI
48
+ TAG_ARGS="--tag next"
49
+ fi
50
+ npm stage publish $TAG_ARGS 2>&1 | tee stage.log
42
51
  STAGE_ID=$(grep -oE '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}' stage.log | tail -1 || true)
43
52
  {
44
53
  echo "### ${GITHUB_REF_NAME} staged on npm – approval required"
@@ -50,4 +59,10 @@ jobs:
50
59
  - name: Create GitHub release
51
60
  env:
52
61
  GH_TOKEN: ${{ github.token }}
53
- run: gh release create "$GITHUB_REF_NAME" --generate-notes --verify-tag
62
+ shell: bash
63
+ run: |
64
+ VERSION="${GITHUB_REF_NAME#v}"
65
+ FLAGS=""
66
+ if [[ "$VERSION" == *-* ]]; then FLAGS="--prerelease"; fi
67
+ node scripts/release-notes.mjs "$VERSION" --checks > release-notes.md
68
+ gh release create "$GITHUB_REF_NAME" --verify-tag --title "$VERSION" --notes-file release-notes.md --generate-notes $FLAGS
@@ -0,0 +1,49 @@
1
+ name: Release notes
2
+ # Writes the description of a GitHub release from the matching section of CHANGELOG.md
3
+ # (new releases get it automatically from publish.yml). Use it to fill or correct existing releases:
4
+ # Actions > Release notes > Run workflow, tag e.g. v1.2.3 - or "all" for every release of this repository.
5
+ on:
6
+ workflow_dispatch:
7
+ inputs:
8
+ tag:
9
+ description: Release tag (e.g. v1.2.3) or "all"
10
+ required: true
11
+ default: all
12
+
13
+ permissions:
14
+ contents: write
15
+
16
+ jobs:
17
+ notes:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v7
21
+ - uses: actions/setup-node@v7
22
+ with:
23
+ node-version: 24
24
+ - name: Update release notes
25
+ shell: bash
26
+ env:
27
+ GH_TOKEN: ${{ github.token }}
28
+ TAG: ${{ inputs.tag }}
29
+ run: |
30
+ if [ "$TAG" = "all" ]; then
31
+ tags=$(gh release list --limit 200 --json tagName --jq '.[].tagName')
32
+ else
33
+ tags="$TAG"
34
+ fi
35
+ for tag in $tags; do
36
+ rm -f previous.md
37
+ # keep the "Checked for this release" section written by the publish run
38
+ gh release view "$tag" --json body --jq .body > previous.md 2> /dev/null || rm -f previous.md
39
+ if node scripts/release-notes.mjs "${tag#v}" "$tag" --keep-checks=previous.md > notes.md; then
40
+ if gh release view "$tag" > /dev/null 2>&1; then
41
+ gh release edit "$tag" --notes-file notes.md
42
+ else
43
+ gh release create "$tag" --title "${tag#v}" --notes-file notes.md --verify-tag
44
+ fi
45
+ echo "Updated $tag"
46
+ else
47
+ echo "::warning::No CHANGELOG.md section for $tag - release left unchanged"
48
+ fi
49
+ done
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 2.4.0 (2026-11-16)
2
+
3
+ ### Added
4
+
5
+ - Troubleshooting for a single device: with `"debug": true` in its device specific settings (settings form: *Device specific config* → *Troubleshooting*), the log shows at startup which commands and states the gateway offers for this device, plus the detailed log of its commands. Helps to find out why a device does not report changes (e.g. a garage door operated with its remote)
6
+
7
+ ## 2.3.10 (2026-11-16)
8
+
9
+ ### Fixed
10
+
11
+ - Log after Apple Home scenes: no more "setClosure undefined" lines for every device. Requires `@tplnet/overkiz-client` ^1.3.3, which marks only the devices that really failed. A failure is now logged as "FAILED:" with the reason from the gateway; without a reason, the gateway's message is logged, so the cause is visible
12
+
1
13
  ## 2.3.9 (2026-11-14)
2
14
 
3
15
  * Fix: the settings form no longer shows "Config validation failed" because of the empty device-specific entry the form adds by itself – the device name of a `devicesConfig` entry is optional in the schema, entries without a device name are ignored by the plugin
package/README.md CHANGED
@@ -15,6 +15,8 @@ Works with all **Overkiz** based platforms: Somfy TaHoma / TaHoma Switch / Conne
15
15
  > It is a **drop-in replacement**: the platform name stays `Tahoma`, so your configuration and your accessories in Apple Home are kept – see [Migrating](#migrating-from-homebridge-tahoma).
16
16
  > Changes compared to the original: [CHANGELOG.md](CHANGELOG.md).
17
17
 
18
+ > **Note:** Private hobby project, developed in spare time with the help of AI tools. Use at your own risk; support is best effort. See the [disclaimer](#disclaimer).
19
+
18
20
  ## Contents
19
21
 
20
22
  - [Requirements](#requirements)
@@ -26,8 +28,10 @@ Works with all **Overkiz** based platforms: Somfy TaHoma / TaHoma Switch / Conne
26
28
  - [Supported devices](#supported-devices)
27
29
  - [Troubleshooting](#troubleshooting)
28
30
  - [Compatibility and security](#compatibility-and-security)
31
+ - [Privacy](#privacy)
29
32
  - [Contributing](#contributing)
30
33
  - [Releasing (maintainers)](#releasing-maintainers)
34
+ - [Disclaimer](#disclaimer)
31
35
  - [License and credits](#license-and-credits)
32
36
 
33
37
  ## Requirements
@@ -161,6 +165,12 @@ More information: [Somfy TaHoma Developer Mode](https://github.com/Somfy-Develop
161
165
  | `blindsOnRollerShutter` | boolean | `false` | Blinds mounted on roller shutter motors: keep the slats horizontal (open) at intermediate positions |
162
166
  | `movementDuration` | number (s) | `0` | Duration of a full movement from open to closed; used to estimate intermediate positions (`0` = off) |
163
167
 
168
+ ### All devices
169
+
170
+ | Setting | Type | Default | Description |
171
+ |---|---|---|---|
172
+ | `debug` | boolean | `false` | Troubleshooting: logs at startup which commands and states the gateway offers for this device, and more details about its commands (without changing the global `debug`) |
173
+
164
174
  ### Garage doors and gates (GarageDoorOpener)
165
175
 
166
176
  | Setting | Type | Default | Description |
@@ -203,7 +213,7 @@ A device type that is not supported shows up in the log as *"… not supported"*
203
213
  | Changes made with a remote are not shown | RTS devices cannot report their state; keep `refreshPeriod` enabled |
204
214
  | Accessories disappeared after installing this plugin | Both plugins were installed at the same time – restore your backup and follow [Migrating](#migrating-from-homebridge-tahoma) |
205
215
 
206
- For a detailed log, set `"debug": true` and restart Homebridge.
216
+ For a detailed log, set `"debug": true` and restart Homebridge. For a single device, add `"debug": true` to its entry in `devicesConfig` – the log then also shows the commands and states the gateway offers for it.
207
217
 
208
218
  ## Compatibility and security
209
219
 
@@ -217,6 +227,27 @@ This plugin is kept compatible with the **newest Homebridge release** and free o
217
227
 
218
228
  Found a security issue? Please report it privately via GitHub (*Security* → *Report a vulnerability*) instead of a public issue.
219
229
 
230
+ ## Privacy
231
+
232
+ This plugin collects **no data about you** and contains **no telemetry, analytics or tracking**. It does not connect to the author or any other third party.
233
+
234
+ Network connections depend on the selected `service`:
235
+
236
+ | Service | Connections |
237
+ |---|---|
238
+ | `local` | Only to **your TaHoma gateway in your home network** (HTTPS, port 8443), plus an mDNS lookup in the local network when the gateway is configured by its PIN. **Nothing leaves your network.** |
239
+ | Cloud services | Only to the servers of the selected service, e.g. `ha101-1.overkiz.com` for Somfy Europe; Cozytouch additionally uses `apis.groupe-atlantic.com` to log in. |
240
+ | `proxy` option | All requests go to the proxy you configure – only if you set it. |
241
+
242
+ What is stored or sent:
243
+
244
+ - **Credentials** (gateway PIN/IP and token, or account e-mail and password) are kept in Homebridge's `config.json`, like for every Homebridge plugin. The plugin does not store them anywhere else and never writes the token or password to the log.
245
+ - **Accessory cache**: Homebridge stores device names and IDs in its accessory cache.
246
+ - **Log**: operational messages (commands, states, errors) go to the Homebridge log; with `"debug": true` also the requested gateway paths.
247
+ - **Command label**: each command carries a label made of the device name, the command and *"Apple Home"*, shown in the history of the TaHoma app. With the local API it stays on your gateway; with a cloud service it is sent to that service.
248
+
249
+ The package has no install scripts, and its runtime dependencies do not send data anywhere either.
250
+
220
251
  ## Contributing
221
252
 
222
253
  Bug reports, device support requests and pull requests are welcome: <https://github.com/tplnet/homebridge-tahoma/issues>.
@@ -235,6 +266,17 @@ The `Publish to npm` workflow **stages** the version on npm via Trusted Publishi
235
266
  The version becomes public only after approval with 2FA/passkey: npmjs.com → package → *Staged Packages*, or `npm stage approve <stage-id>`
236
267
  (the id is shown in the workflow run summary and by `npm stage list <package>`).
237
268
 
269
+ Release notes: before tagging, describe the changes in a `## X.Y.Z` section at the top of `CHANGELOG.md`. `npm version` refuses to run without it, and the workflow uses this section as the description of the GitHub release (and stops before publishing if it is missing). Start each entry with what changes for the user, technical details after it; with several entries, group them under `### Added`, `### Changed`, `### Fixed` and `### Security`. The release also lists what was checked before it went out (newest Homebridge release, no known vulnerabilities, tested Node.js versions). Pre-release versions (e.g. `1.4.0-beta.1`) are published under the npm tag `next` and marked as pre-release on GitHub. Existing releases can be (re)filled with *Actions* → *Release notes* → *Run workflow* (tag or `all`); the checks written by the publish run are kept.
270
+
271
+ ## Disclaimer
272
+
273
+ This is a private development project. It exists to keep the plugin compatible with current Homebridge releases, to apply security updates, to add features and to fix bugs.
274
+
275
+ - It is developed in spare time and with the help of AI tools. Every change goes through the automated checks described under [Compatibility and security](#compatibility-and-security) and is tested with real devices where possible, but mistakes can still happen.
276
+ - **Use at your own risk.** The plugin is provided as is, without any warranty (see the [Apache License 2.0](LICENSE)).
277
+ - Questions, bug reports and feature requests are welcome and are handled on a best-effort basis. There is no guaranteed response time and no guarantee that a request will be implemented.
278
+ - This project is not affiliated with or endorsed by Somfy, Overkiz, Apple or the Homebridge project. All product names are trademarks of their respective owners.
279
+
238
280
  ## License and credits
239
281
 
240
282
  [Apache License 2.0](LICENSE). Original work © Romain Duboc and contributors – thank you for creating and maintaining this plugin for years. Modifications © 2026 tplnet, see [NOTICE](NOTICE).
@@ -176,6 +176,11 @@
176
176
  "title": "Night Zones",
177
177
  "type": "string",
178
178
  "description": "Zones to activate in Night mode"
179
+ },
180
+ "debug": {
181
+ "title": "Debug log",
182
+ "type": "boolean",
183
+ "description": "Log the commands and states this device offers, and more details about its commands (for troubleshooting)"
179
184
  }
180
185
  }
181
186
  }
@@ -257,6 +262,15 @@
257
262
  "devicesConfig[].stayZones",
258
263
  "devicesConfig[].nightZones"
259
264
  ]
265
+ },
266
+ {
267
+ "title": "Troubleshooting",
268
+ "type": "section",
269
+ "expandable": true,
270
+ "expanded": false,
271
+ "items": [
272
+ "devicesConfig[].debug"
273
+ ]
260
274
  }
261
275
  ]
262
276
  }
package/dist/Mapper.d.ts CHANGED
@@ -10,6 +10,7 @@ export default abstract class Mapper {
10
10
  private postponeTimer;
11
11
  private debounceTimer;
12
12
  protected stateless: boolean;
13
+ protected deviceDebug: boolean;
13
14
  private executionId;
14
15
  private actionPromise;
15
16
  private inFlight;
@@ -30,6 +31,11 @@ export default abstract class Mapper {
30
31
  /**
31
32
  * Logging methods
32
33
  */
34
+ /**
35
+ * Logs what the gateway knows about this device (enabled with `debug: true` in the device specific config):
36
+ * commands with their number of parameters, current states and attached sensors.
37
+ */
38
+ private logDeviceDetails;
33
39
  protected debug(...args: any[]): void;
34
40
  protected info(...args: any[]): void;
35
41
  protected warn(...args: any[]): void;
package/dist/Mapper.js CHANGED
@@ -13,6 +13,7 @@ export default class Mapper {
13
13
  postponeTimer;
14
14
  debounceTimer;
15
15
  stateless = false;
16
+ deviceDebug = false;
16
17
  //protected config: Record<string, string | boolean | number> = {};
17
18
  executionId;
18
19
  actionPromise;
@@ -31,7 +32,11 @@ export default class Mapper {
31
32
  const config = Object.assign({}, this.platform.devicesConfig[this.device.definition.uiClass], this.platform.devicesConfig[this.device.definition.widgetName], this.platform.devicesConfig[this.device.label], this.platform.devicesConfig[this.device.uuid]);
32
33
  this.stateless = this.device.states.length === 0 ||
33
34
  (this.expectedStates.length > 0 && !this.expectedStates.some((state) => this.device.hasState(state)));
35
+ this.deviceDebug = config.debug === true;
34
36
  this.applyConfig(config);
37
+ if (this.deviceDebug) {
38
+ this.logDeviceDetails();
39
+ }
35
40
  if (Object.keys(config).length > 0) {
36
41
  delete config.key;
37
42
  if (this.platform.config.debug) {
@@ -60,15 +65,15 @@ export default class Mapper {
60
65
  // Init and register states changes
61
66
  this.onStatesChanged(this.device.states, true);
62
67
  this.device.on('states', states => this.onStatesChanged(states));
63
- // Init and register sensors states changes
68
+ // Sensors attached to this device (temperature, energy consumption) are not exposed
69
+ // as accessories or services of their own: their states are forwarded to this mapper,
70
+ // which shows them on its main service (e.g. CurrentTemperature, TotalConsumption).
71
+ // A separate sensor mapper would duplicate these values in HomeKit.
64
72
  this.device.sensors.forEach((sensor) => {
65
73
  this.onStatesChanged(sensor.states, true);
66
74
  sensor.on('states', states => this.onStatesChanged(states));
67
75
  });
68
76
  }
69
- // TODO: instanciate mapper for device sensors
70
- // Configure accessory sensors
71
- // this.device.sensors.forEach((sensor) => new mapper(platform, accessory, sensor)))
72
77
  }
73
78
  /**
74
79
  * Helper methods
@@ -185,7 +190,13 @@ export default class Mapper {
185
190
  this.actionPromise.action = action;
186
191
  action.on('update', (state, event) => {
187
192
  if (state === ExecutionState.FAILED) {
188
- this.error(commandName, event?.failureType);
193
+ // Reason sent by the gateway; without one, log the raw event to make the cause visible
194
+ const reason = event?.failureType ?? event?.failureTypeCode ??
195
+ (event ? JSON.stringify(event) : 'no reason given by the gateway');
196
+ this.error(commandName, 'FAILED:', reason);
197
+ }
198
+ else if (!state) {
199
+ this.debug(commandName, 'update without state', event ? JSON.stringify(event) : '');
189
200
  }
190
201
  else if (state === ExecutionState.COMPLETED) {
191
202
  this.info(commandName, state);
@@ -215,8 +226,27 @@ export default class Mapper {
215
226
  /**
216
227
  * Logging methods
217
228
  */
229
+ /**
230
+ * Logs what the gateway knows about this device (enabled with `debug: true` in the device specific config):
231
+ * commands with their number of parameters, current states and attached sensors.
232
+ */
233
+ logDeviceDetails() {
234
+ const commands = (this.device.definition.commands ?? [])
235
+ .map((command) => `${command.commandName}(${command.nparams ?? 0})`)
236
+ .join(', ');
237
+ const states = (this.device.states ?? [])
238
+ .map((state) => `${state.name}=${JSON.stringify(state.value)}`)
239
+ .join(', ');
240
+ this.info(`Device details: ${this.device.definition.uiClass} > ${this.device.definition.widgetName},`, `controllable ${this.device.controllableName}, protocol ${this.device.protocol}`);
241
+ this.info(`Commands: ${commands || 'none'}`);
242
+ this.info(`States: ${states || 'none'}`);
243
+ for (const sensor of this.device.sensors ?? []) {
244
+ const sensorStates = (sensor.states ?? []).map((state) => `${state.name}=${JSON.stringify(state.value)}`).join(', ');
245
+ this.info(`Sensor ${sensor.definition.widgetName}: ${sensorStates || 'no states'}`);
246
+ }
247
+ }
218
248
  debug(...args) {
219
- if (this.platform.config.debug) {
249
+ if (this.platform.config.debug || this.deviceDebug) {
220
250
  this.platform.log.info(`${GREY}[${this.device.label}]`, ...args);
221
251
  }
222
252
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"Mapper.js","sourceRoot":"","sources":["../src/Mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EAA0B,MAAM,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,OAAO,OAAgB,MAAM;IAmBT;IACA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Ae;QACjB,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACjE,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tplnet/homebridge-tahoma",
3
3
  "displayName": "Homebridge Somfy TaHoma (tplnet)",
4
4
  "type": "module",
5
- "version": "2.3.9",
5
+ "version": "2.4.0",
6
6
  "description": "Homebridge plugin for TaHoma and Cozytouch services (Somfy, Atlantic, Thermor, Sauter). Maintained fork of dubocr/homebridge-tahoma.",
7
7
  "author": "Romain DUBOC <dubocr@gmail.com>",
8
8
  "license": "Apache-2.0",
@@ -24,7 +24,8 @@
24
24
  "clean": "rimraf ./dist",
25
25
  "build": "rimraf ./dist && tsc",
26
26
  "prepublishOnly": "npm run lint && npm run build",
27
- "smoke": "node scripts/homebridge-smoke.mjs"
27
+ "smoke": "node scripts/homebridge-smoke.mjs",
28
+ "version": "node scripts/release-notes.mjs > /dev/null"
28
29
  },
29
30
  "keywords": [
30
31
  "homebridge-plugin",
@@ -35,7 +36,7 @@
35
36
  ],
36
37
  "homepage": "https://github.com/tplnet/homebridge-tahoma#readme",
37
38
  "dependencies": {
38
- "overkiz-client": "npm:@tplnet/overkiz-client@^1.3.2"
39
+ "overkiz-client": "npm:@tplnet/overkiz-client@^1.3.3"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@eslint/js": "^10.0.1",