@camstack/addon-provider-bosch 0.1.21 → 0.1.23
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/{account-integration-offline-CEg0JOfN.js → account-integration-offline-BaRX_382.js} +1 -1
- package/dist/{account-integration-offline-Ciq9CZa-.mjs → account-integration-offline-D_Vc_igI.mjs} +1 -1
- package/dist/{dist-CFPbdUpa.js → dist-BMDfX7xM.js} +3013 -156
- package/dist/{dist-D9i3id5N.mjs → dist-D4l9YngQ.mjs} +3008 -157
- package/dist/home-connect/addon.js +8 -17
- package/dist/home-connect/addon.mjs +8 -17
- package/dist/homecom/addon.js +2 -2
- package/dist/homecom/addon.mjs +2 -2
- package/dist/shc/addon.js +2 -2
- package/dist/shc/addon.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("../dist-
|
|
3
|
-
const require_account_integration_offline = require("../account-integration-offline-
|
|
2
|
+
const require_dist = require("../dist-BMDfX7xM.js");
|
|
3
|
+
const require_account_integration_offline = require("../account-integration-offline-BaRX_382.js");
|
|
4
4
|
let node_crypto = require("node:crypto");
|
|
5
5
|
let node_tls = require("node:tls");
|
|
6
6
|
let node_zlib = require("node:zlib");
|
|
@@ -4622,13 +4622,6 @@ var homeConnectDishwasherSchema = require_dist.object({
|
|
|
4622
4622
|
var DISH_CAP = "dishwasher";
|
|
4623
4623
|
var CONSUMABLES_CAP = "consumables";
|
|
4624
4624
|
var RUNNING_CAP = "running-state";
|
|
4625
|
-
var RUNNING_COLD = {
|
|
4626
|
-
running: null,
|
|
4627
|
-
since: null,
|
|
4628
|
-
source: "native",
|
|
4629
|
-
phase: null,
|
|
4630
|
-
lastFetchedAt: 0
|
|
4631
|
-
};
|
|
4632
4625
|
var CONSUMABLES_EMPTY = {
|
|
4633
4626
|
items: [],
|
|
4634
4627
|
lastChangedAt: 0,
|
|
@@ -4666,10 +4659,7 @@ var HomeConnectDishwasherDevice = class extends require_dist.BaseDevice {
|
|
|
4666
4659
|
this.registerConsumablesCap();
|
|
4667
4660
|
this.registerRunningCap();
|
|
4668
4661
|
this.runtimeState.setCapState(DISH_CAP, COLD_DISHWASHER_STATUS);
|
|
4669
|
-
this.runtimeState.setCapState(RUNNING_CAP,
|
|
4670
|
-
...RUNNING_COLD,
|
|
4671
|
-
lastFetchedAt: Date.now()
|
|
4672
|
-
});
|
|
4662
|
+
this.runtimeState.setCapState(RUNNING_CAP, require_dist.RUNNING_STATE_COLD);
|
|
4673
4663
|
this.markOnline(false);
|
|
4674
4664
|
this.#unwatch = homeConnectConnections.watch(this.#brokerId, this.#haId, (event) => this.recomputeSlice(event));
|
|
4675
4665
|
this.recomputeSlice({ kind: "client" });
|
|
@@ -4699,7 +4689,7 @@ var HomeConnectDishwasherDevice = class extends require_dist.BaseDevice {
|
|
|
4699
4689
|
lastValueAt
|
|
4700
4690
|
});
|
|
4701
4691
|
this.runtimeState.setCapState(DISH_CAP, slice);
|
|
4702
|
-
this.publishRunningSlice(slice
|
|
4692
|
+
this.publishRunningSlice(slice);
|
|
4703
4693
|
this.writeConsumables(dishwasherConsumablesFromFeatures(view));
|
|
4704
4694
|
this.markOnline(slice.availability !== "offline");
|
|
4705
4695
|
}
|
|
@@ -4803,11 +4793,12 @@ var HomeConnectDishwasherDevice = class extends require_dist.BaseDevice {
|
|
|
4803
4793
|
});
|
|
4804
4794
|
}
|
|
4805
4795
|
registerRunningCap() {
|
|
4806
|
-
this.ctx.registerNativeCap(require_dist.runningStateCapability, { getStatus: async () => this.runtimeState.getCapState(RUNNING_CAP) ??
|
|
4796
|
+
this.ctx.registerNativeCap(require_dist.runningStateCapability, { getStatus: async () => this.runtimeState.getCapState(RUNNING_CAP) ?? require_dist.RUNNING_STATE_COLD });
|
|
4807
4797
|
}
|
|
4808
|
-
publishRunningSlice(slice
|
|
4798
|
+
publishRunningSlice(slice) {
|
|
4799
|
+
const fetchedAt = Date.now();
|
|
4809
4800
|
const previous = this.runtimeState.getCapState(RUNNING_CAP);
|
|
4810
|
-
const next = require_dist.runningFromDishwasherOperation(slice.operationState, slice.program, previous,
|
|
4801
|
+
const next = require_dist.runningFromDishwasherOperation(slice.operationState, slice.program, previous, fetchedAt, slice.remainingSeconds);
|
|
4811
4802
|
this.runtimeState.setCapState(RUNNING_CAP, next);
|
|
4812
4803
|
}
|
|
4813
4804
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-
|
|
1
|
+
import { A as _enum, C as DeviceType, D as defineCustomActions, E as customAction, F as record, I as string, L as union, M as literal, O as isSecretMarker, P as object, R as unknown, S as DeviceRole, T as createEvent, _ as runningFromDishwasherOperation, c as connectionTestCapability, d as dishwasherCapability, f as enumSensorCapability, g as powerMeterCapability, h as numericSensorCapability, i as RUNNING_STATE_COLD, j as array, k as isSecretMarkerLike, l as consumablesCapability, n as BaseDeviceProvider, o as binaryCapability, p as eventEmitterCapability, r as DishwasherOperationStateSchema, t as BaseDevice, u as deviceAdoptionCapability, v as runningStateCapability, w as errMsg, z as EventCategory } from "../dist-D4l9YngQ.mjs";
|
|
2
|
+
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-D_Vc_igI.mjs";
|
|
3
3
|
import { createHash, randomBytes } from "node:crypto";
|
|
4
4
|
import { connect } from "node:tls";
|
|
5
5
|
import { inflateRawSync } from "node:zlib";
|
|
@@ -4621,13 +4621,6 @@ var homeConnectDishwasherSchema = object({
|
|
|
4621
4621
|
var DISH_CAP = "dishwasher";
|
|
4622
4622
|
var CONSUMABLES_CAP = "consumables";
|
|
4623
4623
|
var RUNNING_CAP = "running-state";
|
|
4624
|
-
var RUNNING_COLD = {
|
|
4625
|
-
running: null,
|
|
4626
|
-
since: null,
|
|
4627
|
-
source: "native",
|
|
4628
|
-
phase: null,
|
|
4629
|
-
lastFetchedAt: 0
|
|
4630
|
-
};
|
|
4631
4624
|
var CONSUMABLES_EMPTY = {
|
|
4632
4625
|
items: [],
|
|
4633
4626
|
lastChangedAt: 0,
|
|
@@ -4665,10 +4658,7 @@ var HomeConnectDishwasherDevice = class extends BaseDevice {
|
|
|
4665
4658
|
this.registerConsumablesCap();
|
|
4666
4659
|
this.registerRunningCap();
|
|
4667
4660
|
this.runtimeState.setCapState(DISH_CAP, COLD_DISHWASHER_STATUS);
|
|
4668
|
-
this.runtimeState.setCapState(RUNNING_CAP,
|
|
4669
|
-
...RUNNING_COLD,
|
|
4670
|
-
lastFetchedAt: Date.now()
|
|
4671
|
-
});
|
|
4661
|
+
this.runtimeState.setCapState(RUNNING_CAP, RUNNING_STATE_COLD);
|
|
4672
4662
|
this.markOnline(false);
|
|
4673
4663
|
this.#unwatch = homeConnectConnections.watch(this.#brokerId, this.#haId, (event) => this.recomputeSlice(event));
|
|
4674
4664
|
this.recomputeSlice({ kind: "client" });
|
|
@@ -4698,7 +4688,7 @@ var HomeConnectDishwasherDevice = class extends BaseDevice {
|
|
|
4698
4688
|
lastValueAt
|
|
4699
4689
|
});
|
|
4700
4690
|
this.runtimeState.setCapState(DISH_CAP, slice);
|
|
4701
|
-
this.publishRunningSlice(slice
|
|
4691
|
+
this.publishRunningSlice(slice);
|
|
4702
4692
|
this.writeConsumables(dishwasherConsumablesFromFeatures(view));
|
|
4703
4693
|
this.markOnline(slice.availability !== "offline");
|
|
4704
4694
|
}
|
|
@@ -4802,11 +4792,12 @@ var HomeConnectDishwasherDevice = class extends BaseDevice {
|
|
|
4802
4792
|
});
|
|
4803
4793
|
}
|
|
4804
4794
|
registerRunningCap() {
|
|
4805
|
-
this.ctx.registerNativeCap(runningStateCapability, { getStatus: async () => this.runtimeState.getCapState(RUNNING_CAP) ??
|
|
4795
|
+
this.ctx.registerNativeCap(runningStateCapability, { getStatus: async () => this.runtimeState.getCapState(RUNNING_CAP) ?? RUNNING_STATE_COLD });
|
|
4806
4796
|
}
|
|
4807
|
-
publishRunningSlice(slice
|
|
4797
|
+
publishRunningSlice(slice) {
|
|
4798
|
+
const fetchedAt = Date.now();
|
|
4808
4799
|
const previous = this.runtimeState.getCapState(RUNNING_CAP);
|
|
4809
|
-
const next = runningFromDishwasherOperation(slice.operationState, slice.program, previous,
|
|
4800
|
+
const next = runningFromDishwasherOperation(slice.operationState, slice.program, previous, fetchedAt, slice.remainingSeconds);
|
|
4810
4801
|
this.runtimeState.setCapState(RUNNING_CAP, next);
|
|
4811
4802
|
}
|
|
4812
4803
|
};
|
package/dist/homecom/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("../dist-
|
|
3
|
-
const require_account_integration_offline = require("../account-integration-offline-
|
|
2
|
+
const require_dist = require("../dist-BMDfX7xM.js");
|
|
3
|
+
const require_account_integration_offline = require("../account-integration-offline-BaRX_382.js");
|
|
4
4
|
let node_crypto = require("node:crypto");
|
|
5
5
|
//#region src/homecom/config.ts
|
|
6
6
|
var HOMECOM_BRANDS = ["bosch", "buderus"];
|
package/dist/homecom/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-
|
|
1
|
+
import { A as _enum, C as DeviceType, D as defineCustomActions, E as customAction, I as string, M as literal, N as number, O as isSecretMarker, P as object, c as connectionTestCapability, j as array, k as isSecretMarkerLike, n as BaseDeviceProvider, s as climateControlCapability, t as BaseDevice, u as deviceAdoptionCapability, w as errMsg, x as waterHeaterCapability, z as EventCategory } from "../dist-D4l9YngQ.mjs";
|
|
2
|
+
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-D_Vc_igI.mjs";
|
|
3
3
|
import { createHash, randomBytes } from "node:crypto";
|
|
4
4
|
//#region src/homecom/config.ts
|
|
5
5
|
var HOMECOM_BRANDS = ["bosch", "buderus"];
|
package/dist/shc/addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
4
4
|
//#endregion
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-BMDfX7xM.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_https = require("node:https");
|
|
8
8
|
let node_child_process = require("node:child_process");
|
|
@@ -89,7 +89,7 @@ function buildConnectionFormSchema() {
|
|
|
89
89
|
description: "Filled when one controller is found. Type the address if it is not.",
|
|
90
90
|
descriptionKey: "provider-bosch:shc.s_connection.host.description",
|
|
91
91
|
required: false,
|
|
92
|
-
placeholder: "192.
|
|
92
|
+
placeholder: "192.0.2.20"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
type: "info",
|
package/dist/shc/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as _enum, C as DeviceType, D as defineCustomActions, E as customAction, I as string, M as literal, N as number, P as object, a as batteryCapability, b as temperatureSensorCapability, c as connectionTestCapability, j as array, m as heatingValveCapability, n as BaseDeviceProvider, s as climateControlCapability, t as BaseDevice, u as deviceAdoptionCapability, w as errMsg, y as switchCapability, z as EventCategory } from "../dist-D4l9YngQ.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { request } from "node:https";
|
|
@@ -90,7 +90,7 @@ function buildConnectionFormSchema() {
|
|
|
90
90
|
description: "Filled when one controller is found. Type the address if it is not.",
|
|
91
91
|
descriptionKey: "provider-bosch:shc.s_connection.host.description",
|
|
92
92
|
required: false,
|
|
93
|
-
placeholder: "192.
|
|
93
|
+
placeholder: "192.0.2.20"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
type: "info",
|
package/package.json
CHANGED