@camstack/addon-provider-homematic 1.0.6 → 1.1.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.
package/dist/addon.js CHANGED
@@ -4651,7 +4651,7 @@ function preprocess(fn, schema) {
4651
4651
  });
4652
4652
  }
4653
4653
  //#endregion
4654
- //#region ../types/dist/sleep-D7JeS58T.mjs
4654
+ //#region ../types/dist/sleep-B1dKJAMJ.mjs
4655
4655
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4656
4656
  EventCategory["SystemBoot"] = "system.boot";
4657
4657
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5625,7 +5625,7 @@ var BaseAddon = class {
5625
5625
  deviceSettingsSchema() {
5626
5626
  return null;
5627
5627
  }
5628
- async getGlobalSettings(overlay, cap) {
5628
+ async getGlobalSettings(overlay, cap, _nodeId) {
5629
5629
  const schema = this.globalSettingsSchema(cap);
5630
5630
  if (!schema) return { sections: [] };
5631
5631
  const raw = await this._ctx?.settings?.readAddonStore() ?? {};
@@ -5634,7 +5634,7 @@ var BaseAddon = class {
5634
5634
  ...overlay
5635
5635
  } : raw);
5636
5636
  }
5637
- async updateGlobalSettings(patch) {
5637
+ async updateGlobalSettings(patch, _nodeId) {
5638
5638
  await this._ctx?.settings?.writeAddonStore(patch);
5639
5639
  await this.resolveConfig();
5640
5640
  await this.onConfigChanged();
@@ -48871,11 +48871,11 @@ var HmUpdateDevice = class extends HmChildDevice {
48871
48871
  * `binary` / `temperature-sensor`) — the MAINTENANCE-provenance `sourceParams`
48872
48872
  * marker on the config disambiguates them.
48873
48873
  */
48874
- function pickHmChildClass(capabilities, hasDiagnosticProvenance) {
48874
+ function pickHmChildClass(capabilities, isDiagnostic) {
48875
48875
  if (capabilities.includes("switch") || capabilities.includes("cover") || capabilities.includes("lock-control") || capabilities.includes("climate-control")) return HmActuatorDevice;
48876
48876
  if (capabilities.includes("event-emitter")) return HmEventEmitterDevice;
48877
48877
  if (capabilities.includes("update")) return HmUpdateDevice;
48878
- if (hasDiagnosticProvenance) return HmDiagnosticDevice;
48878
+ if (isDiagnostic) return HmDiagnosticDevice;
48879
48879
  return HmSensorDevice;
48880
48880
  }
48881
48881
  /**
package/dist/addon.mjs CHANGED
@@ -4652,7 +4652,7 @@ function preprocess(fn, schema) {
4652
4652
  });
4653
4653
  }
4654
4654
  //#endregion
4655
- //#region ../types/dist/sleep-D7JeS58T.mjs
4655
+ //#region ../types/dist/sleep-B1dKJAMJ.mjs
4656
4656
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4657
4657
  EventCategory["SystemBoot"] = "system.boot";
4658
4658
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5626,7 +5626,7 @@ var BaseAddon = class {
5626
5626
  deviceSettingsSchema() {
5627
5627
  return null;
5628
5628
  }
5629
- async getGlobalSettings(overlay, cap) {
5629
+ async getGlobalSettings(overlay, cap, _nodeId) {
5630
5630
  const schema = this.globalSettingsSchema(cap);
5631
5631
  if (!schema) return { sections: [] };
5632
5632
  const raw = await this._ctx?.settings?.readAddonStore() ?? {};
@@ -5635,7 +5635,7 @@ var BaseAddon = class {
5635
5635
  ...overlay
5636
5636
  } : raw);
5637
5637
  }
5638
- async updateGlobalSettings(patch) {
5638
+ async updateGlobalSettings(patch, _nodeId) {
5639
5639
  await this._ctx?.settings?.writeAddonStore(patch);
5640
5640
  await this.resolveConfig();
5641
5641
  await this.onConfigChanged();
@@ -48872,11 +48872,11 @@ var HmUpdateDevice = class extends HmChildDevice {
48872
48872
  * `binary` / `temperature-sensor`) — the MAINTENANCE-provenance `sourceParams`
48873
48873
  * marker on the config disambiguates them.
48874
48874
  */
48875
- function pickHmChildClass(capabilities, hasDiagnosticProvenance) {
48875
+ function pickHmChildClass(capabilities, isDiagnostic) {
48876
48876
  if (capabilities.includes("switch") || capabilities.includes("cover") || capabilities.includes("lock-control") || capabilities.includes("climate-control")) return HmActuatorDevice;
48877
48877
  if (capabilities.includes("event-emitter")) return HmEventEmitterDevice;
48878
48878
  if (capabilities.includes("update")) return HmUpdateDevice;
48879
- if (hasDiagnosticProvenance) return HmDiagnosticDevice;
48879
+ if (isDiagnostic) return HmDiagnosticDevice;
48880
48880
  return HmSensorDevice;
48881
48881
  }
48882
48882
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.0.6",
3
+ "version": "1.1.0",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",