@camstack/addon-provider-homeassistant 1.2.619 → 1.2.620

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
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("./dist-DwxJnRNc.js");
2
+ const require_dist = require("./dist-Bnr6izPr.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_zlib = require("node:zlib");
5
5
  //#region src/ha-admin-link.ts
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as motionCapability, A as carbonMonoxideCapability, At as entryBody, B as deviceAdoptionCapability, Bt as string, C as binaryCapability, Ct as DeviceType, D as buildDeviceAdminUrl, Dt as createEvent, E as buildAddonRouteProvider, Et as RecordSecretUnavailableError, Ft as discriminatedUnion, G as floodCapability, H as enumSensorCapability, Ht as unknown, I as contactCapability, It as literal, J as humiditySensorCapability, K as gasCapability, L as controlCapability, Lt as number, M as colorCapability, Mt as _enum, N as connectivityCapability, Nt as array, O as buttonCapability, Ot as defineEntryKind, Pt as boolean, Q as mediaPlayerCapability, R as coverCapability, Rt as object, S as bestLocationMatch, St as DeviceRole, T as brokerCapability, U as eventEmitterCapability, Ut as url, Vt as union, W as fanControlCapability, Wt as EventCategory, X as lawnMowerControlCapability, Y as imageCapability, Z as lockControlCapability, _ as airQualitySensorCapability, _t as valveCapability, at as parseAdminBase, b as automationControlCapability, bt as weatherCapability, ct as presenceCapability, dt as smokeCapability, et as normalizeUnit, ft as switchCapability, g as addonRoutesCapability, gt as vacuumControlCapability, h as accessoriesCapability, ht as updateCapability, j as climateControlCapability, k as calendarSourceCapability, kt as defineRecordKinds, lt as pressureSensorCapability, m as TargetSchema, mt as temperatureSensorCapability, n as BaseDevice, nt as notifierCapability, ot as powerMeterCapability, pt as tamperCapability, q as humidifierCapability, r as BaseDeviceProvider, rt as numericSensorCapability, st as prepareNotification, tt as notificationOutputCapability, u as EnumSensorDateTimeFormatSchema, ut as scriptRunnerCapability, v as alarmPanelCapability, vt as vibrationCapability, w as brightnessCapability, wt as errMsg, x as batteryCapability, xt as DeviceFeature, y as ambientLightSensorCapability, yt as waterHeaterCapability, z as deviceAdminLinkCapability, zt as record } from "./dist-fqJMr4fu.mjs";
1
+ import { $ as motionCapability, A as carbonMonoxideCapability, At as entryBody, B as deviceAdoptionCapability, Bt as string, C as binaryCapability, Ct as DeviceType, D as buildDeviceAdminUrl, Dt as createEvent, E as buildAddonRouteProvider, Et as RecordSecretUnavailableError, Ft as discriminatedUnion, G as floodCapability, H as enumSensorCapability, Ht as unknown, I as contactCapability, It as literal, J as humiditySensorCapability, K as gasCapability, L as controlCapability, Lt as number, M as colorCapability, Mt as _enum, N as connectivityCapability, Nt as array, O as buttonCapability, Ot as defineEntryKind, Pt as boolean, Q as mediaPlayerCapability, R as coverCapability, Rt as object, S as bestLocationMatch, St as DeviceRole, T as brokerCapability, U as eventEmitterCapability, Ut as url, Vt as union, W as fanControlCapability, Wt as EventCategory, X as lawnMowerControlCapability, Y as imageCapability, Z as lockControlCapability, _ as airQualitySensorCapability, _t as valveCapability, at as parseAdminBase, b as automationControlCapability, bt as weatherCapability, ct as presenceCapability, dt as smokeCapability, et as normalizeUnit, ft as switchCapability, g as addonRoutesCapability, gt as vacuumControlCapability, h as accessoriesCapability, ht as updateCapability, j as climateControlCapability, k as calendarSourceCapability, kt as defineRecordKinds, lt as pressureSensorCapability, m as TargetSchema, mt as temperatureSensorCapability, n as BaseDevice, nt as notifierCapability, ot as powerMeterCapability, pt as tamperCapability, q as humidifierCapability, r as BaseDeviceProvider, rt as numericSensorCapability, st as prepareNotification, tt as notificationOutputCapability, u as EnumSensorDateTimeFormatSchema, ut as scriptRunnerCapability, v as alarmPanelCapability, vt as vibrationCapability, w as brightnessCapability, wt as errMsg, x as batteryCapability, xt as DeviceFeature, y as ambientLightSensorCapability, yt as waterHeaterCapability, z as deviceAdminLinkCapability, zt as record } from "./dist-kup3fDiz.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
4
4
  //#region src/ha-admin-link.ts
