@camstack/addon-provider-bosch 0.1.31 → 0.1.32
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 +6 -0
- package/dist/{account-integration-offline-IvvrXQDg.js → account-integration-offline-B9C4OAHn.js} +1 -1
- package/dist/{account-integration-offline-Cfcp8s5x.mjs → account-integration-offline-CSmJOed1.mjs} +1 -1
- package/dist/{dist-NdDwxHvT.js → dist-CStkg32S.js} +164 -164
- package/dist/{dist-DxO4cucS.mjs → dist-n4Mk3Uu1.mjs} +164 -164
- package/dist/home-connect/addon.js +10 -10
- package/dist/home-connect/addon.mjs +10 -10
- package/dist/homecom/addon.js +2 -2
- package/dist/homecom/addon.mjs +2 -2
- package/dist/shc/addon.js +7 -7
- package/dist/shc/addon.mjs +7 -7
- 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-CStkg32S.js");
|
|
3
|
+
const require_account_integration_offline = require("../account-integration-offline-B9C4OAHn.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");
|
|
@@ -3900,9 +3900,9 @@ var COLD_DISHWASHER_STATUS = {
|
|
|
3900
3900
|
program: null,
|
|
3901
3901
|
selectedProgram: null,
|
|
3902
3902
|
availablePrograms: [],
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3903
|
+
remaining: null,
|
|
3904
|
+
delayedStart: null,
|
|
3905
|
+
progress: null,
|
|
3906
3906
|
doorOpen: null,
|
|
3907
3907
|
doorLocked: null,
|
|
3908
3908
|
remoteStartAllowed: null,
|
|
@@ -3957,9 +3957,9 @@ function dishwasherStatusFromFeatures(input) {
|
|
|
3957
3957
|
program: programKey(valueOf(input, activeEntity)),
|
|
3958
3958
|
selectedProgram: programKey(valueOf(input, selectedEntity)),
|
|
3959
3959
|
availablePrograms: [...availableProgramKeys(description)],
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3960
|
+
remaining: secondsFrom(remaining),
|
|
3961
|
+
delayedStart: secondsFrom(delayed),
|
|
3962
|
+
progress: progress !== null && progress >= 0 && progress <= 100 ? progress : null,
|
|
3963
3963
|
doorOpen: doorRaw === null ? null : doorRaw === "Open",
|
|
3964
3964
|
doorLocked: doorRaw === null ? null : doorRaw === "Locked",
|
|
3965
3965
|
remoteStartAllowed: boolOf(valueOf(input, findEntity(description, ["status"], ["RemoteControlStartAllowed"]))),
|
|
@@ -4315,7 +4315,7 @@ function childSliceFromValue(input) {
|
|
|
4315
4315
|
return kwh === null ? null : {
|
|
4316
4316
|
cap: "power-meter",
|
|
4317
4317
|
status: {
|
|
4318
|
-
|
|
4318
|
+
energy: kwh,
|
|
4319
4319
|
lastFetchedAt: nowMs
|
|
4320
4320
|
}
|
|
4321
4321
|
};
|
|
@@ -4877,7 +4877,7 @@ var HomeConnectDishwasherDevice = class extends require_dist.BaseDevice {
|
|
|
4877
4877
|
publishRunningSlice(slice) {
|
|
4878
4878
|
const fetchedAt = Date.now();
|
|
4879
4879
|
const previous = this.runtimeState.getCapState(RUNNING_CAP);
|
|
4880
|
-
const next = require_dist.runningFromDishwasherOperation(slice.operationState, slice.program, previous, fetchedAt, slice.
|
|
4880
|
+
const next = require_dist.runningFromDishwasherOperation(slice.operationState, slice.program, previous, fetchedAt, slice.remaining);
|
|
4881
4881
|
this.runtimeState.setCapState(RUNNING_CAP, next);
|
|
4882
4882
|
}
|
|
4883
4883
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as customAction, B as record, D as DeviceType, E as DeviceRole, F as array, H as union, I as boolean, L as literal, M as isSecretMarker, N as isSecretMarkerLike, O as errMsg, P as _enum, S as runningStateCapability, U as unknown, V as string, W as EventCategory, _ as ingestReading, b as quantityFromUnit, c as binaryCapability, d as consumablesCapability, f as deviceAdoptionCapability, h as eventEmitterCapability, i as RUNNING_STATE_COLD, j as defineCustomActions, k as createEvent, m as enumSensorCapability, n as BaseDeviceProvider, o as VendorLoginProxy, p as dishwasherCapability, r as DishwasherOperationStateSchema, t as BaseDevice, u as connectionTestCapability, v as numericSensorCapability, x as runningFromDishwasherOperation, y as powerMeterCapability, z as object } from "../dist-
|
|
2
|
-
import { a as createSignInAttemptStore, i as openSignInProxy, n as cascadeRemoveDevicesForIntegration, o as loginFailureForAttempt, r as createSignInClaims, s as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-
|
|
1
|
+
import { A as customAction, B as record, D as DeviceType, E as DeviceRole, F as array, H as union, I as boolean, L as literal, M as isSecretMarker, N as isSecretMarkerLike, O as errMsg, P as _enum, S as runningStateCapability, U as unknown, V as string, W as EventCategory, _ as ingestReading, b as quantityFromUnit, c as binaryCapability, d as consumablesCapability, f as deviceAdoptionCapability, h as eventEmitterCapability, i as RUNNING_STATE_COLD, j as defineCustomActions, k as createEvent, m as enumSensorCapability, n as BaseDeviceProvider, o as VendorLoginProxy, p as dishwasherCapability, r as DishwasherOperationStateSchema, t as BaseDevice, u as connectionTestCapability, v as numericSensorCapability, x as runningFromDishwasherOperation, y as powerMeterCapability, z as object } from "../dist-n4Mk3Uu1.mjs";
|
|
2
|
+
import { a as createSignInAttemptStore, i as openSignInProxy, n as cascadeRemoveDevicesForIntegration, o as loginFailureForAttempt, r as createSignInClaims, s as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-CSmJOed1.mjs";
|
|
3
3
|
import { createHash, randomBytes } from "node:crypto";
|
|
4
4
|
import { connect } from "node:tls";
|
|
5
5
|
import { inflateRawSync } from "node:zlib";
|
|
@@ -3899,9 +3899,9 @@ var COLD_DISHWASHER_STATUS = {
|
|
|
3899
3899
|
program: null,
|
|
3900
3900
|
selectedProgram: null,
|
|
3901
3901
|
availablePrograms: [],
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3902
|
+
remaining: null,
|
|
3903
|
+
delayedStart: null,
|
|
3904
|
+
progress: null,
|
|
3905
3905
|
doorOpen: null,
|
|
3906
3906
|
doorLocked: null,
|
|
3907
3907
|
remoteStartAllowed: null,
|
|
@@ -3956,9 +3956,9 @@ function dishwasherStatusFromFeatures(input) {
|
|
|
3956
3956
|
program: programKey(valueOf(input, activeEntity)),
|
|
3957
3957
|
selectedProgram: programKey(valueOf(input, selectedEntity)),
|
|
3958
3958
|
availablePrograms: [...availableProgramKeys(description)],
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3959
|
+
remaining: secondsFrom(remaining),
|
|
3960
|
+
delayedStart: secondsFrom(delayed),
|
|
3961
|
+
progress: progress !== null && progress >= 0 && progress <= 100 ? progress : null,
|
|
3962
3962
|
doorOpen: doorRaw === null ? null : doorRaw === "Open",
|
|
3963
3963
|
doorLocked: doorRaw === null ? null : doorRaw === "Locked",
|
|
3964
3964
|
remoteStartAllowed: boolOf(valueOf(input, findEntity(description, ["status"], ["RemoteControlStartAllowed"]))),
|
|
@@ -4314,7 +4314,7 @@ function childSliceFromValue(input) {
|
|
|
4314
4314
|
return kwh === null ? null : {
|
|
4315
4315
|
cap: "power-meter",
|
|
4316
4316
|
status: {
|
|
4317
|
-
|
|
4317
|
+
energy: kwh,
|
|
4318
4318
|
lastFetchedAt: nowMs
|
|
4319
4319
|
}
|
|
4320
4320
|
};
|
|
@@ -4876,7 +4876,7 @@ var HomeConnectDishwasherDevice = class extends BaseDevice {
|
|
|
4876
4876
|
publishRunningSlice(slice) {
|
|
4877
4877
|
const fetchedAt = Date.now();
|
|
4878
4878
|
const previous = this.runtimeState.getCapState(RUNNING_CAP);
|
|
4879
|
-
const next = runningFromDishwasherOperation(slice.operationState, slice.program, previous, fetchedAt, slice.
|
|
4879
|
+
const next = runningFromDishwasherOperation(slice.operationState, slice.program, previous, fetchedAt, slice.remaining);
|
|
4880
4880
|
this.runtimeState.setCapState(RUNNING_CAP, next);
|
|
4881
4881
|
}
|
|
4882
4882
|
};
|
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-CStkg32S.js");
|
|
3
|
+
const require_account_integration_offline = require("../account-integration-offline-B9C4OAHn.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 customAction, D as DeviceType, F as array, I as boolean, L as literal, M as isSecretMarker, N as isSecretMarkerLike, O as errMsg, P as _enum, R as number, T as waterHeaterCapability, V as string, W as EventCategory, f as deviceAdoptionCapability, j as defineCustomActions, l as climateControlCapability, n as BaseDeviceProvider, o as VendorLoginProxy, t as BaseDevice, u as connectionTestCapability, z as object } from "../dist-
|
|
2
|
-
import { a as createSignInAttemptStore, i as openSignInProxy, n as cascadeRemoveDevicesForIntegration, o as loginFailureForAttempt, r as createSignInClaims, s as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-
|
|
1
|
+
import { A as customAction, D as DeviceType, F as array, I as boolean, L as literal, M as isSecretMarker, N as isSecretMarkerLike, O as errMsg, P as _enum, R as number, T as waterHeaterCapability, V as string, W as EventCategory, f as deviceAdoptionCapability, j as defineCustomActions, l as climateControlCapability, n as BaseDeviceProvider, o as VendorLoginProxy, t as BaseDevice, u as connectionTestCapability, z as object } from "../dist-n4Mk3Uu1.mjs";
|
|
2
|
+
import { a as createSignInAttemptStore, i as openSignInProxy, n as cascadeRemoveDevicesForIntegration, o as loginFailureForAttempt, r as createSignInClaims, s as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-CSmJOed1.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-CStkg32S.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");
|
|
@@ -1096,11 +1096,11 @@ var TEMP_CAP = "temperature-sensor";
|
|
|
1096
1096
|
var BATTERY_CAP = "battery";
|
|
1097
1097
|
var VALVE_CAP = "heating-valve";
|
|
1098
1098
|
var TEMP_COLD = {
|
|
1099
|
-
|
|
1099
|
+
temperature: 0,
|
|
1100
1100
|
lastFetchedAt: 0
|
|
1101
1101
|
};
|
|
1102
1102
|
var BATTERY_COLD = {
|
|
1103
|
-
|
|
1103
|
+
level: null,
|
|
1104
1104
|
charging: "unknown",
|
|
1105
1105
|
sleeping: false,
|
|
1106
1106
|
lastUpdated: 0
|
|
@@ -1137,12 +1137,12 @@ var ShcTrvDevice = class extends ShcBaseDevice {
|
|
|
1137
1137
|
if (typeof temperature === "number" && Number.isFinite(temperature)) {
|
|
1138
1138
|
const prev = this.runtimeState.getCapState(TEMP_CAP);
|
|
1139
1139
|
this.runtimeState.setCapState(TEMP_CAP, {
|
|
1140
|
-
|
|
1140
|
+
temperature,
|
|
1141
1141
|
lastFetchedAt: now
|
|
1142
1142
|
});
|
|
1143
|
-
if (prev !== void 0 && prev.
|
|
1143
|
+
if (prev !== void 0 && prev.temperature !== temperature && prev.lastFetchedAt !== 0) this.deviceLog("info", "SHC temperature updated from controller", {
|
|
1144
1144
|
celsius: temperature,
|
|
1145
|
-
previous: prev.
|
|
1145
|
+
previous: prev.temperature
|
|
1146
1146
|
});
|
|
1147
1147
|
}
|
|
1148
1148
|
} catch {}
|
|
@@ -1162,7 +1162,7 @@ var ShcTrvDevice = class extends ShcBaseDevice {
|
|
|
1162
1162
|
try {
|
|
1163
1163
|
const batt = await client.getServiceState(this.shcDeviceId, "BatteryLevel");
|
|
1164
1164
|
this.runtimeState.setCapState(BATTERY_CAP, {
|
|
1165
|
-
|
|
1165
|
+
level: batt.batteryLevel ?? null,
|
|
1166
1166
|
charging: "unknown",
|
|
1167
1167
|
sleeping: false,
|
|
1168
1168
|
lastUpdated: now
|
package/dist/shc/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as customAction, C as switchCapability, D as DeviceType, F as array, L as literal, O as errMsg, P as _enum, R as number, V as string, W as EventCategory, f as deviceAdoptionCapability, g as heatingValveCapability, j as defineCustomActions, l as climateControlCapability, n as BaseDeviceProvider, s as batteryCapability, t as BaseDevice, u as connectionTestCapability, w as temperatureSensorCapability, z as object } from "../dist-
|
|
1
|
+
import { A as customAction, C as switchCapability, D as DeviceType, F as array, L as literal, O as errMsg, P as _enum, R as number, V as string, W as EventCategory, f as deviceAdoptionCapability, g as heatingValveCapability, j as defineCustomActions, l as climateControlCapability, n as BaseDeviceProvider, s as batteryCapability, t as BaseDevice, u as connectionTestCapability, w as temperatureSensorCapability, z as object } from "../dist-n4Mk3Uu1.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { request } from "node:https";
|
|
@@ -1097,11 +1097,11 @@ var TEMP_CAP = "temperature-sensor";
|
|
|
1097
1097
|
var BATTERY_CAP = "battery";
|
|
1098
1098
|
var VALVE_CAP = "heating-valve";
|
|
1099
1099
|
var TEMP_COLD = {
|
|
1100
|
-
|
|
1100
|
+
temperature: 0,
|
|
1101
1101
|
lastFetchedAt: 0
|
|
1102
1102
|
};
|
|
1103
1103
|
var BATTERY_COLD = {
|
|
1104
|
-
|
|
1104
|
+
level: null,
|
|
1105
1105
|
charging: "unknown",
|
|
1106
1106
|
sleeping: false,
|
|
1107
1107
|
lastUpdated: 0
|
|
@@ -1138,12 +1138,12 @@ var ShcTrvDevice = class extends ShcBaseDevice {
|
|
|
1138
1138
|
if (typeof temperature === "number" && Number.isFinite(temperature)) {
|
|
1139
1139
|
const prev = this.runtimeState.getCapState(TEMP_CAP);
|
|
1140
1140
|
this.runtimeState.setCapState(TEMP_CAP, {
|
|
1141
|
-
|
|
1141
|
+
temperature,
|
|
1142
1142
|
lastFetchedAt: now
|
|
1143
1143
|
});
|
|
1144
|
-
if (prev !== void 0 && prev.
|
|
1144
|
+
if (prev !== void 0 && prev.temperature !== temperature && prev.lastFetchedAt !== 0) this.deviceLog("info", "SHC temperature updated from controller", {
|
|
1145
1145
|
celsius: temperature,
|
|
1146
|
-
previous: prev.
|
|
1146
|
+
previous: prev.temperature
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
1149
|
} catch {}
|
|
@@ -1163,7 +1163,7 @@ var ShcTrvDevice = class extends ShcBaseDevice {
|
|
|
1163
1163
|
try {
|
|
1164
1164
|
const batt = await client.getServiceState(this.shcDeviceId, "BatteryLevel");
|
|
1165
1165
|
this.runtimeState.setCapState(BATTERY_CAP, {
|
|
1166
|
-
|
|
1166
|
+
level: batt.batteryLevel ?? null,
|
|
1167
1167
|
charging: "unknown",
|
|
1168
1168
|
sleeping: false,
|
|
1169
1169
|
lastUpdated: now
|
package/package.json
CHANGED