@camstack/types 1.2.603 → 1.2.605
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/battery.cap.d.ts +54 -0
- package/dist/capabilities/energy-system.cap.d.ts +6 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/index.js +73 -3
- package/dist/index.mjs +73 -3
- package/dist/{runtime-capabilities-ql3VRzQu.mjs → runtime-capabilities-C0PIVXwH.mjs} +57 -0
- package/dist/{runtime-capabilities-D9KsXMv7.js → runtime-capabilities-DCRxheYq.js} +57 -0
- 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.605] - 2026-11-20
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Battery status now carries the cell state (charging, full, idle), current in mA and temperature in °C beside the existing level, source and voltage
|
|
15
|
+
|
|
16
|
+
## [1.2.604] - 2026-11-20
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Energy systems now record the storage capacity next to the other storage series
|
|
21
|
+
|
|
10
22
|
## [1.2.603] - 2026-11-19
|
|
11
23
|
|
|
12
24
|
### Changed
|
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_runtime_capabilities = require("./runtime-capabilities-
|
|
2
|
+
const require_runtime_capabilities = require("./runtime-capabilities-DCRxheYq.js");
|
|
3
3
|
const require_event_category = require("./event-category-CMA0-jGW.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-DkF5-kuf.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CAP_ADVANCE_FIELDS, $a as classifySecretWrite, $i as RECORD_SETTINGS_MAX_ROWS, $n as assertTransactScope, $r as readErrorI18n, $t as createDebugEmitter, A as DEVICE_SCOPED_CAPS, Aa as recordsErrorFromMessage, Ar as defineRecordKinds, Bi as secretArrayPrefixes, Bt as MODEL_FORMATS, Ca as RecordUniqueViolationError, Cr as RecordIndexSchema, Ct as MIGRATION_API_VERSION, D as parseJsonUnknown, Da as UnindexedFilterError, Dr as StoredRecordKindDeclarationSchema, Dt as adminUiCapability, Ea as TransactRefusedError, Er as RecordRetentionSchema, Et as DEVICE_CHILDREN_BATCH_MAX, F as createEventBusSliceSource, Fi as mapSecretLeaves, Gi as RECORD_DEFAULT_MAX_DATA_BYTES, Gt as scopeKey, Ha as emitReadiness, Hi as RECORD_BATCH_MAX_BYTES, Ht as ReadinessTimeoutError, Ii as parseSecretPath, Ji as RECORD_MAX_DATA_BYTES, Jn as OnBehalfSourceSchema, Ki as RECORD_DELETE_BATCH, Kn as CommandOriginClaimSchema, Li as recordArrayItemPath, M as createDeviceProxy, Mi as secretViewsOf, Mr as collectZodSecretPaths, Ni as REMOVE_LEAF, Nr as isZodSecret, O as hfModelUrl, Oa as UnknownRecordKindError, Or as assertValidDeclaration, P as addonSliceHandleApi, Pi as collectSecretLeaves, Qa as SECRET_CLEAR, Qi as RECORD_SECRET_COLLECTION_PREFIX, Qn as createRecordsAccess, Ri as recordSecretCollection, S as asJsonObject, Sa as RecordTooLargeError, Sr as RecordFieldPathSchema, St as PipelineStepInputSchema, Ta as RevConflictError, To as findMigrationsBlocked, Tr as RecordKindNameSchema, Tt as deviceOpsCapability, Ui as RECORD_CLASSES, Va as createEvent, Vi as RECORD_BATCH_MAX, Vr as expandCapMethods, Vt as ReadinessRegistry, W as isCommand, Wi as RECORD_DATABASES, Xi as RECORD_MAX_INDEX_FIELDS, Xn as ruleFireOfClaim, Xr as ErrorI18nPayloadSchema, Yi as RECORD_MAX_INDEXES, Yn as RuleFireOriginSchema, Z as HF_REPO, Zi as RECORD_QUERY_MAX, Zn as makeInMemoryRecords, _a as NoCallerError, _i as resolvedValues, aa as globalSecretScope, ao as toSecretFieldView, ar as forgetKnownSecret, at as CALLER_STAMPED_CAPABILITIES, ba as RecordNotFoundError, bi as isInstanceSwitchesUnreadError, br as entryBody, bt as switchRefusesSetState, ca as parseSecretRef, cr as scrubKnownSecrets, ct as defineCustomActions, dr as PEER_BYTES_MAX_OUTSTANDING, ea as RECORD_SWEEP_INTERVAL_MS, eo as isSecretClear, er as resolveSecretViewsIn, et as CAP_METHOD_TIMEOUTS_MS, fa as BatchTooLargeError, fr as PEER_BYTES_STALL_MS, ga as InvalidRecordError, gi as resolveDeviceSettings, gr as DATAPLANE_SECRET_HEADER, gt as readNodePin, ha as ForeignSecretMarkerError, hi as nodeIdOfScopedKey, hr as CALLER_USERNAME_HEADER, ht as readCommandOrigin, ia as formatSecretScope, ii as normalizeAddonInitResult, io as makeSecretMarker, ir as clearKnownSecrets, it as isCapMethodAbsent, j as isDeviceScopedCap, k as BOOT_RECOVERY_BACKOFF_MS, ka as asRecordsError, kr as declarationsOf, kt as addonPagesSourceCapability, lr as shortSecretRefHash, lt as describeCustomActions, ma as FilterRequiredError, mi as SCOPED_SETTINGS_SCOPES, mt as nodePin, n as describeNvidia, na as arrayItemFieldPath, no as isSecretMarker, nr as createSecretsAccess, nt as CAP_STATE_LEAVES, oa as isSecretRef, or as knownSecretCount, ot as withoutCallerStamp, pa as DeclarationRefusedError, pr as PEER_BYTES_TICKET_TTL_MS, pt as commandOrigin, q as DEVICE_RESTORE_RETRY_DELAYS_MS, qi as RECORD_ID_MAX_LENGTH, qn as OnBehalfSchema, ra as buildSecretRef, ro as isSecretMarkerLike, rr as MIN_SCRUBBED_LENGTH, rt as CAP_METHOD_NOT_IMPLEMENTED, sa as normalizeSecretOwner, sr as registerKnownSecret, st as customAction, ta as SECRET_REF_SCHEME, ti as BaseAddon, to as isSecretFieldView, tr as REVALIDATE_AFTER_MS, u as sleep, ur as PEER_BYTES_CHUNK_BYTES, va as PlaintextSecretError, vr as DisposerChain, vt as viewerUiCapability, w as asString, wa as RecordsError, wo as AddonMigrationsBlockedError, wr as RecordKindDeclarationSchema, xa as RecordSecretUnavailableError, xr as EntryDescriptorSchema, xt as PipelineRunResultBridge, y as maskUrlCredentials, ya as RECORDS_ERROR_CODES, yr as defineEntryKind, yt as SWITCH_SETTABLE_GATE, zi as recordSecretRef } from "./runtime-capabilities-
|
|
1
|
+
import { $ as CAP_ADVANCE_FIELDS, $a as classifySecretWrite, $i as RECORD_SETTINGS_MAX_ROWS, $n as assertTransactScope, $r as readErrorI18n, $t as createDebugEmitter, A as DEVICE_SCOPED_CAPS, Aa as recordsErrorFromMessage, Ar as defineRecordKinds, Bi as secretArrayPrefixes, Bt as MODEL_FORMATS, Ca as RecordUniqueViolationError, Cr as RecordIndexSchema, Ct as MIGRATION_API_VERSION, D as parseJsonUnknown, Da as UnindexedFilterError, Dr as StoredRecordKindDeclarationSchema, Dt as adminUiCapability, Ea as TransactRefusedError, Er as RecordRetentionSchema, Et as DEVICE_CHILDREN_BATCH_MAX, F as createEventBusSliceSource, Fi as mapSecretLeaves, Gi as RECORD_DEFAULT_MAX_DATA_BYTES, Gt as scopeKey, Ha as emitReadiness, Hi as RECORD_BATCH_MAX_BYTES, Ht as ReadinessTimeoutError, Ii as parseSecretPath, Ji as RECORD_MAX_DATA_BYTES, Jn as OnBehalfSourceSchema, Ki as RECORD_DELETE_BATCH, Kn as CommandOriginClaimSchema, Li as recordArrayItemPath, M as createDeviceProxy, Mi as secretViewsOf, Mr as collectZodSecretPaths, Ni as REMOVE_LEAF, Nr as isZodSecret, O as hfModelUrl, Oa as UnknownRecordKindError, Or as assertValidDeclaration, P as addonSliceHandleApi, Pi as collectSecretLeaves, Qa as SECRET_CLEAR, Qi as RECORD_SECRET_COLLECTION_PREFIX, Qn as createRecordsAccess, Ri as recordSecretCollection, S as asJsonObject, Sa as RecordTooLargeError, Sr as RecordFieldPathSchema, St as PipelineStepInputSchema, Ta as RevConflictError, To as findMigrationsBlocked, Tr as RecordKindNameSchema, Tt as deviceOpsCapability, Ui as RECORD_CLASSES, Va as createEvent, Vi as RECORD_BATCH_MAX, Vr as expandCapMethods, Vt as ReadinessRegistry, W as isCommand, Wi as RECORD_DATABASES, Xi as RECORD_MAX_INDEX_FIELDS, Xn as ruleFireOfClaim, Xr as ErrorI18nPayloadSchema, Yi as RECORD_MAX_INDEXES, Yn as RuleFireOriginSchema, Z as HF_REPO, Zi as RECORD_QUERY_MAX, Zn as makeInMemoryRecords, _a as NoCallerError, _i as resolvedValues, aa as globalSecretScope, ao as toSecretFieldView, ar as forgetKnownSecret, at as CALLER_STAMPED_CAPABILITIES, ba as RecordNotFoundError, bi as isInstanceSwitchesUnreadError, br as entryBody, bt as switchRefusesSetState, ca as parseSecretRef, cr as scrubKnownSecrets, ct as defineCustomActions, dr as PEER_BYTES_MAX_OUTSTANDING, ea as RECORD_SWEEP_INTERVAL_MS, eo as isSecretClear, er as resolveSecretViewsIn, et as CAP_METHOD_TIMEOUTS_MS, fa as BatchTooLargeError, fr as PEER_BYTES_STALL_MS, ga as InvalidRecordError, gi as resolveDeviceSettings, gr as DATAPLANE_SECRET_HEADER, gt as readNodePin, ha as ForeignSecretMarkerError, hi as nodeIdOfScopedKey, hr as CALLER_USERNAME_HEADER, ht as readCommandOrigin, ia as formatSecretScope, ii as normalizeAddonInitResult, io as makeSecretMarker, ir as clearKnownSecrets, it as isCapMethodAbsent, j as isDeviceScopedCap, k as BOOT_RECOVERY_BACKOFF_MS, ka as asRecordsError, kr as declarationsOf, kt as addonPagesSourceCapability, lr as shortSecretRefHash, lt as describeCustomActions, ma as FilterRequiredError, mi as SCOPED_SETTINGS_SCOPES, mt as nodePin, n as describeNvidia, na as arrayItemFieldPath, no as isSecretMarker, nr as createSecretsAccess, nt as CAP_STATE_LEAVES, oa as isSecretRef, or as knownSecretCount, ot as withoutCallerStamp, pa as DeclarationRefusedError, pr as PEER_BYTES_TICKET_TTL_MS, pt as commandOrigin, q as DEVICE_RESTORE_RETRY_DELAYS_MS, qi as RECORD_ID_MAX_LENGTH, qn as OnBehalfSchema, ra as buildSecretRef, ro as isSecretMarkerLike, rr as MIN_SCRUBBED_LENGTH, rt as CAP_METHOD_NOT_IMPLEMENTED, sa as normalizeSecretOwner, sr as registerKnownSecret, st as customAction, ta as SECRET_REF_SCHEME, ti as BaseAddon, to as isSecretFieldView, tr as REVALIDATE_AFTER_MS, u as sleep, ur as PEER_BYTES_CHUNK_BYTES, va as PlaintextSecretError, vr as DisposerChain, vt as viewerUiCapability, w as asString, wa as RecordsError, wo as AddonMigrationsBlockedError, wr as RecordKindDeclarationSchema, xa as RecordSecretUnavailableError, xr as EntryDescriptorSchema, xt as PipelineRunResultBridge, y as maskUrlCredentials, ya as RECORDS_ERROR_CODES, yr as defineEntryKind, yt as SWITCH_SETTABLE_GATE, zi as recordSecretRef } from "./runtime-capabilities-C0PIVXwH.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-7P4A3bYA.mjs";
|
|
3
3
|
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-DIeNz933.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -20,6 +20,14 @@ export declare const BatteryStatusSchema: z.ZodObject<{
|
|
|
20
20
|
sleeping: z.ZodBoolean;
|
|
21
21
|
lastUpdated: z.ZodNumber;
|
|
22
22
|
voltage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
chargeState: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
charging: "charging";
|
|
25
|
+
full: "full";
|
|
26
|
+
idle: "idle";
|
|
27
|
+
unknown: "unknown";
|
|
28
|
+
}>>;
|
|
29
|
+
currentMa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
temperatureC: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
31
|
lastContactAt: z.ZodOptional<z.ZodNumber>;
|
|
24
32
|
lastFullRefreshAt: z.ZodOptional<z.ZodNumber>;
|
|
25
33
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -58,6 +66,14 @@ export declare const batteryCapability: {
|
|
|
58
66
|
sleeping: z.ZodBoolean;
|
|
59
67
|
lastUpdated: z.ZodNumber;
|
|
60
68
|
voltage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
|
+
chargeState: z.ZodOptional<z.ZodEnum<{
|
|
70
|
+
charging: "charging";
|
|
71
|
+
full: "full";
|
|
72
|
+
idle: "idle";
|
|
73
|
+
unknown: "unknown";
|
|
74
|
+
}>>;
|
|
75
|
+
currentMa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
+
temperatureC: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
61
77
|
lastContactAt: z.ZodOptional<z.ZodNumber>;
|
|
62
78
|
lastFullRefreshAt: z.ZodOptional<z.ZodNumber>;
|
|
63
79
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -78,6 +94,14 @@ export declare const batteryCapability: {
|
|
|
78
94
|
sleeping: z.ZodBoolean;
|
|
79
95
|
lastUpdated: z.ZodNumber;
|
|
80
96
|
voltage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
|
+
chargeState: z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
charging: "charging";
|
|
99
|
+
full: "full";
|
|
100
|
+
idle: "idle";
|
|
101
|
+
unknown: "unknown";
|
|
102
|
+
}>>;
|
|
103
|
+
currentMa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
104
|
+
temperatureC: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
81
105
|
lastContactAt: z.ZodOptional<z.ZodNumber>;
|
|
82
106
|
lastFullRefreshAt: z.ZodOptional<z.ZodNumber>;
|
|
83
107
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -110,6 +134,14 @@ export declare const batteryCapability: {
|
|
|
110
134
|
sleeping: z.ZodBoolean;
|
|
111
135
|
lastUpdated: z.ZodNumber;
|
|
112
136
|
voltage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
137
|
+
chargeState: z.ZodOptional<z.ZodEnum<{
|
|
138
|
+
charging: "charging";
|
|
139
|
+
full: "full";
|
|
140
|
+
idle: "idle";
|
|
141
|
+
unknown: "unknown";
|
|
142
|
+
}>>;
|
|
143
|
+
currentMa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
144
|
+
temperatureC: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
113
145
|
lastContactAt: z.ZodOptional<z.ZodNumber>;
|
|
114
146
|
lastFullRefreshAt: z.ZodOptional<z.ZodNumber>;
|
|
115
147
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -134,6 +166,10 @@ export declare const batteryCapability: {
|
|
|
134
166
|
readonly kind: 'gauge';
|
|
135
167
|
readonly unit: 'V';
|
|
136
168
|
};
|
|
169
|
+
readonly temperatureC: {
|
|
170
|
+
readonly kind: 'gauge';
|
|
171
|
+
readonly unit: '°C';
|
|
172
|
+
};
|
|
137
173
|
};
|
|
138
174
|
};
|
|
139
175
|
readonly customize: {
|
|
@@ -223,6 +259,24 @@ export declare const batteryCapability: {
|
|
|
223
259
|
readonly label: import("../index.js").VocabL10n;
|
|
224
260
|
}];
|
|
225
261
|
readonly icon: 'battery-charging';
|
|
262
|
+
}, {
|
|
263
|
+
readonly kind: 'enum';
|
|
264
|
+
readonly field: 'chargeState';
|
|
265
|
+
readonly label: import("../index.js").VocabL10n;
|
|
266
|
+
readonly values: readonly [{
|
|
267
|
+
readonly value: 'charging';
|
|
268
|
+
readonly label: import("../index.js").VocabL10n;
|
|
269
|
+
}, {
|
|
270
|
+
readonly value: 'full';
|
|
271
|
+
readonly label: import("../index.js").VocabL10n;
|
|
272
|
+
}, {
|
|
273
|
+
readonly value: 'idle';
|
|
274
|
+
readonly label: import("../index.js").VocabL10n;
|
|
275
|
+
}, {
|
|
276
|
+
readonly value: 'unknown';
|
|
277
|
+
readonly label: import("../index.js").VocabL10n;
|
|
278
|
+
}];
|
|
279
|
+
readonly icon: 'battery-charging';
|
|
226
280
|
}];
|
|
227
281
|
readonly extraEvents: readonly [{
|
|
228
282
|
readonly category: EventCategory.DeviceAwake;
|
|
@@ -268,6 +268,12 @@ export declare const energySystemCapability: {
|
|
|
268
268
|
readonly deadband: 0.05;
|
|
269
269
|
readonly displayName: 'Stored energy';
|
|
270
270
|
};
|
|
271
|
+
readonly 'storage.capacityKwh': {
|
|
272
|
+
readonly kind: 'gauge';
|
|
273
|
+
readonly unit: 'kWh';
|
|
274
|
+
readonly deadband: 0.1;
|
|
275
|
+
readonly displayName: 'Storage capacity';
|
|
276
|
+
};
|
|
271
277
|
readonly 'storage.powerW': {
|
|
272
278
|
readonly group: 'power-flow';
|
|
273
279
|
readonly kind: 'gauge';
|
|
@@ -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, 89 caps with
|
|
8
|
+
* Coverage: 1 advance-derived caps, 89 caps with 479 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 {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapabilityHistoryField, CapabilityHistoryItems, CapabilityHistoryPrimary } from '../capabilities/capability-definition.js';
|
|
2
2
|
/**
|
|
3
3
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
4
|
-
* 47 caps with series (
|
|
4
|
+
* 47 caps with series (132 series), 40 caps answered `'none'`.
|
|
5
5
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
6
6
|
*/
|
|
7
7
|
export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<string, CapabilityHistoryField>>>>;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_runtime_capabilities = require("./runtime-capabilities-
|
|
2
|
+
const require_runtime_capabilities = require("./runtime-capabilities-DCRxheYq.js");
|
|
3
3
|
const require_event_category = require("./event-category-CMA0-jGW.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-DkF5-kuf.js");
|
|
5
5
|
const require_implemented_methods = require("./implemented-methods-I_l2ENnf.js");
|
|
@@ -43583,6 +43583,31 @@ var BatteryStatusSchema = zod.z.object({
|
|
|
43583
43583
|
*/
|
|
43584
43584
|
voltage: zod.z.number().nullable().optional().meta(require_runtime_capabilities.readingMeta("voltage", { label: "Voltage" })),
|
|
43585
43585
|
/**
|
|
43586
|
+
* What the CELL is doing, as opposed to {@link charging} (what it is powered
|
|
43587
|
+
* from). `'charging'` takes current, `'full'` is connected and topped up,
|
|
43588
|
+
* `'idle'` is a stopped cell the firmware reported as such (running on the
|
|
43589
|
+
* battery, or an adapter that is not feeding it).
|
|
43590
|
+
*
|
|
43591
|
+
* Absent or `'unknown'` is NOT an answer: the provider has not read the
|
|
43592
|
+
* charge fields. It must never be coerced to `'idle'` (D315) — a camera
|
|
43593
|
+
* nobody reached would be drawn "not charging". Consumers SKIP it.
|
|
43594
|
+
*/
|
|
43595
|
+
chargeState: zod.z.enum([
|
|
43596
|
+
"charging",
|
|
43597
|
+
"full",
|
|
43598
|
+
"idle",
|
|
43599
|
+
"unknown"
|
|
43600
|
+
]).optional().meta({ label: "Charge state" }),
|
|
43601
|
+
/**
|
|
43602
|
+
* Battery current in milliamperes, as the firmware reports it (sign is the
|
|
43603
|
+
* firmware's). `null`/absent = not reported. Stored in mA, not the quantity
|
|
43604
|
+
* base (A), so it carries no reading quantity: a quantity would make the UI
|
|
43605
|
+
* convert and print it as amperes.
|
|
43606
|
+
*/
|
|
43607
|
+
currentMa: zod.z.number().nullable().optional().meta(require_runtime_capabilities.readingMeta("none", { label: "Current (mA)" })),
|
|
43608
|
+
/** Battery temperature in °C. `null`/absent = not reported. */
|
|
43609
|
+
temperatureC: zod.z.number().nullable().optional().meta(require_runtime_capabilities.readingMeta("temperature", { label: "Temperature" })),
|
|
43610
|
+
/**
|
|
43586
43611
|
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
43587
43612
|
* completed firmware round-trip, an observed wake, or an inbound push
|
|
43588
43613
|
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
@@ -43742,6 +43767,10 @@ onStatusChanged: {
|
|
|
43742
43767
|
voltage: {
|
|
43743
43768
|
kind: "gauge",
|
|
43744
43769
|
unit: "V"
|
|
43770
|
+
},
|
|
43771
|
+
temperatureC: {
|
|
43772
|
+
kind: "gauge",
|
|
43773
|
+
unit: "°C"
|
|
43745
43774
|
}
|
|
43746
43775
|
} },
|
|
43747
43776
|
customize: batteryCustomize,
|
|
@@ -43794,6 +43823,30 @@ onStatusChanged: {
|
|
|
43794
43823
|
}
|
|
43795
43824
|
],
|
|
43796
43825
|
icon: "battery-charging"
|
|
43826
|
+
},
|
|
43827
|
+
{
|
|
43828
|
+
kind: "enum",
|
|
43829
|
+
field: "chargeState",
|
|
43830
|
+
label: require_runtime_capabilities.t("Charge state", "Stato di carica"),
|
|
43831
|
+
values: [
|
|
43832
|
+
{
|
|
43833
|
+
value: "charging",
|
|
43834
|
+
label: require_runtime_capabilities.t("Charging", "In carica")
|
|
43835
|
+
},
|
|
43836
|
+
{
|
|
43837
|
+
value: "full",
|
|
43838
|
+
label: require_runtime_capabilities.t("Full", "Carica completa")
|
|
43839
|
+
},
|
|
43840
|
+
{
|
|
43841
|
+
value: "idle",
|
|
43842
|
+
label: require_runtime_capabilities.t("Not charging", "Non in carica")
|
|
43843
|
+
},
|
|
43844
|
+
{
|
|
43845
|
+
value: "unknown",
|
|
43846
|
+
label: require_runtime_capabilities.t("Unknown", "Sconosciuto")
|
|
43847
|
+
}
|
|
43848
|
+
],
|
|
43849
|
+
icon: "battery-charging"
|
|
43797
43850
|
}
|
|
43798
43851
|
],
|
|
43799
43852
|
extraEvents: [{
|
|
@@ -50611,7 +50664,8 @@ var CAP_RUNTIME_FIELD_UNITS = {
|
|
|
50611
50664
|
"ambient-light-sensor": { illuminance: "lx" },
|
|
50612
50665
|
"battery": {
|
|
50613
50666
|
level: "%",
|
|
50614
|
-
voltage: "V"
|
|
50667
|
+
voltage: "V",
|
|
50668
|
+
temperatureC: "°C"
|
|
50615
50669
|
},
|
|
50616
50670
|
"humidity-sensor": { humidity: "%" },
|
|
50617
50671
|
"power-meter": {
|
|
@@ -51662,7 +51716,7 @@ function groupTemplate(id) {
|
|
|
51662
51716
|
//#region src/generated/history-catalog.ts
|
|
51663
51717
|
/**
|
|
51664
51718
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
51665
|
-
* 47 caps with series (
|
|
51719
|
+
* 47 caps with series (132 series), 40 caps answered `'none'`.
|
|
51666
51720
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
51667
51721
|
*/
|
|
51668
51722
|
var HISTORY_CATALOG = {
|
|
@@ -51724,6 +51778,10 @@ var HISTORY_CATALOG = {
|
|
|
51724
51778
|
"voltage": {
|
|
51725
51779
|
kind: "gauge",
|
|
51726
51780
|
unit: "V"
|
|
51781
|
+
},
|
|
51782
|
+
"temperatureC": {
|
|
51783
|
+
kind: "gauge",
|
|
51784
|
+
unit: "°C"
|
|
51727
51785
|
}
|
|
51728
51786
|
},
|
|
51729
51787
|
"binary": { "on": { kind: "boolean" } },
|
|
@@ -51878,6 +51936,12 @@ var HISTORY_CATALOG = {
|
|
|
51878
51936
|
deadband: .05,
|
|
51879
51937
|
displayName: "Stored energy"
|
|
51880
51938
|
},
|
|
51939
|
+
"storage.capacityKwh": {
|
|
51940
|
+
kind: "gauge",
|
|
51941
|
+
unit: "kWh",
|
|
51942
|
+
deadband: .1,
|
|
51943
|
+
displayName: "Storage capacity"
|
|
51944
|
+
},
|
|
51881
51945
|
"storage.powerW": {
|
|
51882
51946
|
group: "power-flow",
|
|
51883
51947
|
kind: "gauge",
|
|
@@ -62519,6 +62583,12 @@ var energySystemCapability = {
|
|
|
62519
62583
|
deadband: .05,
|
|
62520
62584
|
displayName: "Stored energy"
|
|
62521
62585
|
},
|
|
62586
|
+
"storage.capacityKwh": {
|
|
62587
|
+
kind: "gauge",
|
|
62588
|
+
unit: "kWh",
|
|
62589
|
+
deadband: .1,
|
|
62590
|
+
displayName: "Storage capacity"
|
|
62591
|
+
},
|
|
62522
62592
|
"storage.powerW": {
|
|
62523
62593
|
group: "power-flow",
|
|
62524
62594
|
kind: "gauge",
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $a as classifySecretWrite, $i as RECORD_SETTINGS_MAX_ROWS, $n as assertTransactScope, $r as readErrorI18n, $t as createDebugEmitter, A as DEVICE_SCOPED_CAPS, Aa as recordsErrorFromMessage, Ai as RecordIntegrationInstances, An as DISPLAY_PREFERENCES, Ar as defineRecordKinds, At as t, B as commandEffect, Ba as runAddonMigrations, Bi as secretArrayPrefixes, Bn as DeviceTransitionSchema, Br as event, Bt as MODEL_FORMATS, C as asNumber, Ca as RecordUniqueViolationError, Ci as bodySwitchToRegistryId, Cn as SubscribeAudioChunksInputSchema, Co as settleHydration, Cr as RecordIndexSchema, Ct as MIGRATION_API_VERSION, D as parseJsonUnknown, Da as UnindexedFilterError, Di as registrySwitchPortsOver, Dn as parseProfileBrokerId, Do as audioChunkBytesPerSample, Dr as StoredRecordKindDeclarationSchema, Dt as adminUiCapability, E as parseJsonObject, Ea as TransactRefusedError, Ei as moveRegistrySwitchToBody, En as makeSourceBrokerId, Eo as AUDIO_CHUNK_FORMATS, Er as RecordRetentionSchema, Et as DEVICE_CHILDREN_BATCH_MAX, F as createEventBusSliceSource, Fa as rowsDepsOver, Fi as mapSecretLeaves, Fn as historyUnitFor, Fr as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Ft as findVocabAction, G as resolveSideEffect, Ga as WELL_KNOWN_TAB_MAP, Gi as RECORD_DEFAULT_MAX_DATA_BYTES, Gn as TransitionValueSchema, Gr as optionalMethod, Gt as scopeKey, H as commandHoldMs, Ha as emitReadiness, Hi as RECORD_BATCH_MAX_BYTES, Hn as TransitionActorSchema, Hr as historyItemFieldPath, Ht as ReadinessTimeoutError, I as createLazyTrpcSource, Ia as secretsOverMigrationApi, Ii as parseSecretPath, In as isReadingQuantity, Ir as DEVICE_STATUS_METHOD, It as vocabActionIdFor, J as DeviceRestoreRetryScheduler, Ja as dehydrateConfigField, Ji as RECORD_MAX_DATA_BYTES, Jn as OnBehalfSourceSchema, Jr as CamstackError, Jt as DEBUG_WATCH_REARM_EVERY_MS, K as DEVICE_RESTORE_RETRY_CONCURRENCY, Ka as collectHydratedFieldEntries, Ki as RECORD_DELETE_BATCH, Kn as CommandOriginClaimSchema, Kr as resolveCapMount, Kt as DEBUG_CHANNEL_PREFIX, L as createMirrorSource, La as switchRecordsOverMigrationApi, Li as recordArrayItemPath, Ln as readingMeta, Lr as HISTORY_DEFAULT_MIN_INTERVAL_MS, Lt as vocabCall, M as createDeviceProxy, Ma as defaultIntegrationDepsOver, Mi as secretViewsOf, Mn as ReadingQuantitySchema, Mr as collectZodSecretPaths, Mt as actionEffect, N as invokeTrpcLeaf, Na as integrationRowsApiOver, Ni as REMOVE_LEAF, Nn as baseUnitOf, Nr as isZodSecret, Nt as allVocabActions, O as hfModelUrl, Oa as UnknownRecordKindError, Oi as registrySwitchToBodyId, On as selectAssignedProfileSlots, Oo as expandAudioChunkToF32le, Or as assertValidDeclaration, Ot as AddonPageDeclarationSchema, Pa as recordsOverMigrationApi, Pi as collectSecretLeaves, Pn as displayUnitFor, Pr as DEFAULT_RUNTIME_STATE_DURABILITY, Pt as assertDeviceOffers, Q as RUNTIME_DEFAULTS, Qa as SECRET_CLEAR, Qi as RECORD_SECRET_COLLECTION_PREFIX, Qn as createRecordsAccess, Qr as forbiddenError, Qt as __resetDebugInterestForTests, R as createSliceHandle, Ra as AddonMigrationDefinitionError, Ri as recordSecretCollection, Rn as NOT_A_DEVICE, Rr as HISTORY_UNIT_LABELS, Rt as CAP_VOCABULARY_BY_NAME, S as asJsonObject, Sa as RecordTooLargeError, Si as bodySwitchPortsOver, Sn as StreamSourceSchema, So as recordRegistrySwitch, Sr as RecordFieldPathSchema, St as PipelineStepInputSchema, T as parseJsonArray, Ta as RevConflictError, Ti as moveBodySwitchToRegistry, Tn as makeProfileBrokerId, To as findMigrationsBlocked, Tr as RecordKindNameSchema, Tt as deviceOpsCapability, U as effectConditionHolds, Ua as isEvent, Ui as RECORD_CLASSES, Un as TransitionCommandSchema, Ur as isDeviceConfigCap, Ut as emitDownForOwnedCaps, V as commandEffects, Va as createEvent, Vi as RECORD_BATCH_MAX, Vn as TransitionActorKindSchema, Vr as expandCapMethods, Vt as ReadinessRegistry, W as isCommand, Wa as WELL_KNOWN_TABS, Wi as RECORD_DATABASES, Wn as TransitionOutcomeSchema, Wr as method, Wt as readinessKey, X as HF_BASE_URL, Xa as hydrateSchema, Xi as RECORD_MAX_INDEX_FIELDS, Xn as ruleFireOfClaim, Xr as ErrorI18nPayloadSchema, Xt as DebugInterest, Y as DEFAULT_TOKEN_EXPIRY, Ya as dehydrateSchema, Yi as RECORD_MAX_INDEXES, Yn as RuleFireOriginSchema, Yr as ErrorCodeSchema, Yt as DEBUG_WATCH_WINDOW_MS, Z as HF_REPO, Za as resolveHydratedFieldValue, Zi as RECORD_QUERY_MAX, Zn as makeInMemoryRecords, Zr as FORBIDDEN_MESSAGE_PREFIX, Zt as DebugWatchTable, _ as pythonScriptForBackend, _a as NoCallerError, _i as resolvedValues, _n as PreviewDerivedEncodeResultSchema, _o as hydrateInstanceSwitches, _r as SHARE_VIEW_KINDS, _t as toNodeId, a as runtimeDevices, aa as globalSecretScope, ai as mergeSecretStatePaths, an as BrokerStatusSchema, ao as toSecretFieldView, ar as forgetKnownSecret, at as CALLER_STAMPED_CAPABILITIES, b as asBoolean, ba as RecordNotFoundError, bi as isInstanceSwitchesUnreadError, bn as ProfileSlotStatusSchema, bo as pendingHydrationOwners, br as entryBody, bt as switchRefusesSetState, c as coralUsableUnits, ca as parseSecretRef, ci as secretTreeFromSchema, cn as CamStreamKindSchema, co as collectSecretConfigKeys, cr as scrubKnownSecrets, ct as defineCustomActions, d as sleepCancellable, da as optionalLinkField, di as isSecretRefOwnedBy, dn as DecodedAudioChunkSchema, do as omitTransientConfig, dr as PEER_BYTES_MAX_OUTSTANDING, dt as CAP_COMMAND_ORIGIN_CONTEXT_KEY, ea as RECORD_SWEEP_INTERVAL_MS, ei as userError, en as getDebugInterest, eo as isSecretClear, er as resolveSecretViewsIn, f as DEVICE_BACKEND_TO_FORMAT, fa as BatchTooLargeError, fi as resolveSecretMarkers, fn as DerivedEffectiveEncodeSchema, fo as schemaDeclaresAnyField, fr as PEER_BYTES_STALL_MS, ft as CAP_NODE_PIN_CONTEXT_KEY, g as formatForRuntime, ga as InvalidRecordError, gi as resolveDeviceSettings, gn as FrameHandleSchema, go as forgetInstanceSwitch, gr as DATAPLANE_SECRET_HEADER, gt as readNodePin, h as deviceBackendToFormat, ha as ForeignSecretMarkerError, hi as nodeIdOfScopedKey, hn as DerivedSourceRefSchema, ho as clearInstanceSwitches, hr as CALLER_USERNAME_HEADER, ht as readCommandOrigin, i as modelFormatForRuntime, ia as formatSecretScope, ii as normalizeAddonInitResult, in as BrokerStatsSchema, io as makeSecretMarker, ir as clearKnownSecrets, it as isCapMethodAbsent, j as isDeviceScopedCap, ja as bodySwitchRecordsOverMigrationApi, ji as defaultAddDeviceMode, jn as QUANTITY_BASE, jr as SECRET_META, jt as VocabActionError, k as BOOT_RECOVERY_BACKOFF_MS, ka as asRecordsError, ki as registrySwitchToBodyMigration, kn as DEFAULT_DISPLAY_PREFERENCE, ko as isAudioChunkFormat, kr as declarationsOf, kt as addonPagesSourceCapability, l as edgetpuDelegateDevice, la as linkField, li as KeychainWriteRefusedError, ln as CamStreamResolutionSchema, lo as isKeychainStoredField, lr as shortSecretRefHash, lt as describeCustomActions, m as RUNTIME_TO_FORMAT, ma as FilterRequiredError, mi as SCOPED_SETTINGS_SCOPES, mn as DerivedSourceProbeSchema, mo as claimInstance, mr as PeerBytesTicketSchema, mt as nodePin, n as describeNvidia, na as arrayItemFieldPath, ni as classifyStoreError, nn as AudioChunkFormatSchema, no as isSecretMarker, nr as createSecretsAccess, o as scoreRuntimes, oa as isSecretRef, oi as parseSecretStatePath, on as CAM_PROFILE_ORDER, oo as REDACTED_SECRET, or as knownSecretCount, ot as withoutCallerStamp, p as PYTHON_SCRIPT, pa as DeclarationRefusedError, pi as transformSecretWrite, pn as DerivedEncodePreviewSchema, po as beginHydration, pr as PEER_BYTES_TICKET_TTL_MS, pt as commandOrigin, q as DEVICE_RESTORE_RETRY_DELAYS_MS, qa as collectHydratedFieldValues, qi as RECORD_ID_MAX_LENGTH, qn as OnBehalfSchema, qr as systemMethod, qt as DEBUG_WATCH_HARD_CAP_MS, r as enumerateInferenceDevices, ra as buildSecretRef, ri as migrationSet, rn as AudioStreamPickSchema, ro as isSecretMarkerLike, rr as MIN_SCRUBBED_LENGTH, rt as CAP_METHOD_NOT_IMPLEMENTED, s as supportedRuntimes, sa as normalizeSecretOwner, si as secretTreeFromPaths, sn as CamProfileSchema, so as collectKeychainStoredKeys, sr as registerKnownSecret, st as customAction, t as defaultDeviceFor, ta as SECRET_REF_SCHEME, ti as BaseAddon, tn as isDebugChannelName, to as isSecretFieldView, tr as REVALIDATE_AFTER_MS, tt as CAP_NAMES, u as sleep, ua as linksOfKind, ui as collectSecretMarkerRefs, un as CameraStreamSchema, uo as isSecretConfigField, ur as PEER_BYTES_CHUNK_BYTES, ut as deviceCustomAction, v as requiresPython, va as PlaintextSecretError, vi as normalizeNodeId, vn as ProfileRtspEntrySchema, vo as isHydrationPending, vr as DisposerChain, vt as viewerUiCapability, w as asString, wa as RecordsError, wi as bodySwitchToRegistryMigration, wn as SubscribeAudioChunksResultSchema, wo as AddonMigrationsBlockedError, wr as RecordKindDeclarationSchema, wt as RawStateResultSchema, x as asJsonArray, xa as RecordSecretUnavailableError, xi as createDurableState, xn as StreamSourceEntrySchema, xo as recordInstanceSwitch, xr as EntryDescriptorSchema, xt as PipelineRunResultBridge, y as maskUrlCredentials, ya as RECORDS_ERROR_CODES, yi as InstanceSwitchesUnreadError, yn as ProfileSlotSchema, yo as isInstanceOn, yr as defineEntryKind, yt as SWITCH_SETTABLE_GATE, z as auditedFields, za as defineAddonMigrations, zi as recordSecretRef, zn as DeviceCommandSettledEventSchema, zr as PROVIDER_PIN_FIELD, zt as CAP_VOCABULARY } from "./runtime-capabilities-
|
|
1
|
+
import { $a as classifySecretWrite, $i as RECORD_SETTINGS_MAX_ROWS, $n as assertTransactScope, $r as readErrorI18n, $t as createDebugEmitter, A as DEVICE_SCOPED_CAPS, Aa as recordsErrorFromMessage, Ai as RecordIntegrationInstances, An as DISPLAY_PREFERENCES, Ar as defineRecordKinds, At as t, B as commandEffect, Ba as runAddonMigrations, Bi as secretArrayPrefixes, Bn as DeviceTransitionSchema, Br as event, Bt as MODEL_FORMATS, C as asNumber, Ca as RecordUniqueViolationError, Ci as bodySwitchToRegistryId, Cn as SubscribeAudioChunksInputSchema, Co as settleHydration, Cr as RecordIndexSchema, Ct as MIGRATION_API_VERSION, D as parseJsonUnknown, Da as UnindexedFilterError, Di as registrySwitchPortsOver, Dn as parseProfileBrokerId, Do as audioChunkBytesPerSample, Dr as StoredRecordKindDeclarationSchema, Dt as adminUiCapability, E as parseJsonObject, Ea as TransactRefusedError, Ei as moveRegistrySwitchToBody, En as makeSourceBrokerId, Eo as AUDIO_CHUNK_FORMATS, Er as RecordRetentionSchema, Et as DEVICE_CHILDREN_BATCH_MAX, F as createEventBusSliceSource, Fa as rowsDepsOver, Fi as mapSecretLeaves, Fn as historyUnitFor, Fr as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Ft as findVocabAction, G as resolveSideEffect, Ga as WELL_KNOWN_TAB_MAP, Gi as RECORD_DEFAULT_MAX_DATA_BYTES, Gn as TransitionValueSchema, Gr as optionalMethod, Gt as scopeKey, H as commandHoldMs, Ha as emitReadiness, Hi as RECORD_BATCH_MAX_BYTES, Hn as TransitionActorSchema, Hr as historyItemFieldPath, Ht as ReadinessTimeoutError, I as createLazyTrpcSource, Ia as secretsOverMigrationApi, Ii as parseSecretPath, In as isReadingQuantity, Ir as DEVICE_STATUS_METHOD, It as vocabActionIdFor, J as DeviceRestoreRetryScheduler, Ja as dehydrateConfigField, Ji as RECORD_MAX_DATA_BYTES, Jn as OnBehalfSourceSchema, Jr as CamstackError, Jt as DEBUG_WATCH_REARM_EVERY_MS, K as DEVICE_RESTORE_RETRY_CONCURRENCY, Ka as collectHydratedFieldEntries, Ki as RECORD_DELETE_BATCH, Kn as CommandOriginClaimSchema, Kr as resolveCapMount, Kt as DEBUG_CHANNEL_PREFIX, L as createMirrorSource, La as switchRecordsOverMigrationApi, Li as recordArrayItemPath, Ln as readingMeta, Lr as HISTORY_DEFAULT_MIN_INTERVAL_MS, Lt as vocabCall, M as createDeviceProxy, Ma as defaultIntegrationDepsOver, Mi as secretViewsOf, Mn as ReadingQuantitySchema, Mr as collectZodSecretPaths, Mt as actionEffect, N as invokeTrpcLeaf, Na as integrationRowsApiOver, Ni as REMOVE_LEAF, Nn as baseUnitOf, Nr as isZodSecret, Nt as allVocabActions, O as hfModelUrl, Oa as UnknownRecordKindError, Oi as registrySwitchToBodyId, On as selectAssignedProfileSlots, Oo as expandAudioChunkToF32le, Or as assertValidDeclaration, Ot as AddonPageDeclarationSchema, Pa as recordsOverMigrationApi, Pi as collectSecretLeaves, Pn as displayUnitFor, Pr as DEFAULT_RUNTIME_STATE_DURABILITY, Pt as assertDeviceOffers, Q as RUNTIME_DEFAULTS, Qa as SECRET_CLEAR, Qi as RECORD_SECRET_COLLECTION_PREFIX, Qn as createRecordsAccess, Qr as forbiddenError, Qt as __resetDebugInterestForTests, R as createSliceHandle, Ra as AddonMigrationDefinitionError, Ri as recordSecretCollection, Rn as NOT_A_DEVICE, Rr as HISTORY_UNIT_LABELS, Rt as CAP_VOCABULARY_BY_NAME, S as asJsonObject, Sa as RecordTooLargeError, Si as bodySwitchPortsOver, Sn as StreamSourceSchema, So as recordRegistrySwitch, Sr as RecordFieldPathSchema, St as PipelineStepInputSchema, T as parseJsonArray, Ta as RevConflictError, Ti as moveBodySwitchToRegistry, Tn as makeProfileBrokerId, To as findMigrationsBlocked, Tr as RecordKindNameSchema, Tt as deviceOpsCapability, U as effectConditionHolds, Ua as isEvent, Ui as RECORD_CLASSES, Un as TransitionCommandSchema, Ur as isDeviceConfigCap, Ut as emitDownForOwnedCaps, V as commandEffects, Va as createEvent, Vi as RECORD_BATCH_MAX, Vn as TransitionActorKindSchema, Vr as expandCapMethods, Vt as ReadinessRegistry, W as isCommand, Wa as WELL_KNOWN_TABS, Wi as RECORD_DATABASES, Wn as TransitionOutcomeSchema, Wr as method, Wt as readinessKey, X as HF_BASE_URL, Xa as hydrateSchema, Xi as RECORD_MAX_INDEX_FIELDS, Xn as ruleFireOfClaim, Xr as ErrorI18nPayloadSchema, Xt as DebugInterest, Y as DEFAULT_TOKEN_EXPIRY, Ya as dehydrateSchema, Yi as RECORD_MAX_INDEXES, Yn as RuleFireOriginSchema, Yr as ErrorCodeSchema, Yt as DEBUG_WATCH_WINDOW_MS, Z as HF_REPO, Za as resolveHydratedFieldValue, Zi as RECORD_QUERY_MAX, Zn as makeInMemoryRecords, Zr as FORBIDDEN_MESSAGE_PREFIX, Zt as DebugWatchTable, _ as pythonScriptForBackend, _a as NoCallerError, _i as resolvedValues, _n as PreviewDerivedEncodeResultSchema, _o as hydrateInstanceSwitches, _r as SHARE_VIEW_KINDS, _t as toNodeId, a as runtimeDevices, aa as globalSecretScope, ai as mergeSecretStatePaths, an as BrokerStatusSchema, ao as toSecretFieldView, ar as forgetKnownSecret, at as CALLER_STAMPED_CAPABILITIES, b as asBoolean, ba as RecordNotFoundError, bi as isInstanceSwitchesUnreadError, bn as ProfileSlotStatusSchema, bo as pendingHydrationOwners, br as entryBody, bt as switchRefusesSetState, c as coralUsableUnits, ca as parseSecretRef, ci as secretTreeFromSchema, cn as CamStreamKindSchema, co as collectSecretConfigKeys, cr as scrubKnownSecrets, ct as defineCustomActions, d as sleepCancellable, da as optionalLinkField, di as isSecretRefOwnedBy, dn as DecodedAudioChunkSchema, do as omitTransientConfig, dr as PEER_BYTES_MAX_OUTSTANDING, dt as CAP_COMMAND_ORIGIN_CONTEXT_KEY, ea as RECORD_SWEEP_INTERVAL_MS, ei as userError, en as getDebugInterest, eo as isSecretClear, er as resolveSecretViewsIn, f as DEVICE_BACKEND_TO_FORMAT, fa as BatchTooLargeError, fi as resolveSecretMarkers, fn as DerivedEffectiveEncodeSchema, fo as schemaDeclaresAnyField, fr as PEER_BYTES_STALL_MS, ft as CAP_NODE_PIN_CONTEXT_KEY, g as formatForRuntime, ga as InvalidRecordError, gi as resolveDeviceSettings, gn as FrameHandleSchema, go as forgetInstanceSwitch, gr as DATAPLANE_SECRET_HEADER, gt as readNodePin, h as deviceBackendToFormat, ha as ForeignSecretMarkerError, hi as nodeIdOfScopedKey, hn as DerivedSourceRefSchema, ho as clearInstanceSwitches, hr as CALLER_USERNAME_HEADER, ht as readCommandOrigin, i as modelFormatForRuntime, ia as formatSecretScope, ii as normalizeAddonInitResult, in as BrokerStatsSchema, io as makeSecretMarker, ir as clearKnownSecrets, it as isCapMethodAbsent, j as isDeviceScopedCap, ja as bodySwitchRecordsOverMigrationApi, ji as defaultAddDeviceMode, jn as QUANTITY_BASE, jr as SECRET_META, jt as VocabActionError, k as BOOT_RECOVERY_BACKOFF_MS, ka as asRecordsError, ki as registrySwitchToBodyMigration, kn as DEFAULT_DISPLAY_PREFERENCE, ko as isAudioChunkFormat, kr as declarationsOf, kt as addonPagesSourceCapability, l as edgetpuDelegateDevice, la as linkField, li as KeychainWriteRefusedError, ln as CamStreamResolutionSchema, lo as isKeychainStoredField, lr as shortSecretRefHash, lt as describeCustomActions, m as RUNTIME_TO_FORMAT, ma as FilterRequiredError, mi as SCOPED_SETTINGS_SCOPES, mn as DerivedSourceProbeSchema, mo as claimInstance, mr as PeerBytesTicketSchema, mt as nodePin, n as describeNvidia, na as arrayItemFieldPath, ni as classifyStoreError, nn as AudioChunkFormatSchema, no as isSecretMarker, nr as createSecretsAccess, o as scoreRuntimes, oa as isSecretRef, oi as parseSecretStatePath, on as CAM_PROFILE_ORDER, oo as REDACTED_SECRET, or as knownSecretCount, ot as withoutCallerStamp, p as PYTHON_SCRIPT, pa as DeclarationRefusedError, pi as transformSecretWrite, pn as DerivedEncodePreviewSchema, po as beginHydration, pr as PEER_BYTES_TICKET_TTL_MS, pt as commandOrigin, q as DEVICE_RESTORE_RETRY_DELAYS_MS, qa as collectHydratedFieldValues, qi as RECORD_ID_MAX_LENGTH, qn as OnBehalfSchema, qr as systemMethod, qt as DEBUG_WATCH_HARD_CAP_MS, r as enumerateInferenceDevices, ra as buildSecretRef, ri as migrationSet, rn as AudioStreamPickSchema, ro as isSecretMarkerLike, rr as MIN_SCRUBBED_LENGTH, rt as CAP_METHOD_NOT_IMPLEMENTED, s as supportedRuntimes, sa as normalizeSecretOwner, si as secretTreeFromPaths, sn as CamProfileSchema, so as collectKeychainStoredKeys, sr as registerKnownSecret, st as customAction, t as defaultDeviceFor, ta as SECRET_REF_SCHEME, ti as BaseAddon, tn as isDebugChannelName, to as isSecretFieldView, tr as REVALIDATE_AFTER_MS, tt as CAP_NAMES, u as sleep, ua as linksOfKind, ui as collectSecretMarkerRefs, un as CameraStreamSchema, uo as isSecretConfigField, ur as PEER_BYTES_CHUNK_BYTES, ut as deviceCustomAction, v as requiresPython, va as PlaintextSecretError, vi as normalizeNodeId, vn as ProfileRtspEntrySchema, vo as isHydrationPending, vr as DisposerChain, vt as viewerUiCapability, w as asString, wa as RecordsError, wi as bodySwitchToRegistryMigration, wn as SubscribeAudioChunksResultSchema, wo as AddonMigrationsBlockedError, wr as RecordKindDeclarationSchema, wt as RawStateResultSchema, x as asJsonArray, xa as RecordSecretUnavailableError, xi as createDurableState, xn as StreamSourceEntrySchema, xo as recordInstanceSwitch, xr as EntryDescriptorSchema, xt as PipelineRunResultBridge, y as maskUrlCredentials, ya as RECORDS_ERROR_CODES, yi as InstanceSwitchesUnreadError, yn as ProfileSlotSchema, yo as isInstanceOn, yr as defineEntryKind, yt as SWITCH_SETTABLE_GATE, z as auditedFields, za as defineAddonMigrations, zi as recordSecretRef, zn as DeviceCommandSettledEventSchema, zr as PROVIDER_PIN_FIELD, zt as CAP_VOCABULARY } from "./runtime-capabilities-C0PIVXwH.mjs";
|
|
2
2
|
import { i as publicEventCategories, n as OWNER_ONLY_EVENT_CATEGORIES, r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-7P4A3bYA.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-DIeNz933.mjs";
|
|
4
4
|
import { $ as DEFAULT_GRID_PROFILES, $n as isSwitchHeater, $t as STATISTIC_STATS, A as MAX_COMPOSITION_FEATURES, An as evaluateDwell, At as DAY_MS, B as compositionSourceKey, Bn as evaluateSensorEdge, Bt as RollingWindowSchema, C as CompositionNewTargetSchema, Cn as MAX_EXPRESSION_EVAL_STEPS, Ct as helperMembers, D as CompositionTargetSchema, Dn as EXPRESSION_BUILTIN_NAMES, Dt as CompositionSourceRefSchema, E as CompositionSeriesSourceSchema, En as EXPRESSION_BUILTINS, Et as newGridHelperSpec, F as composedDeviceStableId, Fn as DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, Ft as HOUR_MS, G as ACTIVE_CRITERIA, Gn as CLIMATE_ROLES, Gt as nextLocalMidnight, H as featureSources, Hn as isSourceCap, Ht as historyRetentionFromSettings, I as compositionFeatureEnabled, In as SOURCE_CAPS, It as MINUTE_MS, J as ActiveCriterionSchema, Jn as capAppliesToDeviceKind, Jt as planResetTier, K as AGGREGATE_REDUCERS, Kn as StoredDeviceTypeSchema, Kt as openReset, L as compositionItemFieldPath, Ln as SOURCE_CAP_ACTIVE_FIELD, Lt as MIN_CUSTOM_MINUTES, M as MAX_COMPOSITION_ITEMS, Mn as isStatefulBuiltin, Mt as HISTORY_FAST_MS, N as canonicalStoredBlockTarget, Nn as ExpressionEvalError, Nt as HISTORY_SLOW_MS, O as FORWARD_INPUT_KEY, On as disarmRoseMemory, Ot as CALENDAR_PERIODS, P as composedDeviceRef, Pn as ExpressionParseError, Pt as HISTORY_TIERS, Q as DEFAULT_GRID_FPS, Qn as isSwitchFan, Qt as SERIES_KINDS, R as compositionReadKey, Rn as SOURCE_CAP_CHANGED_AT_FIELD, Rt as RESET_PERIODS, S as CompositionLiteralBindingSchema, Sn as MAX_EXPRESSION_CALL_ARGS, St as helperDeviceRefs, T as CompositionSchema, Tn as RESERVED_BINDING_NAMES, Tt as isHistoryHelper, U as fieldReads, Un as sliceActiveValue, Ut as integralCadenceMs, V as featureFieldEntries, Vn as evaluateSensorLevelEdge, Vt as StatisticWindowSchema, W as isForwardInputRef, Wn as sliceChangedAt, Wt as maxDurationMs, X as ArithmeticHelperSpecSchema, Xn as isAirConditioner, Xt as rollingDurationMs, Y as AggregateReducerSchema, Yn as climateRoleOf, Yt as planStatisticTier, Z as BINARY_AGGREGATES, Zn as isOutlet, Zt as statisticCadenceMs, _ as CompositionFieldsFeatureSchema, _n as tokenize, _r as isSoftwareDecode, _t as MAX_HELPER_MEMBERS, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, an as EXPRESSION_INJECTED_NOW, at as GRID_PROFILES, b as CompositionFromSourceSchema, bn as MAX_EXPRESSION_AST_NODES, br as resolveStreamMaps, bt as TerminalHelperSpecSchema, c as CompositionCodeSourceSchema, cn as evaluateExpressionSource, cr as Fmp4BoxSplitter, ct as GridHelperSpecSchema, d as CompositionExistingTargetSchema, dn as validateExpressionSource, dr as audioPlanFromEncodeProfile, dt as GroupTemplateIdSchema, en as evaluateDerivative, er as isSwitchLight, et as DERIVATIVE_UNITS, f as CompositionExpressionSourceSchema, fn as createExpressionScope, fr as buildAudioArgs, ft as HelperMemberSchema, g as CompositionFieldSourceSchema, gn as parseExpression, gr as invocationFromEncodeProfile, gt as MAX_GRID_CELLS, h as CompositionFieldReadSchema, hn as compileExpressionSafe, hr as buildVideoArgs, ht as IntegralHelperSpecSchema, i as COMPOSITION_ITEM_KEY_RE, in as wattMillisecondsToKwh, it as ExpressionHelperSpecSchema, j as MAX_COMPOSITION_FIELDS_PER_FEATURE, jn as evaluateRose, jt as DEFAULT_HISTORY_RETENTION, k as MAX_COMPOSITION_CODE_LENGTH, kn as evaluateCount, kt as CalendarWindowSchema, l as CompositionCommandTargetSchema, ln as evaluateStatefulExpressionCall, lr as AUDIO_PRESETS, lt as GridRectSchema, m as CompositionFeatureSchema, mn as compileExpression, mr as buildInputArgs, mt as INTEGRAL_OUTPUTS, n as COMPOSER_ADDON_ID, nn as integrateReading, nt as ENGINE_HOSTED_HELPER_KINDS, o as CompositionAggregateSourceSchema, on as cloneStatefulExpressionMemory, ot as GROUP_TEMPLATE_IDS, p as CompositionExtensionCommandSchema, pn as evaluateAst, pr as buildFfmpegArgs, pt as HelperSpecSchema, q as ARITHMETIC_OPS, qn as canonicalStoredDeviceType, qt as openStatistic, r as COMPOSITION_ITEM_ARRAY_PATH, rn as KWH_PER_WATT_MS, rt as EXPRESSION_OUTPUTS, s as CompositionBindingSchema, sn as createStatefulExpressionMemory, sr as canonicalHash, st as GridCellSpecSchema, t as implementedMethodsOf, tn as evaluateStatistic, tr as FFMPEG_PATH_ENV, tt as DerivativeHelperSpecSchema, u as CompositionContributedBySchema, un as toExpressionValue, ur as RESTREAM_INPUT_PROBE, ut as GroupHelperSpecSchema, v as CompositionForwardArgSchema, vn as EXPRESSION_COMPILE_CACHE_CAPACITY, vr as logBannerArgs, vt as NUMERIC_AGGREGATES, w as CompositionPassthroughFeatureSchema, wn as MAX_EXPRESSION_SOURCE_LENGTH, wt as isEngineHostedHelper, x as CompositionItemEntrySchema, xn as MAX_EXPRESSION_BINDINGS, xt as ThresholdHelperSpecSchema, y as CompositionForwardCommandSchema, yn as EXPRESSION_IDENTIFIER_RE, yr as pickVideoEncoder, yt as StatisticHelperSpecSchema, z as compositionSliceKey, zn as SOURCE_DEVICE_TYPES, zt as ROLLING_SPANS } from "./implemented-methods-BUBqZ2a0.mjs";
|
|
@@ -43582,6 +43582,31 @@ var BatteryStatusSchema = z.object({
|
|
|
43582
43582
|
*/
|
|
43583
43583
|
voltage: z.number().nullable().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
43584
43584
|
/**
|
|
43585
|
+
* What the CELL is doing, as opposed to {@link charging} (what it is powered
|
|
43586
|
+
* from). `'charging'` takes current, `'full'` is connected and topped up,
|
|
43587
|
+
* `'idle'` is a stopped cell the firmware reported as such (running on the
|
|
43588
|
+
* battery, or an adapter that is not feeding it).
|
|
43589
|
+
*
|
|
43590
|
+
* Absent or `'unknown'` is NOT an answer: the provider has not read the
|
|
43591
|
+
* charge fields. It must never be coerced to `'idle'` (D315) — a camera
|
|
43592
|
+
* nobody reached would be drawn "not charging". Consumers SKIP it.
|
|
43593
|
+
*/
|
|
43594
|
+
chargeState: z.enum([
|
|
43595
|
+
"charging",
|
|
43596
|
+
"full",
|
|
43597
|
+
"idle",
|
|
43598
|
+
"unknown"
|
|
43599
|
+
]).optional().meta({ label: "Charge state" }),
|
|
43600
|
+
/**
|
|
43601
|
+
* Battery current in milliamperes, as the firmware reports it (sign is the
|
|
43602
|
+
* firmware's). `null`/absent = not reported. Stored in mA, not the quantity
|
|
43603
|
+
* base (A), so it carries no reading quantity: a quantity would make the UI
|
|
43604
|
+
* convert and print it as amperes.
|
|
43605
|
+
*/
|
|
43606
|
+
currentMa: z.number().nullable().optional().meta(readingMeta("none", { label: "Current (mA)" })),
|
|
43607
|
+
/** Battery temperature in °C. `null`/absent = not reported. */
|
|
43608
|
+
temperatureC: z.number().nullable().optional().meta(readingMeta("temperature", { label: "Temperature" })),
|
|
43609
|
+
/**
|
|
43585
43610
|
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
43586
43611
|
* completed firmware round-trip, an observed wake, or an inbound push
|
|
43587
43612
|
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
@@ -43741,6 +43766,10 @@ onStatusChanged: {
|
|
|
43741
43766
|
voltage: {
|
|
43742
43767
|
kind: "gauge",
|
|
43743
43768
|
unit: "V"
|
|
43769
|
+
},
|
|
43770
|
+
temperatureC: {
|
|
43771
|
+
kind: "gauge",
|
|
43772
|
+
unit: "°C"
|
|
43744
43773
|
}
|
|
43745
43774
|
} },
|
|
43746
43775
|
customize: batteryCustomize,
|
|
@@ -43793,6 +43822,30 @@ onStatusChanged: {
|
|
|
43793
43822
|
}
|
|
43794
43823
|
],
|
|
43795
43824
|
icon: "battery-charging"
|
|
43825
|
+
},
|
|
43826
|
+
{
|
|
43827
|
+
kind: "enum",
|
|
43828
|
+
field: "chargeState",
|
|
43829
|
+
label: t("Charge state", "Stato di carica"),
|
|
43830
|
+
values: [
|
|
43831
|
+
{
|
|
43832
|
+
value: "charging",
|
|
43833
|
+
label: t("Charging", "In carica")
|
|
43834
|
+
},
|
|
43835
|
+
{
|
|
43836
|
+
value: "full",
|
|
43837
|
+
label: t("Full", "Carica completa")
|
|
43838
|
+
},
|
|
43839
|
+
{
|
|
43840
|
+
value: "idle",
|
|
43841
|
+
label: t("Not charging", "Non in carica")
|
|
43842
|
+
},
|
|
43843
|
+
{
|
|
43844
|
+
value: "unknown",
|
|
43845
|
+
label: t("Unknown", "Sconosciuto")
|
|
43846
|
+
}
|
|
43847
|
+
],
|
|
43848
|
+
icon: "battery-charging"
|
|
43796
43849
|
}
|
|
43797
43850
|
],
|
|
43798
43851
|
extraEvents: [{
|
|
@@ -50610,7 +50663,8 @@ var CAP_RUNTIME_FIELD_UNITS = {
|
|
|
50610
50663
|
"ambient-light-sensor": { illuminance: "lx" },
|
|
50611
50664
|
"battery": {
|
|
50612
50665
|
level: "%",
|
|
50613
|
-
voltage: "V"
|
|
50666
|
+
voltage: "V",
|
|
50667
|
+
temperatureC: "°C"
|
|
50614
50668
|
},
|
|
50615
50669
|
"humidity-sensor": { humidity: "%" },
|
|
50616
50670
|
"power-meter": {
|
|
@@ -51661,7 +51715,7 @@ function groupTemplate(id) {
|
|
|
51661
51715
|
//#region src/generated/history-catalog.ts
|
|
51662
51716
|
/**
|
|
51663
51717
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
51664
|
-
* 47 caps with series (
|
|
51718
|
+
* 47 caps with series (132 series), 40 caps answered `'none'`.
|
|
51665
51719
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
51666
51720
|
*/
|
|
51667
51721
|
var HISTORY_CATALOG = {
|
|
@@ -51723,6 +51777,10 @@ var HISTORY_CATALOG = {
|
|
|
51723
51777
|
"voltage": {
|
|
51724
51778
|
kind: "gauge",
|
|
51725
51779
|
unit: "V"
|
|
51780
|
+
},
|
|
51781
|
+
"temperatureC": {
|
|
51782
|
+
kind: "gauge",
|
|
51783
|
+
unit: "°C"
|
|
51726
51784
|
}
|
|
51727
51785
|
},
|
|
51728
51786
|
"binary": { "on": { kind: "boolean" } },
|
|
@@ -51877,6 +51935,12 @@ var HISTORY_CATALOG = {
|
|
|
51877
51935
|
deadband: .05,
|
|
51878
51936
|
displayName: "Stored energy"
|
|
51879
51937
|
},
|
|
51938
|
+
"storage.capacityKwh": {
|
|
51939
|
+
kind: "gauge",
|
|
51940
|
+
unit: "kWh",
|
|
51941
|
+
deadband: .1,
|
|
51942
|
+
displayName: "Storage capacity"
|
|
51943
|
+
},
|
|
51880
51944
|
"storage.powerW": {
|
|
51881
51945
|
group: "power-flow",
|
|
51882
51946
|
kind: "gauge",
|
|
@@ -62518,6 +62582,12 @@ var energySystemCapability = {
|
|
|
62518
62582
|
deadband: .05,
|
|
62519
62583
|
displayName: "Stored energy"
|
|
62520
62584
|
},
|
|
62585
|
+
"storage.capacityKwh": {
|
|
62586
|
+
kind: "gauge",
|
|
62587
|
+
unit: "kWh",
|
|
62588
|
+
deadband: .1,
|
|
62589
|
+
displayName: "Storage capacity"
|
|
62590
|
+
},
|
|
62521
62591
|
"storage.powerW": {
|
|
62522
62592
|
group: "power-flow",
|
|
62523
62593
|
kind: "gauge",
|
|
@@ -17552,6 +17552,45 @@ var CAP_VOCABULARY = {
|
|
|
17552
17552
|
}
|
|
17553
17553
|
],
|
|
17554
17554
|
icon: "battery-charging"
|
|
17555
|
+
},
|
|
17556
|
+
{
|
|
17557
|
+
kind: "enum",
|
|
17558
|
+
field: "chargeState",
|
|
17559
|
+
label: {
|
|
17560
|
+
en: "Charge state",
|
|
17561
|
+
it: "Stato di carica"
|
|
17562
|
+
},
|
|
17563
|
+
values: [
|
|
17564
|
+
{
|
|
17565
|
+
value: "charging",
|
|
17566
|
+
label: {
|
|
17567
|
+
en: "Charging",
|
|
17568
|
+
it: "In carica"
|
|
17569
|
+
}
|
|
17570
|
+
},
|
|
17571
|
+
{
|
|
17572
|
+
value: "full",
|
|
17573
|
+
label: {
|
|
17574
|
+
en: "Full",
|
|
17575
|
+
it: "Carica completa"
|
|
17576
|
+
}
|
|
17577
|
+
},
|
|
17578
|
+
{
|
|
17579
|
+
value: "idle",
|
|
17580
|
+
label: {
|
|
17581
|
+
en: "Not charging",
|
|
17582
|
+
it: "Non in carica"
|
|
17583
|
+
}
|
|
17584
|
+
},
|
|
17585
|
+
{
|
|
17586
|
+
value: "unknown",
|
|
17587
|
+
label: {
|
|
17588
|
+
en: "Unknown",
|
|
17589
|
+
it: "Sconosciuto"
|
|
17590
|
+
}
|
|
17591
|
+
}
|
|
17592
|
+
],
|
|
17593
|
+
icon: "battery-charging"
|
|
17555
17594
|
}
|
|
17556
17595
|
],
|
|
17557
17596
|
events: { onStatusChanged: { notOperatorFacing: "the level / sleeping / charging state triggers each read one field of this change" } },
|
|
@@ -19229,6 +19268,24 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
19229
19268
|
"path": "voltage",
|
|
19230
19269
|
"valueType": "number"
|
|
19231
19270
|
},
|
|
19271
|
+
{
|
|
19272
|
+
"path": "chargeState",
|
|
19273
|
+
"valueType": "enum",
|
|
19274
|
+
"enumValues": [
|
|
19275
|
+
"charging",
|
|
19276
|
+
"full",
|
|
19277
|
+
"idle",
|
|
19278
|
+
"unknown"
|
|
19279
|
+
]
|
|
19280
|
+
},
|
|
19281
|
+
{
|
|
19282
|
+
"path": "currentMa",
|
|
19283
|
+
"valueType": "number"
|
|
19284
|
+
},
|
|
19285
|
+
{
|
|
19286
|
+
"path": "temperatureC",
|
|
19287
|
+
"valueType": "number"
|
|
19288
|
+
},
|
|
19232
19289
|
{
|
|
19233
19290
|
"path": "lastContactAt",
|
|
19234
19291
|
"valueType": "number"
|
|
@@ -17552,6 +17552,45 @@ var CAP_VOCABULARY = {
|
|
|
17552
17552
|
}
|
|
17553
17553
|
],
|
|
17554
17554
|
icon: "battery-charging"
|
|
17555
|
+
},
|
|
17556
|
+
{
|
|
17557
|
+
kind: "enum",
|
|
17558
|
+
field: "chargeState",
|
|
17559
|
+
label: {
|
|
17560
|
+
en: "Charge state",
|
|
17561
|
+
it: "Stato di carica"
|
|
17562
|
+
},
|
|
17563
|
+
values: [
|
|
17564
|
+
{
|
|
17565
|
+
value: "charging",
|
|
17566
|
+
label: {
|
|
17567
|
+
en: "Charging",
|
|
17568
|
+
it: "In carica"
|
|
17569
|
+
}
|
|
17570
|
+
},
|
|
17571
|
+
{
|
|
17572
|
+
value: "full",
|
|
17573
|
+
label: {
|
|
17574
|
+
en: "Full",
|
|
17575
|
+
it: "Carica completa"
|
|
17576
|
+
}
|
|
17577
|
+
},
|
|
17578
|
+
{
|
|
17579
|
+
value: "idle",
|
|
17580
|
+
label: {
|
|
17581
|
+
en: "Not charging",
|
|
17582
|
+
it: "Non in carica"
|
|
17583
|
+
}
|
|
17584
|
+
},
|
|
17585
|
+
{
|
|
17586
|
+
value: "unknown",
|
|
17587
|
+
label: {
|
|
17588
|
+
en: "Unknown",
|
|
17589
|
+
it: "Sconosciuto"
|
|
17590
|
+
}
|
|
17591
|
+
}
|
|
17592
|
+
],
|
|
17593
|
+
icon: "battery-charging"
|
|
17555
17594
|
}
|
|
17556
17595
|
],
|
|
17557
17596
|
events: { onStatusChanged: { notOperatorFacing: "the level / sleeping / charging state triggers each read one field of this change" } },
|
|
@@ -19229,6 +19268,24 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
19229
19268
|
"path": "voltage",
|
|
19230
19269
|
"valueType": "number"
|
|
19231
19270
|
},
|
|
19271
|
+
{
|
|
19272
|
+
"path": "chargeState",
|
|
19273
|
+
"valueType": "enum",
|
|
19274
|
+
"enumValues": [
|
|
19275
|
+
"charging",
|
|
19276
|
+
"full",
|
|
19277
|
+
"idle",
|
|
19278
|
+
"unknown"
|
|
19279
|
+
]
|
|
19280
|
+
},
|
|
19281
|
+
{
|
|
19282
|
+
"path": "currentMa",
|
|
19283
|
+
"valueType": "number"
|
|
19284
|
+
},
|
|
19285
|
+
{
|
|
19286
|
+
"path": "temperatureC",
|
|
19287
|
+
"valueType": "number"
|
|
19288
|
+
},
|
|
19232
19289
|
{
|
|
19233
19290
|
"path": "lastContactAt",
|
|
19234
19291
|
"valueType": "number"
|