@@ -51108,6 +51108,19 @@ var NodeInferenceDeviceSchema = object({
51108
51108
  /** Whether the node's live probe reports the device as usable right now. */
51109
51109
  available: boolean(),
51110
51110
  /**
51111
+ * Is the device on the node at all (D919)? `present` — the live probe
51112
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
51113
+ * its stored settings remain (unplugged, moved to another node): never
51114
+ * eligible, whatever its stored `enabled`, and forgettable with
51115
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
51116
+ * claimed (D315). Optional only for an orchestrator older than the field.
51117
+ */
51118
+ presence: _enum([
51119
+ "present",
51120
+ "absent",
51121
+ "unknown"
51122
+ ]).optional(),
51123
+ /**
51111
51124
  * Whether this device participates in dispatch. AUTO default (spec C2):
51112
51125
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
51113
51126
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -51333,7 +51346,13 @@ method(object({
51333
51346
  }), object({ success: literal(true) }), {
51334
51347
  kind: "mutation",
51335
51348
  auth: "admin"
51336
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
51349
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
51350
+ agentNodeId: string(),
51351
+ deviceKey: string()
51352
+ }), object({ success: literal(true) }), {
51353
+ kind: "mutation",
51354
+ auth: "admin"
51355
+ }), method(object({ agentNodeId: string() }), object({
51337
51356
  success: literal(true),
51338
51357
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
51339
51358
  effectiveModelId: string().nullable(),
@@ -59689,7 +59708,7 @@ var motionTriggerCapability = {
59689
59708
  enabled: boolean()
59690
59709
  }), _void(), {
59691
59710
  kind: "mutation",
59692
- auth: "admin"
59711
+ auth: "protected"
59693
59712
  }) },
59694
59713
  events: { onMotionTriggerChanged: { data: object({
59695
59714
  deviceId: number(),
@@ -60419,6 +60438,13 @@ var TopologyNodeSchema = object({
60419
60438
  cpuModel: string().nullable(),
60420
60439
  cpuCores: number(),
60421
60440
  memoryMB: number(),
60441
+ /**
60442
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
60443
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
60444
+ * about whether its hardware is there (a Coral delegate stays installed
60445
+ * after the stick leaves, D919); the live device set is
60446
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
60447
+ */
60422
60448
  engines: array(string()).readonly(),
60423
60449
  isHub: boolean(),
60424
60450
  isOnline: boolean(),
@@ -61536,7 +61562,28 @@ var ResolvedInferenceConfigSchema = object({
61536
61562
  format: ModelFormatSchema,
61537
61563
  reason: string()
61538
61564
  });
61539
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
61565
+ /**
61566
+ * The answer of an accelerator rescan (D919): the node's device list after
61567
+ * the re-probe, what changed, and the evidence that decided the Coral answer
61568
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
61569
+ * bus, the installed-delegate fallback, or nothing).
61570
+ */
61571
+ var AcceleratorRescanSchema = object({
61572
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
61573
+ appeared: array(string()).readonly(),
61574
+ disappeared: array(string()).readonly(),
61575
+ usbBus: _enum(["observed", "unobservable"]),
61576
+ decidedBy: _enum([
61577
+ "usb-ids",
61578
+ "pci",
61579
+ "delegate-fallback",
61580
+ "none"
61581
+ ])
61582
+ });
61583
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
61584
+ kind: "mutation",
61585
+ auth: "admin"
61586
+ });
61540
61587
  /**
61541
61588
  * Multi-metric electrical meter. One slice can carry any combination
61542
61589
  * of instantaneous power (W), cumulative energy (kWh), voltage (V),
@@ -73764,6 +73811,12 @@ Object.freeze({
73764
73811
  addonId: null,
73765
73812
  access: "delete"
73766
73813
  },
73814
+ "pipelineOrchestrator.forgetInferenceDevice": {
73815
+ capName: "pipeline-orchestrator",
73816
+ capScope: "system",
73817
+ addonId: null,
73818
+ access: "delete"
73819
+ },
73767
73820
  "pipelineOrchestrator.getAgentLoad": {
73768
73821
  capName: "pipeline-orchestrator",
73769
73822
  capScope: "system",
@@ -74340,6 +74393,12 @@ Object.freeze({
74340
74393
  addonId: null,
74341
74394
  access: "view"
74342
74395
  },
74396
+ "platformProbe.rescanAccelerators": {
74397
+ capName: "platform-probe",
74398
+ capScope: "system",
74399
+ addonId: null,
74400
+ access: "create"
74401
+ },
74343
74402
  "platformProbe.resolveHwAccel": {
74344
74403
  capName: "platform-probe",
74345
74404
  capScope: "system",
@@ -51107,6 +51107,19 @@ var NodeInferenceDeviceSchema = object({
51107
51107
  /** Whether the node's live probe reports the device as usable right now. */
