@pellebot/homebridge-fritz-platform-hb2 1.3.0 → 1.3.1

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  > **Hinweis zum Format:** Releases ab `v1.0.0` werden unter dem npm-Paket `@pellebot/homebridge-fritz-platform-hb2` veröffentlicht. Die `6.1.0-hb2patch.x` Pre-Releases sind Vorstufen unter dem alten Paketnamen `@pellebot/homebridge-fritz-platform` (deprecated). Die `registerPlatform`-Kennung bleibt durchgängig `homebridge-fritz-platform`, sodass cached Accessories über den Rename hinweg matchen — kein Re-Pairing nötig.
4
4
 
5
+ # v1.3.1 — 2026-11-15 (Wizard: weniger Knöpfe)
6
+
7
+ **Schritt 5 des Setup-Wizards ist aufgeräumt.** Rückmeldung aus dem Betrieb: zu viele Knöpfe für eine Aufgabe.
8
+
9
+ ## Änderungen
10
+
11
+ - Es gibt nur noch einen Speichern-Knopf: Der „Save“-Knopf von Config UI X wird im Wizard ausgegraut (`homebridge.disableSaveButton()`, bei älteren Versionen ohne diese Funktion bleibt er unverändert).
12
+ - Der Knopf „Homebridge jetzt neu starten“ entfällt. Er konnte aus dem Wizard heraus nicht neu starten (die Plugin-UI-Schnittstelle bietet das nicht an) und zeigte danach einen zweiten Hinweiskasten mit `sudo hb-service restart`. Nach dem Speichern erscheint jetzt ein einziger Hinweis: Neustart über das Symbol oben rechts in Config UI X.
13
+ - Einleitungstext von Schritt 5 gekürzt.
14
+
15
+ ## Breaking Changes
16
+
17
+ Keine. Config-Format unverändert.
18
+
19
+ ---
20
+
5
21
  # v1.3.0 — 2026-11-15 (Presence als Opt-in)
6
22
 
7
23
  **WLAN-Anwesenheit („Presence“) ist als optionale Funktion zurück.** Auf Anfrage aus der Community (Haushalt nur mit Apple-Geräten) zeigt das Plugin wieder an, ob ein Gerät — typisch ein iPhone — im Netz der FRITZ!Box ist. Standardmäßig ist die Funktion aus; sie wirkt nur für `presence`-Einträge mit `active: true`.
@@ -7,7 +7,7 @@
7
7
  C. Device discovery — Step 2 with auto-detected accType per device
8
8
  D. Energy 250 OBIS-Reader auto-setup — Step 3 (4 tiles per reader)
9
9
  E. Router-Switches — Step 4 (master.options pre-hydrated from config)
10
- F. Save + Apply — Step 5 (writes config.json, restarts Homebridge)
10
+ F. Save — Step 5 (writes config.json; restart via the Config UI X toolbar)
11
11
  G. Edit-Mode — re-run preserves user edits (tile names, accType, energy
12
12
  display type, router-switches) by hydrating wizardState from the
13
13
  existing config.json. Step 5 shows a diff of pending changes.
@@ -351,9 +351,8 @@
351
351
  <div class="step-pane" id="step-5">
352
352
  <div class="alert alert-info">
353
353
  <strong>Schritt 5 — Konfiguration speichern</strong><br>
354
- Zusammenfassung deiner Auswahl. Klick auf <em>"Konfiguration speichern"</em>
355
- unten um die <code>config.json</code> zu aktualisieren. Danach musst du
356
- Homebridge neu starten damit die Änderungen wirksam werden.
354
+ Prüfe die Zusammenfassung und speichere. Wirksam wird die Änderung nach einem
355
+ Neustart von Homebridge.
357
356
  </div>
358
357
 
359
358
  <div id="saveSummary" style="margin-top: 1rem;"></div>
@@ -391,6 +390,14 @@
391
390
  presenceOptions: null, // v1.3.0: { anyone, guest, accType }
392
391
  };
393
392
 
393
+ // v1.3.1: the wizard saves via its own button. Grey out the Config UI X
394
+ // "Save" button so there is exactly one way to save.
395
+ try {
396
+ homebridge.disableSaveButton();
397
+ } catch (e) {
398
+ // older Config UI X without this API: leave the button as it is
399
+ }
400
+
394
401
  // ============ DOM References ============
395
402
  const stepPanes = {
396
403
  1: document.getElementById('step-1'),
@@ -1076,31 +1083,10 @@
1076
1083
 
1077
1084
  saveResult.innerHTML = `
1078
1085
  <div class="alert alert-success">
1079
- <strong>✓ Konfiguration gespeichert.</strong><br>
1080
- Damit die Änderungen wirksam werden, muss Homebridge neu gestartet werden.
1081
- </div>
1082
- <div class="text-center" style="margin-top: 1rem;">
1083
- <button id="restartBtn" class="btn btn-warning btn-lg">🔄 Homebridge jetzt neu starten</button>
1084
- <div style="margin-top: 0.5rem;">
1085
- <small class="text-muted">Alternativ später via Config UI X "Restart"-Button.</small>
1086
- </div>
1086
+ <strong>✓ Gespeichert.</strong>
1087
+ Zum Aktivieren Homebridge neu starten: in Config UI X oben rechts über das Neustart-Symbol.
1087
1088
  </div>
1088
1089
  `;
1089
-
1090
- document.getElementById('restartBtn').addEventListener('click', async () => {
1091
- try {
1092
- await homebridge.restartHomebridge();
1093
- } catch (err) {
1094
- // If restartHomebridge isn't available (e.g. standalone mode without
1095
- // hb-service), show a manual instruction.
1096
- saveResult.innerHTML +=
1097
- '<div class="alert alert-info" style="margin-top: 1rem;">' +
1098
- 'Automatischer Restart nicht verfügbar. Bitte Homebridge manuell ' +
1099
- 'neu starten: <code>sudo hb-service restart</code> oder über die ' +
1100
- 'Config UI X Toolbar.' +
1101
- '</div>';
1102
- }
1103
- });
1104
1090
  } catch (err) {
1105
1091
  saveResult.innerHTML = `
1106
1092
  <div class="alert alert-danger">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pellebot/homebridge-fritz-platform-hb2",
3
3
  "displayName": "Homebridge FRITZ!Box Platform (HB2)",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "description": "Homebridge 2.0 plugin for AVM FRITZ!DECT devices (thermostats, lamps, sensors, OBIS smart-meter readers) FRITZ!Box router switches (Guest WLAN, WPS) and optional WLAN presence sensors. Node 22 / 24 ready.",
6
6
  "icon": "https://raw.githubusercontent.com/PelleBot/homebridge-fritz-platform-ng/main/branding/Icon.png",
7
7
  "type": "module",