@camstack/addon-provider-unifi 0.2.148 → 0.2.149
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 +15 -8
- package/dist/addon.js +680 -45
- package/dist/addon.mjs +680 -45
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5442,7 +5442,7 @@ var ZodIssueCode = {
|
|
|
5442
5442
|
var ZodFirstPartyTypeKind;
|
|
5443
5443
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5444
5444
|
//#endregion
|
|
5445
|
-
//#region ../types/dist/sleep
|
|
5445
|
+
//#region ../types/dist/sleep--jXS9hWo.mjs
|
|
5446
5446
|
/**
|
|
5447
5447
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5448
5448
|
* window to float samples (D455).
|
|
@@ -8635,6 +8635,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8635
8635
|
"filesystem-browse",
|
|
8636
8636
|
"flood",
|
|
8637
8637
|
"gas",
|
|
8638
|
+
"group-active",
|
|
8638
8639
|
"group-commands",
|
|
8639
8640
|
"group-status",
|
|
8640
8641
|
"heating-valve",
|
|
@@ -8657,6 +8658,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
8657
8658
|
"login-method",
|
|
8658
8659
|
"media-player",
|
|
8659
8660
|
"mesh-network",
|
|
8661
|
+
"meter",
|
|
8660
8662
|
"metrics-provider",
|
|
8661
8663
|
"model-convert",
|
|
8662
8664
|
"model-distributor",
|
|
@@ -9455,6 +9457,10 @@ Object.freeze({
|
|
|
9455
9457
|
"path": "detected",
|
|
9456
9458
|
"valueType": "boolean"
|
|
9457
9459
|
}],
|
|
9460
|
+
"group-active": [{
|
|
9461
|
+
"path": "active",
|
|
9462
|
+
"valueType": "boolean"
|
|
9463
|
+
}],
|
|
9458
9464
|
"group-status": [
|
|
9459
9465
|
{
|
|
9460
9466
|
"path": "included",
|
|
@@ -9714,6 +9720,10 @@ Object.freeze({
|
|
|
9714
9720
|
]
|
|
9715
9721
|
}
|
|
9716
9722
|
],
|
|
9723
|
+
"meter": [{
|
|
9724
|
+
"path": "value",
|
|
9725
|
+
"valueType": "number"
|
|
9726
|
+
}],
|
|
9717
9727
|
"motion": [
|
|
9718
9728
|
{
|
|
9719
9729
|
"path": "detected",
|
|
@@ -10471,7 +10481,7 @@ function userError(code, params, englishFallback) {
|
|
|
10471
10481
|
return new CamstackError(code, params, englishFallback);
|
|
10472
10482
|
}
|
|
10473
10483
|
//#endregion
|
|
10474
|
-
//#region ../types/dist/err-msg-
|
|
10484
|
+
//#region ../types/dist/err-msg-DIorGYeC.mjs
|
|
10475
10485
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10476
10486
|
DeviceType["Camera"] = "camera";
|
|
10477
10487
|
DeviceType["Hub"] = "hub";
|
|
@@ -10565,8 +10575,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
10565
10575
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
10566
10576
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
10567
10577
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
10568
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10578
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
10579
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
10569
10580
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
10581
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
10582
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
10583
|
+
DeviceType["Washer"] = "washer";
|
|
10584
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
10585
|
+
DeviceType["Dryer"] = "dryer";
|
|
10570
10586
|
return DeviceType;
|
|
10571
10587
|
}({});
|
|
10572
10588
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -10824,7 +10840,7 @@ function errMsg(err) {
|
|
|
10824
10840
|
return String(err);
|
|
10825
10841
|
}
|
|
10826
10842
|
//#endregion
|
|
10827
|
-
//#region ../types/dist/composition-
|
|
10843
|
+
//#region ../types/dist/composition-Bb8iwHEJ.mjs
|
|
10828
10844
|
/**
|
|
10829
10845
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
10830
10846
|
*
|
|
@@ -11139,6 +11155,13 @@ var table = {
|
|
|
11139
11155
|
apply: () => {
|
|
11140
11156
|
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
11141
11157
|
}
|
|
11158
|
+
},
|
|
11159
|
+
schmitt: {
|
|
11160
|
+
minArgs: 3,
|
|
11161
|
+
maxArgs: 5,
|
|
11162
|
+
apply: () => {
|
|
11163
|
+
throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
|
|
11164
|
+
}
|
|
11142
11165
|
}
|
|
11143
11166
|
};
|
|
11144
11167
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11580,6 +11603,99 @@ function validateExpressionSource(src) {
|
|
|
11580
11603
|
return null;
|
|
11581
11604
|
}
|
|
11582
11605
|
/**
|
|
11606
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
11607
|
+
*
|
|
11608
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
11609
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
11610
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
11611
|
+
*
|
|
11612
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
11613
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
11614
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11615
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
11616
|
+
* can move later without moving the others.
|
|
11617
|
+
*/
|
|
11618
|
+
var APPLIANCE_TEMPLATE_ID = "appliance";
|
|
11619
|
+
var APPLIANCE_KINDS = [
|
|
11620
|
+
"washer",
|
|
11621
|
+
"dryer",
|
|
11622
|
+
"dishwasher"
|
|
11623
|
+
];
|
|
11624
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
11625
|
+
/**
|
|
11626
|
+
* Statistics and integrals over a history read (D944).
|
|
11627
|
+
*
|
|
11628
|
+
* Pure: the same points always give the same answer, so a restart recomputes
|
|
11629
|
+
* rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
|
|
11630
|
+
* never the mean of the samples. A hole with no held value is not integrated
|
|
11631
|
+
* as zero. A truncated read is not published.
|
|
11632
|
+
*/
|
|
11633
|
+
var STATISTIC_STATS = [
|
|
11634
|
+
"min",
|
|
11635
|
+
"max",
|
|
11636
|
+
"mean",
|
|
11637
|
+
"sum",
|
|
11638
|
+
"count",
|
|
11639
|
+
"change"
|
|
11640
|
+
];
|
|
11641
|
+
/**
|
|
11642
|
+
* The range a statistics or integral helper asks history for (D944).
|
|
11643
|
+
*
|
|
11644
|
+
* Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
|
|
11645
|
+
* or 25 hours across a DST change. A tier is eligible only when its retention
|
|
11646
|
+
* is strictly longer than the longest that range can be. Forever qualifies.
|
|
11647
|
+
* Equal to a tier's retention is a refusal, not a short answer.
|
|
11648
|
+
*/
|
|
11649
|
+
var MINUTE_MS = 6e4;
|
|
11650
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
11651
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
11652
|
+
var ROLLING_SPANS = [
|
|
11653
|
+
"1h",
|
|
11654
|
+
"24h",
|
|
11655
|
+
"2d",
|
|
11656
|
+
"7d",
|
|
11657
|
+
"30d",
|
|
11658
|
+
"custom"
|
|
11659
|
+
];
|
|
11660
|
+
var CALENDAR_PERIODS = [
|
|
11661
|
+
"today",
|
|
11662
|
+
"yesterday",
|
|
11663
|
+
"this-week",
|
|
11664
|
+
"this-month"
|
|
11665
|
+
];
|
|
11666
|
+
var RESET_PERIODS = [
|
|
11667
|
+
"never",
|
|
11668
|
+
"daily",
|
|
11669
|
+
"weekly",
|
|
11670
|
+
"monthly"
|
|
11671
|
+
];
|
|
11672
|
+
5 * MINUTE_MS;
|
|
11673
|
+
24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
|
|
11674
|
+
7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
|
|
11675
|
+
var rollingWindowObject = object({
|
|
11676
|
+
kind: literal("rolling"),
|
|
11677
|
+
span: _enum(ROLLING_SPANS),
|
|
11678
|
+
customMinutes: number().int().min(5).optional()
|
|
11679
|
+
}).check((payload) => {
|
|
11680
|
+
if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
|
|
11681
|
+
code: "custom",
|
|
11682
|
+
message: "a custom range needs a duration in minutes",
|
|
11683
|
+
path: ["customMinutes"],
|
|
11684
|
+
input: payload.value
|
|
11685
|
+
});
|
|
11686
|
+
if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
|
|
11687
|
+
code: "custom",
|
|
11688
|
+
message: "only a custom range carries a duration",
|
|
11689
|
+
path: ["customMinutes"],
|
|
11690
|
+
input: payload.value
|
|
11691
|
+
});
|
|
11692
|
+
});
|
|
11693
|
+
var RollingWindowSchema = rollingWindowObject;
|
|
11694
|
+
var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
|
|
11695
|
+
kind: literal("calendar"),
|
|
11696
|
+
period: _enum(CALENDAR_PERIODS)
|
|
11697
|
+
})]);
|
|
11698
|
+
/**
|
|
11583
11699
|
* A composition source identity: `(addonId, stableId)`, never a numeric device
|
|
11584
11700
|
* id. Split out so helper schemas can name it without a cycle through
|
|
11585
11701
|
* `composition.ts` (D659).
|
|
@@ -11605,7 +11721,13 @@ var GROUP_TEMPLATE_IDS = [
|
|
|
11605
11721
|
"occupancy",
|
|
11606
11722
|
"binary",
|
|
11607
11723
|
"switch",
|
|
11608
|
-
"light"
|
|
11724
|
+
"light",
|
|
11725
|
+
"fan",
|
|
11726
|
+
"cover",
|
|
11727
|
+
"valve",
|
|
11728
|
+
"lock",
|
|
11729
|
+
"media-player",
|
|
11730
|
+
"climate"
|
|
11609
11731
|
];
|
|
11610
11732
|
var NUMERIC_AGGREGATES = [
|
|
11611
11733
|
"mean",
|
|
@@ -11635,14 +11757,73 @@ var HelperMemberSchema = object({
|
|
|
11635
11757
|
cap: string().min(1),
|
|
11636
11758
|
fieldPath: string().min(1)
|
|
11637
11759
|
});
|
|
11638
|
-
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11760
|
+
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
11761
|
+
object({
|
|
11762
|
+
kind: literal("group"),
|
|
11763
|
+
templateId: GroupTemplateIdSchema,
|
|
11764
|
+
aggregate: AggregateReducerSchema,
|
|
11765
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
11766
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
11767
|
+
active: ActiveCriterionSchema.optional()
|
|
11768
|
+
}),
|
|
11769
|
+
object({
|
|
11770
|
+
kind: literal("appliance"),
|
|
11771
|
+
templateId: literal(APPLIANCE_TEMPLATE_ID),
|
|
11772
|
+
appliance: _enum(APPLIANCE_KINDS),
|
|
11773
|
+
thresholdWatts: number().positive(),
|
|
11774
|
+
startDwellMs: number().int().nonnegative(),
|
|
11775
|
+
stopDwellMs: number().int().nonnegative(),
|
|
11776
|
+
member: HelperMemberSchema
|
|
11777
|
+
}),
|
|
11778
|
+
object({
|
|
11779
|
+
kind: literal("statistic"),
|
|
11780
|
+
stat: _enum(STATISTIC_STATS),
|
|
11781
|
+
window: StatisticWindowSchema,
|
|
11782
|
+
source: HelperMemberSchema
|
|
11783
|
+
}),
|
|
11784
|
+
object({
|
|
11785
|
+
kind: literal("integral"),
|
|
11786
|
+
reset: _enum(RESET_PERIODS),
|
|
11787
|
+
output: _enum(["energy", "meter"]),
|
|
11788
|
+
source: HelperMemberSchema
|
|
11789
|
+
}),
|
|
11790
|
+
object({
|
|
11791
|
+
kind: literal("threshold"),
|
|
11792
|
+
source: HelperMemberSchema,
|
|
11793
|
+
high: number(),
|
|
11794
|
+
low: number(),
|
|
11795
|
+
onForMs: number().int().nonnegative(),
|
|
11796
|
+
offForMs: number().int().nonnegative()
|
|
11797
|
+
}),
|
|
11798
|
+
object({
|
|
11799
|
+
kind: literal("arithmetic"),
|
|
11800
|
+
op: _enum([
|
|
11801
|
+
"sum",
|
|
11802
|
+
"difference",
|
|
11803
|
+
"ratio"
|
|
11804
|
+
]),
|
|
11805
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
11806
|
+
}),
|
|
11807
|
+
object({
|
|
11808
|
+
kind: literal("expression"),
|
|
11809
|
+
expr: string().min(1),
|
|
11810
|
+
inputs: array(object({
|
|
11811
|
+
name: string().min(1),
|
|
11812
|
+
member: HelperMemberSchema
|
|
11813
|
+
})).min(1).max(64),
|
|
11814
|
+
output: _enum(["number", "boolean"])
|
|
11815
|
+
}),
|
|
11816
|
+
object({
|
|
11817
|
+
kind: literal("derivative"),
|
|
11818
|
+
window: RollingWindowSchema,
|
|
11819
|
+
per: _enum([
|
|
11820
|
+
"second",
|
|
11821
|
+
"minute",
|
|
11822
|
+
"hour"
|
|
11823
|
+
]),
|
|
11824
|
+
source: HelperMemberSchema
|
|
11825
|
+
})
|
|
11826
|
+
]);
|
|
11646
11827
|
/** A composed device's stableId is this prefix plus the block id. */
|
|
11647
11828
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
11648
11829
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
@@ -11703,6 +11884,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11703
11884
|
"all"
|
|
11704
11885
|
]),
|
|
11705
11886
|
reads: array(CompositionFieldReadSchema).min(1).max(64),
|
|
11887
|
+
/**
|
|
11888
|
+
* Set when the reads are an enum state, not a yes/no: the listed states
|
|
11889
|
+
* count as active (a cover is `open`). A state outside the list is inactive;
|
|
11890
|
+
* a read that is not a state at all is left out. Only `any` / `all` use it.
|
|
11891
|
+
*/
|
|
11892
|
+
activeWhen: array(string().min(1)).min(1).optional(),
|
|
11706
11893
|
/** `value` is the reading; the others are the member counts. */
|
|
11707
11894
|
publish: _enum([
|
|
11708
11895
|
"value",
|
|
@@ -11716,6 +11903,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
|
11716
11903
|
"omit",
|
|
11717
11904
|
"offline"
|
|
11718
11905
|
])
|
|
11906
|
+
}),
|
|
11907
|
+
object({
|
|
11908
|
+
kind: literal("series"),
|
|
11909
|
+
read: CompositionFieldReadSchema,
|
|
11910
|
+
/** `value` is the statistic or the integral. The others are the gap counts. */
|
|
11911
|
+
publish: _enum([
|
|
11912
|
+
"value",
|
|
11913
|
+
"included",
|
|
11914
|
+
"excluded",
|
|
11915
|
+
"total"
|
|
11916
|
+
]),
|
|
11917
|
+
/**
|
|
11918
|
+
* What an unanswered `value` does. Counts ignore this. `offline` leaves the
|
|
11919
|
+
* device unseeded until history answers, so a restart cannot publish 0.
|
|
11920
|
+
*/
|
|
11921
|
+
empty: _enum([
|
|
11922
|
+
"null",
|
|
11923
|
+
"omit",
|
|
11924
|
+
"offline"
|
|
11925
|
+
])
|
|
11719
11926
|
})
|
|
11720
11927
|
]);
|
|
11721
11928
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
@@ -16875,7 +17082,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
16875
17082
|
*/
|
|
16876
17083
|
interactiveConnectPath: string().min(1).optional(),
|
|
16877
17084
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
16878
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17085
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17086
|
+
/**
|
|
17087
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17088
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17089
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17090
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17091
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17092
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17093
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17094
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17095
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17096
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17097
|
+
* offers it as the default path; the fields the session fills are
|
|
17098
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17099
|
+
*/
|
|
17100
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
16879
17101
|
}))
|
|
16880
17102
|
});
|
|
16881
17103
|
var ListInputSchema = object({
|
|
@@ -17980,7 +18202,8 @@ var CompositionProblemSchema = object({
|
|
|
17980
18202
|
"native-capability-replace",
|
|
17981
18203
|
"mixed-quantity",
|
|
17982
18204
|
"helper-mismatch",
|
|
17983
|
-
"member-constraint"
|
|
18205
|
+
"member-constraint",
|
|
18206
|
+
"retention"
|
|
17984
18207
|
]),
|
|
17985
18208
|
path: string(),
|
|
17986
18209
|
message: string()
|
|
@@ -18214,13 +18437,17 @@ Object.freeze({
|
|
|
18214
18437
|
latchedAt: {
|
|
18215
18438
|
kind: "fixed",
|
|
18216
18439
|
result: ["number", "null"]
|
|
18440
|
+
},
|
|
18441
|
+
schmitt: {
|
|
18442
|
+
kind: "fixed",
|
|
18443
|
+
result: ["boolean", "null"]
|
|
18217
18444
|
}
|
|
18218
18445
|
});
|
|
18219
18446
|
/**
|
|
18220
18447
|
* One catalog row per base reading a group helper can build (D944 §3).
|
|
18221
18448
|
* Data, not a form default written into the block.
|
|
18222
18449
|
*/
|
|
18223
|
-
var NOW = {
|
|
18450
|
+
var NOW$2 = {
|
|
18224
18451
|
fieldPath: "lastFetchedAt",
|
|
18225
18452
|
expr: "now"
|
|
18226
18453
|
};
|
|
@@ -18234,6 +18461,8 @@ function numeric(input) {
|
|
|
18234
18461
|
family: "numeric",
|
|
18235
18462
|
deviceType: DeviceType.Sensor,
|
|
18236
18463
|
memberDeviceType: DeviceType.Sensor,
|
|
18464
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18465
|
+
activeWhen: void 0,
|
|
18237
18466
|
commandCaps: [],
|
|
18238
18467
|
baseUnit: baseUnitOf(input.quantity),
|
|
18239
18468
|
aggregates: NUMERIC_AGGREGATES,
|
|
@@ -18249,6 +18478,8 @@ function binary(input) {
|
|
|
18249
18478
|
family: "binary",
|
|
18250
18479
|
deviceType: DeviceType.Sensor,
|
|
18251
18480
|
memberDeviceType: DeviceType.Sensor,
|
|
18481
|
+
memberDeviceTypes: [DeviceType.Sensor],
|
|
18482
|
+
activeWhen: void 0,
|
|
18252
18483
|
commandCaps: [],
|
|
18253
18484
|
quantity: "none",
|
|
18254
18485
|
baseUnit: void 0,
|
|
@@ -18266,7 +18497,7 @@ var GROUP_TEMPLATES = [
|
|
|
18266
18497
|
quantity: "temperature",
|
|
18267
18498
|
defaultAggregate: "mean",
|
|
18268
18499
|
empty: "null",
|
|
18269
|
-
companions: [NOW]
|
|
18500
|
+
companions: [NOW$2]
|
|
18270
18501
|
}),
|
|
18271
18502
|
numeric({
|
|
18272
18503
|
id: "humidity",
|
|
@@ -18277,7 +18508,7 @@ var GROUP_TEMPLATES = [
|
|
|
18277
18508
|
quantity: "humidity",
|
|
18278
18509
|
defaultAggregate: "mean",
|
|
18279
18510
|
empty: "null",
|
|
18280
|
-
companions: [NOW]
|
|
18511
|
+
companions: [NOW$2]
|
|
18281
18512
|
}),
|
|
18282
18513
|
numeric({
|
|
18283
18514
|
id: "pressure",
|
|
@@ -18288,7 +18519,7 @@ var GROUP_TEMPLATES = [
|
|
|
18288
18519
|
quantity: "pressure",
|
|
18289
18520
|
defaultAggregate: "mean",
|
|
18290
18521
|
empty: "null",
|
|
18291
|
-
companions: [NOW]
|
|
18522
|
+
companions: [NOW$2]
|
|
18292
18523
|
}),
|
|
18293
18524
|
numeric({
|
|
18294
18525
|
id: "illuminance",
|
|
@@ -18299,7 +18530,7 @@ var GROUP_TEMPLATES = [
|
|
|
18299
18530
|
quantity: "illuminance",
|
|
18300
18531
|
defaultAggregate: "mean",
|
|
18301
18532
|
empty: "null",
|
|
18302
|
-
companions: [NOW]
|
|
18533
|
+
companions: [NOW$2]
|
|
18303
18534
|
}),
|
|
18304
18535
|
numeric({
|
|
18305
18536
|
id: "power",
|
|
@@ -18310,7 +18541,7 @@ var GROUP_TEMPLATES = [
|
|
|
18310
18541
|
quantity: "power",
|
|
18311
18542
|
defaultAggregate: "sum",
|
|
18312
18543
|
empty: "omit",
|
|
18313
|
-
companions: [NOW]
|
|
18544
|
+
companions: [NOW$2]
|
|
18314
18545
|
}),
|
|
18315
18546
|
numeric({
|
|
18316
18547
|
id: "energy",
|
|
@@ -18321,7 +18552,7 @@ var GROUP_TEMPLATES = [
|
|
|
18321
18552
|
quantity: "energy",
|
|
18322
18553
|
defaultAggregate: "sum",
|
|
18323
18554
|
empty: "omit",
|
|
18324
|
-
companions: [NOW]
|
|
18555
|
+
companions: [NOW$2]
|
|
18325
18556
|
}),
|
|
18326
18557
|
numeric({
|
|
18327
18558
|
id: "battery",
|
|
@@ -18356,7 +18587,7 @@ var GROUP_TEMPLATES = [
|
|
|
18356
18587
|
quantity: "device",
|
|
18357
18588
|
defaultAggregate: "mean",
|
|
18358
18589
|
empty: "null",
|
|
18359
|
-
companions: [NOW]
|
|
18590
|
+
companions: [NOW$2]
|
|
18360
18591
|
}),
|
|
18361
18592
|
binary({
|
|
18362
18593
|
id: "motion",
|
|
@@ -18450,6 +18681,11 @@ var GROUP_TEMPLATES = [
|
|
|
18450
18681
|
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.",
|
|
18451
18682
|
deviceType: DeviceType.Switch,
|
|
18452
18683
|
outputCap: "switch",
|
|
18684
|
+
outputField: "on",
|
|
18685
|
+
member: {
|
|
18686
|
+
cap: "switch",
|
|
18687
|
+
fieldPath: "on"
|
|
18688
|
+
},
|
|
18453
18689
|
commandCaps: ["switch"]
|
|
18454
18690
|
}),
|
|
18455
18691
|
actuator({
|
|
@@ -18457,34 +18693,136 @@ var GROUP_TEMPLATES = [
|
|
|
18457
18693
|
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.",
|
|
18458
18694
|
deviceType: DeviceType.Light,
|
|
18459
18695
|
outputCap: "switch",
|
|
18696
|
+
outputField: "on",
|
|
18697
|
+
member: {
|
|
18698
|
+
cap: "switch",
|
|
18699
|
+
fieldPath: "on"
|
|
18700
|
+
},
|
|
18460
18701
|
commandCaps: [
|
|
18461
18702
|
"switch",
|
|
18462
18703
|
"brightness",
|
|
18463
18704
|
"color"
|
|
18464
18705
|
]
|
|
18706
|
+
}),
|
|
18707
|
+
actuator({
|
|
18708
|
+
id: "fan",
|
|
18709
|
+
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.",
|
|
18710
|
+
deviceType: DeviceType.Fan,
|
|
18711
|
+
outputCap: "switch",
|
|
18712
|
+
outputField: "on",
|
|
18713
|
+
member: {
|
|
18714
|
+
cap: "switch",
|
|
18715
|
+
fieldPath: "on"
|
|
18716
|
+
},
|
|
18717
|
+
commandCaps: ["switch", "fan-control"]
|
|
18718
|
+
}),
|
|
18719
|
+
actuator({
|
|
18720
|
+
id: "cover",
|
|
18721
|
+
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.",
|
|
18722
|
+
deviceType: DeviceType.Cover,
|
|
18723
|
+
outputCap: "group-active",
|
|
18724
|
+
outputField: "active",
|
|
18725
|
+
member: {
|
|
18726
|
+
cap: "cover",
|
|
18727
|
+
fieldPath: "state"
|
|
18728
|
+
},
|
|
18729
|
+
activeWhen: [
|
|
18730
|
+
"open",
|
|
18731
|
+
"opening",
|
|
18732
|
+
"stopped"
|
|
18733
|
+
],
|
|
18734
|
+
commandCaps: ["cover"]
|
|
18735
|
+
}),
|
|
18736
|
+
actuator({
|
|
18737
|
+
id: "valve",
|
|
18738
|
+
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.",
|
|
18739
|
+
deviceType: DeviceType.Valve,
|
|
18740
|
+
outputCap: "group-active",
|
|
18741
|
+
outputField: "active",
|
|
18742
|
+
member: {
|
|
18743
|
+
cap: "valve",
|
|
18744
|
+
fieldPath: "state"
|
|
18745
|
+
},
|
|
18746
|
+
activeWhen: [
|
|
18747
|
+
"open",
|
|
18748
|
+
"opening",
|
|
18749
|
+
"stopped"
|
|
18750
|
+
],
|
|
18751
|
+
commandCaps: ["valve"]
|
|
18752
|
+
}),
|
|
18753
|
+
actuator({
|
|
18754
|
+
id: "lock",
|
|
18755
|
+
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.",
|
|
18756
|
+
deviceType: DeviceType.Lock,
|
|
18757
|
+
outputCap: "group-active",
|
|
18758
|
+
outputField: "active",
|
|
18759
|
+
member: {
|
|
18760
|
+
cap: "lock-control",
|
|
18761
|
+
fieldPath: "state"
|
|
18762
|
+
},
|
|
18763
|
+
activeWhen: ["locked"],
|
|
18764
|
+
commandCaps: ["lock-control"]
|
|
18765
|
+
}),
|
|
18766
|
+
actuator({
|
|
18767
|
+
id: "media-player",
|
|
18768
|
+
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.",
|
|
18769
|
+
deviceType: DeviceType.MediaPlayer,
|
|
18770
|
+
outputCap: "group-active",
|
|
18771
|
+
outputField: "active",
|
|
18772
|
+
member: {
|
|
18773
|
+
cap: "media-player",
|
|
18774
|
+
fieldPath: "state"
|
|
18775
|
+
},
|
|
18776
|
+
activeWhen: ["playing", "buffering"],
|
|
18777
|
+
commandCaps: ["media-player"]
|
|
18778
|
+
}),
|
|
18779
|
+
actuator({
|
|
18780
|
+
id: "climate",
|
|
18781
|
+
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.",
|
|
18782
|
+
deviceType: DeviceType.Thermostat,
|
|
18783
|
+
memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
|
|
18784
|
+
outputCap: "group-active",
|
|
18785
|
+
outputField: "active",
|
|
18786
|
+
member: {
|
|
18787
|
+
cap: "climate-control",
|
|
18788
|
+
fieldPath: "mode"
|
|
18789
|
+
},
|
|
18790
|
+
activeWhen: [
|
|
18791
|
+
"heat",
|
|
18792
|
+
"cool",
|
|
18793
|
+
"auto",
|
|
18794
|
+
"heat_cool",
|
|
18795
|
+
"fan_only",
|
|
18796
|
+
"dry"
|
|
18797
|
+
],
|
|
18798
|
+
commandCaps: ["climate-control"]
|
|
18465
18799
|
})
|
|
18466
18800
|
];
|
|
18467
18801
|
function actuator(input) {
|
|
18468
18802
|
return {
|
|
18469
|
-
|
|
18803
|
+
id: input.id,
|
|
18804
|
+
summary: input.summary,
|
|
18805
|
+
deviceType: input.deviceType,
|
|
18806
|
+
outputCap: input.outputCap,
|
|
18807
|
+
outputField: input.outputField,
|
|
18808
|
+
commandCaps: input.commandCaps,
|
|
18470
18809
|
family: "actuator",
|
|
18471
18810
|
role: void 0,
|
|
18472
18811
|
memberDeviceType: input.deviceType,
|
|
18473
|
-
|
|
18812
|
+
memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
|
|
18813
|
+
activeWhen: input.activeWhen,
|
|
18474
18814
|
quantity: "none",
|
|
18475
18815
|
baseUnit: void 0,
|
|
18476
18816
|
aggregates: BINARY_AGGREGATES,
|
|
18477
18817
|
defaultAggregate: "any",
|
|
18478
18818
|
empty: "offline",
|
|
18479
|
-
accept: [
|
|
18480
|
-
cap: "switch",
|
|
18481
|
-
fieldPath: "on"
|
|
18482
|
-
}],
|
|
18819
|
+
accept: [input.member],
|
|
18483
18820
|
companions: [CHANGED]
|
|
18484
18821
|
};
|
|
18485
18822
|
}
|
|
18486
18823
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
18487
18824
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
18825
|
+
DeviceType.Camera;
|
|
18488
18826
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
18489
18827
|
/**
|
|
18490
18828
|
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
@@ -43804,7 +44142,7 @@ var NetworkAccessStatusSchema = object({
|
|
|
43804
44142
|
});
|
|
43805
44143
|
/**
|
|
43806
44144
|
* Optional, richer endpoint shape returned by providers that expose
|
|
43807
|
-
* MORE than one ingress concurrently (Tailscale
|
|
44145
|
+
* MORE than one ingress concurrently (Tailscale Funnel with mixed
|
|
43808
44146
|
* serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
|
|
43809
44147
|
* the originating provider config (mode + sourcePort) so the
|
|
43810
44148
|
* orchestrator UI can label rows distinctly. Providers that expose only
|
|
@@ -46491,7 +46829,20 @@ var NcRuleInputSchema = object({
|
|
|
46491
46829
|
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
46492
46830
|
* path does not run Zod defaults.
|
|
46493
46831
|
*/
|
|
46494
|
-
groupingSec: number().int().min(5).max(60).optional()
|
|
46832
|
+
groupingSec: number().int().min(5).max(60).optional(),
|
|
46833
|
+
/**
|
|
46834
|
+
* ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
|
|
46835
|
+
* carries "Correct" / "Wrong" buttons (and, where the channel has room, a
|
|
46836
|
+
* "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
|
|
46837
|
+
* same mark the Library writes, and records whose notification it was and
|
|
46838
|
+
* when. A channel with no buttons gets the same two choices as links.
|
|
46839
|
+
*
|
|
46840
|
+
* `.optional()`, never `.default()` (a Zod default does not run on the addon
|
|
46841
|
+
* cap path): absent and `false` both mean off, which is what every rule
|
|
46842
|
+
* authored before this field meant. An editor turns it off by writing
|
|
46843
|
+
* `false`, so it needs no `clear` key.
|
|
46844
|
+
*/
|
|
46845
|
+
askVerdict: boolean().optional()
|
|
46495
46846
|
});
|
|
46496
46847
|
/**
|
|
46497
46848
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -57211,7 +57562,8 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
57211
57562
|
DeviceType.Switch,
|
|
57212
57563
|
DeviceType.PetFeeder,
|
|
57213
57564
|
DeviceType.Container,
|
|
57214
|
-
DeviceType.Thermostat
|
|
57565
|
+
DeviceType.Thermostat,
|
|
57566
|
+
DeviceType.EventEmitter
|
|
57215
57567
|
];
|
|
57216
57568
|
/** Generic Customize target for the percentage reading (D936). */
|
|
57217
57569
|
var batteryCustomize = {
|
|
@@ -60088,7 +60440,17 @@ var groupCommandsCapability = {
|
|
|
60088
60440
|
scope: "device",
|
|
60089
60441
|
deviceNative: true,
|
|
60090
60442
|
mode: "singleton",
|
|
60091
|
-
deviceTypes: [
|
|
60443
|
+
deviceTypes: [
|
|
60444
|
+
DeviceType.Switch,
|
|
60445
|
+
DeviceType.Light,
|
|
60446
|
+
DeviceType.Fan,
|
|
60447
|
+
DeviceType.Cover,
|
|
60448
|
+
DeviceType.Valve,
|
|
60449
|
+
DeviceType.Lock,
|
|
60450
|
+
DeviceType.MediaPlayer,
|
|
60451
|
+
DeviceType.Thermostat,
|
|
60452
|
+
DeviceType.Climate
|
|
60453
|
+
],
|
|
60092
60454
|
methods: {},
|
|
60093
60455
|
status: {
|
|
60094
60456
|
schema: GroupCommandsSchema,
|
|
@@ -60106,6 +60468,49 @@ var groupCommandsCapability = {
|
|
|
60106
60468
|
history: "none"
|
|
60107
60469
|
};
|
|
60108
60470
|
/**
|
|
60471
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
60472
|
+
* included member is, or every included member is. What "active" means is the
|
|
60473
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
60474
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
60475
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
60476
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
60477
|
+
* empty included set takes the device offline, never `active: false`.
|
|
60478
|
+
*/
|
|
60479
|
+
var GroupActiveSchema = object({
|
|
60480
|
+
active: boolean().meta({ label: "Active" }),
|
|
60481
|
+
/** Ms epoch when the slice was last updated. */
|
|
60482
|
+
lastChangedAt: number()
|
|
60483
|
+
});
|
|
60484
|
+
var groupActiveCapability = {
|
|
60485
|
+
name: "group-active",
|
|
60486
|
+
scope: "device",
|
|
60487
|
+
deviceNative: true,
|
|
60488
|
+
mode: "singleton",
|
|
60489
|
+
deviceTypes: [
|
|
60490
|
+
DeviceType.Cover,
|
|
60491
|
+
DeviceType.Valve,
|
|
60492
|
+
DeviceType.Lock,
|
|
60493
|
+
DeviceType.MediaPlayer,
|
|
60494
|
+
DeviceType.Climate,
|
|
60495
|
+
DeviceType.Thermostat
|
|
60496
|
+
],
|
|
60497
|
+
methods: {},
|
|
60498
|
+
status: {
|
|
60499
|
+
schema: GroupActiveSchema,
|
|
60500
|
+
kind: "push"
|
|
60501
|
+
},
|
|
60502
|
+
runtimeState: GroupActiveSchema,
|
|
60503
|
+
/**
|
|
60504
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
60505
|
+
* next source event; a restored value would outlive the members it named.
|
|
60506
|
+
*
|
|
60507
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
60508
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
60509
|
+
*/
|
|
60510
|
+
durability: "session",
|
|
60511
|
+
history: "none"
|
|
60512
|
+
};
|
|
60513
|
+
/**
|
|
60109
60514
|
* How many members of a helper group answered (D944). Counts are integers,
|
|
60110
60515
|
* not measurements: zero included is a real count, never a stand-in reading.
|
|
60111
60516
|
* The reading itself stays on the output capability. History is none — the
|
|
@@ -60136,7 +60541,14 @@ var groupStatusCapability = {
|
|
|
60136
60541
|
deviceTypes: [
|
|
60137
60542
|
DeviceType.Sensor,
|
|
60138
60543
|
DeviceType.Switch,
|
|
60139
|
-
DeviceType.Light
|
|
60544
|
+
DeviceType.Light,
|
|
60545
|
+
DeviceType.Fan,
|
|
60546
|
+
DeviceType.Cover,
|
|
60547
|
+
DeviceType.Valve,
|
|
60548
|
+
DeviceType.Lock,
|
|
60549
|
+
DeviceType.MediaPlayer,
|
|
60550
|
+
DeviceType.Thermostat,
|
|
60551
|
+
DeviceType.Climate
|
|
60140
60552
|
],
|
|
60141
60553
|
methods: {},
|
|
60142
60554
|
status: {
|
|
@@ -61409,7 +61821,14 @@ var lockControlCapability = {
|
|
|
61409
61821
|
}),
|
|
61410
61822
|
unlock: method(object({
|
|
61411
61823
|
deviceId: number().int().nonnegative(),
|
|
61412
|
-
code: string().min(1).optional()
|
|
61824
|
+
code: string().min(1).optional(),
|
|
61825
|
+
/**
|
|
61826
|
+
* Honoured by a helper lock GROUP only (D944): unlocking several doors
|
|
61827
|
+
* with one call is refused unless the caller says it was confirmed. A
|
|
61828
|
+
* single lock ignores it. The refusal lives in the callee, so no
|
|
61829
|
+
* automation or API caller reaches the doors by skipping a dialog.
|
|
61830
|
+
*/
|
|
61831
|
+
confirm: boolean().optional()
|
|
61413
61832
|
}), _void(), {
|
|
61414
61833
|
kind: "mutation",
|
|
61415
61834
|
auth: "protected"
|
|
@@ -61446,6 +61865,44 @@ var lockControlCapability = {
|
|
|
61446
61865
|
volatileStateFields: ["lastChangedAt"]
|
|
61447
61866
|
};
|
|
61448
61867
|
/**
|
|
61868
|
+
* A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
|
|
61869
|
+
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
61870
|
+
* `value` is the time integral in the source quantity's accumulated base
|
|
61871
|
+
* (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
|
|
61872
|
+
*/
|
|
61873
|
+
var MeterStatusSchema = object({
|
|
61874
|
+
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
61875
|
+
lastFetchedAt: number()
|
|
61876
|
+
});
|
|
61877
|
+
var meterCapability = {
|
|
61878
|
+
name: "meter",
|
|
61879
|
+
scope: "device",
|
|
61880
|
+
deviceNative: true,
|
|
61881
|
+
mode: "singleton",
|
|
61882
|
+
deviceTypes: [DeviceType.Sensor],
|
|
61883
|
+
methods: {},
|
|
61884
|
+
status: {
|
|
61885
|
+
schema: MeterStatusSchema,
|
|
61886
|
+
kind: "push"
|
|
61887
|
+
},
|
|
61888
|
+
runtimeState: MeterStatusSchema,
|
|
61889
|
+
/**
|
|
61890
|
+
* Runtime-state durability: **restored** — the total is a cache of the
|
|
61891
|
+
* history integral. A restart shows it only until the history pass
|
|
61892
|
+
* recomputes the open period; it is not an in-memory buffer.
|
|
61893
|
+
*
|
|
61894
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
61895
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
61896
|
+
*/
|
|
61897
|
+
durability: "restored",
|
|
61898
|
+
history: { fields: { value: {
|
|
61899
|
+
kind: "counter",
|
|
61900
|
+
deadband: .001,
|
|
61901
|
+
minIntervalMs: 6e4
|
|
61902
|
+
} } },
|
|
61903
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
61904
|
+
};
|
|
61905
|
+
/**
|
|
61449
61906
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
61450
61907
|
* Apple TV, Spotify, Roku, generic OTT receivers, …) on
|
|
61451
61908
|
* `DeviceType.MediaPlayer`. Disjoint from the camera streaming
|
|
@@ -63957,9 +64414,9 @@ var PowerMeterStatusSchema = object({
|
|
|
63957
64414
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
63958
64415
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
63959
64416
|
/** Voltage in volts. */
|
|
63960
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
64417
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
63961
64418
|
/** Current in amperes. */
|
|
63962
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
64419
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
63963
64420
|
/** Apparent power in volt-amperes. */
|
|
63964
64421
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
63965
64422
|
/** Power factor (0..1) if reported. */
|
|
@@ -63967,12 +64424,74 @@ var PowerMeterStatusSchema = object({
|
|
|
63967
64424
|
/** Ms epoch when the slice was last updated. */
|
|
63968
64425
|
lastFetchedAt: number()
|
|
63969
64426
|
});
|
|
64427
|
+
/**
|
|
64428
|
+
* Loads that draw metered mains power (D951). The reading is a feature of the
|
|
64429
|
+
* device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
|
|
64430
|
+
* vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
|
|
64431
|
+
* meter or a standalone energy monitor IS the device. Cover, lock, valve,
|
|
64432
|
+
* camera and the like are left out: their draw is not what anyone meters.
|
|
64433
|
+
*/
|
|
64434
|
+
var POWER_METER_DEVICE_TYPES = [
|
|
64435
|
+
DeviceType.Sensor,
|
|
64436
|
+
DeviceType.Switch,
|
|
64437
|
+
DeviceType.Light,
|
|
64438
|
+
DeviceType.Fan,
|
|
64439
|
+
DeviceType.Climate,
|
|
64440
|
+
DeviceType.Thermostat,
|
|
64441
|
+
DeviceType.Humidifier,
|
|
64442
|
+
DeviceType.WaterHeater,
|
|
64443
|
+
DeviceType.MediaPlayer,
|
|
64444
|
+
DeviceType.Washer,
|
|
64445
|
+
DeviceType.Dryer,
|
|
64446
|
+
DeviceType.Dishwasher,
|
|
64447
|
+
DeviceType.Vacuum,
|
|
64448
|
+
DeviceType.LawnMower,
|
|
64449
|
+
DeviceType.PetFeeder
|
|
64450
|
+
];
|
|
64451
|
+
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
64452
|
+
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
64453
|
+
/** One scalar target per reading; each is sourced from a device of its own (D951). */
|
|
64454
|
+
function powerTarget(id, unit) {
|
|
64455
|
+
return {
|
|
64456
|
+
id,
|
|
64457
|
+
cardinality: "scalar",
|
|
64458
|
+
vocabulary: {
|
|
64459
|
+
cap: "power-meter",
|
|
64460
|
+
stateField: id
|
|
64461
|
+
},
|
|
64462
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
|
|
64463
|
+
apply: "add",
|
|
64464
|
+
path: id,
|
|
64465
|
+
sources: [{
|
|
64466
|
+
kind: "numeric",
|
|
64467
|
+
requiredUnit: unit,
|
|
64468
|
+
transforms: [{ kind: "identity" }]
|
|
64469
|
+
}],
|
|
64470
|
+
companions: [{
|
|
64471
|
+
kind: "clock",
|
|
64472
|
+
path: "lastFetchedAt",
|
|
64473
|
+
when: "always"
|
|
64474
|
+
}],
|
|
64475
|
+
sourceReport: { status: "assignment-status" },
|
|
64476
|
+
advancedExpression: true
|
|
64477
|
+
};
|
|
64478
|
+
}
|
|
64479
|
+
/** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
|
|
64480
|
+
var powerMeterCustomize = {
|
|
64481
|
+
version: 1,
|
|
64482
|
+
targets: [
|
|
64483
|
+
powerTarget("watts", "W"),
|
|
64484
|
+
powerTarget("kwhTotal", "kWh"),
|
|
64485
|
+
powerTarget("volts", "V"),
|
|
64486
|
+
powerTarget("amps", "A")
|
|
64487
|
+
]
|
|
64488
|
+
};
|
|
63970
64489
|
var powerMeterCapability = {
|
|
63971
64490
|
name: "power-meter",
|
|
63972
64491
|
scope: "device",
|
|
63973
64492
|
deviceNative: true,
|
|
63974
64493
|
mode: "singleton",
|
|
63975
|
-
deviceTypes:
|
|
64494
|
+
deviceTypes: POWER_METER_DEVICE_TYPES,
|
|
63976
64495
|
methods: {},
|
|
63977
64496
|
status: {
|
|
63978
64497
|
schema: PowerMeterStatusSchema,
|
|
@@ -64029,7 +64548,8 @@ var powerMeterCapability = {
|
|
|
64029
64548
|
} },
|
|
64030
64549
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64031
64550
|
* whether persisting is worth a SQLite commit. */
|
|
64032
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64551
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64552
|
+
customize: powerMeterCustomize
|
|
64033
64553
|
};
|
|
64034
64554
|
/**
|
|
64035
64555
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -64710,6 +65230,8 @@ var runningCustomize = {
|
|
|
64710
65230
|
stateField: "running"
|
|
64711
65231
|
},
|
|
64712
65232
|
deviceTypes: [
|
|
65233
|
+
DeviceType.Washer,
|
|
65234
|
+
DeviceType.Dryer,
|
|
64713
65235
|
DeviceType.Dishwasher,
|
|
64714
65236
|
DeviceType.Vacuum,
|
|
64715
65237
|
DeviceType.LawnMower,
|
|
@@ -67199,7 +67721,8 @@ var switchCapability = {
|
|
|
67199
67721
|
deviceTypes: [
|
|
67200
67722
|
DeviceType.Switch,
|
|
67201
67723
|
DeviceType.Siren,
|
|
67202
|
-
DeviceType.Light
|
|
67724
|
+
DeviceType.Light,
|
|
67725
|
+
DeviceType.Fan
|
|
67203
67726
|
],
|
|
67204
67727
|
methods: { setState: method(object({
|
|
67205
67728
|
deviceId: number(),
|
|
@@ -69412,8 +69935,9 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
|
|
|
69412
69935
|
kind: "mutation",
|
|
69413
69936
|
auth: "admin"
|
|
69414
69937
|
});
|
|
69938
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
69415
69939
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
69416
|
-
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.Camera, DeviceType.Camera, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
69940
|
+
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;
|
|
69417
69941
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
69418
69942
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
69419
69943
|
new Set(CAP_NAMES);
|
|
@@ -69742,6 +70266,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69742
70266
|
featureProbe: featureProbeCapability,
|
|
69743
70267
|
flood: floodCapability,
|
|
69744
70268
|
gas: gasCapability,
|
|
70269
|
+
groupActive: groupActiveCapability,
|
|
69745
70270
|
groupCommands: groupCommandsCapability,
|
|
69746
70271
|
groupStatus: groupStatusCapability,
|
|
69747
70272
|
heatingValve: heatingValveCapability,
|
|
@@ -69753,6 +70278,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
69753
70278
|
lawnMowerControl: lawnMowerControlCapability,
|
|
69754
70279
|
lockControl: lockControlCapability,
|
|
69755
70280
|
mediaPlayer: mediaPlayerCapability,
|
|
70281
|
+
meter: meterCapability,
|
|
69756
70282
|
motion: motionCapability,
|
|
69757
70283
|
motionTrigger: motionTriggerCapability,
|
|
69758
70284
|
motionZones: motionZonesCapability,
|
|
@@ -71012,7 +71538,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
71012
71538
|
return toDeviceSummary(device, this.addonId);
|
|
71013
71539
|
}
|
|
71014
71540
|
};
|
|
71015
|
-
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
|
|
71541
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, 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;
|
|
71016
71542
|
new Set(Object.values(DeviceType));
|
|
71017
71543
|
Object.freeze({
|
|
71018
71544
|
"accessories.getStatus": {
|
|
@@ -74235,6 +74761,13 @@ Object.freeze({
|
|
|
74235
74761
|
access: "view",
|
|
74236
74762
|
role: "viewer"
|
|
74237
74763
|
},
|
|
74764
|
+
"groupActive.getStatus": {
|
|
74765
|
+
capName: "group-active",
|
|
74766
|
+
capScope: "device",
|
|
74767
|
+
addonId: null,
|
|
74768
|
+
access: "view",
|
|
74769
|
+
role: "viewer"
|
|
74770
|
+
},
|
|
74238
74771
|
"groupCommands.getStatus": {
|
|
74239
74772
|
capName: "group-commands",
|
|
74240
74773
|
capScope: "device",
|
|
@@ -75201,6 +75734,13 @@ Object.freeze({
|
|
|
75201
75734
|
access: "create",
|
|
75202
75735
|
role: "admin"
|
|
75203
75736
|
},
|
|
75737
|
+
"meter.getStatus": {
|
|
75738
|
+
capName: "meter",
|
|
75739
|
+
capScope: "device",
|
|
75740
|
+
addonId: null,
|
|
75741
|
+
access: "view",
|
|
75742
|
+
role: "viewer"
|
|
75743
|
+
},
|
|
75204
75744
|
"metricsProvider.collectSnapshot": {
|
|
75205
75745
|
capName: "metrics-provider",
|
|
75206
75746
|
capScope: "system",
|
|
@@ -83299,7 +83839,39 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
83299
83839
|
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
83300
83840
|
icon: "square"
|
|
83301
83841
|
}
|
|
83302
|
-
}
|
|
83842
|
+
},
|
|
83843
|
+
overrides: { byType: {
|
|
83844
|
+
[DeviceType.Washer]: {
|
|
83845
|
+
state: { running: {
|
|
83846
|
+
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
83847
|
+
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
83848
|
+
} },
|
|
83849
|
+
events: {
|
|
83850
|
+
onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
|
|
83851
|
+
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
83852
|
+
}
|
|
83853
|
+
},
|
|
83854
|
+
[DeviceType.Dryer]: {
|
|
83855
|
+
state: { running: {
|
|
83856
|
+
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
83857
|
+
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
83858
|
+
} },
|
|
83859
|
+
events: {
|
|
83860
|
+
onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
|
|
83861
|
+
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
83862
|
+
}
|
|
83863
|
+
},
|
|
83864
|
+
[DeviceType.Dishwasher]: {
|
|
83865
|
+
state: { running: {
|
|
83866
|
+
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
83867
|
+
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
83868
|
+
} },
|
|
83869
|
+
events: {
|
|
83870
|
+
onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
|
|
83871
|
+
onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
|
|
83872
|
+
}
|
|
83873
|
+
}
|
|
83874
|
+
} }
|
|
83303
83875
|
},
|
|
83304
83876
|
update: {
|
|
83305
83877
|
scope: "device",
|
|
@@ -84071,6 +84643,10 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84071
84643
|
icon: "flame"
|
|
84072
84644
|
}]
|
|
84073
84645
|
},
|
|
84646
|
+
"group-active": {
|
|
84647
|
+
scope: "device",
|
|
84648
|
+
noun: t("Group state", "Stato del gruppo")
|
|
84649
|
+
},
|
|
84074
84650
|
"group-commands": {
|
|
84075
84651
|
scope: "device",
|
|
84076
84652
|
noun: t("Group command", "Comando di gruppo")
|
|
@@ -84127,6 +84703,17 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
84127
84703
|
}],
|
|
84128
84704
|
events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
|
|
84129
84705
|
},
|
|
84706
|
+
meter: {
|
|
84707
|
+
scope: "device",
|
|
84708
|
+
noun: t("Meter", "Contatore"),
|
|
84709
|
+
state: [{
|
|
84710
|
+
kind: "numeric",
|
|
84711
|
+
field: "value",
|
|
84712
|
+
quantity: t("the total", "il totale"),
|
|
84713
|
+
label: t("Total", "Totale"),
|
|
84714
|
+
icon: "gauge"
|
|
84715
|
+
}]
|
|
84716
|
+
},
|
|
84130
84717
|
"numeric-sensor": {
|
|
84131
84718
|
scope: "device",
|
|
84132
84719
|
noun: t("Sensor", "Sensore"),
|
|
@@ -84599,8 +85186,47 @@ function projectAction(cap, action) {
|
|
|
84599
85186
|
};
|
|
84600
85187
|
}
|
|
84601
85188
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
84602
|
-
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;
|
|
85189
|
+
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;
|
|
84603
85190
|
DeviceFeature.BatteryOperated;
|
|
85191
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
85192
|
+
var HA_AS = "a power sensor (device_class power). Home Assistant has no laundry domain. running-state stays unexported until a null reading can be published as unavailable.";
|
|
85193
|
+
var HOMEKIT_REASON = "HomeKit has no laundry-appliance service. The export tab would pair an accessory with nothing on it: running-state is withheld until a null reading can be unavailable, and power is not a HomeKit service this export honours.";
|
|
85194
|
+
var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
|
|
85195
|
+
var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
|
|
85196
|
+
var MATTER_REASON = "No Matter export is built. The closest device types are Laundry Washer (0x0073) and Laundry Dryer (0x0074); a power threshold is not the Laundry Washer Mode cluster.";
|
|
85197
|
+
function withheld(reason) {
|
|
85198
|
+
return {
|
|
85199
|
+
[DeviceType.Washer]: {
|
|
85200
|
+
exported: false,
|
|
85201
|
+
reason
|
|
85202
|
+
},
|
|
85203
|
+
[DeviceType.Dryer]: {
|
|
85204
|
+
exported: false,
|
|
85205
|
+
reason
|
|
85206
|
+
},
|
|
85207
|
+
[DeviceType.Dishwasher]: {
|
|
85208
|
+
exported: false,
|
|
85209
|
+
reason
|
|
85210
|
+
}
|
|
85211
|
+
};
|
|
85212
|
+
}
|
|
85213
|
+
function offered(received) {
|
|
85214
|
+
return {
|
|
85215
|
+
[DeviceType.Washer]: {
|
|
85216
|
+
exported: true,
|
|
85217
|
+
as: received
|
|
85218
|
+
},
|
|
85219
|
+
[DeviceType.Dryer]: {
|
|
85220
|
+
exported: true,
|
|
85221
|
+
as: received
|
|
85222
|
+
},
|
|
85223
|
+
[DeviceType.Dishwasher]: {
|
|
85224
|
+
exported: true,
|
|
85225
|
+
as: received
|
|
85226
|
+
}
|
|
85227
|
+
};
|
|
85228
|
+
}
|
|
85229
|
+
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
84604
85230
|
Object.freeze({
|
|
84605
85231
|
"accessories.getStatus": [{
|
|
84606
85232
|
name: "deviceId",
|
|
@@ -85567,6 +86193,11 @@ Object.freeze({
|
|
|
85567
86193
|
form: "single",
|
|
85568
86194
|
optional: false
|
|
85569
86195
|
}],
|
|
86196
|
+
"groupActive.getStatus": [{
|
|
86197
|
+
name: "deviceId",
|
|
86198
|
+
form: "single",
|
|
86199
|
+
optional: false
|
|
86200
|
+
}],
|
|
85570
86201
|
"groupCommands.getStatus": [{
|
|
85571
86202
|
name: "deviceId",
|
|
85572
86203
|
form: "single",
|
|
@@ -85777,6 +86408,11 @@ Object.freeze({
|
|
|
85777
86408
|
form: "single",
|
|
85778
86409
|
optional: false
|
|
85779
86410
|
}],
|
|
86411
|
+
"meter.getStatus": [{
|
|
86412
|
+
name: "deviceId",
|
|
86413
|
+
form: "single",
|
|
86414
|
+
optional: false
|
|
86415
|
+
}],
|
|
85780
86416
|
"motion.getStatus": [{
|
|
85781
86417
|
name: "deviceId",
|
|
85782
86418
|
form: "single",
|
|
@@ -87384,7 +88020,6 @@ Object.freeze({
|
|
|
87384
88020
|
"network-access": "ingress",
|
|
87385
88021
|
"smtp-provider": "email"
|
|
87386
88022
|
});
|
|
87387
|
-
DeviceType.Camera;
|
|
87388
88023
|
/**
|
|
87389
88024
|
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
87390
88025
|
* `z.infer`, they do not restate the shape.
|