51108
51108
  available: boolean(),
51109
51109
  /**
51110
+ * Is the device on the node at all (D919)? `present` — the live probe
51111
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
51112
+ * its stored settings remain (unplugged, moved to another node): never
51113
+ * eligible, whatever its stored `enabled`, and forgettable with
51114
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
51115
+ * claimed (D315). Optional only for an orchestrator older than the field.
51116
+ */
51117
+ presence: _enum([
51118
+ "present",
51119
+ "absent",
51120
+ "unknown"
51121
+ ]).optional(),
51122
+ /**
51110
51123
  * Whether this device participates in dispatch. AUTO default (spec C2):
51111
51124
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
51112
51125
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -51332,7 +51345,13 @@ method(object({
51332
51345
  }), object({ success: literal(true) }), {
51333
51346
  kind: "mutation",
51334
51347
  auth: "admin"
51335
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
51348
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
51349
+ agentNodeId: string(),
51350
+ deviceKey: string()
51351
+ }), object({ success: literal(true) }), {
51352
+ kind: "mutation",
51353
+ auth: "admin"
51354
+ }), method(object({ agentNodeId: string() }), object({
51336
51355
  success: literal(true),
51337
51356
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
51338
51357
  effectiveModelId: string().nullable(),
@@ -59688,7 +59707,7 @@ var motionTriggerCapability = {
59688
59707
  enabled: boolean()
59689
59708
  }), _void(), {
59690
59709
  kind: "mutation",
59691
- auth: "admin"
59710
+ auth: "protected"
59692
59711
  }) },
59693
59712
  events: { onMotionTriggerChanged: { data: object({
59694
59713
  deviceId: number(),
@@ -60418,6 +60437,13 @@ var TopologyNodeSchema = object({
60418
60437
  cpuModel: string().nullable(),
60419
60438
  cpuCores: number(),
60420
60439
  memoryMB: number(),
60440
+ /**
60441
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
60442
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
60443
+ * about whether its hardware is there (a Coral delegate stays installed
60444
+ * after the stick leaves, D919); the live device set is
60445
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
60446
+ */
60421
60447
  engines: array(string()).readonly(),
60422
60448
  isHub: boolean(),
60423
60449
  isOnline: boolean(),
@@ -61535,7 +61561,28 @@ var ResolvedInferenceConfigSchema = object({
61535
61561
  format: ModelFormatSchema,
61536
61562
  reason: string()
61537
61563
  });
