@camstack/types 1.2.573 → 1.2.575
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 +17 -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/energy-system.cap.d.ts +4 -0
- 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 +892 -34
- package/dist/index.mjs +892 -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/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as DEVICE_CHILDREN_BATCH_MAX, $i as runAddonMigrations, $n as isZodSecret, $r as recordSecretRef, $t as QUANTITY_BASE, Aa as expandAudioChunkToF32le, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Ar as collectSecretMarkerRefs, At as AudioStreamPickSchema, B as CAP_COMMAND_ORIGIN_CONTEXT_KEY, Bi as TransactRefusedError, Bn as entryBody, Br as moveRegistrySwitchToBody, Bt as ProfileRtspEntrySchema, C as auditedFields, Ca as isSecretConfigField, Ci as linkField, Cn as MIN_SCRUBBED_LENGTH, Cr as migrationSet, Ct as DebugInterest, D as HF_BASE_URL, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Dr as secretTreeFromPaths, Dt as getDebugInterest, E as DEFAULT_TOKEN_EXPIRY, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Er as parseSecretStatePath, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, Ft as CamStreamKindSchema, G as readNodePin, Gi as defaultIntegrationDepsOver, Gn as RecordKindNameSchema, Gr as isInstanceEnabled, Gt as SubscribeAudioChunksInputSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, Hr as registrySwitchToBodyId, Ht as ProfileSlotStatusSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, It as CamStreamResolutionSchema, J as PipelineRunResultBridge, Ji as rowsDepsOver, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Jt as makeSourceBrokerId, K as toNodeId, Ki as integrationRowsApiOver, Kn as RecordRetentionSchema, Kr as secretViewsOf, Kt as SubscribeAudioChunksResultSchema, L as defineCustomActions, Li as RecordUniqueViolationError, Ln as SHARE_VIEW_KINDS, Lr as resolvedValues, Lt as CameraStreamSchema, M as CAP_NAMES, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, Mr as resolveSecretMarkers, Mt as BrokerStatusSchema, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, Nr as transformSecretWrite, Nt as CAM_PROFILE_ORDER, O as HF_REPO, Oa as AUDIO_CHUNK_FORMATS, Oi as FilterRequiredError, On as scrubKnownSecrets, Or as secretTreeFromSchema, Ot as isDebugChannelName, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pn as PeerBytesTicketSchema, Pr as SCOPED_SETTINGS_SCOPES, Pt as CamProfileSchema, Q as deviceOpsCapability, Qi as defineAddonMigrations, Qn as collectZodSecretPaths, Qr as recordSecretCollection, Qt as DISPLAY_PREFERENCES, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Rr as normalizeNodeId, Rt as DecodedAudioChunkSchema, S as createSliceHandle, Sa as isKeychainStoredField, Si as parseSecretRef, Sn as createSecretsAccess, Sr as classifyStoreError, St as DEBUG_WATCH_WINDOW_MS, T as isCommand, Ta as schemaDeclaresAnyField, Ti as optionalLinkField, Tn as forgetKnownSecret, Tr as mergeSecretStatePaths, Tt as __resetDebugInterestForTests, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Ur as registrySwitchToBodyMigration, Ut as StreamSourceEntrySchema, V as CAP_NODE_PIN_CONTEXT_KEY, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, Vr as registrySwitchPortsOver, Vt as ProfileSlotSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, Wr as RecordIntegrationInstances, Wt as StreamSourceSchema, X as MIGRATION_API_VERSION, Xi as switchRecordsOverMigrationApi, Xn as defineRecordKinds, Xr as parseSecretPath, Xt as selectAssignedProfileSlots, Y as PipelineStepInputSchema, Yi as secretsOverMigrationApi, Yn as declarationsOf, Yr as mapSecretLeaves, Yt as parseProfileBrokerId, Z as RawStateResultSchema, Zi as AddonMigrationDefinitionError, Zn as SECRET_META, Zr as recordArrayItemPath, Zt as DEFAULT_DISPLAY_PREFERENCE, _ as invokeTrpcLeaf, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, _r as FORBIDDEN_MESSAGE_PREFIX, _t as readinessKey, a as asJsonArray, aa as collectHydratedFieldEntries, ai as RECORD_DEFAULT_MAX_DATA_BYTES, an as readingMeta, ar as PROVIDER_PIN_FIELD, at as actionEffect, b as createLazyTrpcSource, ba as collectKeychainStoredKeys, bi as isSecretRef, bn as resolveSecretViewsIn, br as userError, bt as DEBUG_WATCH_HARD_CAP_MS, c as asString, ca as dehydrateSchema, ci as RECORD_MAX_DATA_BYTES, cn as DeviceTransitionSchema, cr as historyItemFieldPath, ct as findVocabAction, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, dn as TransitionCommandSchema, dr as optionalMethod, dt as CAP_VOCABULARY_BY_NAME, ea as createEvent, ei as secretArrayPrefixes, en as ReadingQuantitySchema, er as DEFAULT_RUNTIME_STATE_DURABILITY, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, fn as TransitionOutcomeSchema, fr as resolveCapMount, ft as CAP_VOCABULARY, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, gt as emitDownForOwnedCaps, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, hr as ErrorCodeSchema, ht as ReadinessTimeoutError, i as asBoolean, ia as WELL_KNOWN_TAB_MAP, ii as RECORD_DATABASES, in as isReadingQuantity, ir as HISTORY_UNIT_LABELS, it as VocabActionError, ja as isAudioChunkFormat, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, jr as isSecretRefOwnedBy, jt as BrokerStatsSchema, k as RUNTIME_DEFAULTS, ka as audioChunkBytesPerSample, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, kr as KeychainWriteRefusedError, kt as AudioChunkFormatSchema, l as parseJsonArray, la as hydrateSchema, li as RECORD_MAX_INDEXES, ln as TransitionActorKindSchema, lr as isDeviceConfigCap, lt as vocabActionIdFor, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mr as CamstackError, mt as ReadinessRegistry, n as sleepCancellable, na as isEvent, ni as RECORD_BATCH_MAX_BYTES, nn as displayUnitFor, nr as DEVICE_STATUS_METHOD, nt as addonPagesSourceCapability, o as asJsonObject, oa as collectHydratedFieldValues, oi as RECORD_DELETE_BATCH, on as NOT_A_DEVICE, or as event, ot as allVocabActions, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pn as TransitionValueSchema, pr as systemMethod, pt as MODEL_FORMATS, q as viewerUiCapability, qi as recordsOverMigrationApi, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, qt as makeProfileBrokerId, r as maskUrlCredentials, ra as WELL_KNOWN_TABS, ri as RECORD_CLASSES, rn as historyUnitFor, rr as HISTORY_DEFAULT_MIN_INTERVAL_MS, rt as t, s as asNumber, sa as dehydrateConfigField, si as RECORD_ID_MAX_LENGTH, sn as DeviceCommandSettledEventSchema, sr as expandCapMethods, st as assertDeviceOffers, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, tn as baseUnitOf, tr as DEVICE_SETTINGS_CONTRIBUTION_METHODS, tt as AddonPageDeclarationSchema, u as parseJsonObject, ua as resolveHydratedFieldValue, ui as RECORD_MAX_INDEX_FIELDS, un as TransitionActorSchema, ur as method, ut as vocabCall, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vr as forbiddenError, vt as scopeKey, w as commandEffect, wa as omitTransientConfig, wi as linksOfKind, wn as clearKnownSecrets, wr as normalizeAddonInitResult, wt as DebugWatchTable, x as createMirrorSource, xa as collectSecretConfigKeys, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, xt as DEBUG_WATCH_REARM_EVERY_MS, y as createEventBusSliceSource, ya as REDACTED_SECRET, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, yt as DEBUG_CHANNEL_PREFIX, z as deviceCustomAction, zi as RevConflictError, zn as defineEntryKind, zr as createDurableState, zt as FrameHandleSchema } from "./sleep-
|
|
1
|
+
import { $ as DEVICE_CHILDREN_BATCH_MAX, $i as runAddonMigrations, $n as isZodSecret, $r as recordSecretRef, $t as QUANTITY_BASE, Aa as expandAudioChunkToF32le, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Ar as collectSecretMarkerRefs, At as AudioStreamPickSchema, B as CAP_COMMAND_ORIGIN_CONTEXT_KEY, Bi as TransactRefusedError, Bn as entryBody, Br as moveRegistrySwitchToBody, Bt as ProfileRtspEntrySchema, C as auditedFields, Ca as isSecretConfigField, Ci as linkField, Cn as MIN_SCRUBBED_LENGTH, Cr as migrationSet, Ct as DebugInterest, D as HF_BASE_URL, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Dr as secretTreeFromPaths, Dt as getDebugInterest, E as DEFAULT_TOKEN_EXPIRY, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Er as parseSecretStatePath, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, Ft as CamStreamKindSchema, G as readNodePin, Gi as defaultIntegrationDepsOver, Gn as RecordKindNameSchema, Gr as isInstanceEnabled, Gt as SubscribeAudioChunksInputSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, Hr as registrySwitchToBodyId, Ht as ProfileSlotStatusSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, It as CamStreamResolutionSchema, J as PipelineRunResultBridge, Ji as rowsDepsOver, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Jt as makeSourceBrokerId, K as toNodeId, Ki as integrationRowsApiOver, Kn as RecordRetentionSchema, Kr as secretViewsOf, Kt as SubscribeAudioChunksResultSchema, L as defineCustomActions, Li as RecordUniqueViolationError, Ln as SHARE_VIEW_KINDS, Lr as resolvedValues, Lt as CameraStreamSchema, M as CAP_NAMES, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, Mr as resolveSecretMarkers, Mt as BrokerStatusSchema, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, Nr as transformSecretWrite, Nt as CAM_PROFILE_ORDER, O as HF_REPO, Oa as AUDIO_CHUNK_FORMATS, Oi as FilterRequiredError, On as scrubKnownSecrets, Or as secretTreeFromSchema, Ot as isDebugChannelName, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pn as PeerBytesTicketSchema, Pr as SCOPED_SETTINGS_SCOPES, Pt as CamProfileSchema, Q as deviceOpsCapability, Qi as defineAddonMigrations, Qn as collectZodSecretPaths, Qr as recordSecretCollection, Qt as DISPLAY_PREFERENCES, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Rr as normalizeNodeId, Rt as DecodedAudioChunkSchema, S as createSliceHandle, Sa as isKeychainStoredField, Si as parseSecretRef, Sn as createSecretsAccess, Sr as classifyStoreError, St as DEBUG_WATCH_WINDOW_MS, T as isCommand, Ta as schemaDeclaresAnyField, Ti as optionalLinkField, Tn as forgetKnownSecret, Tr as mergeSecretStatePaths, Tt as __resetDebugInterestForTests, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Ur as registrySwitchToBodyMigration, Ut as StreamSourceEntrySchema, V as CAP_NODE_PIN_CONTEXT_KEY, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, Vr as registrySwitchPortsOver, Vt as ProfileSlotSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, Wr as RecordIntegrationInstances, Wt as StreamSourceSchema, X as MIGRATION_API_VERSION, Xi as switchRecordsOverMigrationApi, Xn as defineRecordKinds, Xr as parseSecretPath, Xt as selectAssignedProfileSlots, Y as PipelineStepInputSchema, Yi as secretsOverMigrationApi, Yn as declarationsOf, Yr as mapSecretLeaves, Yt as parseProfileBrokerId, Z as RawStateResultSchema, Zi as AddonMigrationDefinitionError, Zn as SECRET_META, Zr as recordArrayItemPath, Zt as DEFAULT_DISPLAY_PREFERENCE, _ as invokeTrpcLeaf, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, _r as FORBIDDEN_MESSAGE_PREFIX, _t as readinessKey, a as asJsonArray, aa as collectHydratedFieldEntries, ai as RECORD_DEFAULT_MAX_DATA_BYTES, an as readingMeta, ar as PROVIDER_PIN_FIELD, at as actionEffect, b as createLazyTrpcSource, ba as collectKeychainStoredKeys, bi as isSecretRef, bn as resolveSecretViewsIn, br as userError, bt as DEBUG_WATCH_HARD_CAP_MS, c as asString, ca as dehydrateSchema, ci as RECORD_MAX_DATA_BYTES, cn as DeviceTransitionSchema, cr as historyItemFieldPath, ct as findVocabAction, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, dn as TransitionCommandSchema, dr as optionalMethod, dt as CAP_VOCABULARY_BY_NAME, ea as createEvent, ei as secretArrayPrefixes, en as ReadingQuantitySchema, er as DEFAULT_RUNTIME_STATE_DURABILITY, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, fn as TransitionOutcomeSchema, fr as resolveCapMount, ft as CAP_VOCABULARY, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, gt as emitDownForOwnedCaps, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, hr as ErrorCodeSchema, ht as ReadinessTimeoutError, i as asBoolean, ia as WELL_KNOWN_TAB_MAP, ii as RECORD_DATABASES, in as isReadingQuantity, ir as HISTORY_UNIT_LABELS, it as VocabActionError, ja as isAudioChunkFormat, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, jr as isSecretRefOwnedBy, jt as BrokerStatsSchema, k as RUNTIME_DEFAULTS, ka as audioChunkBytesPerSample, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, kr as KeychainWriteRefusedError, kt as AudioChunkFormatSchema, l as parseJsonArray, la as hydrateSchema, li as RECORD_MAX_INDEXES, ln as TransitionActorKindSchema, lr as isDeviceConfigCap, lt as vocabActionIdFor, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mr as CamstackError, mt as ReadinessRegistry, n as sleepCancellable, na as isEvent, ni as RECORD_BATCH_MAX_BYTES, nn as displayUnitFor, nr as DEVICE_STATUS_METHOD, nt as addonPagesSourceCapability, o as asJsonObject, oa as collectHydratedFieldValues, oi as RECORD_DELETE_BATCH, on as NOT_A_DEVICE, or as event, ot as allVocabActions, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pn as TransitionValueSchema, pr as systemMethod, pt as MODEL_FORMATS, q as viewerUiCapability, qi as recordsOverMigrationApi, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, qt as makeProfileBrokerId, r as maskUrlCredentials, ra as WELL_KNOWN_TABS, ri as RECORD_CLASSES, rn as historyUnitFor, rr as HISTORY_DEFAULT_MIN_INTERVAL_MS, rt as t, s as asNumber, sa as dehydrateConfigField, si as RECORD_ID_MAX_LENGTH, sn as DeviceCommandSettledEventSchema, sr as expandCapMethods, st as assertDeviceOffers, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, tn as baseUnitOf, tr as DEVICE_SETTINGS_CONTRIBUTION_METHODS, tt as AddonPageDeclarationSchema, u as parseJsonObject, ua as resolveHydratedFieldValue, ui as RECORD_MAX_INDEX_FIELDS, un as TransitionActorSchema, ur as method, ut as vocabCall, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vr as forbiddenError, vt as scopeKey, w as commandEffect, wa as omitTransientConfig, wi as linksOfKind, wn as clearKnownSecrets, wr as normalizeAddonInitResult, wt as DebugWatchTable, x as createMirrorSource, xa as collectSecretConfigKeys, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, xt as DEBUG_WATCH_REARM_EVERY_MS, y as createEventBusSliceSource, ya as REDACTED_SECRET, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, yt as DEBUG_CHANNEL_PREFIX, z as deviceCustomAction, zi as RevConflictError, zn as defineEntryKind, zr as createDurableState, zt as FrameHandleSchema } from "./sleep-CLDVTB5R.mjs";
|
|
2
2
|
import { i as publicEventCategories, n as OWNER_ONLY_EVENT_CATEGORIES, r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
|
|
3
3
|
import { a as DeviceType, i as DeviceRole, n as ChargingStatus, o as featuresOfBoundCaps, r as DeviceFeature, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-RvQIEpqg.mjs";
|
|
4
4
|
import { $ as EXPRESSION_OUTPUTS, $n as buildAudioArgs, $t as createExpressionScope, A as MAX_COMPOSITION_FIELDS_PER_FEATURE, An as sliceActiveValue, At as integralCadenceMs, B as featureFieldEntries, Bn as isSwitchHeater, Bt as STATISTIC_STATS, C as CompositionPassthroughFeatureSchema, Cn as SOURCE_CAPS, Ct as MINUTE_MS, D as FORWARD_INPUT_KEY, Dn as evaluateSensorEdge, Dt as RollingWindowSchema, E as CompositionTargetSchema, En as SOURCE_DEVICE_TYPES, Et as ROLLING_SPANS, F as compositionFeatureEnabled, Fn as capAppliesToDeviceKind, Ft as planResetTier, G as AGGREGATE_REDUCERS, Gt as wattMillisecondsToKwh, H as fieldReads, Hn as FFMPEG_PATH_ENV, Ht as evaluateStatistic, I as compositionItemFieldPath, In as climateRoleOf, It as planStatisticTier, J as AggregateReducerSchema, Jn as canonicalHash, Jt as createStatefulExpressionMemory, K as ARITHMETIC_OPS, Kt as EXPRESSION_INJECTED_NOW, L as compositionReadKey, Ln as isAirConditioner, Lt as rollingDurationMs, M as canonicalStoredBlockTarget, Mn as CLIMATE_ROLES, Mt as nextLocalMidnight, N as composedDeviceRef, Nn as StoredDeviceTypeSchema, Nt as openReset, O as MAX_COMPOSITION_CODE_LENGTH, On as evaluateSensorLevelEdge, Ot as StatisticWindowSchema, P as composedDeviceStableId, Pn as canonicalStoredDeviceType, Pt as openStatistic, Q as DerivativeHelperSpecSchema, Qn as audioPlanFromEncodeProfile, Qt as validateExpressionSource, R as compositionSliceKey, Rn as isOutlet, Rt as statisticCadenceMs, S as CompositionNewTargetSchema, Sn as DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, St as HOUR_MS, T as CompositionSeriesSourceSchema, Tn as SOURCE_CAP_CHANGED_AT_FIELD, Tt as RESET_PERIODS, U as isForwardInputRef, Ut as integrateReading, V as featureSources, Vn as isSwitchLight, Vt as evaluateDerivative, W as ACTIVE_CRITERIA, Wt as KWH_PER_WATT_MS, X as BINARY_AGGREGATES, Xn as AUDIO_PRESETS, Xt as evaluateStatefulExpressionCall, Y as ArithmeticHelperSpecSchema, Yn as Fmp4BoxSplitter, Yt as evaluateExpressionSource, Z as DERIVATIVE_UNITS, Zn as RESTREAM_INPUT_PROBE, Zt as toExpressionValue, _ as CompositionForwardArgSchema, _n as evaluateDwell, _t as DAY_MS, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, an as EXPRESSION_COMPILE_CACHE_CAPACITY, ar as logBannerArgs, at as HelperSpecSchema, b as CompositionItemEntrySchema, bn as ExpressionEvalError, bt as HISTORY_SLOW_MS, c as CompositionCodeSourceSchema, cn as MAX_EXPRESSION_BINDINGS, ct as MAX_HELPER_MEMBERS, d as CompositionExpressionSourceSchema, dn as MAX_EXPRESSION_SOURCE_LENGTH, dt as ThresholdHelperSpecSchema, en as evaluateAst, er as buildFfmpegArgs, et as ExpressionHelperSpecSchema, f as CompositionExtensionCommandSchema, fn as RESERVED_BINDING_NAMES, ft as helperMembers, g as CompositionFieldsFeatureSchema, gn as evaluateCount, gt as CalendarWindowSchema, h as CompositionFieldSourceSchema, hn as disarmRoseMemory, ht as CALENDAR_PERIODS, i as COMPOSITION_ITEM_KEY_RE, in as tokenize, ir as isSoftwareDecode, it as HelperMemberSchema, j as MAX_COMPOSITION_ITEMS, jn as sliceChangedAt, jt as maxDurationMs, k as MAX_COMPOSITION_FEATURES, kn as isSourceCap, kt as historyRetentionFromSettings, l as CompositionCommandTargetSchema, ln as MAX_EXPRESSION_CALL_ARGS, lt as NUMERIC_AGGREGATES, m as CompositionFieldReadSchema, mn as EXPRESSION_BUILTIN_NAMES, mt as CompositionSourceRefSchema, n as COMPOSER_ADDON_ID, nn as compileExpressionSafe, nr as buildVideoArgs, nt as GroupHelperSpecSchema, o as CompositionAggregateSourceSchema, on as EXPRESSION_IDENTIFIER_RE, or as pickVideoEncoder, ot as INTEGRAL_OUTPUTS, p as CompositionFeatureSchema, pn as EXPRESSION_BUILTINS, pt as isHistoryHelper, q as ActiveCriterionSchema, qt as cloneStatefulExpressionMemory, r as COMPOSITION_ITEM_ARRAY_PATH, rn as parseExpression, rr as invocationFromEncodeProfile, rt as GroupTemplateIdSchema, s as CompositionBindingSchema, sn as MAX_EXPRESSION_AST_NODES, sr as resolveStreamMaps, st as IntegralHelperSpecSchema, t as implementedMethodsOf, tn as compileExpression, tr as buildInputArgs, tt as GROUP_TEMPLATE_IDS, u as CompositionExistingTargetSchema, un as MAX_EXPRESSION_EVAL_STEPS, ut as StatisticHelperSpecSchema, v as CompositionForwardCommandSchema, vn as evaluateRose, vt as DEFAULT_HISTORY_RETENTION, w as CompositionSchema, wn as SOURCE_CAP_ACTIVE_FIELD, wt as MIN_CUSTOM_MINUTES, x as CompositionLiteralBindingSchema, xn as ExpressionParseError, xt as HISTORY_TIERS, y as CompositionFromSourceSchema, yn as isStatefulBuiltin, yt as HISTORY_FAST_MS, z as compositionSourceKey, zn as isSwitchFan, zt as SERIES_KINDS } from "./implemented-methods-C5FMXLGP.mjs";
|
|
@@ -47191,13 +47191,14 @@ var connectivityCapability = {
|
|
|
47191
47191
|
* its device tracks consumables registers it; the provider names each item
|
|
47192
47192
|
* verbatim and says which `kind` it is.
|
|
47193
47193
|
*
|
|
47194
|
-
* The admin UI
|
|
47195
|
-
*
|
|
47196
|
-
*
|
|
47194
|
+
* The admin UI shows it in the device card's consumables chip and popover
|
|
47195
|
+
* (kind-aware level, remaining time, "Reset"), for every device bound to this
|
|
47196
|
+
* cap (D1023). It no longer has a section of its own under the hero card
|
|
47197
|
+
* (D915 on that point).
|
|
47197
47198
|
*
|
|
47198
47199
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
47199
47200
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
47200
|
-
* "No consumables reported"
|
|
47201
|
+
* "No consumables reported" line when `items` is empty.
|
|
47201
47202
|
*/
|
|
47202
47203
|
/**
|
|
47203
47204
|
* What an item IS, which decides which direction is bad:
|
|
@@ -47303,7 +47304,7 @@ var ConsumablesStatusSchema = z.object({
|
|
|
47303
47304
|
});
|
|
47304
47305
|
/** Synthesize seed for a link-built status (no native provider).
|
|
47305
47306
|
*
|
|
47306
|
-
*
|
|
47307
|
+
* ! NO LIVE CALLER since 2026-08-08 (device-links deleted; see
|
|
47307
47308
|
* `CapabilityStatusSchema.empty`). The wiring guidance below was written for
|
|
47308
47309
|
* exactly the case the operator is asking about again — a Dreame's HA
|
|
47309
47310
|
* consumable-life sensors — so it is kept for that conversation, not because
|
|
@@ -47407,14 +47408,6 @@ var consumablesCapability = {
|
|
|
47407
47408
|
deviceNative: true,
|
|
47408
47409
|
mode: "singleton",
|
|
47409
47410
|
deviceTypes: Object.values(DeviceType),
|
|
47410
|
-
deviceConfig: { ui: {
|
|
47411
|
-
kind: "widget",
|
|
47412
|
-
widgetId: "host/consumables-panel",
|
|
47413
|
-
tab: "consumables",
|
|
47414
|
-
placement: "hero",
|
|
47415
|
-
label: "Consumables",
|
|
47416
|
-
order: 5
|
|
47417
|
-
} },
|
|
47418
47411
|
methods: {
|
|
47419
47412
|
/** Mark a consumable as replaced — resets its remaining life. Only
|
|
47420
47413
|
* meaningful when the item's `resettable` is true. */
|
|
@@ -48795,7 +48788,7 @@ var mediaPlayerCapability = {
|
|
|
48795
48788
|
//#region src/generated/customize-catalog.ts
|
|
48796
48789
|
/**
|
|
48797
48790
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
48798
|
-
*
|
|
48791
|
+
* 13 caps. Field keys are `runtimeState` paths. No Zod.
|
|
48799
48792
|
*/
|
|
48800
48793
|
var CAP_CUSTOMIZE_CATALOG = {
|
|
48801
48794
|
"battery": {
|
|
@@ -49712,6 +49705,572 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
49712
49705
|
path: "running",
|
|
49713
49706
|
by: "running"
|
|
49714
49707
|
}]
|
|
49708
|
+
},
|
|
49709
|
+
"weather-station": {
|
|
49710
|
+
version: 1,
|
|
49711
|
+
targets: [
|
|
49712
|
+
{
|
|
49713
|
+
id: "temperature",
|
|
49714
|
+
cardinality: "scalar",
|
|
49715
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49716
|
+
apply: "add",
|
|
49717
|
+
vocabularyCap: "weather-station",
|
|
49718
|
+
vocabularyStateField: "temperature",
|
|
49719
|
+
sources: [{
|
|
49720
|
+
kind: "numeric",
|
|
49721
|
+
requiredUnit: "°C",
|
|
49722
|
+
transformKinds: ["identity"],
|
|
49723
|
+
transforms: [{ kind: "identity" }]
|
|
49724
|
+
}],
|
|
49725
|
+
sourceReport: { status: "assignment-status" },
|
|
49726
|
+
advancedExpression: false,
|
|
49727
|
+
path: "temperature",
|
|
49728
|
+
valueKind: "number",
|
|
49729
|
+
nullable: true,
|
|
49730
|
+
companions: [{
|
|
49731
|
+
kind: "clock",
|
|
49732
|
+
path: "lastFetchedAt",
|
|
49733
|
+
when: "add"
|
|
49734
|
+
}]
|
|
49735
|
+
},
|
|
49736
|
+
{
|
|
49737
|
+
id: "humidity",
|
|
49738
|
+
cardinality: "scalar",
|
|
49739
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49740
|
+
apply: "add",
|
|
49741
|
+
vocabularyCap: "weather-station",
|
|
49742
|
+
vocabularyStateField: "humidity",
|
|
49743
|
+
sources: [{
|
|
49744
|
+
kind: "numeric",
|
|
49745
|
+
requiredUnit: "%",
|
|
49746
|
+
transformKinds: ["identity"],
|
|
49747
|
+
transforms: [{ kind: "identity" }]
|
|
49748
|
+
}],
|
|
49749
|
+
sourceReport: { status: "assignment-status" },
|
|
49750
|
+
advancedExpression: false,
|
|
49751
|
+
path: "humidity",
|
|
49752
|
+
valueKind: "number",
|
|
49753
|
+
nullable: true,
|
|
49754
|
+
companions: [{
|
|
49755
|
+
kind: "clock",
|
|
49756
|
+
path: "lastFetchedAt",
|
|
49757
|
+
when: "add"
|
|
49758
|
+
}]
|
|
49759
|
+
},
|
|
49760
|
+
{
|
|
49761
|
+
id: "pressure",
|
|
49762
|
+
cardinality: "scalar",
|
|
49763
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49764
|
+
apply: "add",
|
|
49765
|
+
vocabularyCap: "weather-station",
|
|
49766
|
+
vocabularyStateField: "pressure",
|
|
49767
|
+
sources: [{
|
|
49768
|
+
kind: "numeric",
|
|
49769
|
+
requiredUnit: "hPa",
|
|
49770
|
+
transformKinds: ["identity"],
|
|
49771
|
+
transforms: [{ kind: "identity" }]
|
|
49772
|
+
}],
|
|
49773
|
+
sourceReport: { status: "assignment-status" },
|
|
49774
|
+
advancedExpression: false,
|
|
49775
|
+
path: "pressure",
|
|
49776
|
+
valueKind: "number",
|
|
49777
|
+
nullable: true,
|
|
49778
|
+
companions: [{
|
|
49779
|
+
kind: "clock",
|
|
49780
|
+
path: "lastFetchedAt",
|
|
49781
|
+
when: "add"
|
|
49782
|
+
}]
|
|
49783
|
+
},
|
|
49784
|
+
{
|
|
49785
|
+
id: "windSpeed",
|
|
49786
|
+
cardinality: "scalar",
|
|
49787
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49788
|
+
apply: "add",
|
|
49789
|
+
vocabularyCap: "weather-station",
|
|
49790
|
+
vocabularyStateField: "windSpeed",
|
|
49791
|
+
sources: [{
|
|
49792
|
+
kind: "numeric",
|
|
49793
|
+
requiredUnit: "m/s",
|
|
49794
|
+
transformKinds: ["identity"],
|
|
49795
|
+
transforms: [{ kind: "identity" }]
|
|
49796
|
+
}],
|
|
49797
|
+
sourceReport: { status: "assignment-status" },
|
|
49798
|
+
advancedExpression: false,
|
|
49799
|
+
path: "windSpeed",
|
|
49800
|
+
valueKind: "number",
|
|
49801
|
+
nullable: true,
|
|
49802
|
+
companions: [{
|
|
49803
|
+
kind: "clock",
|
|
49804
|
+
path: "lastFetchedAt",
|
|
49805
|
+
when: "add"
|
|
49806
|
+
}]
|
|
49807
|
+
},
|
|
49808
|
+
{
|
|
49809
|
+
id: "windGust",
|
|
49810
|
+
cardinality: "scalar",
|
|
49811
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49812
|
+
apply: "add",
|
|
49813
|
+
vocabularyCap: "weather-station",
|
|
49814
|
+
vocabularyStateField: "windGust",
|
|
49815
|
+
sources: [{
|
|
49816
|
+
kind: "numeric",
|
|
49817
|
+
requiredUnit: "m/s",
|
|
49818
|
+
transformKinds: ["identity"],
|
|
49819
|
+
transforms: [{ kind: "identity" }]
|
|
49820
|
+
}],
|
|
49821
|
+
sourceReport: { status: "assignment-status" },
|
|
49822
|
+
advancedExpression: false,
|
|
49823
|
+
path: "windGust",
|
|
49824
|
+
valueKind: "number",
|
|
49825
|
+
nullable: true,
|
|
49826
|
+
companions: [{
|
|
49827
|
+
kind: "clock",
|
|
49828
|
+
path: "lastFetchedAt",
|
|
49829
|
+
when: "add"
|
|
49830
|
+
}]
|
|
49831
|
+
},
|
|
49832
|
+
{
|
|
49833
|
+
id: "windBearing",
|
|
49834
|
+
cardinality: "scalar",
|
|
49835
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49836
|
+
apply: "add",
|
|
49837
|
+
vocabularyCap: "weather-station",
|
|
49838
|
+
vocabularyStateField: "windBearing",
|
|
49839
|
+
sources: [{
|
|
49840
|
+
kind: "numeric",
|
|
49841
|
+
requiredUnit: "°",
|
|
49842
|
+
transformKinds: ["identity"],
|
|
49843
|
+
transforms: [{ kind: "identity" }]
|
|
49844
|
+
}],
|
|
49845
|
+
sourceReport: { status: "assignment-status" },
|
|
49846
|
+
advancedExpression: false,
|
|
49847
|
+
path: "windBearing",
|
|
49848
|
+
valueKind: "number",
|
|
49849
|
+
nullable: true,
|
|
49850
|
+
companions: [{
|
|
49851
|
+
kind: "clock",
|
|
49852
|
+
path: "lastFetchedAt",
|
|
49853
|
+
when: "add"
|
|
49854
|
+
}]
|
|
49855
|
+
},
|
|
49856
|
+
{
|
|
49857
|
+
id: "rainRate",
|
|
49858
|
+
cardinality: "scalar",
|
|
49859
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49860
|
+
apply: "add",
|
|
49861
|
+
vocabularyCap: "weather-station",
|
|
49862
|
+
vocabularyStateField: "rainRate",
|
|
49863
|
+
sources: [{
|
|
49864
|
+
kind: "numeric",
|
|
49865
|
+
requiredUnit: "mm/h",
|
|
49866
|
+
transformKinds: ["identity"],
|
|
49867
|
+
transforms: [{ kind: "identity" }]
|
|
49868
|
+
}],
|
|
49869
|
+
sourceReport: { status: "assignment-status" },
|
|
49870
|
+
advancedExpression: false,
|
|
49871
|
+
path: "rainRate",
|
|
49872
|
+
valueKind: "number",
|
|
49873
|
+
nullable: true,
|
|
49874
|
+
companions: [{
|
|
49875
|
+
kind: "clock",
|
|
49876
|
+
path: "lastFetchedAt",
|
|
49877
|
+
when: "add"
|
|
49878
|
+
}]
|
|
49879
|
+
},
|
|
49880
|
+
{
|
|
49881
|
+
id: "rainDaily",
|
|
49882
|
+
cardinality: "scalar",
|
|
49883
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49884
|
+
apply: "add",
|
|
49885
|
+
vocabularyCap: "weather-station",
|
|
49886
|
+
vocabularyStateField: "rainDaily",
|
|
49887
|
+
sources: [{
|
|
49888
|
+
kind: "numeric",
|
|
49889
|
+
requiredUnit: "mm",
|
|
49890
|
+
transformKinds: ["identity"],
|
|
49891
|
+
transforms: [{ kind: "identity" }]
|
|
49892
|
+
}],
|
|
49893
|
+
sourceReport: { status: "assignment-status" },
|
|
49894
|
+
advancedExpression: false,
|
|
49895
|
+
path: "rainDaily",
|
|
49896
|
+
valueKind: "number",
|
|
49897
|
+
nullable: true,
|
|
49898
|
+
companions: [{
|
|
49899
|
+
kind: "clock",
|
|
49900
|
+
path: "lastFetchedAt",
|
|
49901
|
+
when: "add"
|
|
49902
|
+
}]
|
|
49903
|
+
},
|
|
49904
|
+
{
|
|
49905
|
+
id: "rainEvent",
|
|
49906
|
+
cardinality: "scalar",
|
|
49907
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49908
|
+
apply: "add",
|
|
49909
|
+
vocabularyCap: "weather-station",
|
|
49910
|
+
vocabularyStateField: "rainEvent",
|
|
49911
|
+
sources: [{
|
|
49912
|
+
kind: "numeric",
|
|
49913
|
+
requiredUnit: "mm",
|
|
49914
|
+
transformKinds: ["identity"],
|
|
49915
|
+
transforms: [{ kind: "identity" }]
|
|
49916
|
+
}],
|
|
49917
|
+
sourceReport: { status: "assignment-status" },
|
|
49918
|
+
advancedExpression: false,
|
|
49919
|
+
path: "rainEvent",
|
|
49920
|
+
valueKind: "number",
|
|
49921
|
+
nullable: true,
|
|
49922
|
+
companions: [{
|
|
49923
|
+
kind: "clock",
|
|
49924
|
+
path: "lastFetchedAt",
|
|
49925
|
+
when: "add"
|
|
49926
|
+
}]
|
|
49927
|
+
},
|
|
49928
|
+
{
|
|
49929
|
+
id: "uv",
|
|
49930
|
+
cardinality: "scalar",
|
|
49931
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49932
|
+
apply: "add",
|
|
49933
|
+
vocabularyCap: "weather-station",
|
|
49934
|
+
vocabularyStateField: "uv",
|
|
49935
|
+
sources: [{
|
|
49936
|
+
kind: "numeric",
|
|
49937
|
+
transformKinds: ["identity"],
|
|
49938
|
+
transforms: [{ kind: "identity" }]
|
|
49939
|
+
}],
|
|
49940
|
+
sourceReport: { status: "assignment-status" },
|
|
49941
|
+
advancedExpression: false,
|
|
49942
|
+
path: "uv",
|
|
49943
|
+
valueKind: "number",
|
|
49944
|
+
nullable: true,
|
|
49945
|
+
companions: [{
|
|
49946
|
+
kind: "clock",
|
|
49947
|
+
path: "lastFetchedAt",
|
|
49948
|
+
when: "add"
|
|
49949
|
+
}]
|
|
49950
|
+
},
|
|
49951
|
+
{
|
|
49952
|
+
id: "solarRadiation",
|
|
49953
|
+
cardinality: "scalar",
|
|
49954
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49955
|
+
apply: "add",
|
|
49956
|
+
vocabularyCap: "weather-station",
|
|
49957
|
+
vocabularyStateField: "solarRadiation",
|
|
49958
|
+
sources: [{
|
|
49959
|
+
kind: "numeric",
|
|
49960
|
+
requiredUnit: "W/m²",
|
|
49961
|
+
transformKinds: ["identity"],
|
|
49962
|
+
transforms: [{ kind: "identity" }]
|
|
49963
|
+
}],
|
|
49964
|
+
sourceReport: { status: "assignment-status" },
|
|
49965
|
+
advancedExpression: false,
|
|
49966
|
+
path: "solarRadiation",
|
|
49967
|
+
valueKind: "number",
|
|
49968
|
+
nullable: true,
|
|
49969
|
+
companions: [{
|
|
49970
|
+
kind: "clock",
|
|
49971
|
+
path: "lastFetchedAt",
|
|
49972
|
+
when: "add"
|
|
49973
|
+
}]
|
|
49974
|
+
},
|
|
49975
|
+
{
|
|
49976
|
+
id: "dewPoint",
|
|
49977
|
+
cardinality: "scalar",
|
|
49978
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49979
|
+
apply: "add",
|
|
49980
|
+
vocabularyCap: "weather-station",
|
|
49981
|
+
vocabularyStateField: "dewPoint",
|
|
49982
|
+
sources: [{
|
|
49983
|
+
kind: "numeric",
|
|
49984
|
+
requiredUnit: "°C",
|
|
49985
|
+
transformKinds: ["identity"],
|
|
49986
|
+
transforms: [{ kind: "identity" }]
|
|
49987
|
+
}],
|
|
49988
|
+
sourceReport: { status: "assignment-status" },
|
|
49989
|
+
advancedExpression: false,
|
|
49990
|
+
path: "dewPoint",
|
|
49991
|
+
valueKind: "number",
|
|
49992
|
+
nullable: true,
|
|
49993
|
+
companions: [{
|
|
49994
|
+
kind: "clock",
|
|
49995
|
+
path: "lastFetchedAt",
|
|
49996
|
+
when: "add"
|
|
49997
|
+
}]
|
|
49998
|
+
},
|
|
49999
|
+
{
|
|
50000
|
+
id: "feelsLike",
|
|
50001
|
+
cardinality: "scalar",
|
|
50002
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50003
|
+
apply: "add",
|
|
50004
|
+
vocabularyCap: "weather-station",
|
|
50005
|
+
vocabularyStateField: "feelsLike",
|
|
50006
|
+
sources: [{
|
|
50007
|
+
kind: "numeric",
|
|
50008
|
+
requiredUnit: "°C",
|
|
50009
|
+
transformKinds: ["identity"],
|
|
50010
|
+
transforms: [{ kind: "identity" }]
|
|
50011
|
+
}],
|
|
50012
|
+
sourceReport: { status: "assignment-status" },
|
|
50013
|
+
advancedExpression: false,
|
|
50014
|
+
path: "feelsLike",
|
|
50015
|
+
valueKind: "number",
|
|
50016
|
+
nullable: true,
|
|
50017
|
+
companions: [{
|
|
50018
|
+
kind: "clock",
|
|
50019
|
+
path: "lastFetchedAt",
|
|
50020
|
+
when: "add"
|
|
50021
|
+
}]
|
|
50022
|
+
},
|
|
50023
|
+
{
|
|
50024
|
+
id: "vpd",
|
|
50025
|
+
cardinality: "scalar",
|
|
50026
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50027
|
+
apply: "add",
|
|
50028
|
+
vocabularyCap: "weather-station",
|
|
50029
|
+
vocabularyStateField: "vpd",
|
|
50030
|
+
sources: [{
|
|
50031
|
+
kind: "numeric",
|
|
50032
|
+
requiredUnit: "kPa",
|
|
50033
|
+
transformKinds: ["identity"],
|
|
50034
|
+
transforms: [{ kind: "identity" }]
|
|
50035
|
+
}],
|
|
50036
|
+
sourceReport: { status: "assignment-status" },
|
|
50037
|
+
advancedExpression: false,
|
|
50038
|
+
path: "vpd",
|
|
50039
|
+
valueKind: "number",
|
|
50040
|
+
nullable: true,
|
|
50041
|
+
companions: [{
|
|
50042
|
+
kind: "clock",
|
|
50043
|
+
path: "lastFetchedAt",
|
|
50044
|
+
when: "add"
|
|
50045
|
+
}]
|
|
50046
|
+
},
|
|
50047
|
+
{
|
|
50048
|
+
id: "windGustMax",
|
|
50049
|
+
cardinality: "scalar",
|
|
50050
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50051
|
+
apply: "add",
|
|
50052
|
+
vocabularyCap: "weather-station",
|
|
50053
|
+
vocabularyStateField: "windGustMax",
|
|
50054
|
+
sources: [{
|
|
50055
|
+
kind: "numeric",
|
|
50056
|
+
requiredUnit: "m/s",
|
|
50057
|
+
transformKinds: ["identity"],
|
|
50058
|
+
transforms: [{ kind: "identity" }]
|
|
50059
|
+
}],
|
|
50060
|
+
sourceReport: { status: "assignment-status" },
|
|
50061
|
+
advancedExpression: false,
|
|
50062
|
+
path: "windGustMax",
|
|
50063
|
+
valueKind: "number",
|
|
50064
|
+
nullable: true,
|
|
50065
|
+
companions: [{
|
|
50066
|
+
kind: "clock",
|
|
50067
|
+
path: "lastFetchedAt",
|
|
50068
|
+
when: "add"
|
|
50069
|
+
}]
|
|
50070
|
+
},
|
|
50071
|
+
{
|
|
50072
|
+
id: "windBearingAvg",
|
|
50073
|
+
cardinality: "scalar",
|
|
50074
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50075
|
+
apply: "add",
|
|
50076
|
+
vocabularyCap: "weather-station",
|
|
50077
|
+
vocabularyStateField: "windBearingAvg",
|
|
50078
|
+
sources: [{
|
|
50079
|
+
kind: "numeric",
|
|
50080
|
+
requiredUnit: "°",
|
|
50081
|
+
transformKinds: ["identity"],
|
|
50082
|
+
transforms: [{ kind: "identity" }]
|
|
50083
|
+
}],
|
|
50084
|
+
sourceReport: { status: "assignment-status" },
|
|
50085
|
+
advancedExpression: false,
|
|
50086
|
+
path: "windBearingAvg",
|
|
50087
|
+
valueKind: "number",
|
|
50088
|
+
nullable: true,
|
|
50089
|
+
companions: [{
|
|
50090
|
+
kind: "clock",
|
|
50091
|
+
path: "lastFetchedAt",
|
|
50092
|
+
when: "add"
|
|
50093
|
+
}]
|
|
50094
|
+
},
|
|
50095
|
+
{
|
|
50096
|
+
id: "rain24h",
|
|
50097
|
+
cardinality: "scalar",
|
|
50098
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50099
|
+
apply: "add",
|
|
50100
|
+
vocabularyCap: "weather-station",
|
|
50101
|
+
vocabularyStateField: "rain24h",
|
|
50102
|
+
sources: [{
|
|
50103
|
+
kind: "numeric",
|
|
50104
|
+
requiredUnit: "mm",
|
|
50105
|
+
transformKinds: ["identity"],
|
|
50106
|
+
transforms: [{ kind: "identity" }]
|
|
50107
|
+
}],
|
|
50108
|
+
sourceReport: { status: "assignment-status" },
|
|
50109
|
+
advancedExpression: false,
|
|
50110
|
+
path: "rain24h",
|
|
50111
|
+
valueKind: "number",
|
|
50112
|
+
nullable: true,
|
|
50113
|
+
companions: [{
|
|
50114
|
+
kind: "clock",
|
|
50115
|
+
path: "lastFetchedAt",
|
|
50116
|
+
when: "add"
|
|
50117
|
+
}]
|
|
50118
|
+
},
|
|
50119
|
+
{
|
|
50120
|
+
id: "rainWeekly",
|
|
50121
|
+
cardinality: "scalar",
|
|
50122
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50123
|
+
apply: "add",
|
|
50124
|
+
vocabularyCap: "weather-station",
|
|
50125
|
+
vocabularyStateField: "rainWeekly",
|
|
50126
|
+
sources: [{
|
|
50127
|
+
kind: "numeric",
|
|
50128
|
+
requiredUnit: "mm",
|
|
50129
|
+
transformKinds: ["identity"],
|
|
50130
|
+
transforms: [{ kind: "identity" }]
|
|
50131
|
+
}],
|
|
50132
|
+
sourceReport: { status: "assignment-status" },
|
|
50133
|
+
advancedExpression: false,
|
|
50134
|
+
path: "rainWeekly",
|
|
50135
|
+
valueKind: "number",
|
|
50136
|
+
nullable: true,
|
|
50137
|
+
companions: [{
|
|
50138
|
+
kind: "clock",
|
|
50139
|
+
path: "lastFetchedAt",
|
|
50140
|
+
when: "add"
|
|
50141
|
+
}]
|
|
50142
|
+
},
|
|
50143
|
+
{
|
|
50144
|
+
id: "rainMonthly",
|
|
50145
|
+
cardinality: "scalar",
|
|
50146
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50147
|
+
apply: "add",
|
|
50148
|
+
vocabularyCap: "weather-station",
|
|
50149
|
+
vocabularyStateField: "rainMonthly",
|
|
50150
|
+
sources: [{
|
|
50151
|
+
kind: "numeric",
|
|
50152
|
+
requiredUnit: "mm",
|
|
50153
|
+
transformKinds: ["identity"],
|
|
50154
|
+
transforms: [{ kind: "identity" }]
|
|
50155
|
+
}],
|
|
50156
|
+
sourceReport: { status: "assignment-status" },
|
|
50157
|
+
advancedExpression: false,
|
|
50158
|
+
path: "rainMonthly",
|
|
50159
|
+
valueKind: "number",
|
|
50160
|
+
nullable: true,
|
|
50161
|
+
companions: [{
|
|
50162
|
+
kind: "clock",
|
|
50163
|
+
path: "lastFetchedAt",
|
|
50164
|
+
when: "add"
|
|
50165
|
+
}]
|
|
50166
|
+
},
|
|
50167
|
+
{
|
|
50168
|
+
id: "rainYearly",
|
|
50169
|
+
cardinality: "scalar",
|
|
50170
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50171
|
+
apply: "add",
|
|
50172
|
+
vocabularyCap: "weather-station",
|
|
50173
|
+
vocabularyStateField: "rainYearly",
|
|
50174
|
+
sources: [{
|
|
50175
|
+
kind: "numeric",
|
|
50176
|
+
requiredUnit: "mm",
|
|
50177
|
+
transformKinds: ["identity"],
|
|
50178
|
+
transforms: [{ kind: "identity" }]
|
|
50179
|
+
}],
|
|
50180
|
+
sourceReport: { status: "assignment-status" },
|
|
50181
|
+
advancedExpression: false,
|
|
50182
|
+
path: "rainYearly",
|
|
50183
|
+
valueKind: "number",
|
|
50184
|
+
nullable: true,
|
|
50185
|
+
companions: [{
|
|
50186
|
+
kind: "clock",
|
|
50187
|
+
path: "lastFetchedAt",
|
|
50188
|
+
when: "add"
|
|
50189
|
+
}]
|
|
50190
|
+
}
|
|
50191
|
+
],
|
|
50192
|
+
overridable: [
|
|
50193
|
+
{
|
|
50194
|
+
path: "temperature",
|
|
50195
|
+
by: "temperature"
|
|
50196
|
+
},
|
|
50197
|
+
{
|
|
50198
|
+
path: "humidity",
|
|
50199
|
+
by: "humidity"
|
|
50200
|
+
},
|
|
50201
|
+
{
|
|
50202
|
+
path: "pressure",
|
|
50203
|
+
by: "pressure"
|
|
50204
|
+
},
|
|
50205
|
+
{
|
|
50206
|
+
path: "windSpeed",
|
|
50207
|
+
by: "windSpeed"
|
|
50208
|
+
},
|
|
50209
|
+
{
|
|
50210
|
+
path: "windGust",
|
|
50211
|
+
by: "windGust"
|
|
50212
|
+
},
|
|
50213
|
+
{
|
|
50214
|
+
path: "windBearing",
|
|
50215
|
+
by: "windBearing"
|
|
50216
|
+
},
|
|
50217
|
+
{
|
|
50218
|
+
path: "rainRate",
|
|
50219
|
+
by: "rainRate"
|
|
50220
|
+
},
|
|
50221
|
+
{
|
|
50222
|
+
path: "rainDaily",
|
|
50223
|
+
by: "rainDaily"
|
|
50224
|
+
},
|
|
50225
|
+
{
|
|
50226
|
+
path: "rainEvent",
|
|
50227
|
+
by: "rainEvent"
|
|
50228
|
+
},
|
|
50229
|
+
{
|
|
50230
|
+
path: "uv",
|
|
50231
|
+
by: "uv"
|
|
50232
|
+
},
|
|
50233
|
+
{
|
|
50234
|
+
path: "solarRadiation",
|
|
50235
|
+
by: "solarRadiation"
|
|
50236
|
+
},
|
|
50237
|
+
{
|
|
50238
|
+
path: "dewPoint",
|
|
50239
|
+
by: "dewPoint"
|
|
50240
|
+
},
|
|
50241
|
+
{
|
|
50242
|
+
path: "feelsLike",
|
|
50243
|
+
by: "feelsLike"
|
|
50244
|
+
},
|
|
50245
|
+
{
|
|
50246
|
+
path: "vpd",
|
|
50247
|
+
by: "vpd"
|
|
50248
|
+
},
|
|
50249
|
+
{
|
|
50250
|
+
path: "windGustMax",
|
|
50251
|
+
by: "windGustMax"
|
|
50252
|
+
},
|
|
50253
|
+
{
|
|
50254
|
+
path: "windBearingAvg",
|
|
50255
|
+
by: "windBearingAvg"
|
|
50256
|
+
},
|
|
50257
|
+
{
|
|
50258
|
+
path: "rain24h",
|
|
50259
|
+
by: "rain24h"
|
|
50260
|
+
},
|
|
50261
|
+
{
|
|
50262
|
+
path: "rainWeekly",
|
|
50263
|
+
by: "rainWeekly"
|
|
50264
|
+
},
|
|
50265
|
+
{
|
|
50266
|
+
path: "rainMonthly",
|
|
50267
|
+
by: "rainMonthly"
|
|
50268
|
+
},
|
|
50269
|
+
{
|
|
50270
|
+
path: "rainYearly",
|
|
50271
|
+
by: "rainYearly"
|
|
50272
|
+
}
|
|
50273
|
+
]
|
|
49715
50274
|
}
|
|
49716
50275
|
};
|
|
49717
50276
|
/**
|
|
@@ -50772,7 +51331,7 @@ function groupTemplate(id) {
|
|
|
50772
51331
|
//#region src/generated/history-catalog.ts
|
|
50773
51332
|
/**
|
|
50774
51333
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
50775
|
-
*
|
|
51334
|
+
* 46 caps with series (124 series), 38 caps answered `'none'`.
|
|
50776
51335
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
50777
51336
|
*/
|
|
50778
51337
|
var HISTORY_CATALOG = {
|
|
@@ -51274,6 +51833,108 @@ var HISTORY_CATALOG = {
|
|
|
51274
51833
|
unit: "m/s",
|
|
51275
51834
|
deadband: .5
|
|
51276
51835
|
}
|
|
51836
|
+
},
|
|
51837
|
+
"weather-station": {
|
|
51838
|
+
"temperature": {
|
|
51839
|
+
kind: "gauge",
|
|
51840
|
+
unit: "°C",
|
|
51841
|
+
deadband: .1
|
|
51842
|
+
},
|
|
51843
|
+
"humidity": {
|
|
51844
|
+
kind: "gauge",
|
|
51845
|
+
unit: "%",
|
|
51846
|
+
deadband: 1
|
|
51847
|
+
},
|
|
51848
|
+
"pressure": {
|
|
51849
|
+
kind: "gauge",
|
|
51850
|
+
unit: "hPa",
|
|
51851
|
+
deadband: .2
|
|
51852
|
+
},
|
|
51853
|
+
"windSpeed": {
|
|
51854
|
+
kind: "gauge",
|
|
51855
|
+
unit: "m/s",
|
|
51856
|
+
deadband: .2
|
|
51857
|
+
},
|
|
51858
|
+
"windGust": {
|
|
51859
|
+
kind: "gauge",
|
|
51860
|
+
unit: "m/s",
|
|
51861
|
+
deadband: .2
|
|
51862
|
+
},
|
|
51863
|
+
"windBearing": {
|
|
51864
|
+
kind: "gauge",
|
|
51865
|
+
unit: "°",
|
|
51866
|
+
deadband: 5
|
|
51867
|
+
},
|
|
51868
|
+
"rainRate": {
|
|
51869
|
+
kind: "gauge",
|
|
51870
|
+
unit: "mm/h",
|
|
51871
|
+
deadband: .1
|
|
51872
|
+
},
|
|
51873
|
+
"rainDaily": {
|
|
51874
|
+
kind: "gauge",
|
|
51875
|
+
unit: "mm",
|
|
51876
|
+
deadband: .1
|
|
51877
|
+
},
|
|
51878
|
+
"rainEvent": {
|
|
51879
|
+
kind: "gauge",
|
|
51880
|
+
unit: "mm",
|
|
51881
|
+
deadband: .1
|
|
51882
|
+
},
|
|
51883
|
+
"uv": {
|
|
51884
|
+
kind: "gauge",
|
|
51885
|
+
unit: "index",
|
|
51886
|
+
deadband: .1
|
|
51887
|
+
},
|
|
51888
|
+
"solarRadiation": {
|
|
51889
|
+
kind: "gauge",
|
|
51890
|
+
unit: "W/m²",
|
|
51891
|
+
deadband: 5
|
|
51892
|
+
},
|
|
51893
|
+
"dewPoint": {
|
|
51894
|
+
kind: "gauge",
|
|
51895
|
+
unit: "°C",
|
|
51896
|
+
deadband: .1
|
|
51897
|
+
},
|
|
51898
|
+
"feelsLike": {
|
|
51899
|
+
kind: "gauge",
|
|
51900
|
+
unit: "°C",
|
|
51901
|
+
deadband: .1
|
|
51902
|
+
},
|
|
51903
|
+
"vpd": {
|
|
51904
|
+
kind: "gauge",
|
|
51905
|
+
unit: "kPa",
|
|
51906
|
+
deadband: .05
|
|
51907
|
+
},
|
|
51908
|
+
"windGustMax": {
|
|
51909
|
+
kind: "gauge",
|
|
51910
|
+
unit: "m/s",
|
|
51911
|
+
deadband: .2
|
|
51912
|
+
},
|
|
51913
|
+
"windBearingAvg": {
|
|
51914
|
+
kind: "gauge",
|
|
51915
|
+
unit: "°",
|
|
51916
|
+
deadband: 5
|
|
51917
|
+
},
|
|
51918
|
+
"rain24h": {
|
|
51919
|
+
kind: "gauge",
|
|
51920
|
+
unit: "mm",
|
|
51921
|
+
deadband: .1
|
|
51922
|
+
},
|
|
51923
|
+
"rainWeekly": {
|
|
51924
|
+
kind: "gauge",
|
|
51925
|
+
unit: "mm",
|
|
51926
|
+
deadband: .1
|
|
51927
|
+
},
|
|
51928
|
+
"rainMonthly": {
|
|
51929
|
+
kind: "gauge",
|
|
51930
|
+
unit: "mm",
|
|
51931
|
+
deadband: .1
|
|
51932
|
+
},
|
|
51933
|
+
"rainYearly": {
|
|
51934
|
+
kind: "gauge",
|
|
51935
|
+
unit: "mm",
|
|
51936
|
+
deadband: .1
|
|
51937
|
+
}
|
|
51277
51938
|
}
|
|
51278
51939
|
};
|
|
51279
51940
|
/**
|
|
@@ -51372,7 +52033,6 @@ var HISTORY_NONE_CAPS = [
|
|
|
51372
52033
|
"stream-signals",
|
|
51373
52034
|
"timed-run",
|
|
51374
52035
|
"update",
|
|
51375
|
-
"weather-station",
|
|
51376
52036
|
"zone-analytics",
|
|
51377
52037
|
"zone-rules",
|
|
51378
52038
|
"zones"
|
|
@@ -60475,6 +61135,10 @@ var embeddingEncoderCapability = {
|
|
|
60475
61135
|
* system did not report is `null`, never `0` (D393).
|
|
60476
61136
|
*
|
|
60477
61137
|
* Signs, all in watts:
|
|
61138
|
+
* - The branches are DISJOINT: `house` is the consumption EXCLUDING the heat pump
|
|
61139
|
+
* whenever `heatPump` is reported, so solar + grid import + storage discharge =
|
|
61140
|
+
* house + heatPump + grid export + storage charge. A provider whose meter totals
|
|
61141
|
+
* include the pump subtracts it; when it cannot, `house` is null (D393).
|
|
60478
61142
|
* - `solar.powerW`, `house.powerW`, `heatPump.powerW` are magnitudes (≥ 0);
|
|
60479
61143
|
* - `grid.powerW` is + importing, − exporting;
|
|
60480
61144
|
* - `storage.powerW` is + charging, − discharging.
|
|
@@ -100304,18 +100968,30 @@ var weatherCapability = {
|
|
|
100304
100968
|
}
|
|
100305
100969
|
};
|
|
100306
100970
|
var WeatherStationStatusSchema = z.object({
|
|
100307
|
-
temperature: z.number().nullable().meta(readingMeta("temperature", { precision: 1 })),
|
|
100308
|
-
humidity: z.number().min(0).max(100).nullable().meta(readingMeta("humidity")),
|
|
100309
|
-
pressure: z.number().nullable().meta(readingMeta("pressure")),
|
|
100310
|
-
windSpeed: z.number().nullable().meta(readingMeta("speed")),
|
|
100311
|
-
windGust: z.number().nullable().meta(readingMeta("speed")),
|
|
100312
|
-
windBearing: z.number().nullable().meta(readingMeta("angle")),
|
|
100313
|
-
rainRate: z.number().nullable().meta(readingMeta("precipitation-rate", { precision: 1 })),
|
|
100314
|
-
rainDaily: z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
|
|
100315
|
-
rainEvent: z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
|
|
100316
|
-
uv: z.number().nullable().meta(readingMeta("index", { precision: 1 })),
|
|
100317
|
-
solarRadiation: z.number().nullable().meta(readingMeta("irradiance")),
|
|
100318
|
-
dewPoint: z.number().nullable().meta(readingMeta("temperature", { precision: 1 }))
|
|
100971
|
+
temperature: z.number().nullable().default(null).meta(readingMeta("temperature", { precision: 1 })),
|
|
100972
|
+
humidity: z.number().min(0).max(100).nullable().default(null).meta(readingMeta("humidity")),
|
|
100973
|
+
pressure: z.number().nullable().default(null).meta(readingMeta("pressure")),
|
|
100974
|
+
windSpeed: z.number().nullable().default(null).meta(readingMeta("speed")),
|
|
100975
|
+
windGust: z.number().nullable().default(null).meta(readingMeta("speed")),
|
|
100976
|
+
windBearing: z.number().nullable().default(null).meta(readingMeta("angle")),
|
|
100977
|
+
rainRate: z.number().nullable().default(null).meta(readingMeta("precipitation-rate", { precision: 1 })),
|
|
100978
|
+
rainDaily: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100979
|
+
rainEvent: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100980
|
+
uv: z.number().nullable().default(null).meta(readingMeta("index", { precision: 1 })),
|
|
100981
|
+
solarRadiation: z.number().nullable().default(null).meta(readingMeta("irradiance")),
|
|
100982
|
+
dewPoint: z.number().nullable().default(null).meta(readingMeta("temperature", { precision: 1 })),
|
|
100983
|
+
/** Apparent ("feels like") temperature. */
|
|
100984
|
+
feelsLike: z.number().nullable().default(null).meta(readingMeta("temperature", { precision: 1 })),
|
|
100985
|
+
/** Vapour-pressure deficit, stored in kPa (the unit stations and growers read it in). */
|
|
100986
|
+
vpd: z.number().nullable().default(null).meta(readingMeta("none", { precision: 2 })),
|
|
100987
|
+
/** Highest wind gust since local midnight. */
|
|
100988
|
+
windGustMax: z.number().nullable().default(null).meta(readingMeta("speed")),
|
|
100989
|
+
/** Wind bearing averaged over the station's own window. */
|
|
100990
|
+
windBearingAvg: z.number().nullable().default(null).meta(readingMeta("angle")),
|
|
100991
|
+
rain24h: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100992
|
+
rainWeekly: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100993
|
+
rainMonthly: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100994
|
+
rainYearly: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 }))
|
|
100319
100995
|
}).extend({
|
|
100320
100996
|
/** Ms epoch of the poll that produced this slice. 0 before the first one. */
|
|
100321
100997
|
lastFetchedAt: z.number() });
|
|
@@ -100327,6 +101003,75 @@ var numeric = (field, quantity, label, unit, icon) => ({
|
|
|
100327
101003
|
unit,
|
|
100328
101004
|
icon
|
|
100329
101005
|
});
|
|
101006
|
+
/** Every reading of the station with the unit a Customize source must carry ('' = dimensionless). */
|
|
101007
|
+
var STATION_FIELD_UNITS = {
|
|
101008
|
+
temperature: "°C",
|
|
101009
|
+
humidity: "%",
|
|
101010
|
+
pressure: "hPa",
|
|
101011
|
+
windSpeed: "m/s",
|
|
101012
|
+
windGust: "m/s",
|
|
101013
|
+
windBearing: "°",
|
|
101014
|
+
rainRate: "mm/h",
|
|
101015
|
+
rainDaily: "mm",
|
|
101016
|
+
rainEvent: "mm",
|
|
101017
|
+
uv: "",
|
|
101018
|
+
solarRadiation: "W/m²",
|
|
101019
|
+
dewPoint: "°C",
|
|
101020
|
+
feelsLike: "°C",
|
|
101021
|
+
vpd: "kPa",
|
|
101022
|
+
windGustMax: "m/s",
|
|
101023
|
+
windBearingAvg: "°",
|
|
101024
|
+
rain24h: "mm",
|
|
101025
|
+
rainWeekly: "mm",
|
|
101026
|
+
rainMonthly: "mm",
|
|
101027
|
+
rainYearly: "mm"
|
|
101028
|
+
};
|
|
101029
|
+
function isStationField(key) {
|
|
101030
|
+
return Object.prototype.hasOwnProperty.call(STATION_FIELD_UNITS, key);
|
|
101031
|
+
}
|
|
101032
|
+
var STATION_FIELDS = Object.keys(STATION_FIELD_UNITS).filter(isStationField);
|
|
101033
|
+
/**
|
|
101034
|
+
* One scalar target per reading, `apply: 'add'` and listed in `overridable` by its own id
|
|
101035
|
+
* (the running-state / climate-control mechanism, D984 / D990): a station that reports a
|
|
101036
|
+
* reading natively keeps it until the operator assigns another device to that ONE field,
|
|
101037
|
+
* and a device with no `weather-station` slice becomes one from the sources picked. On an
|
|
101038
|
+
* add, every other reading is absent from the claim and the schema defaults it to null
|
|
101039
|
+
* (a missing sensor is never 0, D393) — the fan-control precedent, never a cross-field companion
|
|
101040
|
+
* (the scalar merge treats a companion as owned by its target).
|
|
101041
|
+
*/
|
|
101042
|
+
function stationTarget(field) {
|
|
101043
|
+
const unit = STATION_FIELD_UNITS[field];
|
|
101044
|
+
return {
|
|
101045
|
+
id: field,
|
|
101046
|
+
cardinality: "scalar",
|
|
101047
|
+
vocabulary: {
|
|
101048
|
+
cap: "weather-station",
|
|
101049
|
+
stateField: field
|
|
101050
|
+
},
|
|
101051
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
101052
|
+
apply: "add",
|
|
101053
|
+
path: field,
|
|
101054
|
+
sources: [{
|
|
101055
|
+
kind: "numeric",
|
|
101056
|
+
...unit.length > 0 ? { requiredUnit: unit } : {},
|
|
101057
|
+
transforms: [{ kind: "identity" }]
|
|
101058
|
+
}],
|
|
101059
|
+
companions: [{
|
|
101060
|
+
kind: "clock",
|
|
101061
|
+
path: "lastFetchedAt",
|
|
101062
|
+
when: "add"
|
|
101063
|
+
}],
|
|
101064
|
+
sourceReport: { status: "assignment-status" }
|
|
101065
|
+
};
|
|
101066
|
+
}
|
|
101067
|
+
var weatherStationCustomize = {
|
|
101068
|
+
version: 1,
|
|
101069
|
+
overridable: STATION_FIELDS.map((field) => ({
|
|
101070
|
+
path: field,
|
|
101071
|
+
by: field
|
|
101072
|
+
})),
|
|
101073
|
+
targets: STATION_FIELDS.map(stationTarget)
|
|
101074
|
+
};
|
|
100330
101075
|
var weatherStationCapability = {
|
|
100331
101076
|
name: "weather-station",
|
|
100332
101077
|
scope: "device",
|
|
@@ -100340,10 +101085,115 @@ var weatherStationCapability = {
|
|
|
100340
101085
|
},
|
|
100341
101086
|
runtimeState: WeatherStationStatusSchema,
|
|
100342
101087
|
/**
|
|
100343
|
-
*
|
|
100344
|
-
*
|
|
101088
|
+
* History (D850): the station records its own readings. Rain totals that
|
|
101089
|
+
* reset (event, day, week, month, year) and the sliding 24 h total are
|
|
101090
|
+
* levels, so `gauge`; `counter` is for a monotonic meter only.
|
|
100345
101091
|
*/
|
|
100346
|
-
history:
|
|
101092
|
+
history: { fields: {
|
|
101093
|
+
temperature: {
|
|
101094
|
+
kind: "gauge",
|
|
101095
|
+
unit: "°C",
|
|
101096
|
+
deadband: .1
|
|
101097
|
+
},
|
|
101098
|
+
humidity: {
|
|
101099
|
+
kind: "gauge",
|
|
101100
|
+
unit: "%",
|
|
101101
|
+
deadband: 1
|
|
101102
|
+
},
|
|
101103
|
+
pressure: {
|
|
101104
|
+
kind: "gauge",
|
|
101105
|
+
unit: "hPa",
|
|
101106
|
+
deadband: .2
|
|
101107
|
+
},
|
|
101108
|
+
windSpeed: {
|
|
101109
|
+
kind: "gauge",
|
|
101110
|
+
unit: "m/s",
|
|
101111
|
+
deadband: .2
|
|
101112
|
+
},
|
|
101113
|
+
windGust: {
|
|
101114
|
+
kind: "gauge",
|
|
101115
|
+
unit: "m/s",
|
|
101116
|
+
deadband: .2
|
|
101117
|
+
},
|
|
101118
|
+
windBearing: {
|
|
101119
|
+
kind: "gauge",
|
|
101120
|
+
unit: "°",
|
|
101121
|
+
deadband: 5
|
|
101122
|
+
},
|
|
101123
|
+
rainRate: {
|
|
101124
|
+
kind: "gauge",
|
|
101125
|
+
unit: "mm/h",
|
|
101126
|
+
deadband: .1
|
|
101127
|
+
},
|
|
101128
|
+
rainDaily: {
|
|
101129
|
+
kind: "gauge",
|
|
101130
|
+
unit: "mm",
|
|
101131
|
+
deadband: .1
|
|
101132
|
+
},
|
|
101133
|
+
rainEvent: {
|
|
101134
|
+
kind: "gauge",
|
|
101135
|
+
unit: "mm",
|
|
101136
|
+
deadband: .1
|
|
101137
|
+
},
|
|
101138
|
+
uv: {
|
|
101139
|
+
kind: "gauge",
|
|
101140
|
+
unit: "index",
|
|
101141
|
+
deadband: .1
|
|
101142
|
+
},
|
|
101143
|
+
solarRadiation: {
|
|
101144
|
+
kind: "gauge",
|
|
101145
|
+
unit: "W/m²",
|
|
101146
|
+
deadband: 5
|
|
101147
|
+
},
|
|
101148
|
+
dewPoint: {
|
|
101149
|
+
kind: "gauge",
|
|
101150
|
+
unit: "°C",
|
|
101151
|
+
deadband: .1
|
|
101152
|
+
},
|
|
101153
|
+
feelsLike: {
|
|
101154
|
+
kind: "gauge",
|
|
101155
|
+
unit: "°C",
|
|
101156
|
+
deadband: .1
|
|
101157
|
+
},
|
|
101158
|
+
vpd: {
|
|
101159
|
+
kind: "gauge",
|
|
101160
|
+
unit: "kPa",
|
|
101161
|
+
deadband: .05
|
|
101162
|
+
},
|
|
101163
|
+
windGustMax: {
|
|
101164
|
+
kind: "gauge",
|
|
101165
|
+
unit: "m/s",
|
|
101166
|
+
deadband: .2
|
|
101167
|
+
},
|
|
101168
|
+
windBearingAvg: {
|
|
101169
|
+
kind: "gauge",
|
|
101170
|
+
unit: "°",
|
|
101171
|
+
deadband: 5
|
|
101172
|
+
},
|
|
101173
|
+
rain24h: {
|
|
101174
|
+
kind: "gauge",
|
|
101175
|
+
unit: "mm",
|
|
101176
|
+
deadband: .1
|
|
101177
|
+
},
|
|
101178
|
+
rainWeekly: {
|
|
101179
|
+
kind: "gauge",
|
|
101180
|
+
unit: "mm",
|
|
101181
|
+
deadband: .1
|
|
101182
|
+
},
|
|
101183
|
+
rainMonthly: {
|
|
101184
|
+
kind: "gauge",
|
|
101185
|
+
unit: "mm",
|
|
101186
|
+
deadband: .1
|
|
101187
|
+
},
|
|
101188
|
+
rainYearly: {
|
|
101189
|
+
kind: "gauge",
|
|
101190
|
+
unit: "mm",
|
|
101191
|
+
deadband: .1
|
|
101192
|
+
}
|
|
101193
|
+
} },
|
|
101194
|
+
customize: weatherStationCustomize,
|
|
101195
|
+
/** The poll clock is written but is no reason to commit a row. */
|
|
101196
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
100347
101197
|
/**
|
|
100348
101198
|
* Runtime-state durability: **session** — a station reading is stale the
|
|
100349
101199
|
* moment the hub is down; the provider re-reads on the next poll.
|
|
@@ -100364,7 +101214,15 @@ var weatherStationCapability = {
|
|
|
100364
101214
|
numeric("rainEvent", t("the rain this event", "la pioggia di questo evento"), t("Rain event", "Evento di pioggia"), "mm", "droplets"),
|
|
100365
101215
|
numeric("uv", t("the UV index", "l’indice UV"), t("UV", "UV"), "", "cloud-sun"),
|
|
100366
101216
|
numeric("solarRadiation", t("the solar radiation", "la radiazione solare"), t("Solar", "Sole"), "W/m²", "cloud-sun"),
|
|
100367
|
-
numeric("dewPoint", t("the dew point", "il punto di rugiada"), t("Dew point", "Punto di rugiada"), "°C", "thermometer")
|
|
101217
|
+
numeric("dewPoint", t("the dew point", "il punto di rugiada"), t("Dew point", "Punto di rugiada"), "°C", "thermometer"),
|
|
101218
|
+
numeric("feelsLike", t("the feels-like temperature", "la temperatura percepita"), t("Feels like", "Percepita"), "°C", "thermometer"),
|
|
101219
|
+
numeric("vpd", t("the vapour-pressure deficit", "il deficit di pressione di vapore"), t("VPD", "VPD"), "kPa", "gauge"),
|
|
101220
|
+
numeric("windGustMax", t("the highest gust today", "la raffica massima di oggi"), t("Max gust", "Raffica max"), "m/s", "wind"),
|
|
101221
|
+
numeric("windBearingAvg", t("the average wind bearing", "la direzione media del vento"), t("Avg bearing", "Direzione media"), "°", "wind"),
|
|
101222
|
+
numeric("rain24h", t("the rain in the last 24 hours", "la pioggia delle ultime 24 ore"), t("Rain 24 h", "Pioggia 24 h"), "mm", "droplets"),
|
|
101223
|
+
numeric("rainWeekly", t("the rain this week", "la pioggia di questa settimana"), t("Rain week", "Pioggia settimana"), "mm", "droplets"),
|
|
101224
|
+
numeric("rainMonthly", t("the rain this month", "la pioggia di questo mese"), t("Rain month", "Pioggia mese"), "mm", "droplets"),
|
|
101225
|
+
numeric("rainYearly", t("the rain this year", "la pioggia di quest’anno"), t("Rain year", "Pioggia anno"), "mm", "droplets")
|
|
100368
101226
|
]
|
|
100369
101227
|
}
|
|
100370
101228
|
};
|
|
@@ -133414,7 +134272,7 @@ var RUNTIME_STATE_POLICY = {
|
|
|
133414
134272
|
},
|
|
133415
134273
|
"weather-station": {
|
|
133416
134274
|
durability: "session",
|
|
133417
|
-
volatileFields: []
|
|
134275
|
+
volatileFields: ["lastFetchedAt"]
|
|
133418
134276
|
},
|
|
133419
134277
|
"zone-analytics": {
|
|
133420
134278
|
durability: "session",
|