@camstack/types 1.2.568 → 1.2.570

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/dist/addon.js +2 -2
  3. package/dist/addon.mjs +2 -2
  4. package/dist/capabilities/error.cap.d.ts +135 -0
  5. package/dist/capabilities/index.d.ts +5 -1
  6. package/dist/capabilities/weather-station.cap.d.ts +255 -0
  7. package/dist/client.js +10 -0
  8. package/dist/client.mjs +10 -0
  9. package/dist/{composed-stable-id-BzXh1Swk.js → composed-stable-id-C3NfRTj8.js} +3 -0
  10. package/dist/{composed-stable-id-COP6zOXx.mjs → composed-stable-id-RvQIEpqg.mjs} +3 -0
  11. package/dist/device/base-device.d.ts +15 -0
  12. package/dist/device/device-error-episode.d.ts +24 -0
  13. package/dist/device/device-icon.d.ts +1 -0
  14. package/dist/device/device-type.d.ts +3 -0
  15. package/dist/device/hero/hero-layout.d.ts +1 -0
  16. package/dist/device/hero/hero-look.d.ts +6 -0
  17. package/dist/device/hero/hero-scene.d.ts +1 -0
  18. package/dist/generated/addon-api.d.ts +28 -0
  19. package/dist/generated/addon-cap-facts.d.ts +1 -1
  20. package/dist/generated/cap-status-types.d.ts +5 -1
  21. package/dist/generated/cap-vocabulary.d.ts +1 -1
  22. package/dist/generated/capability-router-map.d.ts +8 -2
  23. package/dist/generated/customize-catalog.d.ts +1 -1
  24. package/dist/generated/device-local-state.d.ts +6 -0
  25. package/dist/generated/device-proxy.d.ts +6 -0
  26. package/dist/generated/device-scoped-caps.d.ts +1 -1
  27. package/dist/generated/history-catalog.d.ts +1 -1
  28. package/dist/generated/method-access-map.d.ts +1 -1
  29. package/dist/generated/method-device-selectors.d.ts +1 -1
  30. package/dist/generated/runtime-state-durability.d.ts +1 -1
  31. package/dist/{implemented-methods-0xxMOekw.mjs → implemented-methods-C5FMXLGP.mjs} +1 -1
  32. package/dist/{implemented-methods-D4F6RWkO.js → implemented-methods-C7ScGvEz.js} +1 -1
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +356 -15
  35. package/dist/index.mjs +347 -16
  36. package/dist/node.js +2 -2
  37. package/dist/node.mjs +2 -2
  38. package/dist/{sleep-DEd_klYQ.mjs → sleep-BnR9qGOv.mjs} +287 -3
  39. package/dist/{sleep-BTb3-IPb.js → sleep-Cr2-wtyQ.js} +287 -3
  40. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.570] - 2026-11-14
11
+
12
+ ### Changed
13
+
14
+ - A device can report a fault through the new error capability; its start and resolution reach the notification rules (no default rule)
15
+
16
+ ## [1.2.569] - 2026-11-14
17
+
18
+ ### Added
19
+
20
+ - A physical weather station is its own device type, with one nullable reading for temperature, wind, rain, pressure, UV and dew point.
21
+
10
22
  ## [1.2.568] - 2026-11-14
11
23
 
12
24
  ### Added
@@ -25,7 +37,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25
37
  - Remote: the source last sent by an infrared remote is no longer kept as state
26
38
  ### Changed
27
39
 
28
-
29
40
  ## [1.2.566] - 2026-11-14
30
41
 
31
42
  ### Changed
package/dist/addon.js CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-BTb3-IPb.js");
2
+ const require_sleep = require("./sleep-Cr2-wtyQ.js");
3
3
  const require_event_category = require("./event-category-d9kiqCqC.js");
4
- const require_composed_stable_id = require("./composed-stable-id-BzXh1Swk.js");
4
+ const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
5
5
  //#region src/generated/cap-input-defaults.ts