61538
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
61564
+ /**
61565
+ * The answer of an accelerator rescan (D919): the node's device list after
61566
+ * the re-probe, what changed, and the evidence that decided the Coral answer
61567
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
61568
+ * bus, the installed-delegate fallback, or nothing).
61569
+ */
61570
+ var AcceleratorRescanSchema = object({
61571
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
61572
+ appeared: array(string()).readonly(),
61573
+ disappeared: array(string()).readonly(),
61574
+ usbBus: _enum(["observed", "unobservable"]),
61575
+ decidedBy: _enum([
61576
+ "usb-ids",
61577
+ "pci",
61578
+ "delegate-fallback",
61579
+ "none"
61580
+ ])
61581
+ });
61582
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
61583
+ kind: "mutation",
61584
+ auth: "admin"
61585
+ });
61539
61586
  /**
61540
61587
  * Multi-metric electrical meter. One slice can carry any combination
61541
61588
  * of instantaneous power (W), cumulative energy (kWh), voltage (V),
@@ -73763,6 +73810,12 @@ Object.freeze({
73763
73810
  addonId: null,
73764
73811
  access: "delete"
73765
73812
  },
73813
+ "pipelineOrchestrator.forgetInferenceDevice": {
73814
+ capName: "pipeline-orchestrator",
73815
+ capScope: "system",
73816
+ addonId: null,
73817
+ access: "delete"
73818
+ },
73766
73819
  "pipelineOrchestrator.getAgentLoad": {
73767
73820
  capName: "pipeline-orchestrator",
73768
73821
  capScope: "system",
@@ -74339,6 +74392,12 @@ Object.freeze({
74339
74392
  addonId: null,
74340
74393
  access: "view"
74341
74394
  },
74395
+ "platformProbe.rescanAccelerators": {
74396
+ capName: "platform-probe",
74397
+ capScope: "system",
74398
+ addonId: null,
74399
+ access: "create"
74400
+ },
74342
74401
  "platformProbe.resolveHwAccel": {
74343
74402
  capName: "platform-probe",
74344
74403
  capScope: "system",
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-DwxJnRNc.js");
27
+ const require_dist = require("../dist-Bnr6izPr.js");
28
28
  let node_crypto = require("node:crypto");
29
29
  require("node:zlib");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { Bt as string, E as buildAddonRouteProvider, F as consumableKindOf, Ht as unknown, Nt as array, P as consumableFormOf, Rt as object, Tt as BaseAddon, V as deviceExportCapability, Wt as EventCategory, a as COCO_TO_MACRO, c as ConsumableItemSchema, d as FanDirectionSchema, f as HvacModeSchema, g as addonRoutesCapability, i as CAMERA_SWITCH_ORDER, it as oauthIntegrationCapability, jt as nodePin, l as ConsumableStatusSchema, o as CameraSwitchIdSchema, p as MediaPlayerRepeatSchema, s as ConsumableFormSchema, t as AlarmArmModeSchema } from "../dist-fqJMr4fu.mjs";
1
+ import { Bt as string, E as buildAddonRouteProvider, F as consumableKindOf, Ht as unknown, Nt as array, P as consumableFormOf, Rt as object, Tt as BaseAddon, V as deviceExportCapability, Wt as EventCategory, a as COCO_TO_MACRO, c as ConsumableItemSchema, d as FanDirectionSchema, f as HvacModeSchema, g as addonRoutesCapability, i as CAMERA_SWITCH_ORDER, it as oauthIntegrationCapability, jt as nodePin, l as ConsumableStatusSchema, o as CameraSwitchIdSchema, p as MediaPlayerRepeatSchema, s as ConsumableFormSchema, t as AlarmArmModeSchema } from "../dist-kup3fDiz.mjs";
2
2
  import { createHmac, timingSafeEqual } from "node:crypto";
3
3
  import "node:zlib";
4
4
  import "node:fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homeassistant",
3
- "version": "1.2.619",
3
+ "version": "1.2.620",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",