@camstack/types 1.2.573 → 1.2.574
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 +11 -6
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/capability-definition.d.ts +1 -1
- package/dist/capabilities/consumables.cap.d.ts +5 -14
- package/dist/capabilities/weather-station.cap.d.ts +305 -51
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +605 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/index.js +888 -34
- package/dist/index.mjs +888 -34
- package/dist/interfaces/config-ui.d.ts +2 -2
- package/dist/{sleep-BnR9qGOv.mjs → sleep-CLDVTB5R.mjs} +150 -0
- package/dist/{sleep-Cr2-wtyQ.js → sleep-CsIzA4m_.js} +150 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.574] - 2026-11-15
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The weather station records its own readings with history and also reports feels-like, VPD, daily maximum gust, average wind bearing and 24 h, weekly, monthly and yearly rain
|
|
15
|
+
- Weather station: vapour-pressure deficit in kPa, UV on its own index unit, and a Customize section that lets any reading be assigned from another device or a device become a station
|
|
16
|
+
|
|
17
|
+
### Removed
|
|
18
|
+
|
|
19
|
+
- The consumables capability no longer declares a device-page widget; consumables are shown by the device card.
|
|
20
|
+
|
|
10
21
|
## [1.2.573] - 2026-11-15
|
|
11
22
|
|
|
12
23
|
### Changed
|
|
@@ -54,8 +65,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
54
65
|
### Changed
|
|
55
66
|
|
|
56
67
|
- Remote: the source last sent by an infrared remote is no longer kept as state
|
|
57
|
-
### Changed
|
|
58
|
-
|
|
59
68
|
## [1.2.566] - 2026-11-14
|
|
60
69
|
|
|
61
70
|
### Changed
|
|
@@ -164,10 +173,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
164
173
|
### Changed
|
|
165
174
|
|
|
166
175
|
- IR transmitters can learn a code and replay device-native (Tuya) codes: ir-transmitter gains learn, send takes a native code, and a remote command can store one
|
|
167
|
-
### Changed
|
|
168
|
-
|
|
169
|
-
### Changed
|
|
170
|
-
|
|
171
176
|
## [1.2.554] - 2026-11-12
|
|
172
177
|
|
|
173
178
|
### Changed
|
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-CsIzA4m_.js");
|
|
3
3
|
const require_event_category = require("./event-category-d9kiqCqC.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CLDVTB5R.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
|
|
3
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
|
|
@@ -420,7 +420,7 @@ export declare const DEFAULT_RUNTIME_STATE_DURABILITY: RuntimeStateDurability;
|
|
|
420
420
|
* it. The symbol is the quantity's stored base (D944), including `µg/m³` and
|
|
421
421
|
* `m/s`. A per-device quantity (`numeric-sensor`) has no fixed unit.
|
|
422
422
|
*/
|
|
423
|
-
export type HistoryUnit = '%' | 'dBFS' | 'dBm' | '°C' | 'W' | 'kWh' | 'V' | 'A' | 'VA' | 'lx' | 'ppm' | 'ppb' | 'µg/m³' | 'hPa' | 'count' | 'ratio' | 'ms' | 's' | 'days' | 'bytes' | 'kbps' | 'fps' | 'm/s' | 'L';
|
|
423
|
+
export type HistoryUnit = '%' | 'dBFS' | 'dBm' | '°C' | 'W' | 'kWh' | 'V' | 'A' | 'VA' | 'lx' | 'ppm' | 'ppb' | 'µg/m³' | 'hPa' | 'count' | 'ratio' | 'ms' | 's' | 'days' | 'bytes' | 'kbps' | 'fps' | 'm/s' | 'L' | 'kPa' | 'index' | 'mm' | 'mm/h' | 'W/m²' | '°';
|
|
424
424
|
/** Display label per {@link HistoryUnit}. */
|
|
425
425
|
export declare const HISTORY_UNIT_LABELS: Readonly<Record<HistoryUnit, string>>;
|
|
426
426
|
/** One `runtimeState` field recorded as a history series. */
|
|
@@ -11,13 +11,14 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
11
11
|
* its device tracks consumables registers it; the provider names each item
|
|
12
12
|
* verbatim and says which `kind` it is.
|
|
13
13
|
*
|
|
14
|
-
* The admin UI
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* The admin UI shows it in the device card's consumables chip and popover
|
|
15
|
+
* (kind-aware level, remaining time, "Reset"), for every device bound to this
|
|
16
|
+
* cap (D1023). It no longer has a section of its own under the hero card
|
|
17
|
+
* (D915 on that point).
|
|
17
18
|
*
|
|
18
19
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
19
20
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
20
|
-
* "No consumables reported"
|
|
21
|
+
* "No consumables reported" line when `items` is empty.
|
|
21
22
|
*/
|
|
22
23
|
/**
|
|
23
24
|
* What an item IS, which decides which direction is bad:
|
|
@@ -178,16 +179,6 @@ export declare const consumablesCapability: {
|
|
|
178
179
|
readonly deviceNative: true;
|
|
179
180
|
readonly mode: 'singleton';
|
|
180
181
|
readonly deviceTypes: DeviceType[];
|
|
181
|
-
readonly deviceConfig: {
|
|
182
|
-
readonly ui: {
|
|
183
|
-
readonly kind: 'widget';
|
|
184
|
-
readonly widgetId: 'host/consumables-panel';
|
|
185
|
-
readonly tab: 'consumables';
|
|
186
|
-
readonly placement: 'hero';
|
|
187
|
-
readonly label: 'Consumables';
|
|
188
|
-
readonly order: 5;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
182
|
readonly methods: {
|
|
192
183
|
/** Mark a consumable as replaced — resets its remaining life. Only
|
|
193
184
|
* meaningful when the item's `resettable` is true. */
|
|
@@ -1,42 +1,62 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DeviceType } from '../device/device-type.js';
|
|
3
3
|
import { type InferProvider } from './capability-definition.js';
|
|
4
|
+
import type { ScalarCustomizeTarget } from './customize-spec.js';
|
|
4
5
|
/**
|
|
5
6
|
* A physical weather station (an Ecowitt outdoor array, and the same shape for
|
|
6
7
|
* any later station). Read-only: one slice per station, filled from the
|
|
7
8
|
* station's own poll. `weather` stays the forecast provider.
|
|
8
9
|
*
|
|
10
|
+
* The station is the ONE owner of its readings and of their history: a provider
|
|
11
|
+
* does not also declare them as standalone sensor devices.
|
|
12
|
+
*
|
|
9
13
|
* Every reading is nullable. Null means the station does not report it;
|
|
10
14
|
* a missing sensor is never stored as 0 (D393). Units are the quantity base
|
|
11
15
|
* (D944), declared the same way sibling sensor caps declare them.
|
|
12
16
|
*/
|
|
13
17
|
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
|
|
18
|
+
temperature: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
humidity: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
pressure: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
windSpeed: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
windGust: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
windBearing: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
rainRate: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
rainDaily: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
rainEvent: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
uv: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
solarRadiation: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
dewPoint: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
feelsLike: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
vpd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
windGustMax: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
windBearingAvg: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
rain24h: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
rainWeekly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
rainMonthly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
rainYearly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
26
38
|
}, z.core.$strip>;
|
|
27
39
|
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
|
+
temperature: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
41
|
+
humidity: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
pressure: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
windSpeed: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
+
windGust: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
+
windBearing: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
46
|
+
rainRate: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
47
|
+
rainDaily: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
48
|
+
rainEvent: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
uv: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
solarRadiation: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
51
|
+
dewPoint: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
+
feelsLike: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
vpd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
+
windGustMax: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
+
windBearingAvg: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
rain24h: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
57
|
+
rainWeekly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
rainMonthly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
59
|
+
rainYearly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
40
60
|
lastFetchedAt: z.ZodNumber;
|
|
41
61
|
}, z.core.$strip>;
|
|
42
62
|
export type WeatherStationStatus = z.infer<typeof WeatherStationStatusSchema>;
|
|
@@ -49,42 +69,172 @@ export declare const weatherStationCapability: {
|
|
|
49
69
|
readonly methods: {};
|
|
50
70
|
readonly status: {
|
|
51
71
|
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
|
|
72
|
+
temperature: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
73
|
+
humidity: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
74
|
+
pressure: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
75
|
+
windSpeed: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
+
windGust: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
77
|
+
windBearing: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
78
|
+
rainRate: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
79
|
+
rainDaily: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
80
|
+
rainEvent: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
81
|
+
uv: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
82
|
+
solarRadiation: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
83
|
+
dewPoint: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
84
|
+
feelsLike: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
85
|
+
vpd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
86
|
+
windGustMax: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
87
|
+
windBearingAvg: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
88
|
+
rain24h: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
89
|
+
rainWeekly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
90
|
+
rainMonthly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
91
|
+
rainYearly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
64
92
|
lastFetchedAt: z.ZodNumber;
|
|
65
93
|
}, z.core.$strip>;
|
|
66
94
|
readonly kind: 'push';
|
|
67
95
|
};
|
|
68
96
|
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
|
|
97
|
+
temperature: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
98
|
+
humidity: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
99
|
+
pressure: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
100
|
+
windSpeed: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
101
|
+
windGust: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
windBearing: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
103
|
+
rainRate: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
104
|
+
rainDaily: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
105
|
+
rainEvent: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
106
|
+
uv: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
107
|
+
solarRadiation: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
108
|
+
dewPoint: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
109
|
+
feelsLike: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
110
|
+
vpd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
111
|
+
windGustMax: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
112
|
+
windBearingAvg: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
113
|
+
rain24h: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
114
|
+
rainWeekly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
115
|
+
rainMonthly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
116
|
+
rainYearly: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
81
117
|
lastFetchedAt: z.ZodNumber;
|
|
82
118
|
}, z.core.$strip>;
|
|
83
119
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
120
|
+
* History (D850): the station records its own readings. Rain totals that
|
|
121
|
+
* reset (event, day, week, month, year) and the sliding 24 h total are
|
|
122
|
+
* levels, so `gauge`; `counter` is for a monotonic meter only.
|
|
86
123
|
*/
|
|
87
|
-
readonly history:
|
|
124
|
+
readonly history: {
|
|
125
|
+
readonly fields: {
|
|
126
|
+
readonly temperature: {
|
|
127
|
+
readonly kind: 'gauge';
|
|
128
|
+
readonly unit: '°C';
|
|
129
|
+
readonly deadband: 0.1;
|
|
130
|
+
};
|
|
131
|
+
readonly humidity: {
|
|
132
|
+
readonly kind: 'gauge';
|
|
133
|
+
readonly unit: '%';
|
|
134
|
+
readonly deadband: 1;
|
|
135
|
+
};
|
|
136
|
+
readonly pressure: {
|
|
137
|
+
readonly kind: 'gauge';
|
|
138
|
+
readonly unit: 'hPa';
|
|
139
|
+
readonly deadband: 0.2;
|
|
140
|
+
};
|
|
141
|
+
readonly windSpeed: {
|
|
142
|
+
readonly kind: 'gauge';
|
|
143
|
+
readonly unit: 'm/s';
|
|
144
|
+
readonly deadband: 0.2;
|
|
145
|
+
};
|
|
146
|
+
readonly windGust: {
|
|
147
|
+
readonly kind: 'gauge';
|
|
148
|
+
readonly unit: 'm/s';
|
|
149
|
+
readonly deadband: 0.2;
|
|
150
|
+
};
|
|
151
|
+
readonly windBearing: {
|
|
152
|
+
readonly kind: 'gauge';
|
|
153
|
+
readonly unit: '°';
|
|
154
|
+
readonly deadband: 5;
|
|
155
|
+
};
|
|
156
|
+
readonly rainRate: {
|
|
157
|
+
readonly kind: 'gauge';
|
|
158
|
+
readonly unit: 'mm/h';
|
|
159
|
+
readonly deadband: 0.1;
|
|
160
|
+
};
|
|
161
|
+
readonly rainDaily: {
|
|
162
|
+
readonly kind: 'gauge';
|
|
163
|
+
readonly unit: 'mm';
|
|
164
|
+
readonly deadband: 0.1;
|
|
165
|
+
};
|
|
166
|
+
readonly rainEvent: {
|
|
167
|
+
readonly kind: 'gauge';
|
|
168
|
+
readonly unit: 'mm';
|
|
169
|
+
readonly deadband: 0.1;
|
|
170
|
+
};
|
|
171
|
+
readonly uv: {
|
|
172
|
+
readonly kind: 'gauge';
|
|
173
|
+
readonly unit: 'index';
|
|
174
|
+
readonly deadband: 0.1;
|
|
175
|
+
};
|
|
176
|
+
readonly solarRadiation: {
|
|
177
|
+
readonly kind: 'gauge';
|
|
178
|
+
readonly unit: 'W/m²';
|
|
179
|
+
readonly deadband: 5;
|
|
180
|
+
};
|
|
181
|
+
readonly dewPoint: {
|
|
182
|
+
readonly kind: 'gauge';
|
|
183
|
+
readonly unit: '°C';
|
|
184
|
+
readonly deadband: 0.1;
|
|
185
|
+
};
|
|
186
|
+
readonly feelsLike: {
|
|
187
|
+
readonly kind: 'gauge';
|
|
188
|
+
readonly unit: '°C';
|
|
189
|
+
readonly deadband: 0.1;
|
|
190
|
+
};
|
|
191
|
+
readonly vpd: {
|
|
192
|
+
readonly kind: 'gauge';
|
|
193
|
+
readonly unit: 'kPa';
|
|
194
|
+
readonly deadband: 0.05;
|
|
195
|
+
};
|
|
196
|
+
readonly windGustMax: {
|
|
197
|
+
readonly kind: 'gauge';
|
|
198
|
+
readonly unit: 'm/s';
|
|
199
|
+
readonly deadband: 0.2;
|
|
200
|
+
};
|
|
201
|
+
readonly windBearingAvg: {
|
|
202
|
+
readonly kind: 'gauge';
|
|
203
|
+
readonly unit: '°';
|
|
204
|
+
readonly deadband: 5;
|
|
205
|
+
};
|
|
206
|
+
readonly rain24h: {
|
|
207
|
+
readonly kind: 'gauge';
|
|
208
|
+
readonly unit: 'mm';
|
|
209
|
+
readonly deadband: 0.1;
|
|
210
|
+
};
|
|
211
|
+
readonly rainWeekly: {
|
|
212
|
+
readonly kind: 'gauge';
|
|
213
|
+
readonly unit: 'mm';
|
|
214
|
+
readonly deadband: 0.1;
|
|
215
|
+
};
|
|
216
|
+
readonly rainMonthly: {
|
|
217
|
+
readonly kind: 'gauge';
|
|
218
|
+
readonly unit: 'mm';
|
|
219
|
+
readonly deadband: 0.1;
|
|
220
|
+
};
|
|
221
|
+
readonly rainYearly: {
|
|
222
|
+
readonly kind: 'gauge';
|
|
223
|
+
readonly unit: 'mm';
|
|
224
|
+
readonly deadband: 0.1;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
readonly customize: {
|
|
229
|
+
readonly version: 1;
|
|
230
|
+
readonly overridable: {
|
|
231
|
+
path: "dewPoint" | "feelsLike" | "humidity" | "pressure" | "rain24h" | "rainDaily" | "rainEvent" | "rainMonthly" | "rainRate" | "rainWeekly" | "rainYearly" | "solarRadiation" | "temperature" | "uv" | "vpd" | "windBearing" | "windBearingAvg" | "windGust" | "windGustMax" | "windSpeed";
|
|
232
|
+
by: "dewPoint" | "feelsLike" | "humidity" | "pressure" | "rain24h" | "rainDaily" | "rainEvent" | "rainMonthly" | "rainRate" | "rainWeekly" | "rainYearly" | "solarRadiation" | "temperature" | "uv" | "vpd" | "windBearing" | "windBearingAvg" | "windGust" | "windGustMax" | "windSpeed";
|
|
233
|
+
}[];
|
|
234
|
+
readonly targets: ScalarCustomizeTarget[];
|
|
235
|
+
};
|
|
236
|
+
/** The poll clock is written but is no reason to commit a row. */
|
|
237
|
+
readonly volatileStateFields: readonly ["lastFetchedAt"];
|
|
88
238
|
/**
|
|
89
239
|
* Runtime-state durability: **session** — a station reading is stale the
|
|
90
240
|
* moment the hub is down; the provider re-reads on the next poll.
|
|
@@ -249,6 +399,110 @@ export declare const weatherStationCapability: {
|
|
|
249
399
|
};
|
|
250
400
|
unit: string;
|
|
251
401
|
icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
|
|
402
|
+
}, {
|
|
403
|
+
kind: 'numeric';
|
|
404
|
+
field: string;
|
|
405
|
+
quantity: {
|
|
406
|
+
en: string;
|
|
407
|
+
it: string;
|
|
408
|
+
};
|
|
409
|
+
label: {
|
|
410
|
+
en: string;
|
|
411
|
+
it: string;
|
|
412
|
+
};
|
|
413
|
+
unit: string;
|
|
414
|
+
icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
|
|
415
|
+
}, {
|
|
416
|
+
kind: 'numeric';
|
|
417
|
+
field: string;
|
|
418
|
+
quantity: {
|
|
419
|
+
en: string;
|
|
420
|
+
it: string;
|
|
421
|
+
};
|
|
422
|
+
label: {
|
|
423
|
+
en: string;
|
|
424
|
+
it: string;
|
|
425
|
+
};
|
|
426
|
+
unit: string;
|
|
427
|
+
icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
|
|
428
|
+
}, {
|
|
429
|
+
kind: 'numeric';
|
|
430
|
+
field: string;
|
|
431
|
+
quantity: {
|
|
432
|
+
en: string;
|
|
433
|
+
it: string;
|
|
434
|
+
};
|
|
435
|
+
label: {
|
|
436
|
+
en: string;
|
|
437
|
+
it: string;
|
|
438
|
+
};
|
|
439
|
+
unit: string;
|
|
440
|
+
icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
|
|
441
|
+
}, {
|
|
442
|
+
kind: 'numeric';
|
|
443
|
+
field: string;
|
|
444
|
+
quantity: {
|
|
445
|
+
en: string;
|
|
446
|
+
it: string;
|
|
447
|
+
};
|
|
448
|
+
label: {
|
|
449
|
+
en: string;
|
|
450
|
+
it: string;
|
|
451
|
+
};
|
|
452
|
+
unit: string;
|
|
453
|
+
icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
|
|
454
|
+
}, {
|
|
455
|
+
kind: 'numeric';
|
|
456
|
+
field: string;
|
|
457
|
+
quantity: {
|
|
458
|
+
en: string;
|
|
459
|
+
it: string;
|
|
460
|
+
};
|
|
461
|
+
label: {
|
|
462
|
+
en: string;
|
|
463
|
+
it: string;
|
|
464
|
+
};
|
|
465
|
+
unit: string;
|
|
466
|
+
icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
|
|
467
|
+
}, {
|
|
468
|
+
kind: 'numeric';
|
|
469
|
+
field: string;
|
|
470
|
+
quantity: {
|
|
471
|
+
en: string;
|
|
472
|
+
it: string;
|
|
473
|
+
};
|
|
474
|
+
label: {
|
|
475
|
+
en: string;
|
|
476
|
+
it: string;
|
|
477
|
+
};
|
|
478
|
+
unit: string;
|
|
479
|
+
icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
|
|
480
|
+
}, {
|
|
481
|
+
kind: 'numeric';
|
|
482
|
+
field: string;
|
|
483
|
+
quantity: {
|
|
484
|
+
en: string;
|
|
485
|
+
it: string;
|
|
486
|
+
};
|
|
487
|
+
label: {
|
|
488
|
+
en: string;
|
|
489
|
+
it: string;
|
|
490
|
+
};
|
|
491
|
+
unit: string;
|
|
492
|
+
icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
|
|
493
|
+
}, {
|
|
494
|
+
kind: 'numeric';
|
|
495
|
+
field: string;
|
|
496
|
+
quantity: {
|
|
497
|
+
en: string;
|
|
498
|
+
it: string;
|
|
499
|
+
};
|
|
500
|
+
label: {
|
|
501
|
+
en: string;
|
|
502
|
+
it: string;
|
|
503
|
+
};
|
|
504
|
+
unit: string;
|
|
505
|
+
icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
|
|
252
506
|
}];
|
|
253
507
|
};
|
|
254
508
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `ALL_CAPABILITY_DEFINITIONS` (the whole Zod schema graph, ~+100 MB heap per
|
|
6
6
|
* runner). See docs/decisions/adr-0028.md.
|
|
7
7
|
*
|
|
8
|
-
* Coverage: 1 advance-derived caps, 86 caps with
|
|
8
|
+
* Coverage: 1 advance-derived caps, 86 caps with 444 state leaves, 15 caps with a declared method timeout.
|
|
9
9
|
*/
|
|
10
10
|
/** A bindable scalar in a capability's runtime state. */
|
|
11
11
|
export interface CapStateLeaf {
|