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