@camstack/addon-export-hap 1.2.183 → 1.2.184
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 +10 -1
- package/README.md +11 -9
- package/dist/hap-export.addon.js +437 -47
- package/dist/hap-export.addon.mjs +437 -47
- package/package.json +1 -1
|
@@ -5482,7 +5482,7 @@ var ZodIssueCode = {
|
|
|
5482
5482
|
var ZodFirstPartyTypeKind;
|
|
5483
5483
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5484
5484
|
//#endregion
|
|
5485
|
-
//#region ../types/dist/sleep
|
|
5485
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5486
5486
|
/**
|
|
5487
5487
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5488
5488
|
* window to float samples (D455).
|
|
@@ -8663,6 +8663,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8663
8663
|
"filesystem-browse",
|
|
8664
8664
|
"flood",
|
|
8665
8665
|
"gas",
|
|
8666
|
+
"group-active",
|
|
8666
8667
|
"group-commands",
|
|
8667
8668
|
"group-status",
|
|
8668
8669
|
"heating-valve",
|
|
@@ -8685,6 +8686,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8685
8686
|
"login-method",
|
|
8686
8687
|
"media-player",
|
|
8687
8688
|
"mesh-network",
|
|
8689
|
+
"meter",
|
|
8688
8690
|
"metrics-provider",
|
|
8689
8691
|
"model-convert",
|
|
8690
8692
|
"model-distributor",
|
|
@@ -9483,6 +9485,10 @@ Object.freeze({
|
|
|
9483
9485
|
"path": "detected",
|
|
9484
9486
|
"valueType": "boolean"
|
|
9485
9487
|
}],
|
|
9488
|
+
"group-active": [{
|
|
9489
|
+
"path": "active",
|
|
9490
|
+
"valueType": "boolean"
|
|
9491
|
+
}],
|
|
9486
9492
|
"group-status": [
|
|
9487
9493
|
{
|
|
9488
9494
|
"path": "included",
|
|
@@ -9742,6 +9748,10 @@ Object.freeze({
|
|
|
9742
9748
|
]
|
|
9743
9749
|
}
|
|
9744
9750
|
],
|
|
9751
|
+
"meter": [{
|
|
9752
|
+
"path": "value",
|
|
9753
|
+
"valueType": "number"
|
|
9754
|
+
}],
|
|
9745
9755
|
"motion": [
|
|
9746
9756
|
{
|
|
9747
9757
|
"path": "detected",
|
|
@@ -10844,7 +10854,7 @@ function errMsg$16(err) {
|
|
|
10844
10854
|
return String(err);
|
|
10845
10855
|
}
|
|
10846
10856
|
//#endregion
|
|
10847
|
-
//#region ../types/dist/composition-
|
|
10857
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
10848
10858
|
var AUDIO_ENCODER_BY_CODEC = {
|
|
10849
10859
|
opus: "libopus",
|
|
10850
10860
|
aac: "aac",
|
|
@@ -11754,6 +11764,13 @@ var table = {
|
|
|
11754
11764
|
apply: () => {
|
|
11755
11765
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11756
11766
|
}
|
|
11767
|
+
},
|
|
11768
|
+
schmitt: {
|
|
11769
|
+
minArgs: 3,
|
|
11770
|
+
maxArgs: 5,
|
|
11771
|
+
apply: () => {
|
|
11772
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11773
|
+
}
|
|
11757
11774
|
}
|
|
11758
11775
|
};
|
|
11759
11776
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -12215,6 +12232,79 @@ var APPLIANCE_KINDS = [
|
|
|
12215
12232
|
];
|
|
12216
12233
|
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
12217
12234
|
/**
|
|
12235
|
+
* Statistics and integrals over a history read (D944).
|
|
12236
|
+
*
|
|
12237
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
12238
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
12239
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
12240
|
+
* as zero. A truncated read is not published.
|
|
12241
|
+
*/
|
|
12242
|
+
var STATISTIC_STATS = [
|
|
12243
|
+
"min",
|
|
12244
|
+
"max",
|
|
12245
|
+
"mean",
|
|
12246
|
+
"sum",
|
|
12247
|
+
"count",
|
|
12248
|
+
"change"
|
|
12249
|
+
];
|
|
12250
|
+
/**
|
|
12251
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
12252
|
+
*
|
|
12253
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
12254
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
12255
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
12256
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
12257
|
+
*/
|
|
12258
|
+
var MINUTE_MS = 6e4;
|
|
12259
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
12260
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
12261
|
+
var ROLLING_SPANS = [
|
|
12262
|
+
"1h",
|
|
12263
|
+
"24h",
|
|
12264
|
+
"2d",
|
|
12265
|
+
"7d",
|
|
12266
|
+
"30d",
|
|
12267
|
+
"custom"
|
|
12268
|
+
];
|
|
12269
|
+
var CALENDAR_PERIODS = [
|
|
12270
|
+
"today",
|
|
12271
|
+
"yesterday",
|
|
12272
|
+
"this-week",
|
|
12273
|
+
"this-month"
|
|
12274
|
+
];
|
|
12275
|
+
var RESET_PERIODS = [
|
|
12276
|
+
"never",
|
|
12277
|
+
"daily",
|
|
12278
|
+
"weekly",
|
|
12279
|
+
"monthly"
|
|
12280
|
+
];
|
|
12281
|
+
5 * MINUTE_MS;
|
|
12282
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
12283
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
12284
|
+
var rollingWindowObject = object({
|
|
12285
|
+
kind: literal("rolling"),
|
|
12286
|
+
span: _enum(ROLLING_SPANS),
|
|
12287
|
+
customMinutes: number().int().min(5).optional()
|
|
12288
|
+
}).check((payload) => {
|
|
12289
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
12290
|
+
code: "custom",
|
|
12291
|
+
message: "a custom range needs a duration in minutes",
|
|
12292
|
+
path: ["customMinutes"],
|
|
12293
|
+
input: payload.value
|
|
12294
|
+
});
|
|
12295
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
12296
|
+
code: "custom",
|
|
12297
|
+
message: "only a custom range carries a duration",
|
|
12298
|
+
path: ["customMinutes"],
|
|
12299
|
+
input: payload.value
|
|
12300
|
+
});
|
|
12301
|
+
});
|
|
12302
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
12303
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
12304
|
+
kind: literal("calendar"),
|
|
12305
|
+
period: _enum(CALENDAR_PERIODS)
|
|
12306
|
+
})]);
|
|
12307
|
+
/**
|
|
12218
12308
|
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
12219
12309
|
* id. Split out so helper schemas can name it without a cycle through
|
|
12220
12310
|
* `composition.ts` (D659).
|
|
@@ -12240,7 +12330,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
12240
12330
|
"occupancy",
|
|
12241
12331
|
"binary",
|
|
12242
12332
|
"switch",
|
|
12243
|
-
"light"
|
|
12333
|
+
"light",
|
|
12334
|
+
"fan",
|
|
12335
|
+
"cover",
|
|
12336
|
+
"valve",
|
|
12337
|
+
"lock",
|
|
12338
|
+
"media-player",
|
|
12339
|
+
"climate"
|
|
12244
12340
|
];
|
|
12245
12341
|
var NUMERIC_AGGREGATES = [
|
|
12246
12342
|
"mean",
|
|
@@ -12270,22 +12366,73 @@ var HelperMemberSchema = object({
|
|
|
12270
12366
|
cap: string().min(1),
|
|
12271
12367
|
fieldPath: string().min(1)
|
|
12272
12368
|
});
|
|
12273
|
-
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
|
|
12277
|
-
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12369
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
12370
|
+
object({
|
|
12371
|
+
kind: literal("group"),
|
|
12372
|
+
templateId: GroupTemplateIdSchema,
|
|
12373
|
+
aggregate: AggregateReducerSchema,
|
|
12374
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
12375
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
12376
|
+
active: ActiveCriterionSchema.optional()
|
|
12377
|
+
}),
|
|
12378
|
+
object({
|
|
12379
|
+
kind: literal("appliance"),
|
|
12380
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
12381
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
12382
|
+
thresholdWatts: number().positive(),
|
|
12383
|
+
startDwellMs: number().int().nonnegative(),
|
|
12384
|
+
stopDwellMs: number().int().nonnegative(),
|
|
12385
|
+
member: HelperMemberSchema
|
|
12386
|
+
}),
|
|
12387
|
+
object({
|
|
12388
|
+
kind: literal("statistic"),
|
|
12389
|
+
stat: _enum(STATISTIC_STATS),
|
|
12390
|
+
window: StatisticWindowSchema,
|
|
12391
|
+
source: HelperMemberSchema
|
|
12392
|
+
}),
|
|
12393
|
+
object({
|
|
12394
|
+
kind: literal("integral"),
|
|
12395
|
+
reset: _enum(RESET_PERIODS),
|
|
12396
|
+
output: _enum(["energy", "meter"]),
|
|
12397
|
+
source: HelperMemberSchema
|
|
12398
|
+
}),
|
|
12399
|
+
object({
|
|
12400
|
+
kind: literal("threshold"),
|
|
12401
|
+
source: HelperMemberSchema,
|
|
12402
|
+
high: number(),
|
|
12403
|
+
low: number(),
|
|
12404
|
+
onForMs: number().int().nonnegative(),
|
|
12405
|
+
offForMs: number().int().nonnegative()
|
|
12406
|
+
}),
|
|
12407
|
+
object({
|
|
12408
|
+
kind: literal("arithmetic"),
|
|
12409
|
+
op: _enum([
|
|
12410
|
+
"sum",
|
|
12411
|
+
"difference",
|
|
12412
|
+
"ratio"
|
|
12413
|
+
]),
|
|
12414
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
12415
|
+
}),
|
|
12416
|
+
object({
|
|
12417
|
+
kind: literal("expression"),
|
|
12418
|
+
expr: string().min(1),
|
|
12419
|
+
inputs: array(object({
|
|
12420
|
+
name: string().min(1),
|
|
12421
|
+
member: HelperMemberSchema
|
|
12422
|
+
})).min(1).max(64),
|
|
12423
|
+
output: _enum(["number", "boolean"])
|
|
12424
|
+
}),
|
|
12425
|
+
object({
|
|
12426
|
+
kind: literal("derivative"),
|
|
12427
|
+
window: RollingWindowSchema,
|
|
12428
|
+
per: _enum([
|
|
12429
|
+
"second",
|
|
12430
|
+
"minute",
|
|
12431
|
+
"hour"
|
|
12432
|
+
]),
|
|
12433
|
+
source: HelperMemberSchema
|
|
12434
|
+
})
|
|
12435
|
+
]);
|
|
12289
12436
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
12290
12437
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
12291
12438
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
@@ -12346,6 +12493,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
12346
12493
|
"all"
|
|
12347
12494
|
]),
|
|
12348
12495
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
12496
|
+
/**
|
|
12497
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
12498
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
12499
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
12500
|
+
*/
|
|
12501
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
12349
12502
|
/** `value` is the reading; the others are the member counts. */
|
|
12350
12503
|
publish: _enum([
|
|
12351
12504
|
"value",
|
|
@@ -12359,6 +12512,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
12359
12512
|
"omit",
|
|
12360
12513
|
"offline"
|
|
12361
12514
|
])
|
|
12515
|
+
}),
|
|
12516
|
+
object({
|
|
12517
|
+
kind: literal("series"),
|
|
12518
|
+
read: CompositionFieldReadSchema,
|
|
12519
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
12520
|
+
publish: _enum([
|
|
12521
|
+
"value",
|
|
12522
|
+
"included",
|
|
12523
|
+
"excluded",
|
|
12524
|
+
"total"
|
|
12525
|
+
]),
|
|
12526
|
+
/**
|
|
12527
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
12528
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
12529
|
+
*/
|
|
12530
|
+
empty: _enum([
|
|
12531
|
+
"null",
|
|
12532
|
+
"omit",
|
|
12533
|
+
"offline"
|
|
12534
|
+
])
|
|
12362
12535
|
})
|
|
12363
12536
|
]);
|
|
12364
12537
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
@@ -17742,7 +17915,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
17742
17915
|
*/
|
|
17743
17916
|
interactiveConnectPath: string().min(1).optional(),
|
|
17744
17917
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
17745
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17918
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17919
|
+
/**
|
|
17920
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17921
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17922
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17923
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17924
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17925
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17926
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17927
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17928
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17929
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17930
|
+
* offers it as the default path; the fields the session fills are
|
|
17931
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17932
|
+
*/
|
|
17933
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
17746
17934
|
}))
|
|
17747
17935
|
});
|
|
17748
17936
|
var ListInputSchema = object({
|
|
@@ -18741,7 +18929,8 @@ var CompositionProblemSchema = object({
|
|
|
18741
18929
|
"native-capability-replace",
|
|
18742
18930
|
"mixed-quantity",
|
|
18743
18931
|
"helper-mismatch",
|
|
18744
|
-
"member-constraint"
|
|
18932
|
+
"member-constraint",
|
|
18933
|
+
"retention"
|
|
18745
18934
|
]),
|
|
18746
18935
|
path: string(),
|
|
18747
18936
|
message: string()
|
|
@@ -18975,13 +19164,17 @@ Object.freeze({
|
|
|
18975
19164
|
latchedAt: {
|
|
18976
19165
|
kind: "fixed",
|
|
18977
19166
|
result: ["number", "null"]
|
|
19167
|
+
},
|
|
19168
|
+
schmitt: {
|
|
19169
|
+
kind: "fixed",
|
|
19170
|
+
result: ["boolean", "null"]
|
|
18978
19171
|
}
|
|
18979
19172
|
});
|
|
18980
19173
|
/**
|
|
18981
19174
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18982
19175
|
* Data, not a form default written into the block.
|
|
18983
19176
|
*/
|
|
18984
|
-
var NOW = {
|
|
19177
|
+
var NOW$2 = {
|
|
18985
19178
|
fieldPath: "lastFetchedAt",
|
|
18986
19179
|
expr: "now"
|
|
18987
19180
|
};
|
|
@@ -18995,6 +19188,8 @@ function numeric(input) {
|
|
|
18995
19188
|
family: "numeric",
|
|
18996
19189
|
deviceType: DeviceType.Sensor,
|
|
18997
19190
|
memberDeviceType: DeviceType.Sensor,
|
|
19191
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
19192
|
+
activeWhen: void 0,
|
|
18998
19193
|
commandCaps: [],
|
|
18999
19194
|
baseUnit: baseUnitOf(input.quantity),
|
|
19000
19195
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -19010,6 +19205,8 @@ function binary(input) {
|
|
|
19010
19205
|
family: "binary",
|
|
19011
19206
|
deviceType: DeviceType.Sensor,
|
|
19012
19207
|
memberDeviceType: DeviceType.Sensor,
|
|
19208
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
19209
|
+
activeWhen: void 0,
|
|
19013
19210
|
commandCaps: [],
|
|
19014
19211
|
quantity: "none",
|
|
19015
19212
|
baseUnit: void 0,
|
|
@@ -19027,7 +19224,7 @@ var GROUP_TEMPLATES = [
|
|
|
19027
19224
|
quantity: "temperature",
|
|
19028
19225
|
defaultAggregate: "mean",
|
|
19029
19226
|
empty: "null",
|
|
19030
|
-
companions: [NOW]
|
|
19227
|
+
companions: [NOW$2]
|
|
19031
19228
|
}),
|
|
19032
19229
|
numeric({
|
|
19033
19230
|
id: "humidity",
|
|
@@ -19038,7 +19235,7 @@ var GROUP_TEMPLATES = [
|
|
|
19038
19235
|
quantity: "humidity",
|
|
19039
19236
|
defaultAggregate: "mean",
|
|
19040
19237
|
empty: "null",
|
|
19041
|
-
companions: [NOW]
|
|
19238
|
+
companions: [NOW$2]
|
|
19042
19239
|
}),
|
|
19043
19240
|
numeric({
|
|
19044
19241
|
id: "pressure",
|
|
@@ -19049,7 +19246,7 @@ var GROUP_TEMPLATES = [
|
|
|
19049
19246
|
quantity: "pressure",
|
|
19050
19247
|
defaultAggregate: "mean",
|
|
19051
19248
|
empty: "null",
|
|
19052
|
-
companions: [NOW]
|
|
19249
|
+
companions: [NOW$2]
|
|
19053
19250
|
}),
|
|
19054
19251
|
numeric({
|
|
19055
19252
|
id: "illuminance",
|
|
@@ -19060,7 +19257,7 @@ var GROUP_TEMPLATES = [
|
|
|
19060
19257
|
quantity: "illuminance",
|
|
19061
19258
|
defaultAggregate: "mean",
|
|
19062
19259
|
empty: "null",
|
|
19063
|
-
companions: [NOW]
|
|
19260
|
+
companions: [NOW$2]
|
|
19064
19261
|
}),
|
|
19065
19262
|
numeric({
|
|
19066
19263
|
id: "power",
|
|
@@ -19071,7 +19268,7 @@ var GROUP_TEMPLATES = [
|
|
|
19071
19268
|
quantity: "power",
|
|
19072
19269
|
defaultAggregate: "sum",
|
|
19073
19270
|
empty: "omit",
|
|
19074
|
-
companions: [NOW]
|
|
19271
|
+
companions: [NOW$2]
|
|
19075
19272
|
}),
|
|
19076
19273
|
numeric({
|
|
19077
19274
|
id: "energy",
|
|
@@ -19082,7 +19279,7 @@ var GROUP_TEMPLATES = [
|
|
|
19082
19279
|
quantity: "energy",
|
|
19083
19280
|
defaultAggregate: "sum",
|
|
19084
19281
|
empty: "omit",
|
|
19085
|
-
companions: [NOW]
|
|
19282
|
+
companions: [NOW$2]
|
|
19086
19283
|
}),
|
|
19087
19284
|
numeric({
|
|
19088
19285
|
id: "battery",
|
|
@@ -19117,7 +19314,7 @@ var GROUP_TEMPLATES = [
|
|
|
19117
19314
|
quantity: "device",
|
|
19118
19315
|
defaultAggregate: "mean",
|
|
19119
19316
|
empty: "null",
|
|
19120
|
-
companions: [NOW]
|
|
19317
|
+
companions: [NOW$2]
|
|
19121
19318
|
}),
|
|
19122
19319
|
binary({
|
|
19123
19320
|
id: "motion",
|
|
@@ -19211,6 +19408,11 @@ var GROUP_TEMPLATES = [
|
|
|
19211
19408
|
summary: "On when at least one switch is on, or when all of them are. Offline and unknown members are left out of that decision, never read as off, and still receive the command.",
|
|
19212
19409
|
deviceType: DeviceType.Switch,
|
|
19213
19410
|
outputCap: "switch",
|
|
19411
|
+
outputField: "on",
|
|
19412
|
+
member: {
|
|
19413
|
+
cap: "switch",
|
|
19414
|
+
fieldPath: "on"
|
|
19415
|
+
},
|
|
19214
19416
|
commandCaps: ["switch"]
|
|
19215
19417
|
}),
|
|
19216
19418
|
actuator({
|
|
@@ -19218,34 +19420,136 @@ var GROUP_TEMPLATES = [
|
|
|
19218
19420
|
summary: "On when at least one light is on, or when all of them are. Brightness and colour are offered only when every member has them. A command is not sent to a member that lacks it.",
|
|
19219
19421
|
deviceType: DeviceType.Light,
|
|
19220
19422
|
outputCap: "switch",
|
|
19423
|
+
outputField: "on",
|
|
19424
|
+
member: {
|
|
19425
|
+
cap: "switch",
|
|
19426
|
+
fieldPath: "on"
|
|
19427
|
+
},
|
|
19221
19428
|
commandCaps: [
|
|
19222
19429
|
"switch",
|
|
19223
19430
|
"brightness",
|
|
19224
19431
|
"color"
|
|
19225
19432
|
]
|
|
19433
|
+
}),
|
|
19434
|
+
actuator({
|
|
19435
|
+
id: "fan",
|
|
19436
|
+
summary: "On when at least one fan is on, or when all of them are. Speed, preset, direction and oscillation are offered only when every fan has them. A command is not sent to a fan that lacks it.",
|
|
19437
|
+
deviceType: DeviceType.Fan,
|
|
19438
|
+
outputCap: "switch",
|
|
19439
|
+
outputField: "on",
|
|
19440
|
+
member: {
|
|
19441
|
+
cap: "switch",
|
|
19442
|
+
fieldPath: "on"
|
|
19443
|
+
},
|
|
19444
|
+
commandCaps: ["switch", "fan-control"]
|
|
19445
|
+
}),
|
|
19446
|
+
actuator({
|
|
19447
|
+
id: "cover",
|
|
19448
|
+
summary: "Open when at least one cover is open or part-open, or only when all of them are. Position and tilt are offered only when every cover has them. A cover that reports nothing is left out, never read as closed.",
|
|
19449
|
+
deviceType: DeviceType.Cover,
|
|
19450
|
+
outputCap: "group-active",
|
|
19451
|
+
outputField: "active",
|
|
19452
|
+
member: {
|
|
19453
|
+
cap: "cover",
|
|
19454
|
+
fieldPath: "state"
|
|
19455
|
+
},
|
|
19456
|
+
activeWhen: [
|
|
19457
|
+
"open",
|
|
19458
|
+
"opening",
|
|
19459
|
+
"stopped"
|
|
19460
|
+
],
|
|
19461
|
+
commandCaps: ["cover"]
|
|
19462
|
+
}),
|
|
19463
|
+
actuator({
|
|
19464
|
+
id: "valve",
|
|
19465
|
+
summary: "Open when at least one valve is open or part-open, or only when all of them are. Position is offered only when every valve has it. A valve that reports nothing is left out, never read as closed.",
|
|
19466
|
+
deviceType: DeviceType.Valve,
|
|
19467
|
+
outputCap: "group-active",
|
|
19468
|
+
outputField: "active",
|
|
19469
|
+
member: {
|
|
19470
|
+
cap: "valve",
|
|
19471
|
+
fieldPath: "state"
|
|
19472
|
+
},
|
|
19473
|
+
activeWhen: [
|
|
19474
|
+
"open",
|
|
19475
|
+
"opening",
|
|
19476
|
+
"stopped"
|
|
19477
|
+
],
|
|
19478
|
+
commandCaps: ["valve"]
|
|
19479
|
+
}),
|
|
19480
|
+
actuator({
|
|
19481
|
+
id: "lock",
|
|
19482
|
+
summary: "Locked when at least one lock is locked, or only when all of them are. A jammed or moving lock is not locked. Locking is one tap; unlocking the group needs a confirmation every time, and nothing is sent without it.",
|
|
19483
|
+
deviceType: DeviceType.Lock,
|
|
19484
|
+
outputCap: "group-active",
|
|
19485
|
+
outputField: "active",
|
|
19486
|
+
member: {
|
|
19487
|
+
cap: "lock-control",
|
|
19488
|
+
fieldPath: "state"
|
|
19489
|
+
},
|
|
19490
|
+
activeWhen: ["locked"],
|
|
19491
|
+
commandCaps: ["lock-control"]
|
|
19492
|
+
}),
|
|
19493
|
+
actuator({
|
|
19494
|
+
id: "media-player",
|
|
19495
|
+
summary: "Playing when at least one player is playing, or only when all of them are. Volume is offered only when every player has it. A player that reports nothing is left out, never read as stopped.",
|
|
19496
|
+
deviceType: DeviceType.MediaPlayer,
|
|
19497
|
+
outputCap: "group-active",
|
|
19498
|
+
outputField: "active",
|
|
19499
|
+
member: {
|
|
19500
|
+
cap: "media-player",
|
|
19501
|
+
fieldPath: "state"
|
|
19502
|
+
},
|
|
19503
|
+
activeWhen: ["playing", "buffering"],
|
|
19504
|
+
commandCaps: ["media-player"]
|
|
19505
|
+
}),
|
|
19506
|
+
actuator({
|
|
19507
|
+
id: "climate",
|
|
19508
|
+
summary: "Running when at least one thermostat or air conditioner is not off, or only when all of them are. Target temperature and fan are offered only when every device has them. A device that reports nothing is left out, never read as off.",
|
|
19509
|
+
deviceType: DeviceType.Thermostat,
|
|
19510
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
19511
|
+
outputCap: "group-active",
|
|
19512
|
+
outputField: "active",
|
|
19513
|
+
member: {
|
|
19514
|
+
cap: "climate-control",
|
|
19515
|
+
fieldPath: "mode"
|
|
19516
|
+
},
|
|
19517
|
+
activeWhen: [
|
|
19518
|
+
"heat",
|
|
19519
|
+
"cool",
|
|
19520
|
+
"auto",
|
|
19521
|
+
"heat_cool",
|
|
19522
|
+
"fan_only",
|
|
19523
|
+
"dry"
|
|
19524
|
+
],
|
|
19525
|
+
commandCaps: ["climate-control"]
|
|
19226
19526
|
})
|
|
19227
19527
|
];
|
|
19228
19528
|
function actuator(input) {
|
|
19229
19529
|
return {
|
|
19230
|
-
|
|
19530
|
+
id: input.id,
|
|
19531
|
+
summary: input.summary,
|
|
19532
|
+
deviceType: input.deviceType,
|
|
19533
|
+
outputCap: input.outputCap,
|
|
19534
|
+
outputField: input.outputField,
|
|
19535
|
+
commandCaps: input.commandCaps,
|
|
19231
19536
|
family: "actuator",
|
|
19232
19537
|
role: void 0,
|
|
19233
19538
|
memberDeviceType: input.deviceType,
|
|
19234
|
-
|
|
19539
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
19540
|
+
activeWhen: input.activeWhen,
|
|
19235
19541
|
quantity: "none",
|
|
19236
19542
|
baseUnit: void 0,
|
|
19237
19543
|
aggregates: BINARY_AGGREGATES,
|
|
19238
19544
|
defaultAggregate: "any",
|
|
19239
19545
|
empty: "offline",
|
|
19240
|
-
accept: [
|
|
19241
|
-
cap: "switch",
|
|
19242
|
-
fieldPath: "on"
|
|
19243
|
-
}],
|
|
19546
|
+
accept: [input.member],
|
|
19244
19547
|
companions: [CHANGED]
|
|
19245
19548
|
};
|
|
19246
19549
|
}
|
|
19247
19550
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
19248
19551
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
19552
|
+
DeviceType.Camera;
|
|
19249
19553
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
19250
19554
|
/**
|
|
19251
19555
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -44341,7 +44645,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
44341
44645
|
});
|
|
44342
44646
|
/**
|
|
44343
44647
|
* Optional, richer endpoint shape returned by providers that expose
|
|
44344
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44648
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
44345
44649
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
44346
44650
|
* the originating provider config (mode + sourcePort) so the
|
|
44347
44651
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -46984,7 +47288,20 @@ var NcRuleInputSchema = object({
|
|
|
46984
47288
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46985
47289
|
* path does not run Zod defaults.
|
|
46986
47290
|
*/
|
|
46987
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
47291
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
47292
|
+
/**
|
|
47293
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
47294
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
47295
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
47296
|
+
* same mark the Library writes, and records whose notification it was and
|
|
47297
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
47298
|
+
*
|
|
47299
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
47300
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
47301
|
+
* authored before this field meant. An editor turns it off by writing
|
|
47302
|
+
* `false`, so it needs no `clear` key.
|
|
47303
|
+
*/
|
|
47304
|
+
askVerdict: boolean().optional()
|
|
46988
47305
|
});
|
|
46989
47306
|
/**
|
|
46990
47307
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -57638,7 +57955,7 @@ var BatteryStatusSchema = object({
|
|
|
57638
57955
|
*/
|
|
57639
57956
|
binary: boolean().optional().meta({ label: "Binary indicator" })
|
|
57640
57957
|
});
|
|
57641
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat;
|
|
57958
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter;
|
|
57642
57959
|
method(object({
|
|
57643
57960
|
deviceId: number(),
|
|
57644
57961
|
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
@@ -59406,7 +59723,13 @@ results: array(object({
|
|
|
59406
59723
|
/** Ms epoch of the attempt. */
|
|
59407
59724
|
at: number()
|
|
59408
59725
|
})) });
|
|
59409
|
-
DeviceType.Switch, DeviceType.Light;
|
|
59726
|
+
DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
|
|
59727
|
+
object({
|
|
59728
|
+
active: boolean().meta({ label: "Active" }),
|
|
59729
|
+
/** Ms epoch when the slice was last updated. */
|
|
59730
|
+
lastChangedAt: number()
|
|
59731
|
+
});
|
|
59732
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Climate, DeviceType.Thermostat;
|
|
59410
59733
|
object({
|
|
59411
59734
|
/** Members whose current value entered the aggregate. */
|
|
59412
59735
|
included: number().int().nonnegative().meta(readingMeta("count", {
|
|
@@ -59424,7 +59747,7 @@ object({
|
|
|
59424
59747
|
label: "Members"
|
|
59425
59748
|
}))
|
|
59426
59749
|
});
|
|
59427
|
-
DeviceType.Sensor, DeviceType.Switch, DeviceType.Light;
|
|
59750
|
+
DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
|
|
59428
59751
|
object({
|
|
59429
59752
|
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
59430
59753
|
position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
|
|
@@ -60339,7 +60662,14 @@ DeviceType.Lock, method(object({
|
|
|
60339
60662
|
auth: "protected"
|
|
60340
60663
|
}), method(object({
|
|
60341
60664
|
deviceId: number().int().nonnegative(),
|
|
60342
|
-
code: string().min(1).optional()
|
|
60665
|
+
code: string().min(1).optional(),
|
|
60666
|
+
/**
|
|
60667
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
60668
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
60669
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
60670
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
60671
|
+
*/
|
|
60672
|
+
confirm: boolean().optional()
|
|
60343
60673
|
}), _void(), {
|
|
60344
60674
|
kind: "mutation",
|
|
60345
60675
|
auth: "protected"
|
|
@@ -60347,6 +60677,11 @@ DeviceType.Lock, method(object({
|
|
|
60347
60677
|
kind: "mutation",
|
|
60348
60678
|
auth: "protected"
|
|
60349
60679
|
});
|
|
60680
|
+
object({
|
|
60681
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
60682
|
+
lastFetchedAt: number()
|
|
60683
|
+
});
|
|
60684
|
+
DeviceType.Sensor;
|
|
60350
60685
|
/**
|
|
60351
60686
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
60352
60687
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
@@ -62254,9 +62589,9 @@ object({
|
|
|
62254
62589
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
62255
62590
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
62256
62591
|
/** Voltage in volts. */
|
|
62257
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
62592
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
62258
62593
|
/** Current in amperes. */
|
|
62259
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
62594
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
62260
62595
|
/** Apparent power in volt-amperes. */
|
|
62261
62596
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
62262
62597
|
/** Power factor (0..1) if reported. */
|
|
@@ -62264,7 +62599,23 @@ object({
|
|
|
62264
62599
|
/** Ms epoch when the slice was last updated. */
|
|
62265
62600
|
lastFetchedAt: number()
|
|
62266
62601
|
});
|
|
62267
|
-
|
|
62602
|
+
[
|
|
62603
|
+
DeviceType.Sensor,
|
|
62604
|
+
DeviceType.Switch,
|
|
62605
|
+
DeviceType.Light,
|
|
62606
|
+
DeviceType.Fan,
|
|
62607
|
+
DeviceType.Climate,
|
|
62608
|
+
DeviceType.Thermostat,
|
|
62609
|
+
DeviceType.Humidifier,
|
|
62610
|
+
DeviceType.WaterHeater,
|
|
62611
|
+
DeviceType.MediaPlayer,
|
|
62612
|
+
DeviceType.Washer,
|
|
62613
|
+
DeviceType.Dryer,
|
|
62614
|
+
DeviceType.Dishwasher,
|
|
62615
|
+
DeviceType.Vacuum,
|
|
62616
|
+
DeviceType.LawnMower,
|
|
62617
|
+
DeviceType.PetFeeder
|
|
62618
|
+
].filter((type) => type !== DeviceType.Sensor);
|
|
62268
62619
|
/**
|
|
62269
62620
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
62270
62621
|
* on `DeviceType.Presence`. Read-only — no setters: presence is
|
|
@@ -64759,7 +65110,7 @@ object({
|
|
|
64759
65110
|
/** Ms epoch of the last state change. Useful for UI "X minutes ago". */
|
|
64760
65111
|
lastChangedAt: number()
|
|
64761
65112
|
});
|
|
64762
|
-
DeviceType.Switch, DeviceType.Siren, DeviceType.Light, method(object({
|
|
65113
|
+
DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(object({
|
|
64763
65114
|
deviceId: number(),
|
|
64764
65115
|
on: boolean()
|
|
64765
65116
|
}), _void(), {
|
|
@@ -66463,8 +66814,9 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
66463
66814
|
kind: "mutation",
|
|
66464
66815
|
auth: "admin"
|
|
66465
66816
|
});
|
|
66817
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
66466
66818
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
66467
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Camera, DeviceType.Camera, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
66819
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Camera, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
66468
66820
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
66469
66821
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
66470
66822
|
new Set(CAP_NAMES);
|
|
@@ -69740,6 +70092,13 @@ Object.freeze({
|
|
|
69740
70092
|
access: "view",
|
|
69741
70093
|
role: "viewer"
|
|
69742
70094
|
},
|
|
70095
|
+
"groupActive.getStatus": {
|
|
70096
|
+
capName: "group-active",
|
|
70097
|
+
capScope: "device",
|
|
70098
|
+
addonId: null,
|
|
70099
|
+
access: "view",
|
|
70100
|
+
role: "viewer"
|
|
70101
|
+
},
|
|
69743
70102
|
"groupCommands.getStatus": {
|
|
69744
70103
|
capName: "group-commands",
|
|
69745
70104
|
capScope: "device",
|
|
@@ -70706,6 +71065,13 @@ Object.freeze({
|
|
|
70706
71065
|
access: "create",
|
|
70707
71066
|
role: "admin"
|
|
70708
71067
|
},
|
|
71068
|
+
"meter.getStatus": {
|
|
71069
|
+
capName: "meter",
|
|
71070
|
+
capScope: "device",
|
|
71071
|
+
addonId: null,
|
|
71072
|
+
access: "view",
|
|
71073
|
+
role: "viewer"
|
|
71074
|
+
},
|
|
70709
71075
|
"metricsProvider.collectSnapshot": {
|
|
70710
71076
|
capName: "metrics-provider",
|
|
70711
71077
|
capScope: "system",
|
|
@@ -79608,6 +79974,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
79608
79974
|
icon: "flame"
|
|
79609
79975
|
}]
|
|
79610
79976
|
},
|
|
79977
|
+
"group-active": {
|
|
79978
|
+
scope: "device",
|
|
79979
|
+
noun: t("Group state", "Stato del gruppo")
|
|
79980
|
+
},
|
|
79611
79981
|
"group-commands": {
|
|
79612
79982
|
scope: "device",
|
|
79613
79983
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -79664,6 +80034,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
79664
80034
|
}],
|
|
79665
80035
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
79666
80036
|
},
|
|
80037
|
+
meter: {
|
|
80038
|
+
scope: "device",
|
|
80039
|
+
noun: t("Meter", "Contatore"),
|
|
80040
|
+
state: [{
|
|
80041
|
+
kind: "numeric",
|
|
80042
|
+
field: "value",
|
|
80043
|
+
quantity: t("the total", "il totale"),
|
|
80044
|
+
label: t("Total", "Totale"),
|
|
80045
|
+
icon: "gauge"
|
|
80046
|
+
}]
|
|
80047
|
+
},
|
|
79667
80048
|
"numeric-sensor": {
|
|
79668
80049
|
scope: "device",
|
|
79669
80050
|
noun: t("Sensor", "Sensore"),
|
|
@@ -81168,6 +81549,11 @@ Object.freeze({
|
|
|
81168
81549
|
form: "single",
|
|
81169
81550
|
optional: false
|
|
81170
81551
|
}],
|
|
81552
|
+
"groupActive.getStatus": [{
|
|
81553
|
+
name: "deviceId",
|
|
81554
|
+
form: "single",
|
|
81555
|
+
optional: false
|
|
81556
|
+
}],
|
|
81171
81557
|
"groupCommands.getStatus": [{
|
|
81172
81558
|
name: "deviceId",
|
|
81173
81559
|
form: "single",
|
|
@@ -81378,6 +81764,11 @@ Object.freeze({
|
|
|
81378
81764
|
form: "single",
|
|
81379
81765
|
optional: false
|
|
81380
81766
|
}],
|
|
81767
|
+
"meter.getStatus": [{
|
|
81768
|
+
name: "deviceId",
|
|
81769
|
+
form: "single",
|
|
81770
|
+
optional: false
|
|
81771
|
+
}],
|
|
81381
81772
|
"motion.getStatus": [{
|
|
81382
81773
|
name: "deviceId",
|
|
81383
81774
|
form: "single",
|
|
@@ -82985,7 +83376,6 @@ Object.freeze({
|
|
|
82985
83376
|
"network-access": "ingress",
|
|
82986
83377
|
"smtp-provider": "email"
|
|
82987
83378
|
});
|
|
82988
|
-
DeviceType.Camera;
|
|
82989
83379
|
/**
|
|
82990
83380
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
82991
83381
|
* `z.infer`, they do not restate the shape.
|