6
6
  /**
7
7
  * AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
package/dist/addon.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as DEVICE_CHILDREN_BATCH_MAX, $n as isZodSecret, $r as recordSecretRef, A as CAP_ADVANCE_FIELDS, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Bi as TransactRefusedError, Bn as entryBody, Cn as MIN_SCRUBBED_LENGTH, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, G as readNodePin, Gn as RecordKindNameSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, J as PipelineRunResultBridge, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Kn as RecordRetentionSchema, Kr as secretViewsOf, L as defineCustomActions, Li as RecordUniqueViolationError, Lr as resolvedValues, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, N as CAP_STATE_LEAVES, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, O as HF_REPO, Oi as FilterRequiredError, On as scrubKnownSecrets, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pr as SCOPED_SETTINGS_SCOPES, Q as deviceOpsCapability, Qn as collectZodSecretPaths, Qr as recordSecretCollection, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Si as parseSecretRef, Sn as createSecretsAccess, T as isCommand, Tn as forgetKnownSecret, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, X as MIGRATION_API_VERSION, Xn as defineRecordKinds, Xr as parseSecretPath, Y as PipelineStepInputSchema, Yn as declarationsOf, Yr as mapSecretLeaves, Zr as recordArrayItemPath, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, ai as RECORD_DEFAULT_MAX_DATA_BYTES, bi as isSecretRef, bn as resolveSecretViewsIn, c as asString, ci as RECORD_MAX_DATA_BYTES, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, ea as createEvent, ei as secretArrayPrefixes, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, ht as ReadinessTimeoutError, ii as RECORD_DATABASES, j as CAP_METHOD_TIMEOUTS_MS, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, li as RECORD_MAX_INDEXES, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, ni as RECORD_BATCH_MAX_BYTES, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DELETE_BATCH, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pt as MODEL_FORMATS, q as viewerUiCapability, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, r as maskUrlCredentials, ri as RECORD_CLASSES, si as RECORD_ID_MAX_LENGTH, sr as expandCapMethods, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, ui as RECORD_MAX_INDEX_FIELDS, v as addonSliceHandleApi, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vt as scopeKey, wn as clearKnownSecrets, wr as normalizeAddonInitResult, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, y as createEventBusSliceSource, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, zi as RevConflictError, zn as defineEntryKind } from "./sleep-DEd_klYQ.mjs";
1
+ import { $ as DEVICE_CHILDREN_BATCH_MAX, $n as isZodSecret, $r as recordSecretRef, A as CAP_ADVANCE_FIELDS, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Bi as TransactRefusedError, Bn as entryBody, Cn as MIN_SCRUBBED_LENGTH, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, G as readNodePin, Gn as RecordKindNameSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, J as PipelineRunResultBridge, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Kn as RecordRetentionSchema, Kr as secretViewsOf, L as defineCustomActions, Li as RecordUniqueViolationError, Lr as resolvedValues, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, N as CAP_STATE_LEAVES, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, O as HF_REPO, Oi as FilterRequiredError, On as scrubKnownSecrets, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pr as SCOPED_SETTINGS_SCOPES, Q as deviceOpsCapability, Qn as collectZodSecretPaths, Qr as recordSecretCollection, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Si as parseSecretRef, Sn as createSecretsAccess, T as isCommand, Tn as forgetKnownSecret, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, X as MIGRATION_API_VERSION, Xn as defineRecordKinds, Xr as parseSecretPath, Y as PipelineStepInputSchema, Yn as declarationsOf, Yr as mapSecretLeaves, Zr as recordArrayItemPath, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, ai as RECORD_DEFAULT_MAX_DATA_BYTES, bi as isSecretRef, bn as resolveSecretViewsIn, c as asString, ci as RECORD_MAX_DATA_BYTES, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, ea as createEvent, ei as secretArrayPrefixes, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, ht as ReadinessTimeoutError, ii as RECORD_DATABASES, j as CAP_METHOD_TIMEOUTS_MS, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, li as RECORD_MAX_INDEXES, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, ni as RECORD_BATCH_MAX_BYTES, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DELETE_BATCH, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pt as MODEL_FORMATS, q as viewerUiCapability, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, r as maskUrlCredentials, ri as RECORD_CLASSES, si as RECORD_ID_MAX_LENGTH, sr as expandCapMethods, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, ui as RECORD_MAX_INDEX_FIELDS, v as addonSliceHandleApi, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vt as scopeKey, wn as clearKnownSecrets, wr as normalizeAddonInitResult, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, y as createEventBusSliceSource, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, zi as RevConflictError, zn as defineEntryKind } from "./sleep-BnR9qGOv.mjs";
2
2
  import { t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
3
- import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-COP6zOXx.mjs";
3
+ import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-RvQIEpqg.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
5
5
  /**
6
6
  * AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
@@ -0,0 +1,135 @@
1
+ import { z } from 'zod';
2
+ import { type InferProvider } from './capability-definition.js';
3
+ /** How loudly a fault wants the operator. Both tiers raise the attention event. */
4
+ export declare const DeviceErrorSeveritySchema: z.ZodEnum<{
5
+ error: "error";
6
+ warning: "warning";
7
+ }>;
8
+ export type DeviceErrorSeverity = z.infer<typeof DeviceErrorSeveritySchema>;
9
+ /** One fault of a device that can raise several at once. */
10
+ export declare const DeviceFaultSchema: z.ZodObject<{
11
+ code: z.ZodString;
12
+ label: z.ZodString;
13
+ severity: z.ZodEnum<{
14
+ error: "error";
15
+ warning: "warning";
16
+ }>;
17
+ }, z.core.$strip>;
18
+ export type DeviceFault = z.infer<typeof DeviceFaultSchema>;
19
+ /**
20
+ * The fault a device reports right now. One slice per device.
21
+ *
22
+ * `active` is tri-state: `null` is "the provider has not read it yet" and is
23
+ * never drawn as "no fault" nor as a fault (D315, D393). The provider filters
24
+ * what is not a fault (a completion or reminder code) BEFORE it writes `true`.
25
+ *
26
+ * The cap's name is the key a template reads (`{{ alias.error.label }}`, D1021).
27
+ */
28
+ export declare const ErrorStatusSchema: z.ZodObject<{
29
+ active: z.ZodNullable<z.ZodBoolean>;
30
+ code: z.ZodNullable<z.ZodString>;
31
+ label: z.ZodNullable<z.ZodString>;
32
+ severity: z.ZodEnum<{
33
+ error: "error";
34
+ warning: "warning";
35
+ }>;
36
+ since: z.ZodNullable<z.ZodNumber>;
37
+ faults: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
+ code: z.ZodString;
39
+ label: z.ZodString;
40
+ severity: z.ZodEnum<{
41
+ error: "error";
42
+ warning: "warning";
43
+ }>;
44
+ }, z.core.$strip>>>;
45
+ lastFetchedAt: z.ZodNumber;
46
+ }, z.core.$strip>;
47
+ export type ErrorStatus = z.infer<typeof ErrorStatusSchema>;
48
+ /** The slice before the provider has read anything: unknown, not "fine". */
49
+ export declare const ERROR_STATUS_COLD: ErrorStatus;
50
+ export declare const errorCapability: {
51
+ readonly name: 'error';
52
+ readonly scope: 'device';
53
+ readonly deviceNative: true;
54
+ readonly mode: 'singleton';
55
+ readonly methods: {};
56
+ readonly status: {
57
+ readonly schema: z.ZodObject<{
58
+ active: z.ZodNullable<z.ZodBoolean>;
59
+ code: z.ZodNullable<z.ZodString>;
60
+ label: z.ZodNullable<z.ZodString>;
61
+ severity: z.ZodEnum<{
62
+ error: "error";
63
+ warning: "warning";
64
+ }>;
65
+ since: z.ZodNullable<z.ZodNumber>;
66
+ faults: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
+ code: z.ZodString;
68
+ label: z.ZodString;
69
+ severity: z.ZodEnum<{
70
+ error: "error";
71
+ warning: "warning";
72
+ }>;
73
+ }, z.core.$strip>>>;
74
+ lastFetchedAt: z.ZodNumber;
75
+ }, z.core.$strip>;
76
+ readonly kind: 'push';
77
+ readonly empty: {
78
+ active: boolean | null;
79
+ code: string | null;
80
+ label: string | null;
81
+ severity: "error" | "warning";
82
+ since: number | null;
83
+ faults?: {
84
+ code: string;
85
+ label: string;
86
+ severity: "error" | "warning";
87
+ }[] | undefined;
88
+ lastFetchedAt: number;
89
+ };
90
+ };
91
+ readonly runtimeState: z.ZodObject<{
92
+ active: z.ZodNullable<z.ZodBoolean>;
93
+ code: z.ZodNullable<z.ZodString>;
94
+ label: z.ZodNullable<z.ZodString>;
95
+ severity: z.ZodEnum<{
96
+ error: "error";
97
+ warning: "warning";
98
+ }>;
99
+ since: z.ZodNullable<z.ZodNumber>;
100
+ faults: z.ZodOptional<z.ZodArray<z.ZodObject<{
101
+ code: z.ZodString;
102
+ label: z.ZodString;
103
+ severity: z.ZodEnum<{
104
+ error: "error";
105
+ warning: "warning";
106
+ }>;
107
+ }, z.core.$strip>>>;
108
+ lastFetchedAt: z.ZodNumber;
109
+ }, z.core.$strip>;
110
+ /**
111
+ * Runtime-state durability: **restored** — the previous observation is what
112
+ * lets the first reading after a restart be a COMPARISON: a fault that was
113
+ * already open must not announce itself a second time.
114
+ *
115
+ * See `RuntimeStateDurability`. Enforced by
116
+ * `scripts/check-runtime-state-durability.ts`.
117
+ */
118
+ readonly durability: 'restored';
119
+ readonly volatileStateFields: readonly ["lastFetchedAt"];
120
+ /** The fault itself is carried by the attention alerts; no series is recorded. */
121
+ readonly history: 'none';
122
+ readonly vocabulary: {
123
+ readonly noun: import("../index.js").VocabL10n;
124
+ readonly order: 5265;
125
+ readonly state: readonly [{
126
+ readonly kind: 'boolean';
127
+ readonly field: 'active';
128
+ readonly label: import("../index.js").VocabL10n;
129
+ readonly whenTrue: import("../index.js").VocabL10n;
130
+ readonly whenFalse: import("../index.js").VocabL10n;
131
+ readonly icon: 'triangle-alert';
132
+ }];
133
+ };
134
+ };
135
+ export type IErrorProvider = InferProvider<typeof errorCapability>;
@@ -168,6 +168,7 @@ export { ACTION_RUN_MAX_MS, ACTION_RUN_TIMEOUT_MS, ACTION_RUN_TRANSPORT_MARGIN_M
168
168
  export { type ActionLinks, ActionLinksSchema, actionsCapability, type IActionsProvider, } from './actions.cap.js';
169
169
  export { type AutomationControlStatus, AutomationControlStatusSchema, automationControlCapability, type IAutomationControlProvider, } from './automation-control.cap.js';
170
170
  export { type BatteryStatus, BatteryStatusSchema, batteryCapability, type IBatteryProvider, } from './battery.cap.js';
171
+ export { type DeviceErrorSeverity, DeviceErrorSeveritySchema, type DeviceFault, DeviceFaultSchema, ERROR_STATUS_COLD, type ErrorStatus, ErrorStatusSchema, errorCapability, type IErrorProvider, } from './error.cap.js';
171
172
  export { type BinaryStatus, BinaryStatusSchema, binaryCapability, type IBinaryProvider, } from './binary.cap.js';
172
173
  export { type BrightnessStatus, BrightnessStatusSchema, brightnessCapability, type IBrightnessProvider, } from './brightness.cap.js';
173
174
  export { FAN_CAPTURE_FIELDS, FAN_PRESETS_MAX, FAN_PRESETS_REFUSALS, type FanCaptureField, FanCaptureFieldSchema, type FanCaptureOmission, FanCaptureOmissionSchema, type FanPreset, type FanPresetApplyResult, FanPresetApplyResultSchema, type FanPresetAxis, FanPresetAxisSchema, type FanPresetCaptureResult, FanPresetCaptureResultSchema, type FanPresetFieldResult, FanPresetFieldResultSchema, FanPresetSchema, type FanPresetState, FanPresetStateSchema, type FanPresetsRefusal, FanPresetsRefusalSchema, type FanPresetsSetResult, FanPresetsSetResultSchema, type IFanPresetsProvider, fanPresetsCapability, } from './fan-presets.cap.js';
@@ -280,6 +281,7 @@ export { type IValveProvider, type ValveState, ValveStateSchema, type ValveStatu
280
281
  export { type IVibrationProvider, type VibrationStatus, VibrationStatusSchema, vibrationCapability, } from './vibration.cap.js';
281
282
  export { type IWaterHeaterProvider, type WaterHeaterStatus, WaterHeaterStatusSchema, waterHeaterCapability, } from './water-heater.cap.js';
282
283
  export { type IWeatherProvider, type WeatherStatus, WeatherStatusSchema, weatherCapability, } from './weather.cap.js';
284
+ export { type IWeatherStationProvider, type WeatherStationStatus, WeatherStationStatusSchema, weatherStationCapability, } from './weather-station.cap.js';
283
285
  export { type CameraOccupancySnapshot, type CameraOccupancySnapshotForDevice, CameraOccupancySnapshotForDeviceSchema, type HistoryPoint, HistoryPointSchema, type HistoryResolution, HistoryResolutionEnum, type IZoneAnalyticsProvider, type PerScopeBreakdown, PerScopeBreakdownSchema, type StationaryObject, StationaryObjectSchema, type ZoneScopeBreakdown, ZoneScopeBreakdownSchema, zoneAnalyticsCapability, } from './zone-analytics.cap.js';
284
286
  export { type IZoneRulesProvider, type ZoneRuleStage, ZoneRuleStageEnum, zoneRulesCapability, } from './zone-rules.cap.js';
285
287
  export { type IZonesProvider, type PolygonPoint, PolygonPointSchema, type Zone, type ZoneKind, ZoneKindEnum, ZoneSchema, zonesCapability, } from './zones.cap.js';
@@ -312,6 +314,7 @@ import type { schedulersCapability } from './schedulers.cap.js';
312
314
  import type { automationControlCapability } from './automation-control.cap.js';
313
315
  import type { backupCapability } from './backup.cap.js';
314
316
  import type { batteryCapability } from './battery.cap.js';
317
+ import type { errorCapability } from './error.cap.js';
315
318
  import type { binaryCapability } from './binary.cap.js';
316
319
  import type { brightnessCapability } from './brightness.cap.js';
317
320
  import type { brokerCapability } from './broker.cap.js';
@@ -488,12 +491,13 @@ import type { videoclipsCapability } from './videoclips.cap.js';
488
491
  import type { viewerUiCapability } from './viewer-ui.cap.js';
489
492
  import type { waterHeaterCapability } from './water-heater.cap.js';
490
493
  import type { weatherCapability } from './weather.cap.js';
494
+ import type { weatherStationCapability } from './weather-station.cap.js';
491
495
  import type { webrtcSessionCapability } from './webrtc-session.cap.js';
492
496
  import type { trainingCapability } from './training.cap.js';
493
497
  import type { trainingProviderCapability } from './training-provider.cap.js';
494
498
  import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
495
499
  import type { zoneRulesCapability } from './zone-rules.cap.js';
496
500
  import type { zonesCapability } from './zones.cap.js';
497
- type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof energySystemCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
501
+ type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof weatherStationCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof energySystemCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof errorCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
498
502
  export type CapabilityName = AnyCapability['name'];
499
503
  export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
@@ -0,0 +1,255 @@
1
+ import { z } from 'zod';
2
+ import { DeviceType } from '../device/device-type.js';
3
+ import { type InferProvider } from './capability-definition.js';
4
+ /**
5
+ * A physical weather station (an Ecowitt outdoor array, and the same shape for
6
+ * any later station). Read-only: one slice per station, filled from the
7
+ * station's own poll. `weather` stays the forecast provider.
8
+ *
9
+ * Every reading is nullable. Null means the station does not report it;
10
+ * a missing sensor is never stored as 0 (D393). Units are the quantity base
11
+ * (D944), declared the same way sibling sensor caps declare them.
12
+ */
13
+ export declare const WeatherStationReadingsSchema: z.ZodObject<{
14
+ temperature: z.ZodNullable<z.ZodNumber>;
15
+ humidity: z.ZodNullable<z.ZodNumber>;
16
+ pressure: z.ZodNullable<z.ZodNumber>;
17
+ windSpeed: z.ZodNullable<z.ZodNumber>;
18
+ windGust: z.ZodNullable<z.ZodNumber>;
19
+ windBearing: z.ZodNullable<z.ZodNumber>;
20
+ rainRate: z.ZodNullable<z.ZodNumber>;
21
+ rainDaily: z.ZodNullable<z.ZodNumber>;
22
+ rainEvent: z.ZodNullable<z.ZodNumber>;
23
+ uv: z.ZodNullable<z.ZodNumber>;
24
+ solarRadiation: z.ZodNullable<z.ZodNumber>;
25
+ dewPoint: z.ZodNullable<z.ZodNumber>;
26
+ }, z.core.$strip>;
27
+ export declare const WeatherStationStatusSchema: z.ZodObject<{
28
+ temperature: z.ZodNullable<z.ZodNumber>;
29
+ humidity: z.ZodNullable<z.ZodNumber>;
30
+ pressure: z.ZodNullable<z.ZodNumber>;
31
+ windSpeed: z.ZodNullable<z.ZodNumber>;
32
+ windGust: z.ZodNullable<z.ZodNumber>;
33
+ windBearing: z.ZodNullable<z.ZodNumber>;
34
+ rainRate: z.ZodNullable<z.ZodNumber>;
35
+ rainDaily: z.ZodNullable<z.ZodNumber>;
36
+ rainEvent: z.ZodNullable<z.ZodNumber>;
37
+ uv: z.ZodNullable<z.ZodNumber>;
38
+ solarRadiation: z.ZodNullable<z.ZodNumber>;
39
+ dewPoint: z.ZodNullable<z.ZodNumber>;
40
+ lastFetchedAt: z.ZodNumber;
41
+ }, z.core.$strip>;
42
+ export type WeatherStationStatus = z.infer<typeof WeatherStationStatusSchema>;
43
+ export declare const weatherStationCapability: {
44
+ readonly name: 'weather-station';
45
+ readonly scope: 'device';
46
+ readonly deviceNative: true;
47
+ readonly mode: 'singleton';
48
+ readonly deviceTypes: readonly [DeviceType.WeatherStation];
49
+ readonly methods: {};
50
+ readonly status: {
51
+ readonly schema: z.ZodObject<{
52
+ temperature: z.ZodNullable<z.ZodNumber>;
53
+ humidity: z.ZodNullable<z.ZodNumber>;
54
+ pressure: z.ZodNullable<z.ZodNumber>;
55
+ windSpeed: z.ZodNullable<z.ZodNumber>;
56
+ windGust: z.ZodNullable<z.ZodNumber>;
57
+ windBearing: z.ZodNullable<z.ZodNumber>;
58
+ rainRate: z.ZodNullable<z.ZodNumber>;
59
+ rainDaily: z.ZodNullable<z.ZodNumber>;
60
+ rainEvent: z.ZodNullable<z.ZodNumber>;
61
+ uv: z.ZodNullable<z.ZodNumber>;
62
+ solarRadiation: z.ZodNullable<z.ZodNumber>;
63
+ dewPoint: z.ZodNullable<z.ZodNumber>;
64
+ lastFetchedAt: z.ZodNumber;
65
+ }, z.core.$strip>;
66
+ readonly kind: 'push';
67
+ };
68
+ readonly runtimeState: z.ZodObject<{
69
+ temperature: z.ZodNullable<z.ZodNumber>;
70
+ humidity: z.ZodNullable<z.ZodNumber>;
71
+ pressure: z.ZodNullable<z.ZodNumber>;
72
+ windSpeed: z.ZodNullable<z.ZodNumber>;
73
+ windGust: z.ZodNullable<z.ZodNumber>;
74
+ windBearing: z.ZodNullable<z.ZodNumber>;
75
+ rainRate: z.ZodNullable<z.ZodNumber>;
76
+ rainDaily: z.ZodNullable<z.ZodNumber>;
77
+ rainEvent: z.ZodNullable<z.ZodNumber>;
78
+ uv: z.ZodNullable<z.ZodNumber>;
79
+ solarRadiation: z.ZodNullable<z.ZodNumber>;
80
+ dewPoint: z.ZodNullable<z.ZodNumber>;
81
+ lastFetchedAt: z.ZodNumber;
82
+ }, z.core.$strip>;
83
+ /**
84
+ * The sensor children already record each reading. The station slice is the
85
+ * live aggregate a template reads; it does not keep a second series.
86
+ */
87
+ readonly history: 'none';
88
+ /**
89
+ * Runtime-state durability: **session** — a station reading is stale the
90
+ * moment the hub is down; the provider re-reads on the next poll.
91
+ */
92
+ readonly durability: 'session';
93
+ readonly vocabulary: {
94
+ readonly noun: import("../index.js").VocabL10n;
95
+ readonly order: 5235;
96
+ readonly state: readonly [{
97
+ kind: 'numeric';
98
+ field: string;
99
+ quantity: {
100
+ en: string;
101
+ it: string;
102
+ };
103
+ label: {
104
+ en: string;
105
+ it: string;
106
+ };
107
+ unit: string;
108
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
109
+ }, {
110
+ kind: 'numeric';
111
+ field: string;
112
+ quantity: {
113
+ en: string;
114
+ it: string;
115
+ };
116
+ label: {
117
+ en: string;
118
+ it: string;
119
+ };
120
+ unit: string;
121
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
122
+ }, {
123
+ kind: 'numeric';
124
+ field: string;
125
+ quantity: {
126
+ en: string;
127
+ it: string;
128
+ };
129
+ label: {
130
+ en: string;
131
+ it: string;
132
+ };
133
+ unit: string;
134
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
135
+ }, {
136
+ kind: 'numeric';
137
+ field: string;
138
+ quantity: {
139
+ en: string;
140
+ it: string;
141
+ };
142
+ label: {
143
+ en: string;
144
+ it: string;
145
+ };
146
+ unit: string;
147
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
148
+ }, {
149
+ kind: 'numeric';
150
+ field: string;
151
+ quantity: {
152
+ en: string;
153
+ it: string;
154
+ };
155
+ label: {
156
+ en: string;
157
+ it: string;
158
+ };
159
+ unit: string;
160
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
161
+ }, {
162
+ kind: 'numeric';
163
+ field: string;
164
+ quantity: {
165
+ en: string;
166
+ it: string;
167
+ };
168
+ label: {
169
+ en: string;
170
+ it: string;
171
+ };
172
+ unit: string;
173
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
174
+ }, {
175
+ kind: 'numeric';
176
+ field: string;
177
+ quantity: {
178
+ en: string;
179
+ it: string;
180
+ };
181
+ label: {
182
+ en: string;
183
+ it: string;
184
+ };
185
+ unit: string;
186
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
187
+ }, {
188
+ kind: 'numeric';
189
+ field: string;
190
+ quantity: {
191
+ en: string;
192
+ it: string;
193
+ };
194
+ label: {
195
+ en: string;
196
+ it: string;
197
+ };
198
+ unit: string;
199
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
200
+ }, {
201
+ kind: 'numeric';
202
+ field: string;
203
+ quantity: {
204
+ en: string;
205
+ it: string;
206
+ };
207
+ label: {
208
+ en: string;
209
+ it: string;
210
+ };
211
+ unit: string;
212
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
213
+ }, {
214
+ kind: 'numeric';
215
+ field: string;
216
+ quantity: {
217
+ en: string;
218
+ it: string;
219
+ };
220
+ label: {
221
+ en: string;
222
+ it: string;
223
+ };
224
+ unit: string;
225
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
226
+ }, {
227
+ kind: 'numeric';
228
+ field: string;
229
+ quantity: {
230
+ en: string;
231
+ it: string;
232
+ };
233
+ label: {
234
+ en: string;
235
+ it: string;
236
+ };
237
+ unit: string;
238
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
239
+ }, {
240
+ kind: 'numeric';
241
+ field: string;
242
+ quantity: {
243
+ en: string;
244
+ it: string;
245
+ };
246
+ label: {
247
+ en: string;
248
+ it: string;
249
+ };
250
+ unit: string;
251
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
252
+ }];
253
+ };
254
+ };
255
+ export type IWeatherStationProvider = InferProvider<typeof weatherStationCapability>;
package/dist/client.js CHANGED
@@ -1194,6 +1194,9 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
1194
1194
  /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
1195
1195
  * `weather` cap. */
1196
1196
  DeviceType["Weather"] = "weather";
1197
+ /** A physical weather station (Ecowitt outdoor array). `weather-station`
1198
+ * cap. Distinct from {@link Weather}, which is a forecast provider. */
1199
+ DeviceType["WeatherStation"] = "weather-station";
1197
1200
  /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
1198
1201
  DeviceType["Vacuum"] = "vacuum";
1199
1202
  /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
@@ -27313,6 +27316,7 @@ var DEVICE_TYPE_ICON = {
27313
27316
  [DeviceType.Control]: "sliders-horizontal",
27314
27317
  [DeviceType.Presence]: "map-pin",
27315
27318
  [DeviceType.Weather]: "cloud-sun",
27319
+ [DeviceType.WeatherStation]: "cloud-sun",
27316
27320
  [DeviceType.Vacuum]: "bot",
27317
27321
  [DeviceType.LawnMower]: "tractor",
27318
27322
  [DeviceType.Container]: "box",
@@ -27686,6 +27690,7 @@ function createDeviceProxy(api, binding, opts) {
27686
27690
  const doorbellInterface = { getStatus: (input) => dispatch("doorbell", "doorbell", "getStatus", "query", input) };
27687
27691
  const energySystemInterface = { getStatus: (input) => dispatch("energy-system", "energySystem", "getStatus", "query", input) };
27688
27692
  const enumSensorInterface = { getStatus: (input) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input) };
27693
+ const errorInterface = { getStatus: (input) => dispatch("error", "error", "getStatus", "query", input) };
27689
27694
  const eventEmitterInterface = { getStatus: (input) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input) };
27690
27695
  const fanControlInterface = {
27691
27696
  setPercentage: (input) => dispatch("fan-control", "fanControl", "setPercentage", "mutation", input),
@@ -28088,6 +28093,7 @@ function createDeviceProxy(api, binding, opts) {
28088
28093
  getStatus: (input) => dispatch("water-heater", "waterHeater", "getStatus", "query", input)
28089
28094
  };
28090
28095
  const weatherInterface = { getStatus: (input) => dispatch("weather", "weather", "getStatus", "query", input) };
28096
+ const weatherStationInterface = { getStatus: (input) => dispatch("weather-station", "weatherStation", "getStatus", "query", input) };
28091
28097
  const webrtcSessionInterface = {
28092
28098
  listStreams: (input) => dispatch("webrtc-session", "webrtcSession", "listStreams", "query", input),
28093
28099
  createSession: (input) => dispatch("webrtc-session", "webrtcSession", "createSession", "mutation", input),
@@ -28314,6 +28320,7 @@ function createDeviceProxy(api, binding, opts) {
28314
28320
  doorbell: createSliceHandle(stateSource, binding.deviceId, "doorbell"),
28315
28321
  energySystem: createSliceHandle(stateSource, binding.deviceId, "energy-system"),
28316
28322
  enumSensor: createSliceHandle(stateSource, binding.deviceId, "enum-sensor"),
28323
+ error: createSliceHandle(stateSource, binding.deviceId, "error"),
28317
28324
  eventEmitter: createSliceHandle(stateSource, binding.deviceId, "event-emitter"),
28318
28325
  fanControl: createSliceHandle(stateSource, binding.deviceId, "fan-control"),
28319
28326
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
@@ -28370,6 +28377,7 @@ function createDeviceProxy(api, binding, opts) {
28370
28377
  vibration: createSliceHandle(stateSource, binding.deviceId, "vibration"),
28371
28378
  waterHeater: createSliceHandle(stateSource, binding.deviceId, "water-heater"),
28372
28379
  weather: createSliceHandle(stateSource, binding.deviceId, "weather"),
28380
+ weatherStation: createSliceHandle(stateSource, binding.deviceId, "weather-station"),
28373
28381
  zoneAnalytics: createSliceHandle(stateSource, binding.deviceId, "zone-analytics"),
28374
28382
  zoneRules: createSliceHandle(stateSource, binding.deviceId, "zone-rules"),
28375
28383
  zones: createSliceHandle(stateSource, binding.deviceId, "zones")
@@ -28410,6 +28418,7 @@ function createDeviceProxy(api, binding, opts) {
28410
28418
  ...bound("doorbell") ? { doorbell: doorbellInterface } : {},
28411
28419
  ...bound("energy-system") ? { energySystem: energySystemInterface } : {},
28412
28420
  ...bound("enum-sensor") ? { enumSensor: enumSensorInterface } : {},
28421
+ ...bound("error") ? { error: errorInterface } : {},
28413
28422
  ...bound("event-emitter") ? { eventEmitter: eventEmitterInterface } : {},
28414
28423
  ...bound("fan-control") ? { fanControl: fanControlInterface } : {},
28415
28424
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
@@ -28475,6 +28484,7 @@ function createDeviceProxy(api, binding, opts) {
28475
28484
  ...bound("videoclips") ? { videoclips: videoclipsInterface } : {},
28476
28485
  ...bound("water-heater") ? { waterHeater: waterHeaterInterface } : {},
28477
28486
  ...bound("weather") ? { weather: weatherInterface } : {},
28487
+ ...bound("weather-station") ? { weatherStation: weatherStationInterface } : {},
28478
28488
  ...bound("webrtc-session") ? { webrtcSession: webrtcSessionInterface } : {},
28479
28489
  ...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
28480
28490
  ...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
package/dist/client.mjs CHANGED
@@ -1193,6 +1193,9 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
1193
1193
  /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
1194
1194
  * `weather` cap. */
1195
1195
  DeviceType["Weather"] = "weather";
1196
+ /** A physical weather station (Ecowitt outdoor array). `weather-station`
1197
+ * cap. Distinct from {@link Weather}, which is a forecast provider. */
1198
+ DeviceType["WeatherStation"] = "weather-station";
1196
1199
  /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
1197
1200
  DeviceType["Vacuum"] = "vacuum";
1198
1201
  /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
@@ -27312,6 +27315,7 @@ var DEVICE_TYPE_ICON = {
27312
27315
  [DeviceType.Control]: "sliders-horizontal",
27313
27316
  [DeviceType.Presence]: "map-pin",
27314
27317
  [DeviceType.Weather]: "cloud-sun",
27318
+ [DeviceType.WeatherStation]: "cloud-sun",
27315
27319
  [DeviceType.Vacuum]: "bot",
27316
27320
  [DeviceType.LawnMower]: "tractor",
27317
27321
  [DeviceType.Container]: "box",
@@ -27685,6 +27689,7 @@ function createDeviceProxy(api, binding, opts) {
27685
27689
  const doorbellInterface = { getStatus: (input) => dispatch("doorbell", "doorbell", "getStatus", "query", input) };
27686
27690
  const energySystemInterface = { getStatus: (input) => dispatch("energy-system", "energySystem", "getStatus", "query", input) };
27687
27691
  const enumSensorInterface = { getStatus: (input) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input) };
27692
+ const errorInterface = { getStatus: (input) => dispatch("error", "error", "getStatus", "query", input) };
27688
27693
  const eventEmitterInterface = { getStatus: (input) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input) };
27689
27694
  const fanControlInterface = {
27690
27695
  setPercentage: (input) => dispatch("fan-control", "fanControl", "setPercentage", "mutation", input),
@@ -28087,6 +28092,7 @@ function createDeviceProxy(api, binding, opts) {
28087
28092
  getStatus: (input) => dispatch("water-heater", "waterHeater", "getStatus", "query", input)
28088
28093
  };
28089
28094
  const weatherInterface = { getStatus: (input) => dispatch("weather", "weather", "getStatus", "query", input) };
28095
+ const weatherStationInterface = { getStatus: (input) => dispatch("weather-station", "weatherStation", "getStatus", "query", input) };
28090
28096
  const webrtcSessionInterface = {
28091
28097
  listStreams: (input) => dispatch("webrtc-session", "webrtcSession", "listStreams", "query", input),
28092
28098
  createSession: (input) => dispatch("webrtc-session", "webrtcSession", "createSession", "mutation", input),
@@ -28313,6 +28319,7 @@ function createDeviceProxy(api, binding, opts) {
28313
28319
  doorbell: createSliceHandle(stateSource, binding.deviceId, "doorbell"),
28314
28320
  energySystem: createSliceHandle(stateSource, binding.deviceId, "energy-system"),
28315
28321
  enumSensor: createSliceHandle(stateSource, binding.deviceId, "enum-sensor"),
28322
+ error: createSliceHandle(stateSource, binding.deviceId, "error"),
28316
28323
  eventEmitter: createSliceHandle(stateSource, binding.deviceId, "event-emitter"),
28317
28324
  fanControl: createSliceHandle(stateSource, binding.deviceId, "fan-control"),
28318
28325
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
@@ -28369,6 +28376,7 @@ function createDeviceProxy(api, binding, opts) {
28369
28376
  vibration: createSliceHandle(stateSource, binding.deviceId, "vibration"),
28370
28377
  waterHeater: createSliceHandle(stateSource, binding.deviceId, "water-heater"),
28371
28378
  weather: createSliceHandle(stateSource, binding.deviceId, "weather"),
28379
+ weatherStation: createSliceHandle(stateSource, binding.deviceId, "weather-station"),
28372
28380
  zoneAnalytics: createSliceHandle(stateSource, binding.deviceId, "zone-analytics"),
28373
28381
  zoneRules: createSliceHandle(stateSource, binding.deviceId, "zone-rules"),
28374
28382
  zones: createSliceHandle(stateSource, binding.deviceId, "zones")
@@ -28409,6 +28417,7 @@ function createDeviceProxy(api, binding, opts) {
28409
28417
  ...bound("doorbell") ? { doorbell: doorbellInterface } : {},
28410
28418
  ...bound("energy-system") ? { energySystem: energySystemInterface } : {},
28411
28419
  ...bound("enum-sensor") ? { enumSensor: enumSensorInterface } : {},
28420
+ ...bound("error") ? { error: errorInterface } : {},
28412
28421
  ...bound("event-emitter") ? { eventEmitter: eventEmitterInterface } : {},
28413
28422
  ...bound("fan-control") ? { fanControl: fanControlInterface } : {},
28414
28423
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
@@ -28474,6 +28483,7 @@ function createDeviceProxy(api, binding, opts) {
28474
28483
  ...bound("videoclips") ? { videoclips: videoclipsInterface } : {},
28475
28484
  ...bound("water-heater") ? { waterHeater: waterHeaterInterface } : {},
28476
28485
  ...bound("weather") ? { weather: weatherInterface } : {},
28486
+ ...bound("weather-station") ? { weatherStation: weatherStationInterface } : {},
28477
28487
  ...bound("webrtc-session") ? { webrtcSession: webrtcSessionInterface } : {},
28478
28488
  ...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
28479
28489
  ...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},