@camstack/addon-provider-bosch 0.1.52 → 0.1.54
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 +12 -0
- package/dist/{account-integration-offline-D5vjmfia.mjs → account-integration-offline-C9glrBvy.mjs} +1 -1
- package/dist/{account-integration-offline-BEzGeJcl.js → account-integration-offline-DK6CYsvB.js} +1 -1
- package/dist/{bosch-instances-DSE6IXdU.mjs → bosch-instances-DMzZSMxW.mjs} +476 -82
- package/dist/{bosch-instances-LWbVnsaD.js → bosch-instances-DkTzZrlR.js} +493 -81
- package/dist/home-connect/addon.js +5 -3
- package/dist/home-connect/addon.mjs +5 -3
- package/dist/homecom/addon.js +3 -3
- package/dist/homecom/addon.mjs +3 -3
- package/dist/shc/addon.js +4 -4
- package/dist/shc/addon.mjs +4 -4
- package/package.json +3 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_bosch_instances = require("../bosch-instances-
|
|
3
|
-
const require_account_integration_offline = require("../account-integration-offline-
|
|
2
|
+
const require_bosch_instances = require("../bosch-instances-DkTzZrlR.js");
|
|
3
|
+
const require_account_integration_offline = require("../account-integration-offline-DK6CYsvB.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");
|
|
@@ -4841,6 +4841,7 @@ var HomeConnectEventDevice = class extends require_bosch_instances.BaseDevice {
|
|
|
4841
4841
|
publish(eventTypes, previous, lastEvent) {
|
|
4842
4842
|
this.runtimeState.setCapState(EVENT_CAP, {
|
|
4843
4843
|
eventTypes: [...eventTypes],
|
|
4844
|
+
vocabulary: require_bosch_instances.plainEventVocabulary(eventTypes),
|
|
4844
4845
|
lastEvent: lastEvent ?? previous?.lastEvent ?? null,
|
|
4845
4846
|
eventCountSinceStart: (previous?.eventCountSinceStart ?? 0) + (lastEvent !== void 0 ? 1 : 0)
|
|
4846
4847
|
});
|
|
@@ -4895,7 +4896,8 @@ var HomeConnectEventDevice = class extends require_bosch_instances.BaseDevice {
|
|
|
4895
4896
|
}
|
|
4896
4897
|
registerCap() {
|
|
4897
4898
|
this.ctx.registerNativeCap(require_bosch_instances.eventEmitterCapability, { getStatus: async () => this.runtimeState.getCapState(EVENT_CAP) ?? {
|
|
4898
|
-
eventTypes: [],
|
|
4899
|
+
eventTypes: [...this.eventTypes()],
|
|
4900
|
+
vocabulary: require_bosch_instances.plainEventVocabulary(this.eventTypes()),
|
|
4899
4901
|
lastEvent: null,
|
|
4900
4902
|
eventCountSinceStart: 0
|
|
4901
4903
|
} });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as loginFailureForAttempt, c as HOME_CONNECT_REDIRECT_URI, i as createSignInAttemptStore, n as cascadeRemoveDevicesForIntegration, o as parseOAuthCallback, r as buildSignInGuideFields, t as setIntegrationDevicesOnline } from "../account-integration-offline-
|
|
1
|
+
import { $ as unknown, A as runningStateCapability, B as isSecretMarker, C as integrationInstancesCapability, D as quantityFromUnit, E as powerMeterCapability, F as createEvent, G as array, H as rowsDepsOver, I as customAction, L as defineCustomActions, P as RecordIntegrationInstances, Q as union, R as defineEntryKind, S as ingestReading, T as plainEventVocabulary, U as _enum, V as isSecretMarkerLike, X as record, Y as object, Z as string, _ as eventEmitterCapability, a as BaseDevice, c as RUNNING_STATE_COLD, et as DeviceRole, f as consumablesCapability, g as enumSensorCapability, h as dishwasherCapability, i as testBoschInstance, k as runningFromDishwasherOperation, m as deviceAdoptionCapability, n as boschRowsPorts, nt as errMsg, o as BaseDeviceProvider, q as literal, r as keepBodyKeys, rt as EventCategory, s as DishwasherOperationStateSchema, t as boschRowsMigration, tt as DeviceType, u as binaryCapability, w as numericSensorCapability, z as entryBody } from "../bosch-instances-DMzZSMxW.mjs";
|
|
2
|
+
import { a as loginFailureForAttempt, c as HOME_CONNECT_REDIRECT_URI, i as createSignInAttemptStore, n as cascadeRemoveDevicesForIntegration, o as parseOAuthCallback, r as buildSignInGuideFields, t as setIntegrationDevicesOnline } from "../account-integration-offline-C9glrBvy.mjs";
|
|
3
3
|
import { createHash, randomBytes } from "node:crypto";
|
|
4
4
|
import { connect } from "node:tls";
|
|
5
5
|
import { inflateRawSync } from "node:zlib";
|
|
@@ -4840,6 +4840,7 @@ var HomeConnectEventDevice = class extends BaseDevice {
|
|
|
4840
4840
|
publish(eventTypes, previous, lastEvent) {
|
|
4841
4841
|
this.runtimeState.setCapState(EVENT_CAP, {
|
|
4842
4842
|
eventTypes: [...eventTypes],
|
|
4843
|
+
vocabulary: plainEventVocabulary(eventTypes),
|
|
4843
4844
|
lastEvent: lastEvent ?? previous?.lastEvent ?? null,
|
|
4844
4845
|
eventCountSinceStart: (previous?.eventCountSinceStart ?? 0) + (lastEvent !== void 0 ? 1 : 0)
|
|
4845
4846
|
});
|
|
@@ -4894,7 +4895,8 @@ var HomeConnectEventDevice = class extends BaseDevice {
|
|
|
4894
4895
|
}
|
|
4895
4896
|
registerCap() {
|
|
4896
4897
|
this.ctx.registerNativeCap(eventEmitterCapability, { getStatus: async () => this.runtimeState.getCapState(EVENT_CAP) ?? {
|
|
4897
|
-
eventTypes: [],
|
|
4898
|
+
eventTypes: [...this.eventTypes()],
|
|
4899
|
+
vocabulary: plainEventVocabulary(this.eventTypes()),
|
|
4898
4900
|
lastEvent: null,
|
|
4899
4901
|
eventCountSinceStart: 0
|
|
4900
4902
|
} });
|
package/dist/homecom/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_bosch_instances = require("../bosch-instances-
|
|
3
|
-
const require_account_integration_offline = require("../account-integration-offline-
|
|
2
|
+
const require_bosch_instances = require("../bosch-instances-DkTzZrlR.js");
|
|
3
|
+
const require_account_integration_offline = require("../account-integration-offline-DK6CYsvB.js");
|
|
4
4
|
let node_crypto = require("node:crypto");
|
|
5
5
|
let node_child_process = require("node:child_process");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
@@ -2471,7 +2471,7 @@ var HOMECOM_GATEWAY_NATIVE_ID = "gateway:0";
|
|
|
2471
2471
|
function gatewayDiscoverable(snapshot) {
|
|
2472
2472
|
return {
|
|
2473
2473
|
nativeId: HOMECOM_GATEWAY_NATIVE_ID,
|
|
2474
|
-
name:
|
|
2474
|
+
name: require_bosch_instances.gatewayDeviceName("Bosch HomeCom", snapshot.deviceType),
|
|
2475
2475
|
kind: "gateway"
|
|
2476
2476
|
};
|
|
2477
2477
|
}
|
package/dist/homecom/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as loginFailureForAttempt, i as createSignInAttemptStore, n as cascadeRemoveDevicesForIntegration, o as parseOAuthCallback, r as buildSignInGuideFields, s as HOMECOM_REDIRECT_URI, t as setIntegrationDevicesOnline } from "../account-integration-offline-
|
|
1
|
+
import { C as integrationInstancesCapability, G as array, H as rowsDepsOver, I as customAction, J as number, K as boolean, L as defineCustomActions, N as waterHeaterCapability, O as registerPowerSwitch, P as RecordIntegrationInstances, Q as union, R as defineEntryKind, U as _enum, W as _null, X as record, Y as object, Z as string, a as BaseDevice, b as heatPumpStatusCapability, d as climateControlCapability, et as DeviceRole, i as testBoschInstance, m as deviceAdoptionCapability, n as boschRowsPorts, nt as errMsg, o as BaseDeviceProvider, q as literal, r as keepBodyKeys, rt as EventCategory, t as boschRowsMigration, tt as DeviceType, v as gatewayDeviceName, y as heatPumpControlCapability, z as entryBody } from "../bosch-instances-DMzZSMxW.mjs";
|
|
2
|
+
import { a as loginFailureForAttempt, i as createSignInAttemptStore, n as cascadeRemoveDevicesForIntegration, o as parseOAuthCallback, r as buildSignInGuideFields, s as HOMECOM_REDIRECT_URI, t as setIntegrationDevicesOnline } from "../account-integration-offline-C9glrBvy.mjs";
|
|
3
3
|
import { createHash, randomBytes } from "node:crypto";
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
@@ -2470,7 +2470,7 @@ var HOMECOM_GATEWAY_NATIVE_ID = "gateway:0";
|
|
|
2470
2470
|
function gatewayDiscoverable(snapshot) {
|
|
2471
2471
|
return {
|
|
2472
2472
|
nativeId: HOMECOM_GATEWAY_NATIVE_ID,
|
|
2473
|
-
name:
|
|
2473
|
+
name: gatewayDeviceName("Bosch HomeCom", snapshot.deviceType),
|
|
2474
2474
|
kind: "gateway"
|
|
2475
2475
|
};
|
|
2476
2476
|
}
|
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_bosch_instances = require("../bosch-instances-
|
|
5
|
+
const require_bosch_instances = require("../bosch-instances-DkTzZrlR.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");
|
|
@@ -638,7 +638,7 @@ function shcDiscoveryCandidates(proposals) {
|
|
|
638
638
|
return proposals.map((found) => ({
|
|
639
639
|
stableId: `bosch-shc:${found.id}`,
|
|
640
640
|
type: require_bosch_instances.DeviceType.Gateway,
|
|
641
|
-
suggestedName:
|
|
641
|
+
suggestedName: require_bosch_instances.defaultIntegrationName("Bosch SHC"),
|
|
642
642
|
prefilledConfig: { host: found.host },
|
|
643
643
|
setupIntegration: true
|
|
644
644
|
}));
|
|
@@ -895,7 +895,7 @@ function buildShcCandidates(input) {
|
|
|
895
895
|
const gatewayAdopted = input.adopted.get(gatewayId) ?? null;
|
|
896
896
|
const out = [{
|
|
897
897
|
childNativeId: gatewayId,
|
|
898
|
-
name:
|
|
898
|
+
name: require_bosch_instances.gatewayDeviceName("Bosch", "SHC"),
|
|
899
899
|
type: require_bosch_instances.DeviceType.Gateway,
|
|
900
900
|
status: "online",
|
|
901
901
|
metadata: {
|
|
@@ -1376,7 +1376,7 @@ function buildShcAdoptionProvider(deps) {
|
|
|
1376
1376
|
let failures = 0;
|
|
1377
1377
|
for (const shcDeviceId of childNativeIds) try {
|
|
1378
1378
|
if (shcDeviceId === shcGatewayNativeId(integrationId)) {
|
|
1379
|
-
const name = perCandidate?.[shcDeviceId]?.name ??
|
|
1379
|
+
const name = perCandidate?.[shcDeviceId]?.name ?? require_bosch_instances.gatewayDeviceName("Bosch", "SHC");
|
|
1380
1380
|
const { deviceId } = await adoptDevice({
|
|
1381
1381
|
shcDeviceId,
|
|
1382
1382
|
integrationId,
|
package/dist/shc/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as integrationInstancesCapability, G as array, H as rowsDepsOver, I as customAction, J as number, L as defineCustomActions, M as temperatureSensorCapability, O as registerPowerSwitch, P as RecordIntegrationInstances, R as defineEntryKind, U as _enum, Y as object, Z as string, a as BaseDevice, d as climateControlCapability, et as DeviceRole, i as testBoschInstance, j as switchCapability, l as batteryCapability, m as deviceAdoptionCapability, n as boschRowsPorts, nt as errMsg, o as BaseDeviceProvider, p as defaultIntegrationName, q as literal, r as keepBodyKeys, rt as EventCategory, t as boschRowsMigration, tt as DeviceType, v as gatewayDeviceName, x as heatingValveCapability, z as entryBody } from "../bosch-instances-DMzZSMxW.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { request } from "node:https";
|
|
@@ -639,7 +639,7 @@ function shcDiscoveryCandidates(proposals) {
|
|
|
639
639
|
return proposals.map((found) => ({
|
|
640
640
|
stableId: `bosch-shc:${found.id}`,
|
|
641
641
|
type: DeviceType.Gateway,
|
|
642
|
-
suggestedName:
|
|
642
|
+
suggestedName: defaultIntegrationName("Bosch SHC"),
|
|
643
643
|
prefilledConfig: { host: found.host },
|
|
644
644
|
setupIntegration: true
|
|
645
645
|
}));
|
|
@@ -896,7 +896,7 @@ function buildShcCandidates(input) {
|
|
|
896
896
|
const gatewayAdopted = input.adopted.get(gatewayId) ?? null;
|
|
897
897
|
const out = [{
|
|
898
898
|
childNativeId: gatewayId,
|
|
899
|
-
name:
|
|
899
|
+
name: gatewayDeviceName("Bosch", "SHC"),
|
|
900
900
|
type: DeviceType.Gateway,
|
|
901
901
|
status: "online",
|
|
902
902
|
metadata: {
|
|
@@ -1377,7 +1377,7 @@ function buildShcAdoptionProvider(deps) {
|
|
|
1377
1377
|
let failures = 0;
|
|
1378
1378
|
for (const shcDeviceId of childNativeIds) try {
|
|
1379
1379
|
if (shcDeviceId === shcGatewayNativeId(integrationId)) {
|
|
1380
|
-
const name = perCandidate?.[shcDeviceId]?.name ??
|
|
1380
|
+
const name = perCandidate?.[shcDeviceId]?.name ?? gatewayDeviceName("Bosch", "SHC");
|
|
1381
1381
|
const { deviceId } = await adoptDevice({
|
|
1382
1382
|
shcDeviceId,
|
|
1383
1383
|
integrationId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-bosch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"description": "Bosch smart-home device-provider addons for CamStack — SHC, Home Connect, and HomeCom cloud integrations (scaffold)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"integrationRole": "devices",
|
|
40
40
|
"category": "providers",
|
|
41
41
|
"name": "Bosch Smart Home",
|
|
42
|
+
"providerLabel": "Bosch SHC",
|
|
42
43
|
"version": "0.1.0",
|
|
43
44
|
"description": "Adopt Bosch Smart Home Controller (SHC) devices via account onboarding — scaffold",
|
|
44
45
|
"entry": "./dist/shc/addon.js",
|
|
@@ -141,7 +142,7 @@
|
|
|
141
142
|
}
|
|
142
143
|
],
|
|
143
144
|
"requires": {
|
|
144
|
-
"server": ">=1.2.
|
|
145
|
+
"server": ">=1.2.846"
|
|
145
146
|
}
|
|
146
147
|
},
|
|
147
148
|
"files": [
|